configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xmag 1.0.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xmag'
583 PACKAGE_TARNAME='xmag'
584 PACKAGE_VERSION='1.0.6'
585 PACKAGE_STRING='xmag 1.0.6'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 XMAG_LIBS
632 XMAG_CFLAGS
633 MAN_SUBSTS
634 XORG_MAN_PAGE
635 ADMIN_MAN_DIR
636 DRIVER_MAN_DIR
637 MISC_MAN_DIR
638 FILE_MAN_DIR
639 LIB_MAN_DIR
640 APP_MAN_DIR
641 ADMIN_MAN_SUFFIX
642 DRIVER_MAN_SUFFIX
643 MISC_MAN_SUFFIX
644 FILE_MAN_SUFFIX
645 LIB_MAN_SUFFIX
646 APP_MAN_SUFFIX
647 SED
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 INSTALL_CMD
657 PKG_CONFIG
658 CHANGELOG_CMD
659 STRICT_CFLAGS
660 CWARNFLAGS
661 BASE_CFLAGS
662 EGREP
663 GREP
664 CPP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 AM_BACKSLASH
683 AM_DEFAULT_VERBOSITY
684 AM_DEFAULT_V
685 AM_V
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_silent_rules
751 enable_dependency_tracking
752 enable_selective_werror
753 enable_strict_compilation
754 with_appdefaultdir
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CC
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CPP
765 PKG_CONFIG
766 XMAG_CFLAGS
767 XMAG_LIBS'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
817
818 ac_prev=
819 ac_dashdash=
820 for ac_option
821 do
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\$ac_option
825 ac_prev=
826 continue
827 fi
828
829 case $ac_option in
830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 *=) ac_optarg= ;;
832 *) ac_optarg=yes ;;
833 esac
834
835 # Accept the important Cygnus configure options, so we can diagnose typos.
836
837 case $ac_dashdash$ac_option in
838 --)
839 ac_dashdash=yes ;;
840
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
845
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
850
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
857
858 --config-cache | -C)
859 cache_file=config.cache ;;
860
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
865
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
872
873 -disable-* | --disable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error $? "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
881 *"
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=no ;;
888
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
893
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
898
899 -enable-* | --enable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=\$ac_optarg ;;
914
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev=exec_prefix ;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix=$ac_optarg ;;
923
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
926 with_gas=yes ;;
927
928 -help | --help | --hel | --he | -h)
929 ac_init_help=long ;;
930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931 ac_init_help=recursive ;;
932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933 ac_init_help=short ;;
934
935 -host | --host | --hos | --ho)
936 ac_prev=host_alias ;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias=$ac_optarg ;;
939
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 ac_prev=htmldir ;;
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 | --ht=*)
944 htmldir=$ac_optarg ;;
945
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev=includedir ;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir=$ac_optarg ;;
952
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 ac_prev=infodir ;;
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
957
958 -libdir | --libdir | --libdi | --libd)
959 ac_prev=libdir ;;
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 libdir=$ac_optarg ;;
962
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev=libexecdir ;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir=$ac_optarg ;;
969
970 -localedir | --localedir | --localedi | --localed | --locale)
971 ac_prev=localedir ;;
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir=$ac_optarg ;;
974
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev=localstatedir ;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir=$ac_optarg ;;
981
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 ac_prev=mandir ;;
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 mandir=$ac_optarg ;;
986
987 -nfp | --nfp | --nf)
988 # Obsolete; use --without-fp.
989 with_fp=no ;;
990
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
993 no_create=yes ;;
994
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 no_recursion=yes ;;
998
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev=oldincludedir ;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir=$ac_optarg ;;
1007
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 ac_prev=prefix ;;
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix=$ac_optarg ;;
1012
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev=program_prefix ;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix=$ac_optarg ;;
1019
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev=program_suffix ;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix=$ac_optarg ;;
1026
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev=program_transform_name ;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name=$ac_optarg ;;
1043
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 ac_prev=pdfdir ;;
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1048
1049 -psdir | --psdir | --psdi | --psd | --ps)
1050 ac_prev=psdir ;;
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 psdir=$ac_optarg ;;
1053
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 silent=yes ;;
1057
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1063
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1074
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1079
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1084
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1091
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1096
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1099
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1102
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1118
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1152
1153 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1166
1167 *)
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 ;;
1174
1175 esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1196 do
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273 else
1274 ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures xmag 1.0.6 to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/xmag]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1362
1363 cat <<\_ACEOF
1364
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 _ACEOF
1374 fi
1375
1376 if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of xmag 1.0.6:";;
1379 esac
1380 cat <<\_ACEOF
1381
1382 Optional Features:
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --enable-silent-rules less verbose build output (undo: "make V=1")
1387 --disable-silent-rules verbose build output (undo: "make V=0")
1388 --enable-dependency-tracking
1389 do not reject slow dependency extractors
1390 --disable-dependency-tracking
1391 speeds up one-time build
1392 --disable-selective-werror
1393 Turn off selective compiler errors. (default:
1394 enabled)
1395 --enable-strict-compilation
1396 Enable all warnings from compiler and make them
1397 errors (default: disabled)
1398
1399 Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-appdefaultdir=<pathname>
1403 specify directory for app-defaults files (default is
1404 autodetected)
1405
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CPP C preprocessor
1415 PKG_CONFIG path to pkg-config utility
1416 XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config
1417 XMAG_LIBS linker flags for XMAG, overriding pkg-config
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 xmag configure 1.0.6
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535 } # ac_fn_c_try_compile
1536
1537 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1538 # ---------------------------------------------
1539 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1540 # accordingly.
1541 ac_fn_c_check_decl ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 as_decl_name=`echo $2|sed 's/ *(.*//'`
1545 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1547 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1548 if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1550 else
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h. */
1553 $4
1554 int
1555 main ()
1556 {
1557 #ifndef $as_decl_name
1558 #ifdef __cplusplus
1559 (void) $as_decl_use;
1560 #else
1561 (void) $as_decl_name;
1562 #endif
1563 #endif
1564
1565 ;
1566 return 0;
1567 }
1568 _ACEOF
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 eval "$3=yes"
1571 else
1572 eval "$3=no"
1573 fi
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 fi
1576 eval ac_res=\$$3
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1578 $as_echo "$ac_res" >&6; }
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580
1581 } # ac_fn_c_check_decl
1582
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_cpp ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_cpp
1619
1620 # ac_fn_c_try_run LINENO
1621 # ----------------------
1622 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1623 # that executables *can* be run.
1624 ac_fn_c_try_run ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1638 { { case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_try") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; }; }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: program exited with status $ac_status" >&5
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=$ac_status
1655 fi
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_run
1661
1662 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists and can be compiled using the include files in
1665 # INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \${$3+:} false; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 eval "$3=yes"
1681 else
1682 eval "$3=no"
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 fi
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } # ac_fn_c_check_header_compile
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 test -x conftest$ac_exeext
1721 }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738
1739 # ac_fn_c_check_func LINENO FUNC VAR
1740 # ----------------------------------
1741 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1742 ac_fn_c_check_func ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1749 else
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1754 #define $2 innocuous_$2
1755
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $2 (); below.
1758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1759 <limits.h> exists even on freestanding compilers. */
1760
1761 #ifdef __STDC__
1762 # include <limits.h>
1763 #else
1764 # include <assert.h>
1765 #endif
1766
1767 #undef $2
1768
1769 /* Override any GCC internal prototype to avoid an error.
1770 Use char because int might match the return type of a GCC
1771 builtin and then its argument prototype would still apply. */
1772 #ifdef __cplusplus
1773 extern "C"
1774 #endif
1775 char $2 ();
1776 /* The GNU C library defines this for functions which it implements
1777 to always fail with ENOSYS. Some functions are actually named
1778 something starting with __ and the normal name is an alias. */
1779 #if defined __stub_$2 || defined __stub___$2
1780 choke me
1781 #endif
1782
1783 int
1784 main ()
1785 {
1786 return $2 ();
1787 ;
1788 return 0;
1789 }
1790 _ACEOF
1791 if ac_fn_c_try_link "$LINENO"; then :
1792 eval "$3=yes"
1793 else
1794 eval "$3=no"
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext \
1797 conftest$ac_exeext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_func
1805 cat >config.log <<_ACEOF
1806 This file contains any messages produced by compilers while
1807 running configure, to aid debugging if configure makes a mistake.
1808
1809 It was created by xmag $as_me 1.0.6, which was
1810 generated by GNU Autoconf 2.69. Invocation command line was
1811
1812 $ $0 $@
1813
1814 _ACEOF
1815 exec 5>>config.log
1816 {
1817 cat <<_ASUNAME
1818 ## --------- ##
1819 ## Platform. ##
1820 ## --------- ##
1821
1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1830
1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1838
1839 _ASUNAME
1840
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 $as_echo "PATH: $as_dir"
1847 done
1848 IFS=$as_save_IFS
1849
1850 } >&5
1851
1852 cat >&5 <<_ACEOF
1853
1854
1855 ## ----------- ##
1856 ## Core tests. ##
1857 ## ----------- ##
1858
1859 _ACEOF
1860
1861
1862 # Keep a trace of the command line.
1863 # Strip out --no-create and --no-recursion so they do not pile up.
1864 # Strip out --silent because we don't want to record it for future runs.
1865 # Also quote any args containing shell meta-characters.
1866 # Make two passes to allow for proper duplicate-argument suppression.
1867 ac_configure_args=
1868 ac_configure_args0=
1869 ac_configure_args1=
1870 ac_must_keep_next=false
1871 for ac_pass in 1 2
1872 do
1873 for ac_arg
1874 do
1875 case $ac_arg in
1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878 | -silent | --silent | --silen | --sile | --sil)
1879 continue ;;
1880 *\'*)
1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 esac
1883 case $ac_pass in
1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1885 2)
1886 as_fn_append ac_configure_args1 " '$ac_arg'"
1887 if test $ac_must_keep_next = true; then
1888 ac_must_keep_next=false # Got value, back to normal.
1889 else
1890 case $ac_arg in
1891 *=* | --config-cache | -C | -disable-* | --disable-* \
1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894 | -with-* | --with-* | -without-* | --without-* | --x)
1895 case "$ac_configure_args0 " in
1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 esac
1898 ;;
1899 -* ) ac_must_keep_next=true ;;
1900 esac
1901 fi
1902 as_fn_append ac_configure_args " '$ac_arg'"
1903 ;;
1904 esac
1905 done
1906 done
1907 { ac_configure_args0=; unset ac_configure_args0;}
1908 { ac_configure_args1=; unset ac_configure_args1;}
1909
1910 # When interrupted or exit'd, cleanup temporary files, and complete
1911 # config.log. We remove comments because anyway the quotes in there
1912 # would cause problems or look ugly.
1913 # WARNING: Use '\'' to represent an apostrophe within the trap.
1914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915 trap 'exit_status=$?
1916 # Save into config.log some information that might help in debugging.
1917 {
1918 echo
1919
1920 $as_echo "## ---------------- ##
1921 ## Cache variables. ##
1922 ## ---------------- ##"
1923 echo
1924 # The following way of writing the cache mishandles newlines in values,
1925 (
1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in #(
1929 *${as_nl}*)
1930 case $ac_var in #(
1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 esac
1934 case $ac_var in #(
1935 _ | IFS | as_nl) ;; #(
1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937 *) { eval $ac_var=; unset $ac_var;} ;;
1938 esac ;;
1939 esac
1940 done
1941 (set) 2>&1 |
1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943 *${as_nl}ac_space=\ *)
1944 sed -n \
1945 "s/'\''/'\''\\\\'\'''\''/g;
1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 ;; #(
1948 *)
1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950 ;;
1951 esac |
1952 sort
1953 )
1954 echo
1955
1956 $as_echo "## ----------------- ##
1957 ## Output variables. ##
1958 ## ----------------- ##"
1959 echo
1960 for ac_var in $ac_subst_vars
1961 do
1962 eval ac_val=\$$ac_var
1963 case $ac_val in
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 esac
1966 $as_echo "$ac_var='\''$ac_val'\''"
1967 done | sort
1968 echo
1969
1970 if test -n "$ac_subst_files"; then
1971 $as_echo "## ------------------- ##
1972 ## File substitutions. ##
1973 ## ------------------- ##"
1974 echo
1975 for ac_var in $ac_subst_files
1976 do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1984 fi
1985
1986 if test -s confdefs.h; then
1987 $as_echo "## ----------- ##
1988 ## confdefs.h. ##
1989 ## ----------- ##"
1990 echo
1991 cat confdefs.h
1992 echo
1993 fi
1994 test "$ac_signal" != 0 &&
1995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
1997 } >&5
1998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 exit $exit_status
2001 ' 0
2002 for ac_signal in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004 done
2005 ac_signal=0
2006
2007 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2008 rm -f -r conftest* confdefs.h
2009
2010 $as_echo "/* confdefs.h */" > confdefs.h
2011
2012 # Predefined preprocessor variables.
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_NAME "$PACKAGE_NAME"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_STRING "$PACKAGE_STRING"
2028 _ACEOF
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032 _ACEOF
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_URL "$PACKAGE_URL"
2036 _ACEOF
2037
2038
2039 # Let the site file select an alternate cache file if it wants to.
2040 # Prefer an explicitly selected file to automatically selected ones.
2041 ac_site_file1=NONE
2042 ac_site_file2=NONE
2043 if test -n "$CONFIG_SITE"; then
2044 # We do not want a PATH search for config.site.
2045 case $CONFIG_SITE in #((
2046 -*) ac_site_file1=./$CONFIG_SITE;;
2047 */*) ac_site_file1=$CONFIG_SITE;;
2048 *) ac_site_file1=./$CONFIG_SITE;;
2049 esac
2050 elif test "x$prefix" != xNONE; then
2051 ac_site_file1=$prefix/share/config.site
2052 ac_site_file2=$prefix/etc/config.site
2053 else
2054 ac_site_file1=$ac_default_prefix/share/config.site
2055 ac_site_file2=$ac_default_prefix/etc/config.site
2056 fi
2057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2058 do
2059 test "x$ac_site_file" = xNONE && continue
2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2064 . "$ac_site_file" \
2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 as_fn_error $? "failed to load site script $ac_site_file
2068 See \`config.log' for more details" "$LINENO" 5; }
2069 fi
2070 done
2071
2072 if test -r "$cache_file"; then
2073 # Some versions of bash will fail to source /dev/null (special files
2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077 $as_echo "$as_me: loading cache $cache_file" >&6;}
2078 case $cache_file in
2079 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080 *) . "./$cache_file";;
2081 esac
2082 fi
2083 else
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085 $as_echo "$as_me: creating cache $cache_file" >&6;}
2086 >$cache_file
2087 fi
2088
2089 # Check that the precious variables saved in the cache have kept the same
2090 # value.
2091 ac_cache_corrupted=false
2092 for ac_var in $ac_precious_vars; do
2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2094 eval ac_new_set=\$ac_env_${ac_var}_set
2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2096 eval ac_new_val=\$ac_env_${ac_var}_value
2097 case $ac_old_set,$ac_new_set in
2098 set,)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,set)
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2106 ,);;
2107 *)
2108 if test "x$ac_old_val" != "x$ac_new_val"; then
2109 # differences in whitespace do not lead to failure.
2110 ac_old_val_w=`echo x $ac_old_val`
2111 ac_new_val_w=`echo x $ac_new_val`
2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2115 ac_cache_corrupted=:
2116 else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2119 eval $ac_var=\$ac_old_val
2120 fi
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2122 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2124 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 fi;;
2126 esac
2127 # Pass precious variables to config.status.
2128 if test "$ac_new_set" = set; then
2129 case $ac_new_val in
2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 *) ac_arg=$ac_var=$ac_new_val ;;
2132 esac
2133 case " $ac_configure_args " in
2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2136 esac
2137 fi
2138 done
2139 if $ac_cache_corrupted; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2145 fi
2146 ## -------------------- ##
2147 ## Main body of script. ##
2148 ## -------------------- ##
2149
2150 ac_ext=c
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155
2156
2157
2158 ac_config_headers="$ac_config_headers config.h"
2159
2160
2161 # Initialize Automake
2162 am__api_version='1.15'
2163
2164 ac_aux_dir=
2165 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2166 if test -f "$ac_dir/install-sh"; then
2167 ac_aux_dir=$ac_dir
2168 ac_install_sh="$ac_aux_dir/install-sh -c"
2169 break
2170 elif test -f "$ac_dir/install.sh"; then
2171 ac_aux_dir=$ac_dir
2172 ac_install_sh="$ac_aux_dir/install.sh -c"
2173 break
2174 elif test -f "$ac_dir/shtool"; then
2175 ac_aux_dir=$ac_dir
2176 ac_install_sh="$ac_aux_dir/shtool install -c"
2177 break
2178 fi
2179 done
2180 if test -z "$ac_aux_dir"; then
2181 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2182 fi
2183
2184 # These three variables are undocumented and unsupported,
2185 # and are intended to be withdrawn in a future Autoconf release.
2186 # They can cause serious problems if a builder's source tree is in a directory
2187 # whose full name contains unusual characters.
2188 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2189 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2190 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2191
2192
2193 # Find a good install program. We prefer a C program (faster),
2194 # so one script is as good as another. But avoid the broken or
2195 # incompatible versions:
2196 # SysV /etc/install, /usr/sbin/install
2197 # SunOS /usr/etc/install
2198 # IRIX /sbin/install
2199 # AIX /bin/install
2200 # AmigaOS /C/install, which installs bootblocks on floppy discs
2201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2204 # OS/2's system install, which has a completely different semantic
2205 # ./install, which can be erroneously created by make from ./install.sh.
2206 # Reject install programs that cannot install multiple files.
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2208 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2209 if test -z "$INSTALL"; then
2210 if ${ac_cv_path_install+:} false; then :
2211 $as_echo_n "(cached) " >&6
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 # Account for people who put trailing slashes in PATH elements.
2219 case $as_dir/ in #((
2220 ./ | .// | /[cC]/* | \
2221 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2222 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2223 /usr/ucb/* ) ;;
2224 *)
2225 # OSF1 and SCO ODT 3.0 have their own names for install.
2226 # Don't use installbsd from OSF since it installs stuff as root
2227 # by default.
2228 for ac_prog in ginstall scoinst install; do
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2231 if test $ac_prog = install &&
2232 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2233 # AIX install. It has an incompatible calling convention.
2234 :
2235 elif test $ac_prog = install &&
2236 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2237 # program-specific install script used by HP pwplus--don't use.
2238 :
2239 else
2240 rm -rf conftest.one conftest.two conftest.dir
2241 echo one > conftest.one
2242 echo two > conftest.two
2243 mkdir conftest.dir
2244 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2245 test -s conftest.one && test -s conftest.two &&
2246 test -s conftest.dir/conftest.one &&
2247 test -s conftest.dir/conftest.two
2248 then
2249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2250 break 3
2251 fi
2252 fi
2253 fi
2254 done
2255 done
2256 ;;
2257 esac
2258
2259 done
2260 IFS=$as_save_IFS
2261
2262 rm -rf conftest.one conftest.two conftest.dir
2263
2264 fi
2265 if test "${ac_cv_path_install+set}" = set; then
2266 INSTALL=$ac_cv_path_install
2267 else
2268 # As a last resort, use the slow shell script. Don't cache a
2269 # value for INSTALL within a source directory, because that will
2270 # break other packages using the cache if that directory is
2271 # removed, or if the value is a relative name.
2272 INSTALL=$ac_install_sh
2273 fi
2274 fi
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2276 $as_echo "$INSTALL" >&6; }
2277
2278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2279 # It thinks the first close brace ends the variable substitution.
2280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2281
2282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2283
2284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2285
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2287 $as_echo_n "checking whether build environment is sane... " >&6; }
2288 # Reject unsafe characters in $srcdir or the absolute working directory
2289 # name. Accept space and tab only in the latter.
2290 am_lf='
2291 '
2292 case `pwd` in
2293 *[\\\"\#\$\&\'\`$am_lf]*)
2294 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2295 esac
2296 case $srcdir in
2297 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2298 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2299 esac
2300
2301 # Do 'set' in a subshell so we don't clobber the current shell's
2302 # arguments. Must try -L first in case configure is actually a
2303 # symlink; some systems play weird games with the mod time of symlinks
2304 # (eg FreeBSD returns the mod time of the symlink's containing
2305 # directory).
2306 if (
2307 am_has_slept=no
2308 for am_try in 1 2; do
2309 echo "timestamp, slept: $am_has_slept" > conftest.file
2310 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2311 if test "$*" = "X"; then
2312 # -L didn't work.
2313 set X `ls -t "$srcdir/configure" conftest.file`
2314 fi
2315 if test "$*" != "X $srcdir/configure conftest.file" \
2316 && test "$*" != "X conftest.file $srcdir/configure"; then
2317
2318 # If neither matched, then we have a broken ls. This can happen
2319 # if, for instance, CONFIG_SHELL is bash and it inherits a
2320 # broken ls alias from the environment. This has actually
2321 # happened. Such a system could not be considered "sane".
2322 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2323 alias in your environment" "$LINENO" 5
2324 fi
2325 if test "$2" = conftest.file || test $am_try -eq 2; then
2326 break
2327 fi
2328 # Just in case.
2329 sleep 1
2330 am_has_slept=yes
2331 done
2332 test "$2" = conftest.file
2333 )
2334 then
2335 # Ok.
2336 :
2337 else
2338 as_fn_error $? "newly created file is older than distributed files!
2339 Check your system clock" "$LINENO" 5
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2342 $as_echo "yes" >&6; }
2343 # If we didn't sleep, we still need to ensure time stamps of config.status and
2344 # generated files are strictly newer.
2345 am_sleep_pid=
2346 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2347 ( sleep 1 ) &
2348 am_sleep_pid=$!
2349 fi
2350
2351 rm -f conftest.file
2352
2353 test "$program_prefix" != NONE &&
2354 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2355 # Use a double $ so make ignores it.
2356 test "$program_suffix" != NONE &&
2357 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2358 # Double any \ or $.
2359 # By default was `s,x,x', remove it if useless.
2360 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2361 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2362
2363 # Expand $ac_aux_dir to an absolute path.
2364 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2365
2366 if test x"${MISSING+set}" != xset; then
2367 case $am_aux_dir in
2368 *\ * | *\ *)
2369 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2370 *)
2371 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2372 esac
2373 fi
2374 # Use eval to expand $SHELL
2375 if eval "$MISSING --is-lightweight"; then
2376 am_missing_run="$MISSING "
2377 else
2378 am_missing_run=
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2380 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2381 fi
2382
2383 if test x"${install_sh+set}" != xset; then
2384 case $am_aux_dir in
2385 *\ * | *\ *)
2386 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2387 *)
2388 install_sh="\${SHELL} $am_aux_dir/install-sh"
2389 esac
2390 fi
2391
2392 # Installed binaries are usually stripped using 'strip' when the user
2393 # run "make install-strip". However 'strip' might not be the right
2394 # tool to use in cross-compilation environments, therefore Automake
2395 # will honor the 'STRIP' environment variable to overrule this program.
2396 if test "$cross_compiling" != no; then
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}strip; ac_word=$2
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if ${ac_cv_prog_STRIP+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 if test -n "$STRIP"; then
2406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2422
2423 fi
2424 fi
2425 STRIP=$ac_cv_prog_STRIP
2426 if test -n "$STRIP"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2428 $as_echo "$STRIP" >&6; }
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2431 $as_echo "no" >&6; }
2432 fi
2433
2434
2435 fi
2436 if test -z "$ac_cv_prog_STRIP"; then
2437 ac_ct_STRIP=$STRIP
2438 # Extract the first word of "strip", so it can be a program name with args.
2439 set dummy strip; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 if test -n "$ac_ct_STRIP"; then
2446 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_STRIP="strip"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2466 if test -n "$ac_ct_STRIP"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2468 $as_echo "$ac_ct_STRIP" >&6; }
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2473
2474 if test "x$ac_ct_STRIP" = x; then
2475 STRIP=":"
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2481 ac_tool_warned=yes ;;
2482 esac
2483 STRIP=$ac_ct_STRIP
2484 fi
2485 else
2486 STRIP="$ac_cv_prog_STRIP"
2487 fi
2488
2489 fi
2490 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2493 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2494 if test -z "$MKDIR_P"; then
2495 if ${ac_cv_path_mkdir+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_prog in mkdir gmkdir; do
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2506 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2507 'mkdir (GNU coreutils) '* | \
2508 'mkdir (coreutils) '* | \
2509 'mkdir (fileutils) '4.1*)
2510 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2511 break 3;;
2512 esac
2513 done
2514 done
2515 done
2516 IFS=$as_save_IFS
2517
2518 fi
2519
2520 test -d ./--version && rmdir ./--version
2521 if test "${ac_cv_path_mkdir+set}" = set; then
2522 MKDIR_P="$ac_cv_path_mkdir -p"
2523 else
2524 # As a last resort, use the slow shell script. Don't cache a
2525 # value for MKDIR_P within a source directory, because that will
2526 # break other packages using the cache if that directory is
2527 # removed, or if the value is a relative name.
2528 MKDIR_P="$ac_install_sh -d"
2529 fi
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2532 $as_echo "$MKDIR_P" >&6; }
2533
2534 for ac_prog in gawk mawk nawk awk
2535 do
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_AWK+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$AWK"; then
2544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_AWK="$ac_prog"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 AWK=$ac_cv_prog_AWK
2564 if test -n "$AWK"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2566 $as_echo "$AWK" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573 test -n "$AWK" && break
2574 done
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2578 set x ${MAKE-make}
2579 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat >conftest.make <<\_ACEOF
2584 SHELL = /bin/sh
2585 all:
2586 @echo '@@@%%%=$(MAKE)=@@@%%%'
2587 _ACEOF
2588 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2589 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2590 *@@@%%%=?*=@@@%%%*)
2591 eval ac_cv_prog_make_${ac_make}_set=yes;;
2592 *)
2593 eval ac_cv_prog_make_${ac_make}_set=no;;
2594 esac
2595 rm -f conftest.make
2596 fi
2597 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2599 $as_echo "yes" >&6; }
2600 SET_MAKE=
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 SET_MAKE="MAKE=${MAKE-make}"
2605 fi
2606
2607 rm -rf .tst 2>/dev/null
2608 mkdir .tst 2>/dev/null
2609 if test -d .tst; then
2610 am__leading_dot=.
2611 else
2612 am__leading_dot=_
2613 fi
2614 rmdir .tst 2>/dev/null
2615
2616 # Check whether --enable-silent-rules was given.
2617 if test "${enable_silent_rules+set}" = set; then :
2618 enableval=$enable_silent_rules;
2619 fi
2620
2621 case $enable_silent_rules in # (((
2622 yes) AM_DEFAULT_VERBOSITY=0;;
2623 no) AM_DEFAULT_VERBOSITY=1;;
2624 *) AM_DEFAULT_VERBOSITY=1;;
2625 esac
2626 am_make=${MAKE-make}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2628 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2629 if ${am_cv_make_support_nested_variables+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if $as_echo 'TRUE=$(BAR$(V))
2633 BAR0=false
2634 BAR1=true
2635 V=1
2636 am__doit:
2637 @$(TRUE)
2638 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2639 am_cv_make_support_nested_variables=yes
2640 else
2641 am_cv_make_support_nested_variables=no
2642 fi
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2645 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2646 if test $am_cv_make_support_nested_variables = yes; then
2647 AM_V='$(V)'
2648 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2649 else
2650 AM_V=$AM_DEFAULT_VERBOSITY
2651 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2652 fi
2653 AM_BACKSLASH='\'
2654
2655 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2656 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2657 # is not polluted with repeated "-I."
2658 am__isrc=' -I$(srcdir)'
2659 # test to see if srcdir already configured
2660 if test -f $srcdir/config.status; then
2661 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2662 fi
2663 fi
2664
2665 # test whether we have cygpath
2666 if test -z "$CYGPATH_W"; then
2667 if (cygpath --version) >/dev/null 2>/dev/null; then
2668 CYGPATH_W='cygpath -w'
2669 else
2670 CYGPATH_W=echo
2671 fi
2672 fi
2673
2674
2675 # Define the identity of the package.
2676 PACKAGE='xmag'
2677 VERSION='1.0.6'
2678
2679
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE "$PACKAGE"
2682 _ACEOF
2683
2684
2685 cat >>confdefs.h <<_ACEOF
2686 #define VERSION "$VERSION"
2687 _ACEOF
2688
2689 # Some tools Automake needs.
2690
2691 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2692
2693
2694 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2695
2696
2697 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2698
2699
2700 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2701
2702
2703 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2704
2705 # For better backward compatibility. To be removed once Automake 1.9.x
2706 # dies out for good. For more background, see:
2707 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2708 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2709 mkdir_p='$(MKDIR_P)'
2710
2711 # We need awk for the "check" target (and possibly the TAP driver). The
2712 # system "awk" is bad on some platforms.
2713 # Always define AMTAR for backward compatibility. Yes, it's still used
2714 # in the wild :-( We should find a proper way to deprecate it ...
2715 AMTAR='$${TAR-tar}'
2716
2717
2718 # We'll loop over all known methods to create a tar archive until one works.
2719 _am_tools='gnutar pax cpio none'
2720
2721 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2722
2723
2724
2725
2726
2727
2728 # POSIX will say in a future version that running "rm -f" with no argument
2729 # is OK; and we want to be able to make that assumption in our Makefile
2730 # recipes. So use an aggressive probe to check that the usage we want is
2731 # actually supported "in the wild" to an acceptable degree.
2732 # See automake bug#10828.
2733 # To make any issue more visible, cause the running configure to be aborted
2734 # by default if the 'rm' program in use doesn't match our expectations; the
2735 # user can still override this though.
2736 if rm -f && rm -fr && rm -rf; then : OK; else
2737 cat >&2 <<'END'
2738 Oops!
2739
2740 Your 'rm' program seems unable to run without file operands specified
2741 on the command line, even when the '-f' option is present. This is contrary
2742 to the behaviour of most rm programs out there, and not conforming with
2743 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2744
2745 Please tell bug-automake@gnu.org about your system, including the value
2746 of your $PATH and any error possibly output before this message. This
2747 can help us improve future automake versions.
2748
2749 END
2750 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2751 echo 'Configuration will proceed anyway, since you have set the' >&2
2752 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2753 echo >&2
2754 else
2755 cat >&2 <<'END'
2756 Aborting the configuration process, to ensure you take notice of the issue.
2757
2758 You can download and install GNU coreutils to get an 'rm' implementation
2759 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2760
2761 If you want to complete the configuration process using your problematic
2762 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2763 to "yes", and re-run configure.
2764
2765 END
2766 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2767 fi
2768 fi
2769
2770
2771 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783 DEPDIR="${am__leading_dot}deps"
2784
2785 ac_config_commands="$ac_config_commands depfiles"
2786
2787
2788 am_make=${MAKE-make}
2789 cat > confinc << 'END'
2790 am__doit:
2791 @echo this is the am__doit target
2792 .PHONY: am__doit
2793 END
2794 # If we don't find an include directive, just comment out the code.
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2796 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2797 am__include="#"
2798 am__quote=
2799 _am_result=none
2800 # First try GNU make style include.
2801 echo "include confinc" > confmf
2802 # Ignore all kinds of additional output from 'make'.
2803 case `$am_make -s -f confmf 2> /dev/null` in #(
2804 *the\ am__doit\ target*)
2805 am__include=include
2806 am__quote=
2807 _am_result=GNU
2808 ;;
2809 esac
2810 # Now try BSD make style include.
2811 if test "$am__include" = "#"; then
2812 echo '.include "confinc"' > confmf
2813 case `$am_make -s -f confmf 2> /dev/null` in #(
2814 *the\ am__doit\ target*)
2815 am__include=.include
2816 am__quote="\""
2817 _am_result=BSD
2818 ;;
2819 esac
2820 fi
2821
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2824 $as_echo "$_am_result" >&6; }
2825 rm -f confinc confmf
2826
2827 # Check whether --enable-dependency-tracking was given.
2828 if test "${enable_dependency_tracking+set}" = set; then :
2829 enableval=$enable_dependency_tracking;
2830 fi
2831
2832 if test "x$enable_dependency_tracking" != xno; then
2833 am_depcomp="$ac_aux_dir/depcomp"
2834 AMDEPBACKSLASH='\'
2835 am__nodep='_no'
2836 fi
2837 if test "x$enable_dependency_tracking" != xno; then
2838 AMDEP_TRUE=
2839 AMDEP_FALSE='#'
2840 else
2841 AMDEP_TRUE='#'
2842 AMDEP_FALSE=
2843 fi
2844
2845
2846 ac_ext=c
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889 fi
2890 if test -z "$ac_cv_prog_CC"; then
2891 ac_ct_CC=$CC
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922 $as_echo "$ac_ct_CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928 if test "x$ac_ct_CC" = x; then
2929 CC=""
2930 else
2931 case $cross_compiling:$ac_tool_warned in
2932 yes:)
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2936 esac
2937 CC=$ac_ct_CC
2938 fi
2939 else
2940 CC="$ac_cv_prog_CC"
2941 fi
2942
2943 if test -z "$CC"; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="${ac_tool_prefix}cc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 fi
2984 if test -z "$CC"; then
2985 # Extract the first word of "cc", so it can be a program name with args.
2986 set dummy cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 ac_prog_rejected=no
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004 ac_prog_rejected=yes
3005 continue
3006 fi
3007 ac_cv_prog_CC="cc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 if test $ac_prog_rejected = yes; then
3016 # We found a bogon in the path, so make sure we never use it.
3017 set dummy $ac_cv_prog_CC
3018 shift
3019 if test $# != 0; then
3020 # We chose a different compiler from the bogus one.
3021 # However, it has the same basename, so the bogon will be chosen
3022 # first if we set CC to just the basename; use the full file name.
3023 shift
3024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3025 fi
3026 fi
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 for ac_prog in cl.exe
3043 do
3044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 test -n "$CC" && break
3082 done
3083 fi
3084 if test -z "$CC"; then
3085 ac_ct_CC=$CC
3086 for ac_prog in cl.exe
3087 do
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC="$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 test -n "$ac_ct_CC" && break
3126 done
3127
3128 if test "x$ac_ct_CC" = x; then
3129 CC=""
3130 else
3131 case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137 CC=$ac_ct_CC
3138 fi
3139 fi
3140
3141 fi
3142
3143
3144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error $? "no acceptable C compiler found in \$PATH
3147 See \`config.log' for more details" "$LINENO" 5; }
3148
3149 # Provide some information about the compiler.
3150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3151 set X $ac_compile
3152 ac_compiler=$2
3153 for ac_option in --version -v -V -qversion; do
3154 { { ac_try="$ac_compiler $ac_option >&5"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3162 ac_status=$?
3163 if test -s conftest.err; then
3164 sed '10a\
3165 ... rest of stderr output deleted ...
3166 10q' conftest.err >conftest.er1
3167 cat conftest.er1 >&5
3168 fi
3169 rm -f conftest.er1 conftest.err
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }
3172 done
3173
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3176
3177 int
3178 main ()
3179 {
3180
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 ac_clean_files_save=$ac_clean_files
3186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3187 # Try to create an executable without -o first, disregard a.out.
3188 # It will help us diagnose broken compilers, and finding out an intuition
3189 # of exeext.
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3191 $as_echo_n "checking whether the C compiler works... " >&6; }
3192 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3193
3194 # The possible output files:
3195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3196
3197 ac_rmfiles=
3198 for ac_file in $ac_files
3199 do
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 esac
3204 done
3205 rm -f $ac_rmfiles
3206
3207 if { { ac_try="$ac_link_default"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link_default") 2>&5
3215 ac_status=$?
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221 # so that the user can short-circuit this test for compilers unknown to
3222 # Autoconf.
3223 for ac_file in $ac_files ''
3224 do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3228 ;;
3229 [ab].out )
3230 # We found the default executable, but exeext='' is most
3231 # certainly right.
3232 break;;
3233 *.* )
3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 then :; else
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 fi
3238 # We set ac_cv_exeext here because the later test for it is not
3239 # safe: cross compilers may not add the suffix if given an `-o'
3240 # argument, so we may need to know it at that point already.
3241 # Even if this section looks crufty: it has the advantage of
3242 # actually working.
3243 break;;
3244 * )
3245 break;;
3246 esac
3247 done
3248 test "$ac_cv_exeext" = no && ac_cv_exeext=
3249
3250 else
3251 ac_file=''
3252 fi
3253 if test -z "$ac_file"; then :
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error 77 "C compiler cannot create executables
3262 See \`config.log' for more details" "$LINENO" 5; }
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3268 $as_echo_n "checking for C compiler default output file name... " >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3270 $as_echo "$ac_file" >&6; }
3271 ac_exeext=$ac_cv_exeext
3272
3273 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3276 $as_echo_n "checking for suffix of executables... " >&6; }
3277 if { { ac_try="$ac_link"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3290 # work properly (i.e., refer to `conftest.exe'), while it won't with
3291 # `rm'.
3292 for ac_file in conftest.exe conftest conftest.*; do
3293 test -f "$ac_file" || continue
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 break;;
3298 * ) break;;
3299 esac
3300 done
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3305 See \`config.log' for more details" "$LINENO" 5; }
3306 fi
3307 rm -f conftest conftest$ac_cv_exeext
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3309 $as_echo "$ac_cv_exeext" >&6; }
3310
3311 rm -f conftest.$ac_ext
3312 EXEEXT=$ac_cv_exeext
3313 ac_exeext=$EXEEXT
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316 #include <stdio.h>
3317 int
3318 main ()
3319 {
3320 FILE *f = fopen ("conftest.out", "w");
3321 return ferror (f) || fclose (f) != 0;
3322
3323 ;
3324 return 0;
3325 }
3326 _ACEOF
3327 ac_clean_files="$ac_clean_files conftest.out"
3328 # Check that the compiler produces executables we can run. If not, either
3329 # the compiler is broken, or we cross compile.
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3331 $as_echo_n "checking whether we are cross compiling... " >&6; }
3332 if test "$cross_compiling" != yes; then
3333 { { ac_try="$ac_link"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }
3344 if { ac_try='./conftest$ac_cv_exeext'
3345 { { case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_try") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; }; then
3355 cross_compiling=no
3356 else
3357 if test "$cross_compiling" = maybe; then
3358 cross_compiling=yes
3359 else
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot run C compiled programs.
3363 If you meant to cross compile, use \`--host'.
3364 See \`config.log' for more details" "$LINENO" 5; }
3365 fi
3366 fi
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3369 $as_echo "$cross_compiling" >&6; }
3370
3371 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3372 ac_clean_files=$ac_clean_files_save
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3374 $as_echo_n "checking for suffix of object files... " >&6; }
3375 if ${ac_cv_objext+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380
3381 int
3382 main ()
3383 {
3384
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.o conftest.obj
3390 if { { ac_try="$ac_compile"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_compile") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 for ac_file in conftest.o conftest.obj conftest.*; do
3402 test -f "$ac_file" || continue;
3403 case $ac_file in
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3406 break;;
3407 esac
3408 done
3409 else
3410 $as_echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of object files: cannot compile
3416 See \`config.log' for more details" "$LINENO" 5; }
3417 fi
3418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3421 $as_echo "$ac_cv_objext" >&6; }
3422 OBJEXT=$ac_cv_objext
3423 ac_objext=$OBJEXT
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3426 if ${ac_cv_c_compiler_gnu+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431
3432 int
3433 main ()
3434 {
3435 #ifndef __GNUC__
3436 choke me
3437 #endif
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_compiler_gnu=yes
3445 else
3446 ac_compiler_gnu=no
3447 fi
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3450
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3454 if test $ac_compiler_gnu = yes; then
3455 GCC=yes
3456 else
3457 GCC=
3458 fi
3459 ac_test_CFLAGS=${CFLAGS+set}
3460 ac_save_CFLAGS=$CFLAGS
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3463 if ${ac_cv_prog_cc_g+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 ac_save_c_werror_flag=$ac_c_werror_flag
3467 ac_c_werror_flag=yes
3468 ac_cv_prog_cc_g=no
3469 CFLAGS="-g"
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472
3473 int
3474 main ()
3475 {
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_cv_prog_cc_g=yes
3483 else
3484 CFLAGS=""
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497
3498 else
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3500 CFLAGS="-g"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_prog_cc_g=yes
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_c_werror_flag=$ac_save_c_werror_flag
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3523 $as_echo "$ac_cv_prog_cc_g" >&6; }
3524 if test "$ac_test_CFLAGS" = set; then
3525 CFLAGS=$ac_save_CFLAGS
3526 elif test $ac_cv_prog_cc_g = yes; then
3527 if test "$GCC" = yes; then
3528 CFLAGS="-g -O2"
3529 else
3530 CFLAGS="-g"
3531 fi
3532 else
3533 if test "$GCC" = yes; then
3534 CFLAGS="-O2"
3535 else
3536 CFLAGS=
3537 fi
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3541 if ${ac_cv_prog_cc_c89+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 ac_cv_prog_cc_c89=no
3545 ac_save_CC=$CC
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548 #include <stdarg.h>
3549 #include <stdio.h>
3550 struct stat;
3551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3552 struct buf { int x; };
3553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3554 static char *e (p, i)
3555 char **p;
3556 int i;
3557 {
3558 return p[i];
3559 }
3560 static char *f (char * (*g) (char **, int), char **p, ...)
3561 {
3562 char *s;
3563 va_list v;
3564 va_start (v,p);
3565 s = g (p, va_arg (v,int));
3566 va_end (v);
3567 return s;
3568 }
3569
3570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3571 function prototypes and stuff, but not '\xHH' hex character constants.
3572 These don't provoke an error unfortunately, instead are silently treated
3573 as 'x'. The following induces an error, until -std is added to get
3574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3575 array size at least. It's necessary to write '\x00'==0 to get something
3576 that's true only with -std. */
3577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578
3579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3580 inside strings and character constants. */
3581 #define FOO(x) 'x'
3582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583
3584 int test (int i, double x);
3585 struct s1 {int (*f) (int a);};
3586 struct s2 {int (*f) (double a);};
3587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588 int argc;
3589 char **argv;
3590 int
3591 main ()
3592 {
3593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 do
3601 CC="$ac_save_CC $ac_arg"
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_prog_cc_c89=$ac_arg
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext
3606 test "x$ac_cv_prog_cc_c89" != "xno" && break
3607 done
3608 rm -f conftest.$ac_ext
3609 CC=$ac_save_CC
3610
3611 fi
3612 # AC_CACHE_VAL
3613 case "x$ac_cv_prog_cc_c89" in
3614 x)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3616 $as_echo "none needed" >&6; } ;;
3617 xno)
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3619 $as_echo "unsupported" >&6; } ;;
3620 *)
3621 CC="$CC $ac_cv_prog_cc_c89"
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3623 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3624 esac
3625 if test "x$ac_cv_prog_cc_c89" != xno; then :
3626
3627 fi
3628
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3641 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3642 if ${am_cv_prog_cc_c_o+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main ()
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # Following AC_PROG_CC_C_O, we do the test twice because some
3658 # compilers refuse to overwrite an existing .o file with -o,
3659 # though they will create one.
3660 am_cv_prog_cc_c_o=yes
3661 for am_i in 1 2; do
3662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } \
3667 && test -f conftest2.$ac_objext; then
3668 : OK
3669 else
3670 am_cv_prog_cc_c_o=no
3671 break
3672 fi
3673 done
3674 rm -f core conftest*
3675 unset am_i
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3678 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3679 if test "$am_cv_prog_cc_c_o" != yes; then
3680 # Losing compiler, so override with the script.
3681 # FIXME: It is wrong to rewrite CC.
3682 # But if we don't then we get into trouble of one sort or another.
3683 # A longer-term fix would be to have automake use am__CC in this case,
3684 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3685 CC="$am_aux_dir/compile $CC"
3686 fi
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694 depcc="$CC" am_compiler_list=
3695
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3697 $as_echo_n "checking dependency style of $depcc... " >&6; }
3698 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3702 # We make a subdir and do the tests there. Otherwise we can end up
3703 # making bogus files that we don't know about and never remove. For
3704 # instance it was reported that on HP-UX the gcc test will end up
3705 # making a dummy file named 'D' -- because '-MD' means "put the output
3706 # in D".
3707 rm -rf conftest.dir
3708 mkdir conftest.dir
3709 # Copy depcomp to subdir because otherwise we won't find it if we're
3710 # using a relative directory.
3711 cp "$am_depcomp" conftest.dir
3712 cd conftest.dir
3713 # We will build objects and dependencies in a subdirectory because
3714 # it helps to detect inapplicable dependency modes. For instance
3715 # both Tru64's cc and ICC support -MD to output dependencies as a
3716 # side effect of compilation, but ICC will put the dependencies in
3717 # the current directory while Tru64 will put them in the object
3718 # directory.
3719 mkdir sub
3720
3721 am_cv_CC_dependencies_compiler_type=none
3722 if test "$am_compiler_list" = ""; then
3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724 fi
3725 am__universal=false
3726 case " $depcc " in #(
3727 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728 esac
3729
3730 for depmode in $am_compiler_list; do
3731 # Setup a source with many dependencies, because some compilers
3732 # like to wrap large dependency lists on column 80 (with \), and
3733 # we should not choose a depcomp mode which is confused by this.
3734 #
3735 # We need to recreate these files for each test, as the compiler may
3736 # overwrite some of them when testing with obscure command lines.
3737 # This happens at least with the AIX C compiler.
3738 : > sub/conftest.c
3739 for i in 1 2 3 4 5 6; do
3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3742 # Solaris 10 /bin/sh.
3743 echo '/* dummy */' > sub/conftst$i.h
3744 done
3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
3747 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3748 # mode. It turns out that the SunPro C++ compiler does not properly
3749 # handle '-M -o', and we need to detect this. Also, some Intel
3750 # versions had trouble with output in subdirs.
3751 am__obj=sub/conftest.${OBJEXT-o}
3752 am__minus_obj="-o $am__obj"
3753 case $depmode in
3754 gcc)
3755 # This depmode causes a compiler race in universal mode.
3756 test "$am__universal" = false || continue
3757 ;;
3758 nosideeffect)
3759 # After this tag, mechanisms are not by side-effect, so they'll
3760 # only be used when explicitly requested.
3761 if test "x$enable_dependency_tracking" = xyes; then
3762 continue
3763 else
3764 break
3765 fi
3766 ;;
3767 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3768 # This compiler won't grok '-c -o', but also, the minuso test has
3769 # not run yet. These depmodes are late enough in the game, and
3770 # so weak that their functioning should not be impacted.
3771 am__obj=conftest.${OBJEXT-o}
3772 am__minus_obj=
3773 ;;
3774 none) break ;;
3775 esac
3776 if depmode=$depmode \
3777 source=sub/conftest.c object=$am__obj \
3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780 >/dev/null 2>conftest.err &&
3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785 # icc doesn't choke on unknown options, it will just issue warnings
3786 # or remarks (even with -Werror). So we grep stderr for any message
3787 # that says an option was ignored or not supported.
3788 # When given -MP, icc 7.0 and 7.1 complain thusly:
3789 # icc: Command line warning: ignoring option '-M'; no argument required
3790 # The diagnosis changed in icc 8.0:
3791 # icc: Command line remark: option '-MP' not supported
3792 if (grep 'ignoring option' conftest.err ||
3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794 am_cv_CC_dependencies_compiler_type=$depmode
3795 break
3796 fi
3797 fi
3798 done
3799
3800 cd ..
3801 rm -rf conftest.dir
3802 else
3803 am_cv_CC_dependencies_compiler_type=none
3804 fi
3805
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811 if
3812 test "x$enable_dependency_tracking" != xno \
3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814 am__fastdepCC_TRUE=
3815 am__fastdepCC_FALSE='#'
3816 else
3817 am__fastdepCC_TRUE='#'
3818 am__fastdepCC_FALSE=
3819 fi
3820
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3823 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3824 if ${ac_cv_prog_cc_c99+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 ac_cv_prog_cc_c99=no
3828 ac_save_CC=$CC
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831 #include <stdarg.h>
3832 #include <stdbool.h>
3833 #include <stdlib.h>
3834 #include <wchar.h>
3835 #include <stdio.h>
3836
3837 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3838 #define debug(...) fprintf (stderr, __VA_ARGS__)
3839 #define showlist(...) puts (#__VA_ARGS__)
3840 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3841 static void
3842 test_varargs_macros (void)
3843 {
3844 int x = 1234;
3845 int y = 5678;
3846 debug ("Flag");
3847 debug ("X = %d\n", x);
3848 showlist (The first, second, and third items.);
3849 report (x>y, "x is %d but y is %d", x, y);
3850 }
3851
3852 // Check long long types.
3853 #define BIG64 18446744073709551615ull
3854 #define BIG32 4294967295ul
3855 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3856 #if !BIG_OK
3857 your preprocessor is broken;
3858 #endif
3859 #if BIG_OK
3860 #else
3861 your preprocessor is broken;
3862 #endif
3863 static long long int bignum = -9223372036854775807LL;
3864 static unsigned long long int ubignum = BIG64;
3865
3866 struct incomplete_array
3867 {
3868 int datasize;
3869 double data[];
3870 };
3871
3872 struct named_init {
3873 int number;
3874 const wchar_t *name;
3875 double average;
3876 };
3877
3878 typedef const char *ccp;
3879
3880 static inline int
3881 test_restrict (ccp restrict text)
3882 {
3883 // See if C++-style comments work.
3884 // Iterate through items via the restricted pointer.
3885 // Also check for declarations in for loops.
3886 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3887 continue;
3888 return 0;
3889 }
3890
3891 // Check varargs and va_copy.
3892 static void
3893 test_varargs (const char *format, ...)
3894 {
3895 va_list args;
3896 va_start (args, format);
3897 va_list args_copy;
3898 va_copy (args_copy, args);
3899
3900 const char *str;
3901 int number;
3902 float fnumber;
3903
3904 while (*format)
3905 {
3906 switch (*format++)
3907 {
3908 case 's': // string
3909 str = va_arg (args_copy, const char *);
3910 break;
3911 case 'd': // int
3912 number = va_arg (args_copy, int);
3913 break;
3914 case 'f': // float
3915 fnumber = va_arg (args_copy, double);
3916 break;
3917 default:
3918 break;
3919 }
3920 }
3921 va_end (args_copy);
3922 va_end (args);
3923 }
3924
3925 int
3926 main ()
3927 {
3928
3929 // Check bool.
3930 _Bool success = false;
3931
3932 // Check restrict.
3933 if (test_restrict ("String literal") == 0)
3934 success = true;
3935 char *restrict newvar = "Another string";
3936
3937 // Check varargs.
3938 test_varargs ("s, d' f .", "string", 65, 34.234);
3939 test_varargs_macros ();
3940
3941 // Check flexible array members.
3942 struct incomplete_array *ia =
3943 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3944 ia->datasize = 10;
3945 for (int i = 0; i < ia->datasize; ++i)
3946 ia->data[i] = i * 1.234;
3947
3948 // Check named initializers.
3949 struct named_init ni = {
3950 .number = 34,
3951 .name = L"Test wide string",
3952 .average = 543.34343,
3953 };
3954
3955 ni.number = 58;
3956
3957 int dynamic_array[ni.number];
3958 dynamic_array[ni.number - 1] = 543;
3959
3960 // work around unused variable warnings
3961 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3962 || dynamic_array[ni.number - 1] != 543);
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3969 do
3970 CC="$ac_save_CC $ac_arg"
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_cv_prog_cc_c99=$ac_arg
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext
3975 test "x$ac_cv_prog_cc_c99" != "xno" && break
3976 done
3977 rm -f conftest.$ac_ext
3978 CC=$ac_save_CC
3979
3980 fi
3981 # AC_CACHE_VAL
3982 case "x$ac_cv_prog_cc_c99" in
3983 x)
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3985 $as_echo "none needed" >&6; } ;;
3986 xno)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3988 $as_echo "unsupported" >&6; } ;;
3989 *)
3990 CC="$CC $ac_cv_prog_cc_c99"
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3992 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3993 esac
3994 if test "x$ac_cv_prog_cc_c99" != xno; then :
3995
3996 fi
3997
3998
3999
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4006 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4007 # On Suns, sometimes $CPP names a directory.
4008 if test -n "$CPP" && test -d "$CPP"; then
4009 CPP=
4010 fi
4011 if test -z "$CPP"; then
4012 if ${ac_cv_prog_CPP+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 # Double quotes because CPP needs to be expanded
4016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4017 do
4018 ac_preproc_ok=false
4019 for ac_c_preproc_warn_flag in '' yes
4020 do
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error" is here to catch this case.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029 #ifdef __STDC__
4030 # include <limits.h>
4031 #else
4032 # include <assert.h>
4033 #endif
4034 Syntax error
4035 _ACEOF
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4037
4038 else
4039 # Broken: fails on valid input.
4040 continue
4041 fi
4042 rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044 # OK, works on sane cases. Now check whether nonexistent headers
4045 # can be detected and how.
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <ac_nonexistent.h>
4049 _ACEOF
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4051 # Broken: success on invalid input.
4052 continue
4053 else
4054 # Passes both tests.
4055 ac_preproc_ok=:
4056 break
4057 fi
4058 rm -f conftest.err conftest.i conftest.$ac_ext
4059
4060 done
4061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062 rm -f conftest.i conftest.err conftest.$ac_ext
4063 if $ac_preproc_ok; then :
4064 break
4065 fi
4066
4067 done
4068 ac_cv_prog_CPP=$CPP
4069
4070 fi
4071 CPP=$ac_cv_prog_CPP
4072 else
4073 ac_cv_prog_CPP=$CPP
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4076 $as_echo "$CPP" >&6; }
4077 ac_preproc_ok=false
4078 for ac_c_preproc_warn_flag in '' yes
4079 do
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #ifdef __STDC__
4089 # include <limits.h>
4090 #else
4091 # include <assert.h>
4092 #endif
4093 Syntax error
4094 _ACEOF
4095 if ac_fn_c_try_cpp "$LINENO"; then :
4096
4097 else
4098 # Broken: fails on valid input.
4099 continue
4100 fi
4101 rm -f conftest.err conftest.i conftest.$ac_ext
4102
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <ac_nonexistent.h>
4108 _ACEOF
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4110 # Broken: success on invalid input.
4111 continue
4112 else
4113 # Passes both tests.
4114 ac_preproc_ok=:
4115 break
4116 fi
4117 rm -f conftest.err conftest.i conftest.$ac_ext
4118
4119 done
4120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121 rm -f conftest.i conftest.err conftest.$ac_ext
4122 if $ac_preproc_ok; then :
4123
4124 else
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4128 See \`config.log' for more details" "$LINENO" 5; }
4129 fi
4130
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4139 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4140 if ${ac_cv_path_GREP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -z "$GREP"; then
4144 ac_path_GREP_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_prog in grep ggrep; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4154 as_fn_executable_p "$ac_path_GREP" || continue
4155 # Check for GNU ac_path_GREP and select it if it is found.
4156 # Check for GNU $ac_path_GREP
4157 case `"$ac_path_GREP" --version 2>&1` in
4158 *GNU*)
4159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4160 *)
4161 ac_count=0
4162 $as_echo_n 0123456789 >"conftest.in"
4163 while :
4164 do
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo 'GREP' >> "conftest.nl"
4169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171 as_fn_arith $ac_count + 1 && ac_count=$as_val
4172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_GREP="$ac_path_GREP"
4175 ac_path_GREP_max=$ac_count
4176 fi
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4179 done
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 esac
4182
4183 $ac_path_GREP_found && break 3
4184 done
4185 done
4186 done
4187 IFS=$as_save_IFS
4188 if test -z "$ac_cv_path_GREP"; then
4189 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190 fi
4191 else
4192 ac_cv_path_GREP=$GREP
4193 fi
4194
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4197 $as_echo "$ac_cv_path_GREP" >&6; }
4198 GREP="$ac_cv_path_GREP"
4199
4200
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4202 $as_echo_n "checking for egrep... " >&6; }
4203 if ${ac_cv_path_EGREP+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4207 then ac_cv_path_EGREP="$GREP -E"
4208 else
4209 if test -z "$EGREP"; then
4210 ac_path_EGREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in egrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4220 as_fn_executable_p "$ac_path_EGREP" || continue
4221 # Check for GNU ac_path_EGREP and select it if it is found.
4222 # Check for GNU $ac_path_EGREP
4223 case `"$ac_path_EGREP" --version 2>&1` in
4224 *GNU*)
4225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4226 *)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'EGREP' >> "conftest.nl"
4235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_EGREP="$ac_path_EGREP"
4241 ac_path_EGREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4248
4249 $ac_path_EGREP_found && break 3
4250 done
4251 done
4252 done
4253 IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_EGREP"; then
4255 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 fi
4257 else
4258 ac_cv_path_EGREP=$EGREP
4259 fi
4260
4261 fi
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4264 $as_echo "$ac_cv_path_EGREP" >&6; }
4265 EGREP="$ac_cv_path_EGREP"
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4269 $as_echo_n "checking for ANSI C header files... " >&6; }
4270 if ${ac_cv_header_stdc+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <stdlib.h>
4276 #include <stdarg.h>
4277 #include <string.h>
4278 #include <float.h>
4279
4280 int
4281 main ()
4282 {
4283
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_cv_header_stdc=yes
4290 else
4291 ac_cv_header_stdc=no
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294
4295 if test $ac_cv_header_stdc = yes; then
4296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 #include <string.h>
4300
4301 _ACEOF
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "memchr" >/dev/null 2>&1; then :
4304
4305 else
4306 ac_cv_header_stdc=no
4307 fi
4308 rm -f conftest*
4309
4310 fi
4311
4312 if test $ac_cv_header_stdc = yes; then
4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <stdlib.h>
4317
4318 _ACEOF
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 $EGREP "free" >/dev/null 2>&1; then :
4321
4322 else
4323 ac_cv_header_stdc=no
4324 fi
4325 rm -f conftest*
4326
4327 fi
4328
4329 if test $ac_cv_header_stdc = yes; then
4330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4331 if test "$cross_compiling" = yes; then :
4332 :
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <ctype.h>
4337 #include <stdlib.h>
4338 #if ((' ' & 0x0FF) == 0x020)
4339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4341 #else
4342 # define ISLOWER(c) \
4343 (('a' <= (c) && (c) <= 'i') \
4344 || ('j' <= (c) && (c) <= 'r') \
4345 || ('s' <= (c) && (c) <= 'z'))
4346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4347 #endif
4348
4349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4350 int
4351 main ()
4352 {
4353 int i;
4354 for (i = 0; i < 256; i++)
4355 if (XOR (islower (i), ISLOWER (i))
4356 || toupper (i) != TOUPPER (i))
4357 return 2;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_run "$LINENO"; then :
4362
4363 else
4364 ac_cv_header_stdc=no
4365 fi
4366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4367 conftest.$ac_objext conftest.beam conftest.$ac_ext
4368 fi
4369
4370 fi
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4373 $as_echo "$ac_cv_header_stdc" >&6; }
4374 if test $ac_cv_header_stdc = yes; then
4375
4376 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4377
4378 fi
4379
4380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4382 inttypes.h stdint.h unistd.h
4383 do :
4384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4385 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4386 "
4387 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4388 cat >>confdefs.h <<_ACEOF
4389 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390 _ACEOF
4391
4392 fi
4393
4394 done
4395
4396
4397
4398
4399
4400
4401 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4402 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4403 CLANGCC="yes"
4404 else
4405 CLANGCC="no"
4406 fi
4407
4408 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4409 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4410 INTELCC="yes"
4411 else
4412 INTELCC="no"
4413 fi
4414
4415 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4416 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4417 SUNCC="yes"
4418 else
4419 SUNCC="no"
4420 fi
4421
4422
4423
4424
4425 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4426 if test -n "$ac_tool_prefix"; then
4427 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 case $PKG_CONFIG in
4435 [\\/]* | ?:[\\/]*)
4436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4437 ;;
4438 *)
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 ;;
4455 esac
4456 fi
4457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4458 if test -n "$PKG_CONFIG"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4460 $as_echo "$PKG_CONFIG" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465
4466
4467 fi
4468 if test -z "$ac_cv_path_PKG_CONFIG"; then
4469 ac_pt_PKG_CONFIG=$PKG_CONFIG
4470 # Extract the first word of "pkg-config", so it can be a program name with args.
4471 set dummy pkg-config; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 case $ac_pt_PKG_CONFIG in
4478 [\\/]* | ?:[\\/]*)
4479 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4480 ;;
4481 *)
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 ;;
4498 esac
4499 fi
4500 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4501 if test -n "$ac_pt_PKG_CONFIG"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4503 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509 if test "x$ac_pt_PKG_CONFIG" = x; then
4510 PKG_CONFIG=""
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518 PKG_CONFIG=$ac_pt_PKG_CONFIG
4519 fi
4520 else
4521 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4522 fi
4523
4524 fi
4525 if test -n "$PKG_CONFIG"; then
4526 _pkg_min_version=0.9.0
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4528 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4529 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531 $as_echo "yes" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 PKG_CONFIG=""
4536 fi
4537
4538 fi
4539 # Make sure we can run config.sub.
4540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4544 $as_echo_n "checking build system type... " >&6; }
4545 if ${ac_cv_build+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 ac_build_alias=$build_alias
4549 test "x$ac_build_alias" = x &&
4550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4551 test "x$ac_build_alias" = x &&
4552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4555
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4558 $as_echo "$ac_cv_build" >&6; }
4559 case $ac_cv_build in
4560 *-*-*) ;;
4561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4562 esac
4563 build=$ac_cv_build
4564 ac_save_IFS=$IFS; IFS='-'
4565 set x $ac_cv_build
4566 shift
4567 build_cpu=$1
4568 build_vendor=$2
4569 shift; shift
4570 # Remember, the first character of IFS is used to create $*,
4571 # except with old shells:
4572 build_os=$*
4573 IFS=$ac_save_IFS
4574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4578 $as_echo_n "checking host system type... " >&6; }
4579 if ${ac_cv_host+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test "x$host_alias" = x; then
4583 ac_cv_host=$ac_cv_build
4584 else
4585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4587 fi
4588
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4591 $as_echo "$ac_cv_host" >&6; }
4592 case $ac_cv_host in
4593 *-*-*) ;;
4594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4595 esac
4596 host=$ac_cv_host
4597 ac_save_IFS=$IFS; IFS='-'
4598 set x $ac_cv_host
4599 shift
4600 host_cpu=$1
4601 host_vendor=$2
4602 shift; shift
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4605 host_os=$*
4606 IFS=$ac_save_IFS
4607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4611 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4612 if ${ac_cv_path_SED+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4616 for ac_i in 1 2 3 4 5 6 7; do
4617 ac_script="$ac_script$as_nl$ac_script"
4618 done
4619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4620 { ac_script=; unset ac_script;}
4621 if test -z "$SED"; then
4622 ac_path_SED_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in sed gsed; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4632 as_fn_executable_p "$ac_path_SED" || continue
4633 # Check for GNU ac_path_SED and select it if it is found.
4634 # Check for GNU $ac_path_SED
4635 case `"$ac_path_SED" --version 2>&1` in
4636 *GNU*)
4637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4638 *)
4639 ac_count=0
4640 $as_echo_n 0123456789 >"conftest.in"
4641 while :
4642 do
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo '' >> "conftest.nl"
4647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_SED_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_SED="$ac_path_SED"
4653 ac_path_SED_max=$ac_count
4654 fi
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4657 done
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 esac
4660
4661 $ac_path_SED_found && break 3
4662 done
4663 done
4664 done
4665 IFS=$as_save_IFS
4666 if test -z "$ac_cv_path_SED"; then
4667 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4668 fi
4669 else
4670 ac_cv_path_SED=$SED
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4675 $as_echo "$ac_cv_path_SED" >&6; }
4676 SED="$ac_cv_path_SED"
4677 rm -f conftest.sed
4678
4679
4680
4681
4682
4683
4684 # Check whether --enable-selective-werror was given.
4685 if test "${enable_selective_werror+set}" = set; then :
4686 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4687 else
4688 SELECTIVE_WERROR=yes
4689 fi
4690
4691
4692
4693
4694
4695 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4696 if test "x$SUNCC" = "xyes"; then
4697 BASE_CFLAGS="-v"
4698 else
4699 BASE_CFLAGS=""
4700 fi
4701
4702 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716 xorg_testset_save_CFLAGS="$CFLAGS"
4717
4718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727 int i;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 xorg_cv_cc_flag_unknown_warning_option=yes
4731 else
4732 xorg_cv_cc_flag_unknown_warning_option=no
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4739 CFLAGS="$xorg_testset_save_CFLAGS"
4740 fi
4741
4742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4745 fi
4746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 int i;
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 xorg_cv_cc_flag_unused_command_line_argument=yes
4758 else
4759 xorg_cv_cc_flag_unused_command_line_argument=no
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4766 CFLAGS="$xorg_testset_save_CFLAGS"
4767 fi
4768
4769 found="no"
4770
4771 if test $found = "no" ; then
4772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4774 fi
4775
4776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4778 fi
4779
4780 CFLAGS="$CFLAGS -Wall"
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4783 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4784 cacheid=xorg_cv_cc_flag__Wall
4785 if eval \${$cacheid+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 int i;
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_link "$LINENO"; then :
4800 eval $cacheid=yes
4801 else
4802 eval $cacheid=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext \
4805 conftest$ac_exeext conftest.$ac_ext
4806 fi
4807
4808
4809 CFLAGS="$xorg_testset_save_CFLAGS"
4810
4811 eval supported=\$$cacheid
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4813 $as_echo "$supported" >&6; }
4814 if test "$supported" = "yes" ; then
4815 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4816 found="yes"
4817 fi
4818 fi
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 xorg_testset_save_CFLAGS="$CFLAGS"
4835
4836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 int i;
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 xorg_cv_cc_flag_unknown_warning_option=yes
4849 else
4850 xorg_cv_cc_flag_unknown_warning_option=no
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4857 CFLAGS="$xorg_testset_save_CFLAGS"
4858 fi
4859
4860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4863 fi
4864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 int i;
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875 xorg_cv_cc_flag_unused_command_line_argument=yes
4876 else
4877 xorg_cv_cc_flag_unused_command_line_argument=no
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4884 CFLAGS="$xorg_testset_save_CFLAGS"
4885 fi
4886
4887 found="no"
4888
4889 if test $found = "no" ; then
4890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4892 fi
4893
4894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4896 fi
4897
4898 CFLAGS="$CFLAGS -Wpointer-arith"
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4901 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4902 cacheid=xorg_cv_cc_flag__Wpointer_arith
4903 if eval \${$cacheid+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 int i;
4909 int
4910 main ()
4911 {
4912
4913 ;
4914 return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_link "$LINENO"; then :
4918 eval $cacheid=yes
4919 else
4920 eval $cacheid=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext \
4923 conftest$ac_exeext conftest.$ac_ext
4924 fi
4925
4926
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4928
4929 eval supported=\$$cacheid
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4931 $as_echo "$supported" >&6; }
4932 if test "$supported" = "yes" ; then
4933 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4934 found="yes"
4935 fi
4936 fi
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952 xorg_testset_save_CFLAGS="$CFLAGS"
4953
4954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 int i;
4964 _ACEOF
4965 if ac_fn_c_try_compile "$LINENO"; then :
4966 xorg_cv_cc_flag_unknown_warning_option=yes
4967 else
4968 xorg_cv_cc_flag_unknown_warning_option=no
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4975 CFLAGS="$xorg_testset_save_CFLAGS"
4976 fi
4977
4978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4981 fi
4982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 int i;
4991 _ACEOF
4992 if ac_fn_c_try_compile "$LINENO"; then :
4993 xorg_cv_cc_flag_unused_command_line_argument=yes
4994 else
4995 xorg_cv_cc_flag_unused_command_line_argument=no
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5002 CFLAGS="$xorg_testset_save_CFLAGS"
5003 fi
5004
5005 found="no"
5006
5007 if test $found = "no" ; then
5008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5010 fi
5011
5012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5014 fi
5015
5016 CFLAGS="$CFLAGS -Wmissing-declarations"
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5019 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5020 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5021 if eval \${$cacheid+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 int i;
5027 int
5028 main ()
5029 {
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 if ac_fn_c_try_link "$LINENO"; then :
5036 eval $cacheid=yes
5037 else
5038 eval $cacheid=no
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5042 fi
5043
5044
5045 CFLAGS="$xorg_testset_save_CFLAGS"
5046
5047 eval supported=\$$cacheid
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5049 $as_echo "$supported" >&6; }
5050 if test "$supported" = "yes" ; then
5051 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5052 found="yes"
5053 fi
5054 fi
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070 xorg_testset_save_CFLAGS="$CFLAGS"
5071
5072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5075 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5076 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 int i;
5082 _ACEOF
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 xorg_cv_cc_flag_unknown_warning_option=yes
5085 else
5086 xorg_cv_cc_flag_unknown_warning_option=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5091 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5093 CFLAGS="$xorg_testset_save_CFLAGS"
5094 fi
5095
5096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5099 fi
5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5102 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5103 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 int i;
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"; then :
5111 xorg_cv_cc_flag_unused_command_line_argument=yes
5112 else
5113 xorg_cv_cc_flag_unused_command_line_argument=no
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5118 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5120 CFLAGS="$xorg_testset_save_CFLAGS"
5121 fi
5122
5123 found="no"
5124
5125 if test $found = "no" ; then
5126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128 fi
5129
5130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5132 fi
5133
5134 CFLAGS="$CFLAGS -Wformat=2"
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5137 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5138 cacheid=xorg_cv_cc_flag__Wformat_2
5139 if eval \${$cacheid+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 int i;
5145 int
5146 main ()
5147 {
5148
5149 ;
5150 return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_link "$LINENO"; then :
5154 eval $cacheid=yes
5155 else
5156 eval $cacheid=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext \
5159 conftest$ac_exeext conftest.$ac_ext
5160 fi
5161
5162
5163 CFLAGS="$xorg_testset_save_CFLAGS"
5164
5165 eval supported=\$$cacheid
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5167 $as_echo "$supported" >&6; }
5168 if test "$supported" = "yes" ; then
5169 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5170 found="yes"
5171 fi
5172 fi
5173
5174 if test $found = "no" ; then
5175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177 fi
5178
5179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5181 fi
5182
5183 CFLAGS="$CFLAGS -Wformat"
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5186 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5187 cacheid=xorg_cv_cc_flag__Wformat
5188 if eval \${$cacheid+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 int i;
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_link "$LINENO"; then :
5203 eval $cacheid=yes
5204 else
5205 eval $cacheid=no
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209 fi
5210
5211
5212 CFLAGS="$xorg_testset_save_CFLAGS"
5213
5214 eval supported=\$$cacheid
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5216 $as_echo "$supported" >&6; }
5217 if test "$supported" = "yes" ; then
5218 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5219 found="yes"
5220 fi
5221 fi
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 xorg_testset_save_CFLAGS="$CFLAGS"
5240
5241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 int i;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 xorg_cv_cc_flag_unknown_warning_option=yes
5254 else
5255 xorg_cv_cc_flag_unknown_warning_option=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5262 CFLAGS="$xorg_testset_save_CFLAGS"
5263 fi
5264
5265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 fi
5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int i;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 xorg_cv_cc_flag_unused_command_line_argument=yes
5281 else
5282 xorg_cv_cc_flag_unused_command_line_argument=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289 CFLAGS="$xorg_testset_save_CFLAGS"
5290 fi
5291
5292 found="no"
5293
5294 if test $found = "no" ; then
5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 fi
5298
5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301 fi
5302
5303 CFLAGS="$CFLAGS -Wstrict-prototypes"
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5306 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5307 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5308 if eval \${$cacheid+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 int i;
5314 int
5315 main ()
5316 {
5317
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_link "$LINENO"; then :
5323 eval $cacheid=yes
5324 else
5325 eval $cacheid=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext \
5328 conftest$ac_exeext conftest.$ac_ext
5329 fi
5330
5331
5332 CFLAGS="$xorg_testset_save_CFLAGS"
5333
5334 eval supported=\$$cacheid
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5336 $as_echo "$supported" >&6; }
5337 if test "$supported" = "yes" ; then
5338 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5339 found="yes"
5340 fi
5341 fi
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 xorg_testset_save_CFLAGS="$CFLAGS"
5358
5359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 int i;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 xorg_cv_cc_flag_unknown_warning_option=yes
5372 else
5373 xorg_cv_cc_flag_unknown_warning_option=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5380 CFLAGS="$xorg_testset_save_CFLAGS"
5381 fi
5382
5383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 fi
5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 int i;
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 xorg_cv_cc_flag_unused_command_line_argument=yes
5399 else
5400 xorg_cv_cc_flag_unused_command_line_argument=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408 fi
5409
5410 found="no"
5411
5412 if test $found = "no" ; then
5413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415 fi
5416
5417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5419 fi
5420
5421 CFLAGS="$CFLAGS -Wmissing-prototypes"
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5424 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5425 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5426 if eval \${$cacheid+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 int i;
5432 int
5433 main ()
5434 {
5435
5436 ;
5437 return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_link "$LINENO"; then :
5441 eval $cacheid=yes
5442 else
5443 eval $cacheid=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext \
5446 conftest$ac_exeext conftest.$ac_ext
5447 fi
5448
5449
5450 CFLAGS="$xorg_testset_save_CFLAGS"
5451
5452 eval supported=\$$cacheid
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5454 $as_echo "$supported" >&6; }
5455 if test "$supported" = "yes" ; then
5456 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5457 found="yes"
5458 fi
5459 fi
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 xorg_testset_save_CFLAGS="$CFLAGS"
5476
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 int i;
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 xorg_cv_cc_flag_unknown_warning_option=yes
5490 else
5491 xorg_cv_cc_flag_unknown_warning_option=no
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5498 CFLAGS="$xorg_testset_save_CFLAGS"
5499 fi
5500
5501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504 fi
5505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 int i;
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 xorg_cv_cc_flag_unused_command_line_argument=yes
5517 else
5518 xorg_cv_cc_flag_unused_command_line_argument=no
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5525 CFLAGS="$xorg_testset_save_CFLAGS"
5526 fi
5527
5528 found="no"
5529
5530 if test $found = "no" ; then
5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533 fi
5534
5535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5537 fi
5538
5539 CFLAGS="$CFLAGS -Wnested-externs"
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5542 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5543 cacheid=xorg_cv_cc_flag__Wnested_externs
5544 if eval \${$cacheid+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 int i;
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_link "$LINENO"; then :
5559 eval $cacheid=yes
5560 else
5561 eval $cacheid=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565 fi
5566
5567
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569
5570 eval supported=\$$cacheid
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5572 $as_echo "$supported" >&6; }
5573 if test "$supported" = "yes" ; then
5574 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5575 found="yes"
5576 fi
5577 fi
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 xorg_testset_save_CFLAGS="$CFLAGS"
5594
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 int i;
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 xorg_cv_cc_flag_unknown_warning_option=yes
5608 else
5609 xorg_cv_cc_flag_unknown_warning_option=no
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5616 CFLAGS="$xorg_testset_save_CFLAGS"
5617 fi
5618
5619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622 fi
5623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 int i;
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 xorg_cv_cc_flag_unused_command_line_argument=yes
5635 else
5636 xorg_cv_cc_flag_unused_command_line_argument=no
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5643 CFLAGS="$xorg_testset_save_CFLAGS"
5644 fi
5645
5646 found="no"
5647
5648 if test $found = "no" ; then
5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651 fi
5652
5653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5655 fi
5656
5657 CFLAGS="$CFLAGS -Wbad-function-cast"
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5660 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5661 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5662 if eval \${$cacheid+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 int i;
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 if ac_fn_c_try_link "$LINENO"; then :
5677 eval $cacheid=yes
5678 else
5679 eval $cacheid=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5683 fi
5684
5685
5686 CFLAGS="$xorg_testset_save_CFLAGS"
5687
5688 eval supported=\$$cacheid
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5690 $as_echo "$supported" >&6; }
5691 if test "$supported" = "yes" ; then
5692 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5693 found="yes"
5694 fi
5695 fi
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 xorg_testset_save_CFLAGS="$CFLAGS"
5712
5713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int i;
5723 _ACEOF
5724 if ac_fn_c_try_compile "$LINENO"; then :
5725 xorg_cv_cc_flag_unknown_warning_option=yes
5726 else
5727 xorg_cv_cc_flag_unknown_warning_option=no
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5734 CFLAGS="$xorg_testset_save_CFLAGS"
5735 fi
5736
5737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740 fi
5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 int i;
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 xorg_cv_cc_flag_unused_command_line_argument=yes
5753 else
5754 xorg_cv_cc_flag_unused_command_line_argument=no
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 fi
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5761 CFLAGS="$xorg_testset_save_CFLAGS"
5762 fi
5763
5764 found="no"
5765
5766 if test $found = "no" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769 fi
5770
5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773 fi
5774
5775 CFLAGS="$CFLAGS -Wold-style-definition"
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5778 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5779 cacheid=xorg_cv_cc_flag__Wold_style_definition
5780 if eval \${$cacheid+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 int i;
5786 int
5787 main ()
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 if ac_fn_c_try_link "$LINENO"; then :
5795 eval $cacheid=yes
5796 else
5797 eval $cacheid=no
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5801 fi
5802
5803
5804 CFLAGS="$xorg_testset_save_CFLAGS"
5805
5806 eval supported=\$$cacheid
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5808 $as_echo "$supported" >&6; }
5809 if test "$supported" = "yes" ; then
5810 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5811 found="yes"
5812 fi
5813 fi
5814
5815 if test $found = "no" ; then
5816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 fi
5819
5820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822 fi
5823
5824 CFLAGS="$CFLAGS -fd"
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5827 $as_echo_n "checking if $CC supports -fd... " >&6; }
5828 cacheid=xorg_cv_cc_flag__fd
5829 if eval \${$cacheid+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 int i;
5835 int
5836 main ()
5837 {
5838
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_link "$LINENO"; then :
5844 eval $cacheid=yes
5845 else
5846 eval $cacheid=no
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5850 fi
5851
5852
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855 eval supported=\$$cacheid
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857 $as_echo "$supported" >&6; }
5858 if test "$supported" = "yes" ; then
5859 BASE_CFLAGS="$BASE_CFLAGS -fd"
5860 found="yes"
5861 fi
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878 xorg_testset_save_CFLAGS="$CFLAGS"
5879
5880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5884 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"; then :
5892 xorg_cv_cc_flag_unknown_warning_option=yes
5893 else
5894 xorg_cv_cc_flag_unknown_warning_option=no
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 fi
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5899 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5901 CFLAGS="$xorg_testset_save_CFLAGS"
5902 fi
5903
5904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5907 fi
5908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5910 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5911 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 int i;
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 xorg_cv_cc_flag_unused_command_line_argument=yes
5920 else
5921 xorg_cv_cc_flag_unused_command_line_argument=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5926 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5928 CFLAGS="$xorg_testset_save_CFLAGS"
5929 fi
5930
5931 found="no"
5932
5933 if test $found = "no" ; then
5934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936 fi
5937
5938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5940 fi
5941
5942 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5945 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5946 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5947 if eval \${$cacheid+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 int
5954 main ()
5955 {
5956
5957 ;
5958 return 0;
5959 }
5960 _ACEOF
5961 if ac_fn_c_try_link "$LINENO"; then :
5962 eval $cacheid=yes
5963 else
5964 eval $cacheid=no
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext \
5967 conftest$ac_exeext conftest.$ac_ext
5968 fi
5969
5970
5971 CFLAGS="$xorg_testset_save_CFLAGS"
5972
5973 eval supported=\$$cacheid
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5975 $as_echo "$supported" >&6; }
5976 if test "$supported" = "yes" ; then
5977 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5978 found="yes"
5979 fi
5980 fi
5981
5982
5983
5984
5985
5986 # This chunk adds additional warnings that could catch undesired effects.
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 xorg_testset_save_CFLAGS="$CFLAGS"
6001
6002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6005 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6006 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 int i;
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"; then :
6014 xorg_cv_cc_flag_unknown_warning_option=yes
6015 else
6016 xorg_cv_cc_flag_unknown_warning_option=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6021 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024 fi
6025
6026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6032 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6033 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 int i;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 xorg_cv_cc_flag_unused_command_line_argument=yes
6042 else
6043 xorg_cv_cc_flag_unused_command_line_argument=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6048 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051 fi
6052
6053 found="no"
6054
6055 if test $found = "no" ; then
6056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058 fi
6059
6060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062 fi
6063
6064 CFLAGS="$CFLAGS -Wunused"
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6067 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6068 cacheid=xorg_cv_cc_flag__Wunused
6069 if eval \${$cacheid+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 int i;
6075 int
6076 main ()
6077 {
6078
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_link "$LINENO"; then :
6084 eval $cacheid=yes
6085 else
6086 eval $cacheid=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090 fi
6091
6092
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094
6095 eval supported=\$$cacheid
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6097 $as_echo "$supported" >&6; }
6098 if test "$supported" = "yes" ; then
6099 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6100 found="yes"
6101 fi
6102 fi
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 xorg_testset_save_CFLAGS="$CFLAGS"
6119
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6123 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6124 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 int i;
6130 _ACEOF
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132 xorg_cv_cc_flag_unknown_warning_option=yes
6133 else
6134 xorg_cv_cc_flag_unknown_warning_option=no
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6139 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6141 CFLAGS="$xorg_testset_save_CFLAGS"
6142 fi
6143
6144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6147 fi
6148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6150 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6151 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 int i;
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 xorg_cv_cc_flag_unused_command_line_argument=yes
6160 else
6161 xorg_cv_cc_flag_unused_command_line_argument=no
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6166 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6168 CFLAGS="$xorg_testset_save_CFLAGS"
6169 fi
6170
6171 found="no"
6172
6173 if test $found = "no" ; then
6174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6176 fi
6177
6178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6180 fi
6181
6182 CFLAGS="$CFLAGS -Wuninitialized"
6183
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6185 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6186 cacheid=xorg_cv_cc_flag__Wuninitialized
6187 if eval \${$cacheid+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 int
6194 main ()
6195 {
6196
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"; then :
6202 eval $cacheid=yes
6203 else
6204 eval $cacheid=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208 fi
6209
6210
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212
6213 eval supported=\$$cacheid
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6215 $as_echo "$supported" >&6; }
6216 if test "$supported" = "yes" ; then
6217 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6218 found="yes"
6219 fi
6220 fi
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 xorg_testset_save_CFLAGS="$CFLAGS"
6237
6238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6241 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6242 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int i;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 xorg_cv_cc_flag_unknown_warning_option=yes
6251 else
6252 xorg_cv_cc_flag_unknown_warning_option=no
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6257 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6259 CFLAGS="$xorg_testset_save_CFLAGS"
6260 fi
6261
6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265 fi
6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6268 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6269 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277 xorg_cv_cc_flag_unused_command_line_argument=yes
6278 else
6279 xorg_cv_cc_flag_unused_command_line_argument=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6284 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6286 CFLAGS="$xorg_testset_save_CFLAGS"
6287 fi
6288
6289 found="no"
6290
6291 if test $found = "no" ; then
6292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294 fi
6295
6296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298 fi
6299
6300 CFLAGS="$CFLAGS -Wshadow"
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6303 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6304 cacheid=xorg_cv_cc_flag__Wshadow
6305 if eval \${$cacheid+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 int
6312 main ()
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_link "$LINENO"; then :
6320 eval $cacheid=yes
6321 else
6322 eval $cacheid=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326 fi
6327
6328
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330
6331 eval supported=\$$cacheid
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6333 $as_echo "$supported" >&6; }
6334 if test "$supported" = "yes" ; then
6335 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6336 found="yes"
6337 fi
6338 fi
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 xorg_testset_save_CFLAGS="$CFLAGS"
6355
6356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6359 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6360 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 int i;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368 xorg_cv_cc_flag_unknown_warning_option=yes
6369 else
6370 xorg_cv_cc_flag_unknown_warning_option=no
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6375 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6377 CFLAGS="$xorg_testset_save_CFLAGS"
6378 fi
6379
6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6383 fi
6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6386 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6387 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 int i;
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395 xorg_cv_cc_flag_unused_command_line_argument=yes
6396 else
6397 xorg_cv_cc_flag_unused_command_line_argument=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6402 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6404 CFLAGS="$xorg_testset_save_CFLAGS"
6405 fi
6406
6407 found="no"
6408
6409 if test $found = "no" ; then
6410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6412 fi
6413
6414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6416 fi
6417
6418 CFLAGS="$CFLAGS -Wmissing-noreturn"
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6421 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6422 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6423 if eval \${$cacheid+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 int i;
6429 int
6430 main ()
6431 {
6432
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 if ac_fn_c_try_link "$LINENO"; then :
6438 eval $cacheid=yes
6439 else
6440 eval $cacheid=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444 fi
6445
6446
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6448
6449 eval supported=\$$cacheid
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6451 $as_echo "$supported" >&6; }
6452 if test "$supported" = "yes" ; then
6453 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6454 found="yes"
6455 fi
6456 fi
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 xorg_testset_save_CFLAGS="$CFLAGS"
6473
6474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6477 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6478 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 int i;
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 xorg_cv_cc_flag_unknown_warning_option=yes
6487 else
6488 xorg_cv_cc_flag_unknown_warning_option=no
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6493 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6495 CFLAGS="$xorg_testset_save_CFLAGS"
6496 fi
6497
6498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6501 fi
6502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6504 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6505 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 xorg_cv_cc_flag_unused_command_line_argument=yes
6514 else
6515 xorg_cv_cc_flag_unused_command_line_argument=no
6516 fi
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 fi
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6520 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6522 CFLAGS="$xorg_testset_save_CFLAGS"
6523 fi
6524
6525 found="no"
6526
6527 if test $found = "no" ; then
6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 fi
6531
6532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534 fi
6535
6536 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6539 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6540 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6541 if eval \${$cacheid+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 int i;
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_link "$LINENO"; then :
6556 eval $cacheid=yes
6557 else
6558 eval $cacheid=no
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6562 fi
6563
6564
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567 eval supported=\$$cacheid
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569 $as_echo "$supported" >&6; }
6570 if test "$supported" = "yes" ; then
6571 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6572 found="yes"
6573 fi
6574 fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 int i;
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"; then :
6604 xorg_cv_cc_flag_unknown_warning_option=yes
6605 else
6606 xorg_cv_cc_flag_unknown_warning_option=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6611 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6613 CFLAGS="$xorg_testset_save_CFLAGS"
6614 fi
6615
6616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6619 fi
6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6622 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6623 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 int i;
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631 xorg_cv_cc_flag_unused_command_line_argument=yes
6632 else
6633 xorg_cv_cc_flag_unused_command_line_argument=no
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6638 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6640 CFLAGS="$xorg_testset_save_CFLAGS"
6641 fi
6642
6643 found="no"
6644
6645 if test $found = "no" ; then
6646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648 fi
6649
6650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652 fi
6653
6654 CFLAGS="$CFLAGS -Wredundant-decls"
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6657 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6658 cacheid=xorg_cv_cc_flag__Wredundant_decls
6659 if eval \${$cacheid+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 int
6666 main ()
6667 {
6668
6669 ;
6670 return 0;
6671 }
6672 _ACEOF
6673 if ac_fn_c_try_link "$LINENO"; then :
6674 eval $cacheid=yes
6675 else
6676 eval $cacheid=no
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
6680 fi
6681
6682
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684
6685 eval supported=\$$cacheid
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6687 $as_echo "$supported" >&6; }
6688 if test "$supported" = "yes" ; then
6689 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6690 found="yes"
6691 fi
6692 fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 xorg_testset_save_CFLAGS="$CFLAGS"
6709
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6713 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6714 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 int i;
6720 _ACEOF
6721 if ac_fn_c_try_compile "$LINENO"; then :
6722 xorg_cv_cc_flag_unknown_warning_option=yes
6723 else
6724 xorg_cv_cc_flag_unknown_warning_option=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6729 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6731 CFLAGS="$xorg_testset_save_CFLAGS"
6732 fi
6733
6734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737 fi
6738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6740 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6741 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 int i;
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749 xorg_cv_cc_flag_unused_command_line_argument=yes
6750 else
6751 xorg_cv_cc_flag_unused_command_line_argument=no
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6756 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6758 CFLAGS="$xorg_testset_save_CFLAGS"
6759 fi
6760
6761 found="no"
6762
6763 if test $found = "no" ; then
6764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6766 fi
6767
6768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770 fi
6771
6772 CFLAGS="$CFLAGS -Wlogical-op"
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6775 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6776 cacheid=xorg_cv_cc_flag__Wlogical_op
6777 if eval \${$cacheid+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 int i;
6783 int
6784 main ()
6785 {
6786
6787 ;
6788 return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792 eval $cacheid=yes
6793 else
6794 eval $cacheid=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 fi
6799
6800
6801 CFLAGS="$xorg_testset_save_CFLAGS"
6802
6803 eval supported=\$$cacheid
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6805 $as_echo "$supported" >&6; }
6806 if test "$supported" = "yes" ; then
6807 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6808 found="yes"
6809 fi
6810 fi
6811
6812
6813
6814 # These are currently disabled because they are noisy. They will be enabled
6815 # in the future once the codebase is sufficiently modernized to silence
6816 # them. For now, I don't want them to drown out the other warnings.
6817 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6818 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6819 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6820
6821 # Turn some warnings into errors, so we don't accidently get successful builds
6822 # when there are problems that should be fixed.
6823
6824 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 int i;
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 xorg_cv_cc_flag_unknown_warning_option=yes
6853 else
6854 xorg_cv_cc_flag_unknown_warning_option=no
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6861 CFLAGS="$xorg_testset_save_CFLAGS"
6862 fi
6863
6864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867 fi
6868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 int i;
6877 _ACEOF
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 xorg_cv_cc_flag_unused_command_line_argument=yes
6880 else
6881 xorg_cv_cc_flag_unused_command_line_argument=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 fi
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6888 CFLAGS="$xorg_testset_save_CFLAGS"
6889 fi
6890
6891 found="no"
6892
6893 if test $found = "no" ; then
6894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6896 fi
6897
6898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6900 fi
6901
6902 CFLAGS="$CFLAGS -Werror=implicit"
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6905 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6906 cacheid=xorg_cv_cc_flag__Werror_implicit
6907 if eval \${$cacheid+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912 int i;
6913 int
6914 main ()
6915 {
6916
6917 ;
6918 return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_link "$LINENO"; then :
6922 eval $cacheid=yes
6923 else
6924 eval $cacheid=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928 fi
6929
6930
6931 CFLAGS="$xorg_testset_save_CFLAGS"
6932
6933 eval supported=\$$cacheid
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6935 $as_echo "$supported" >&6; }
6936 if test "$supported" = "yes" ; then
6937 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6938 found="yes"
6939 fi
6940 fi
6941
6942 if test $found = "no" ; then
6943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945 fi
6946
6947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6949 fi
6950
6951 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6954 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6955 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6956 if eval \${$cacheid+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 int
6963 main ()
6964 {
6965
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 eval $cacheid=yes
6972 else
6973 eval $cacheid=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 fi
6978
6979
6980 CFLAGS="$xorg_testset_save_CFLAGS"
6981
6982 eval supported=\$$cacheid
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6984 $as_echo "$supported" >&6; }
6985 if test "$supported" = "yes" ; then
6986 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6987 found="yes"
6988 fi
6989 fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 xorg_testset_save_CFLAGS="$CFLAGS"
7006
7007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7010 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7011 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 int i;
7017 _ACEOF
7018 if ac_fn_c_try_compile "$LINENO"; then :
7019 xorg_cv_cc_flag_unknown_warning_option=yes
7020 else
7021 xorg_cv_cc_flag_unknown_warning_option=no
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7026 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7028 CFLAGS="$xorg_testset_save_CFLAGS"
7029 fi
7030
7031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7034 fi
7035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7037 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7038 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 int i;
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046 xorg_cv_cc_flag_unused_command_line_argument=yes
7047 else
7048 xorg_cv_cc_flag_unused_command_line_argument=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7053 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7055 CFLAGS="$xorg_testset_save_CFLAGS"
7056 fi
7057
7058 found="no"
7059
7060 if test $found = "no" ; then
7061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7063 fi
7064
7065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7067 fi
7068
7069 CFLAGS="$CFLAGS -Werror=nonnull"
7070
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7072 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7073 cacheid=xorg_cv_cc_flag__Werror_nonnull
7074 if eval \${$cacheid+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 int i;
7080 int
7081 main ()
7082 {
7083
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 eval $cacheid=yes
7090 else
7091 eval $cacheid=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 fi
7096
7097
7098 CFLAGS="$xorg_testset_save_CFLAGS"
7099
7100 eval supported=\$$cacheid
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7102 $as_echo "$supported" >&6; }
7103 if test "$supported" = "yes" ; then
7104 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7105 found="yes"
7106 fi
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 xorg_testset_save_CFLAGS="$CFLAGS"
7124
7125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7128 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7129 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 xorg_cv_cc_flag_unknown_warning_option=yes
7138 else
7139 xorg_cv_cc_flag_unknown_warning_option=no
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7144 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7146 CFLAGS="$xorg_testset_save_CFLAGS"
7147 fi
7148
7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7152 fi
7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7155 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7156 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 xorg_cv_cc_flag_unused_command_line_argument=yes
7165 else
7166 xorg_cv_cc_flag_unused_command_line_argument=no
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7171 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7173 CFLAGS="$xorg_testset_save_CFLAGS"
7174 fi
7175
7176 found="no"
7177
7178 if test $found = "no" ; then
7179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181 fi
7182
7183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185 fi
7186
7187 CFLAGS="$CFLAGS -Werror=init-self"
7188
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7190 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7191 cacheid=xorg_cv_cc_flag__Werror_init_self
7192 if eval \${$cacheid+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 int i;
7198 int
7199 main ()
7200 {
7201
7202 ;
7203 return 0;
7204 }
7205 _ACEOF
7206 if ac_fn_c_try_link "$LINENO"; then :
7207 eval $cacheid=yes
7208 else
7209 eval $cacheid=no
7210 fi
7211 rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 fi
7214
7215
7216 CFLAGS="$xorg_testset_save_CFLAGS"
7217
7218 eval supported=\$$cacheid
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7220 $as_echo "$supported" >&6; }
7221 if test "$supported" = "yes" ; then
7222 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7223 found="yes"
7224 fi
7225 fi
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 xorg_testset_save_CFLAGS="$CFLAGS"
7242
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7246 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7247 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 int i;
7253 _ACEOF
7254 if ac_fn_c_try_compile "$LINENO"; then :
7255 xorg_cv_cc_flag_unknown_warning_option=yes
7256 else
7257 xorg_cv_cc_flag_unknown_warning_option=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 fi
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7262 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7264 CFLAGS="$xorg_testset_save_CFLAGS"
7265 fi
7266
7267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7270 fi
7271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7273 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7274 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"; then :
7282 xorg_cv_cc_flag_unused_command_line_argument=yes
7283 else
7284 xorg_cv_cc_flag_unused_command_line_argument=no
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7289 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7291 CFLAGS="$xorg_testset_save_CFLAGS"
7292 fi
7293
7294 found="no"
7295
7296 if test $found = "no" ; then
7297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7299 fi
7300
7301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303 fi
7304
7305 CFLAGS="$CFLAGS -Werror=main"
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7308 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7309 cacheid=xorg_cv_cc_flag__Werror_main
7310 if eval \${$cacheid+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"; then :
7325 eval $cacheid=yes
7326 else
7327 eval $cacheid=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 fi
7332
7333
7334 CFLAGS="$xorg_testset_save_CFLAGS"
7335
7336 eval supported=\$$cacheid
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7338 $as_echo "$supported" >&6; }
7339 if test "$supported" = "yes" ; then
7340 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7341 found="yes"
7342 fi
7343 fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359 xorg_testset_save_CFLAGS="$CFLAGS"
7360
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 int i;
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 xorg_cv_cc_flag_unknown_warning_option=yes
7374 else
7375 xorg_cv_cc_flag_unknown_warning_option=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7382 CFLAGS="$xorg_testset_save_CFLAGS"
7383 fi
7384
7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7388 fi
7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 int i;
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"; then :
7400 xorg_cv_cc_flag_unused_command_line_argument=yes
7401 else
7402 xorg_cv_cc_flag_unused_command_line_argument=no
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7409 CFLAGS="$xorg_testset_save_CFLAGS"
7410 fi
7411
7412 found="no"
7413
7414 if test $found = "no" ; then
7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417 fi
7418
7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421 fi
7422
7423 CFLAGS="$CFLAGS -Werror=missing-braces"
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7426 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7427 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7428 if eval \${$cacheid+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 int
7435 main ()
7436 {
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"; then :
7443 eval $cacheid=yes
7444 else
7445 eval $cacheid=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7449 fi
7450
7451
7452 CFLAGS="$xorg_testset_save_CFLAGS"
7453
7454 eval supported=\$$cacheid
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7456 $as_echo "$supported" >&6; }
7457 if test "$supported" = "yes" ; then
7458 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7459 found="yes"
7460 fi
7461 fi
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 xorg_testset_save_CFLAGS="$CFLAGS"
7478
7479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 int i;
7489 _ACEOF
7490 if ac_fn_c_try_compile "$LINENO"; then :
7491 xorg_cv_cc_flag_unknown_warning_option=yes
7492 else
7493 xorg_cv_cc_flag_unknown_warning_option=no
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7500 CFLAGS="$xorg_testset_save_CFLAGS"
7501 fi
7502
7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506 fi
7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 xorg_cv_cc_flag_unused_command_line_argument=yes
7519 else
7520 xorg_cv_cc_flag_unused_command_line_argument=no
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7527 CFLAGS="$xorg_testset_save_CFLAGS"
7528 fi
7529
7530 found="no"
7531
7532 if test $found = "no" ; then
7533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7535 fi
7536
7537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539 fi
7540
7541 CFLAGS="$CFLAGS -Werror=sequence-point"
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7544 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7545 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7546 if eval \${$cacheid+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 int
7553 main ()
7554 {
7555
7556 ;
7557 return 0;
7558 }
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 eval $cacheid=yes
7562 else
7563 eval $cacheid=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 fi
7568
7569
7570 CFLAGS="$xorg_testset_save_CFLAGS"
7571
7572 eval supported=\$$cacheid
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574 $as_echo "$supported" >&6; }
7575 if test "$supported" = "yes" ; then
7576 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7577 found="yes"
7578 fi
7579 fi
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595 xorg_testset_save_CFLAGS="$CFLAGS"
7596
7597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 int i;
7607 _ACEOF
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609 xorg_cv_cc_flag_unknown_warning_option=yes
7610 else
7611 xorg_cv_cc_flag_unknown_warning_option=no
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7619 fi
7620
7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624 fi
7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 _ACEOF
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 xorg_cv_cc_flag_unused_command_line_argument=yes
7637 else
7638 xorg_cv_cc_flag_unused_command_line_argument=no
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7645 CFLAGS="$xorg_testset_save_CFLAGS"
7646 fi
7647
7648 found="no"
7649
7650 if test $found = "no" ; then
7651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7653 fi
7654
7655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7657 fi
7658
7659 CFLAGS="$CFLAGS -Werror=return-type"
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7662 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7663 cacheid=xorg_cv_cc_flag__Werror_return_type
7664 if eval \${$cacheid+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 int i;
7670 int
7671 main ()
7672 {
7673
7674 ;
7675 return 0;
7676 }
7677 _ACEOF
7678 if ac_fn_c_try_link "$LINENO"; then :
7679 eval $cacheid=yes
7680 else
7681 eval $cacheid=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 fi
7686
7687
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7689
7690 eval supported=\$$cacheid
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7692 $as_echo "$supported" >&6; }
7693 if test "$supported" = "yes" ; then
7694 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7695 found="yes"
7696 fi
7697 fi
7698
7699 if test $found = "no" ; then
7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703
7704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706 fi
7707
7708 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7709
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7711 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7712 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7713 if eval \${$cacheid+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 int
7720 main ()
7721 {
7722
7723 ;
7724 return 0;
7725 }
7726 _ACEOF
7727 if ac_fn_c_try_link "$LINENO"; then :
7728 eval $cacheid=yes
7729 else
7730 eval $cacheid=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext \
7733 conftest$ac_exeext conftest.$ac_ext
7734 fi
7735
7736
7737 CFLAGS="$xorg_testset_save_CFLAGS"
7738
7739 eval supported=\$$cacheid
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7741 $as_echo "$supported" >&6; }
7742 if test "$supported" = "yes" ; then
7743 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7744 found="yes"
7745 fi
7746 fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 xorg_testset_save_CFLAGS="$CFLAGS"
7763
7764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 _ACEOF
7775 if ac_fn_c_try_compile "$LINENO"; then :
7776 xorg_cv_cc_flag_unknown_warning_option=yes
7777 else
7778 xorg_cv_cc_flag_unknown_warning_option=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7785 CFLAGS="$xorg_testset_save_CFLAGS"
7786 fi
7787
7788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7791 fi
7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"; then :
7803 xorg_cv_cc_flag_unused_command_line_argument=yes
7804 else
7805 xorg_cv_cc_flag_unused_command_line_argument=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7812 CFLAGS="$xorg_testset_save_CFLAGS"
7813 fi
7814
7815 found="no"
7816
7817 if test $found = "no" ; then
7818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7820 fi
7821
7822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7824 fi
7825
7826 CFLAGS="$CFLAGS -Werror=trigraphs"
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7829 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7830 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7831 if eval \${$cacheid+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 int i;
7837 int
7838 main ()
7839 {
7840
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_link "$LINENO"; then :
7846 eval $cacheid=yes
7847 else
7848 eval $cacheid=no
7849 fi
7850 rm -f core conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 fi
7853
7854
7855 CFLAGS="$xorg_testset_save_CFLAGS"
7856
7857 eval supported=\$$cacheid
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7859 $as_echo "$supported" >&6; }
7860 if test "$supported" = "yes" ; then
7861 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7862 found="yes"
7863 fi
7864 fi
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 xorg_testset_save_CFLAGS="$CFLAGS"
7881
7882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 _ACEOF
7893 if ac_fn_c_try_compile "$LINENO"; then :
7894 xorg_cv_cc_flag_unknown_warning_option=yes
7895 else
7896 xorg_cv_cc_flag_unknown_warning_option=no
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7903 CFLAGS="$xorg_testset_save_CFLAGS"
7904 fi
7905
7906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909 fi
7910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 int i;
7919 _ACEOF
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921 xorg_cv_cc_flag_unused_command_line_argument=yes
7922 else
7923 xorg_cv_cc_flag_unused_command_line_argument=no
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7930 CFLAGS="$xorg_testset_save_CFLAGS"
7931 fi
7932
7933 found="no"
7934
7935 if test $found = "no" ; then
7936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7938 fi
7939
7940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942 fi
7943
7944 CFLAGS="$CFLAGS -Werror=array-bounds"
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7947 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7948 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7949 if eval \${$cacheid+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 int i;
7955 int
7956 main ()
7957 {
7958
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 eval $cacheid=yes
7965 else
7966 eval $cacheid=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 fi
7971
7972
7973 CFLAGS="$xorg_testset_save_CFLAGS"
7974
7975 eval supported=\$$cacheid
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7977 $as_echo "$supported" >&6; }
7978 if test "$supported" = "yes" ; then
7979 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7980 found="yes"
7981 fi
7982 fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998 xorg_testset_save_CFLAGS="$CFLAGS"
7999
8000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 int i;
8010 _ACEOF
8011 if ac_fn_c_try_compile "$LINENO"; then :
8012 xorg_cv_cc_flag_unknown_warning_option=yes
8013 else
8014 xorg_cv_cc_flag_unknown_warning_option=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8022 fi
8023
8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027 fi
8028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 xorg_cv_cc_flag_unused_command_line_argument=yes
8040 else
8041 xorg_cv_cc_flag_unused_command_line_argument=no
8042 fi
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8048 CFLAGS="$xorg_testset_save_CFLAGS"
8049 fi
8050
8051 found="no"
8052
8053 if test $found = "no" ; then
8054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056 fi
8057
8058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8060 fi
8061
8062 CFLAGS="$CFLAGS -Werror=write-strings"
8063
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8065 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8066 cacheid=xorg_cv_cc_flag__Werror_write_strings
8067 if eval \${$cacheid+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 int
8074 main ()
8075 {
8076
8077 ;
8078 return 0;
8079 }
8080 _ACEOF
8081 if ac_fn_c_try_link "$LINENO"; then :
8082 eval $cacheid=yes
8083 else
8084 eval $cacheid=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8088 fi
8089
8090
8091 CFLAGS="$xorg_testset_save_CFLAGS"
8092
8093 eval supported=\$$cacheid
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8095 $as_echo "$supported" >&6; }
8096 if test "$supported" = "yes" ; then
8097 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8098 found="yes"
8099 fi
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116 xorg_testset_save_CFLAGS="$CFLAGS"
8117
8118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 int i;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 xorg_cv_cc_flag_unknown_warning_option=yes
8131 else
8132 xorg_cv_cc_flag_unknown_warning_option=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8139 CFLAGS="$xorg_testset_save_CFLAGS"
8140 fi
8141
8142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 fi
8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 _ACEOF
8156 if ac_fn_c_try_compile "$LINENO"; then :
8157 xorg_cv_cc_flag_unused_command_line_argument=yes
8158 else
8159 xorg_cv_cc_flag_unused_command_line_argument=no
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8166 CFLAGS="$xorg_testset_save_CFLAGS"
8167 fi
8168
8169 found="no"
8170
8171 if test $found = "no" ; then
8172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8174 fi
8175
8176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178 fi
8179
8180 CFLAGS="$CFLAGS -Werror=address"
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8183 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8184 cacheid=xorg_cv_cc_flag__Werror_address
8185 if eval \${$cacheid+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 int i;
8191 int
8192 main ()
8193 {
8194
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"; then :
8200 eval $cacheid=yes
8201 else
8202 eval $cacheid=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 fi
8207
8208
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210
8211 eval supported=\$$cacheid
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8213 $as_echo "$supported" >&6; }
8214 if test "$supported" = "yes" ; then
8215 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8216 found="yes"
8217 fi
8218 fi
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 xorg_testset_save_CFLAGS="$CFLAGS"
8235
8236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8245 int i;
8246 _ACEOF
8247 if ac_fn_c_try_compile "$LINENO"; then :
8248 xorg_cv_cc_flag_unknown_warning_option=yes
8249 else
8250 xorg_cv_cc_flag_unknown_warning_option=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8257 CFLAGS="$xorg_testset_save_CFLAGS"
8258 fi
8259
8260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263 fi
8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 _ACEOF
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275 xorg_cv_cc_flag_unused_command_line_argument=yes
8276 else
8277 xorg_cv_cc_flag_unused_command_line_argument=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285 fi
8286
8287 found="no"
8288
8289 if test $found = "no" ; then
8290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292 fi
8293
8294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8296 fi
8297
8298 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8301 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8302 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8303 if eval \${$cacheid+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 int i;
8309 int
8310 main ()
8311 {
8312
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318 eval $cacheid=yes
8319 else
8320 eval $cacheid=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 fi
8325
8326
8327 CFLAGS="$xorg_testset_save_CFLAGS"
8328
8329 eval supported=\$$cacheid
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8331 $as_echo "$supported" >&6; }
8332 if test "$supported" = "yes" ; then
8333 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8334 found="yes"
8335 fi
8336 fi
8337
8338 if test $found = "no" ; then
8339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341 fi
8342
8343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345 fi
8346
8347 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8350 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8351 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8352 if eval \${$cacheid+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 int i;
8358 int
8359 main ()
8360 {
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"; then :
8367 eval $cacheid=yes
8368 else
8369 eval $cacheid=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 fi
8374
8375
8376 CFLAGS="$xorg_testset_save_CFLAGS"
8377
8378 eval supported=\$$cacheid
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8380 $as_echo "$supported" >&6; }
8381 if test "$supported" = "yes" ; then
8382 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8383 found="yes"
8384 fi
8385 fi
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401 xorg_testset_save_CFLAGS="$CFLAGS"
8402
8403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 int i;
8413 _ACEOF
8414 if ac_fn_c_try_compile "$LINENO"; then :
8415 xorg_cv_cc_flag_unknown_warning_option=yes
8416 else
8417 xorg_cv_cc_flag_unknown_warning_option=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8424 CFLAGS="$xorg_testset_save_CFLAGS"
8425 fi
8426
8427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8430 fi
8431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 int i;
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 xorg_cv_cc_flag_unused_command_line_argument=yes
8443 else
8444 xorg_cv_cc_flag_unused_command_line_argument=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452 fi
8453
8454 found="no"
8455
8456 if test $found = "no" ; then
8457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459 fi
8460
8461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463 fi
8464
8465 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8466
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8468 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8469 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8470 if eval \${$cacheid+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 int i;
8476 int
8477 main ()
8478 {
8479
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_link "$LINENO"; then :
8485 eval $cacheid=yes
8486 else
8487 eval $cacheid=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8491 fi
8492
8493
8494 CFLAGS="$xorg_testset_save_CFLAGS"
8495
8496 eval supported=\$$cacheid
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8498 $as_echo "$supported" >&6; }
8499 if test "$supported" = "yes" ; then
8500 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8501 found="yes"
8502 fi
8503 fi
8504
8505 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8506 else
8507 { $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
8508 $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;}
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 xorg_cv_cc_flag_unknown_warning_option=yes
8537 else
8538 xorg_cv_cc_flag_unknown_warning_option=no
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8543 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546 fi
8547
8548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8551 fi
8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8554 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8555 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 int i;
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 xorg_cv_cc_flag_unused_command_line_argument=yes
8564 else
8565 xorg_cv_cc_flag_unused_command_line_argument=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8570 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573 fi
8574
8575 found="no"
8576
8577 if test $found = "no" ; then
8578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 fi
8581
8582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584 fi
8585
8586 CFLAGS="$CFLAGS -Wimplicit"
8587
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8589 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8590 cacheid=xorg_cv_cc_flag__Wimplicit
8591 if eval \${$cacheid+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 int i;
8597 int
8598 main ()
8599 {
8600
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"; then :
8606 eval $cacheid=yes
8607 else
8608 eval $cacheid=no
8609 fi
8610 rm -f core conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612 fi
8613
8614
8615 CFLAGS="$xorg_testset_save_CFLAGS"
8616
8617 eval supported=\$$cacheid
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8619 $as_echo "$supported" >&6; }
8620 if test "$supported" = "yes" ; then
8621 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8622 found="yes"
8623 fi
8624 fi
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 xorg_testset_save_CFLAGS="$CFLAGS"
8641
8642 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8645 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8646 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"; then :
8654 xorg_cv_cc_flag_unknown_warning_option=yes
8655 else
8656 xorg_cv_cc_flag_unknown_warning_option=no
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8661 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8663 CFLAGS="$xorg_testset_save_CFLAGS"
8664 fi
8665
8666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8669 fi
8670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8672 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8673 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 int i;
8679 _ACEOF
8680 if ac_fn_c_try_compile "$LINENO"; then :
8681 xorg_cv_cc_flag_unused_command_line_argument=yes
8682 else
8683 xorg_cv_cc_flag_unused_command_line_argument=no
8684 fi
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8688 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8690 CFLAGS="$xorg_testset_save_CFLAGS"
8691 fi
8692
8693 found="no"
8694
8695 if test $found = "no" ; then
8696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698 fi
8699
8700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702 fi
8703
8704 CFLAGS="$CFLAGS -Wnonnull"
8705
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8707 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8708 cacheid=xorg_cv_cc_flag__Wnonnull
8709 if eval \${$cacheid+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 int i;
8715 int
8716 main ()
8717 {
8718
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724 eval $cacheid=yes
8725 else
8726 eval $cacheid=no
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8730 fi
8731
8732
8733 CFLAGS="$xorg_testset_save_CFLAGS"
8734
8735 eval supported=\$$cacheid
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8737 $as_echo "$supported" >&6; }
8738 if test "$supported" = "yes" ; then
8739 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8740 found="yes"
8741 fi
8742 fi
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 xorg_testset_save_CFLAGS="$CFLAGS"
8759
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8763 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8764 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 int i;
8770 _ACEOF
8771 if ac_fn_c_try_compile "$LINENO"; then :
8772 xorg_cv_cc_flag_unknown_warning_option=yes
8773 else
8774 xorg_cv_cc_flag_unknown_warning_option=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8779 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782 fi
8783
8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787 fi
8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8790 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8791 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"; then :
8799 xorg_cv_cc_flag_unused_command_line_argument=yes
8800 else
8801 xorg_cv_cc_flag_unused_command_line_argument=no
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8806 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8808 CFLAGS="$xorg_testset_save_CFLAGS"
8809 fi
8810
8811 found="no"
8812
8813 if test $found = "no" ; then
8814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816 fi
8817
8818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820 fi
8821
8822 CFLAGS="$CFLAGS -Winit-self"
8823
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8825 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8826 cacheid=xorg_cv_cc_flag__Winit_self
8827 if eval \${$cacheid+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 int i;
8833 int
8834 main ()
8835 {
8836
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842 eval $cacheid=yes
8843 else
8844 eval $cacheid=no
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 fi
8849
8850
8851 CFLAGS="$xorg_testset_save_CFLAGS"
8852
8853 eval supported=\$$cacheid
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8855 $as_echo "$supported" >&6; }
8856 if test "$supported" = "yes" ; then
8857 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8858 found="yes"
8859 fi
8860 fi
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 xorg_testset_save_CFLAGS="$CFLAGS"
8877
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8881 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8882 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8887 int i;
8888 _ACEOF
8889 if ac_fn_c_try_compile "$LINENO"; then :
8890 xorg_cv_cc_flag_unknown_warning_option=yes
8891 else
8892 xorg_cv_cc_flag_unknown_warning_option=no
8893 fi
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8897 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8899 CFLAGS="$xorg_testset_save_CFLAGS"
8900 fi
8901
8902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905 fi
8906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8908 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8909 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 int i;
8915 _ACEOF
8916 if ac_fn_c_try_compile "$LINENO"; then :
8917 xorg_cv_cc_flag_unused_command_line_argument=yes
8918 else
8919 xorg_cv_cc_flag_unused_command_line_argument=no
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8924 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8926 CFLAGS="$xorg_testset_save_CFLAGS"
8927 fi
8928
8929 found="no"
8930
8931 if test $found = "no" ; then
8932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934 fi
8935
8936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938 fi
8939
8940 CFLAGS="$CFLAGS -Wmain"
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8943 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8944 cacheid=xorg_cv_cc_flag__Wmain
8945 if eval \${$cacheid+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 int i;
8951 int
8952 main ()
8953 {
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 eval $cacheid=yes
8961 else
8962 eval $cacheid=no
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 fi
8967
8968
8969 CFLAGS="$xorg_testset_save_CFLAGS"
8970
8971 eval supported=\$$cacheid
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8973 $as_echo "$supported" >&6; }
8974 if test "$supported" = "yes" ; then
8975 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8976 found="yes"
8977 fi
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994 xorg_testset_save_CFLAGS="$CFLAGS"
8995
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 int i;
9006 _ACEOF
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008 xorg_cv_cc_flag_unknown_warning_option=yes
9009 else
9010 xorg_cv_cc_flag_unknown_warning_option=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023 fi
9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 _ACEOF
9034 if ac_fn_c_try_compile "$LINENO"; then :
9035 xorg_cv_cc_flag_unused_command_line_argument=yes
9036 else
9037 xorg_cv_cc_flag_unused_command_line_argument=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 fi
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044 CFLAGS="$xorg_testset_save_CFLAGS"
9045 fi
9046
9047 found="no"
9048
9049 if test $found = "no" ; then
9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052 fi
9053
9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 fi
9057
9058 CFLAGS="$CFLAGS -Wmissing-braces"
9059
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9061 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9062 cacheid=xorg_cv_cc_flag__Wmissing_braces
9063 if eval \${$cacheid+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 int i;
9069 int
9070 main ()
9071 {
9072
9073 ;
9074 return 0;
9075 }
9076 _ACEOF
9077 if ac_fn_c_try_link "$LINENO"; then :
9078 eval $cacheid=yes
9079 else
9080 eval $cacheid=no
9081 fi
9082 rm -f core conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 fi
9085
9086
9087 CFLAGS="$xorg_testset_save_CFLAGS"
9088
9089 eval supported=\$$cacheid
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9091 $as_echo "$supported" >&6; }
9092 if test "$supported" = "yes" ; then
9093 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9094 found="yes"
9095 fi
9096 fi
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112 xorg_testset_save_CFLAGS="$CFLAGS"
9113
9114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 int i;
9124 _ACEOF
9125 if ac_fn_c_try_compile "$LINENO"; then :
9126 xorg_cv_cc_flag_unknown_warning_option=yes
9127 else
9128 xorg_cv_cc_flag_unknown_warning_option=no
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9135 CFLAGS="$xorg_testset_save_CFLAGS"
9136 fi
9137
9138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141 fi
9142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 int i;
9151 _ACEOF
9152 if ac_fn_c_try_compile "$LINENO"; then :
9153 xorg_cv_cc_flag_unused_command_line_argument=yes
9154 else
9155 xorg_cv_cc_flag_unused_command_line_argument=no
9156 fi
9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9162 CFLAGS="$xorg_testset_save_CFLAGS"
9163 fi
9164
9165 found="no"
9166
9167 if test $found = "no" ; then
9168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170 fi
9171
9172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174 fi
9175
9176 CFLAGS="$CFLAGS -Wsequence-point"
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9179 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9180 cacheid=xorg_cv_cc_flag__Wsequence_point
9181 if eval \${$cacheid+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 int i;
9187 int
9188 main ()
9189 {
9190
9191 ;
9192 return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9196 eval $cacheid=yes
9197 else
9198 eval $cacheid=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi
9203
9204
9205 CFLAGS="$xorg_testset_save_CFLAGS"
9206
9207 eval supported=\$$cacheid
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9209 $as_echo "$supported" >&6; }
9210 if test "$supported" = "yes" ; then
9211 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9212 found="yes"
9213 fi
9214 fi
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 xorg_testset_save_CFLAGS="$CFLAGS"
9231
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 int i;
9242 _ACEOF
9243 if ac_fn_c_try_compile "$LINENO"; then :
9244 xorg_cv_cc_flag_unknown_warning_option=yes
9245 else
9246 xorg_cv_cc_flag_unknown_warning_option=no
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253 CFLAGS="$xorg_testset_save_CFLAGS"
9254 fi
9255
9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259 fi
9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 int i;
9269 _ACEOF
9270 if ac_fn_c_try_compile "$LINENO"; then :
9271 xorg_cv_cc_flag_unused_command_line_argument=yes
9272 else
9273 xorg_cv_cc_flag_unused_command_line_argument=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281 fi
9282
9283 found="no"
9284
9285 if test $found = "no" ; then
9286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288 fi
9289
9290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292 fi
9293
9294 CFLAGS="$CFLAGS -Wreturn-type"
9295
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9297 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9298 cacheid=xorg_cv_cc_flag__Wreturn_type
9299 if eval \${$cacheid+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 int
9306 main ()
9307 {
9308
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 eval $cacheid=yes
9315 else
9316 eval $cacheid=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 fi
9321
9322
9323 CFLAGS="$xorg_testset_save_CFLAGS"
9324
9325 eval supported=\$$cacheid
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9327 $as_echo "$supported" >&6; }
9328 if test "$supported" = "yes" ; then
9329 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9330 found="yes"
9331 fi
9332 fi
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 xorg_testset_save_CFLAGS="$CFLAGS"
9349
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9353 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9354 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 int i;
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"; then :
9362 xorg_cv_cc_flag_unknown_warning_option=yes
9363 else
9364 xorg_cv_cc_flag_unknown_warning_option=no
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9369 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9371 CFLAGS="$xorg_testset_save_CFLAGS"
9372 fi
9373
9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377 fi
9378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9380 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9381 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 int i;
9387 _ACEOF
9388 if ac_fn_c_try_compile "$LINENO"; then :
9389 xorg_cv_cc_flag_unused_command_line_argument=yes
9390 else
9391 xorg_cv_cc_flag_unused_command_line_argument=no
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9396 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9398 CFLAGS="$xorg_testset_save_CFLAGS"
9399 fi
9400
9401 found="no"
9402
9403 if test $found = "no" ; then
9404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406 fi
9407
9408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410 fi
9411
9412 CFLAGS="$CFLAGS -Wtrigraphs"
9413
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9415 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9416 cacheid=xorg_cv_cc_flag__Wtrigraphs
9417 if eval \${$cacheid+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 int i;
9423 int
9424 main ()
9425 {
9426
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 eval $cacheid=yes
9433 else
9434 eval $cacheid=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 fi
9439
9440
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443 eval supported=\$$cacheid
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445 $as_echo "$supported" >&6; }
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9448 found="yes"
9449 fi
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 xorg_cv_cc_flag_unknown_warning_option=yes
9481 else
9482 xorg_cv_cc_flag_unknown_warning_option=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9490 fi
9491
9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495 fi
9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 int i;
9505 _ACEOF
9506 if ac_fn_c_try_compile "$LINENO"; then :
9507 xorg_cv_cc_flag_unused_command_line_argument=yes
9508 else
9509 xorg_cv_cc_flag_unused_command_line_argument=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9517 fi
9518
9519 found="no"
9520
9521 if test $found = "no" ; then
9522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 fi
9525
9526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 fi
9529
9530 CFLAGS="$CFLAGS -Warray-bounds"
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9533 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9534 cacheid=xorg_cv_cc_flag__Warray_bounds
9535 if eval \${$cacheid+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int i;
9541 int
9542 main ()
9543 {
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 eval $cacheid=yes
9551 else
9552 eval $cacheid=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 fi
9557
9558
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561 eval supported=\$$cacheid
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563 $as_echo "$supported" >&6; }
9564 if test "$supported" = "yes" ; then
9565 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9566 found="yes"
9567 fi
9568 fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 int i;
9596 _ACEOF
9597 if ac_fn_c_try_compile "$LINENO"; then :
9598 xorg_cv_cc_flag_unknown_warning_option=yes
9599 else
9600 xorg_cv_cc_flag_unknown_warning_option=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 fi
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607 CFLAGS="$xorg_testset_save_CFLAGS"
9608 fi
9609
9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613 fi
9614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"; then :
9625 xorg_cv_cc_flag_unused_command_line_argument=yes
9626 else
9627 xorg_cv_cc_flag_unused_command_line_argument=no
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9632 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9634 CFLAGS="$xorg_testset_save_CFLAGS"
9635 fi
9636
9637 found="no"
9638
9639 if test $found = "no" ; then
9640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642 fi
9643
9644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646 fi
9647
9648 CFLAGS="$CFLAGS -Wwrite-strings"
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9651 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9652 cacheid=xorg_cv_cc_flag__Wwrite_strings
9653 if eval \${$cacheid+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 int
9660 main ()
9661 {
9662
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 eval $cacheid=yes
9669 else
9670 eval $cacheid=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 fi
9675
9676
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679 eval supported=\$$cacheid
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681 $as_echo "$supported" >&6; }
9682 if test "$supported" = "yes" ; then
9683 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9684 found="yes"
9685 fi
9686 fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702 xorg_testset_save_CFLAGS="$CFLAGS"
9703
9704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9707 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9708 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 int i;
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716 xorg_cv_cc_flag_unknown_warning_option=yes
9717 else
9718 xorg_cv_cc_flag_unknown_warning_option=no
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9723 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9725 CFLAGS="$xorg_testset_save_CFLAGS"
9726 fi
9727
9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9731 fi
9732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9734 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9735 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 xorg_cv_cc_flag_unused_command_line_argument=yes
9744 else
9745 xorg_cv_cc_flag_unused_command_line_argument=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9750 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9752 CFLAGS="$xorg_testset_save_CFLAGS"
9753 fi
9754
9755 found="no"
9756
9757 if test $found = "no" ; then
9758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9760 fi
9761
9762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764 fi
9765
9766 CFLAGS="$CFLAGS -Waddress"
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9769 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9770 cacheid=xorg_cv_cc_flag__Waddress
9771 if eval \${$cacheid+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 int i;
9777 int
9778 main ()
9779 {
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786 eval $cacheid=yes
9787 else
9788 eval $cacheid=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 fi
9793
9794
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796
9797 eval supported=\$$cacheid
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9799 $as_echo "$supported" >&6; }
9800 if test "$supported" = "yes" ; then
9801 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9802 found="yes"
9803 fi
9804 fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820 xorg_testset_save_CFLAGS="$CFLAGS"
9821
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9825 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9826 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 int i;
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834 xorg_cv_cc_flag_unknown_warning_option=yes
9835 else
9836 xorg_cv_cc_flag_unknown_warning_option=no
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9841 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9843 CFLAGS="$xorg_testset_save_CFLAGS"
9844 fi
9845
9846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9849 fi
9850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9852 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9853 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 int i;
9859 _ACEOF
9860 if ac_fn_c_try_compile "$LINENO"; then :
9861 xorg_cv_cc_flag_unused_command_line_argument=yes
9862 else
9863 xorg_cv_cc_flag_unused_command_line_argument=no
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9868 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9870 CFLAGS="$xorg_testset_save_CFLAGS"
9871 fi
9872
9873 found="no"
9874
9875 if test $found = "no" ; then
9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 fi
9879
9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882 fi
9883
9884 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9885
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9887 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9888 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9889 if eval \${$cacheid+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 int
9896 main ()
9897 {
9898
9899 ;
9900 return 0;
9901 }
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"; then :
9904 eval $cacheid=yes
9905 else
9906 eval $cacheid=no
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 fi
9911
9912
9913 CFLAGS="$xorg_testset_save_CFLAGS"
9914
9915 eval supported=\$$cacheid
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9917 $as_echo "$supported" >&6; }
9918 if test "$supported" = "yes" ; then
9919 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9920 found="yes"
9921 fi
9922 fi
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938 xorg_testset_save_CFLAGS="$CFLAGS"
9939
9940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9943 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9944 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9949 int i;
9950 _ACEOF
9951 if ac_fn_c_try_compile "$LINENO"; then :
9952 xorg_cv_cc_flag_unknown_warning_option=yes
9953 else
9954 xorg_cv_cc_flag_unknown_warning_option=no
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9959 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9961 CFLAGS="$xorg_testset_save_CFLAGS"
9962 fi
9963
9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9967 fi
9968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9970 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9971 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int i;
9977 _ACEOF
9978 if ac_fn_c_try_compile "$LINENO"; then :
9979 xorg_cv_cc_flag_unused_command_line_argument=yes
9980 else
9981 xorg_cv_cc_flag_unused_command_line_argument=no
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9986 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9988 CFLAGS="$xorg_testset_save_CFLAGS"
9989 fi
9990
9991 found="no"
9992
9993 if test $found = "no" ; then
9994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9996 fi
9997
9998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10000 fi
10001
10002 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10005 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10006 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10007 if eval \${$cacheid+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012 int i;
10013 int
10014 main ()
10015 {
10016
10017 ;
10018 return 0;
10019 }
10020 _ACEOF
10021 if ac_fn_c_try_link "$LINENO"; then :
10022 eval $cacheid=yes
10023 else
10024 eval $cacheid=no
10025 fi
10026 rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028 fi
10029
10030
10031 CFLAGS="$xorg_testset_save_CFLAGS"
10032
10033 eval supported=\$$cacheid
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10035 $as_echo "$supported" >&6; }
10036 if test "$supported" = "yes" ; then
10037 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10038 found="yes"
10039 fi
10040 fi
10041
10042
10043 fi
10044
10045
10046
10047
10048
10049
10050
10051 CWARNFLAGS="$BASE_CFLAGS"
10052 if test "x$GCC" = xyes ; then
10053 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10054 fi
10055
10056
10057
10058
10059
10060
10061
10062
10063 # Check whether --enable-strict-compilation was given.
10064 if test "${enable_strict_compilation+set}" = set; then :
10065 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10066 else
10067 STRICT_COMPILE=no
10068 fi
10069
10070
10071
10072
10073
10074
10075 STRICT_CFLAGS=""
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089 xorg_testset_save_CFLAGS="$CFLAGS"
10090
10091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10100 int i;
10101 _ACEOF
10102 if ac_fn_c_try_compile "$LINENO"; then :
10103 xorg_cv_cc_flag_unknown_warning_option=yes
10104 else
10105 xorg_cv_cc_flag_unknown_warning_option=no
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10112 CFLAGS="$xorg_testset_save_CFLAGS"
10113 fi
10114
10115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 fi
10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 int i;
10128 _ACEOF
10129 if ac_fn_c_try_compile "$LINENO"; then :
10130 xorg_cv_cc_flag_unused_command_line_argument=yes
10131 else
10132 xorg_cv_cc_flag_unused_command_line_argument=no
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10139 CFLAGS="$xorg_testset_save_CFLAGS"
10140 fi
10141
10142 found="no"
10143
10144 if test $found = "no" ; then
10145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147 fi
10148
10149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151 fi
10152
10153 CFLAGS="$CFLAGS -pedantic"
10154
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10156 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10157 cacheid=xorg_cv_cc_flag__pedantic
10158 if eval \${$cacheid+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 int
10165 main ()
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"; then :
10173 eval $cacheid=yes
10174 else
10175 eval $cacheid=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 fi
10180
10181
10182 CFLAGS="$xorg_testset_save_CFLAGS"
10183
10184 eval supported=\$$cacheid
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10186 $as_echo "$supported" >&6; }
10187 if test "$supported" = "yes" ; then
10188 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10189 found="yes"
10190 fi
10191 fi
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207 xorg_testset_save_CFLAGS="$CFLAGS"
10208
10209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 int i;
10219 _ACEOF
10220 if ac_fn_c_try_compile "$LINENO"; then :
10221 xorg_cv_cc_flag_unknown_warning_option=yes
10222 else
10223 xorg_cv_cc_flag_unknown_warning_option=no
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10230 CFLAGS="$xorg_testset_save_CFLAGS"
10231 fi
10232
10233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10236 fi
10237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 int i;
10246 _ACEOF
10247 if ac_fn_c_try_compile "$LINENO"; then :
10248 xorg_cv_cc_flag_unused_command_line_argument=yes
10249 else
10250 xorg_cv_cc_flag_unused_command_line_argument=no
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10257 CFLAGS="$xorg_testset_save_CFLAGS"
10258 fi
10259
10260 found="no"
10261
10262 if test $found = "no" ; then
10263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265 fi
10266
10267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269 fi
10270
10271 CFLAGS="$CFLAGS -Werror"
10272
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10274 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10275 cacheid=xorg_cv_cc_flag__Werror
10276 if eval \${$cacheid+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 int
10283 main ()
10284 {
10285
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_c_try_link "$LINENO"; then :
10291 eval $cacheid=yes
10292 else
10293 eval $cacheid=no
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297 fi
10298
10299
10300 CFLAGS="$xorg_testset_save_CFLAGS"
10301
10302 eval supported=\$$cacheid
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10304 $as_echo "$supported" >&6; }
10305 if test "$supported" = "yes" ; then
10306 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10307 found="yes"
10308 fi
10309 fi
10310
10311 if test $found = "no" ; then
10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314 fi
10315
10316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10318 fi
10319
10320 CFLAGS="$CFLAGS -errwarn"
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10323 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10324 cacheid=xorg_cv_cc_flag__errwarn
10325 if eval \${$cacheid+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 int i;
10331 int
10332 main ()
10333 {
10334
10335 ;
10336 return 0;
10337 }
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 eval $cacheid=yes
10341 else
10342 eval $cacheid=no
10343 fi
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 fi
10347
10348
10349 CFLAGS="$xorg_testset_save_CFLAGS"
10350
10351 eval supported=\$$cacheid
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10353 $as_echo "$supported" >&6; }
10354 if test "$supported" = "yes" ; then
10355 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10356 found="yes"
10357 fi
10358 fi
10359
10360
10361
10362 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10363 # activate it with -Werror, so we add it here explicitly.
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377 xorg_testset_save_CFLAGS="$CFLAGS"
10378
10379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int i;
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"; then :
10391 xorg_cv_cc_flag_unknown_warning_option=yes
10392 else
10393 xorg_cv_cc_flag_unknown_warning_option=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 fi
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10400 CFLAGS="$xorg_testset_save_CFLAGS"
10401 fi
10402
10403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406 fi
10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 int i;
10416 _ACEOF
10417 if ac_fn_c_try_compile "$LINENO"; then :
10418 xorg_cv_cc_flag_unused_command_line_argument=yes
10419 else
10420 xorg_cv_cc_flag_unused_command_line_argument=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428 fi
10429
10430 found="no"
10431
10432 if test $found = "no" ; then
10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435 fi
10436
10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 fi
10440
10441 CFLAGS="$CFLAGS -Werror=attributes"
10442
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10444 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10445 cacheid=xorg_cv_cc_flag__Werror_attributes
10446 if eval \${$cacheid+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 int i;
10452 int
10453 main ()
10454 {
10455
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_link "$LINENO"; then :
10461 eval $cacheid=yes
10462 else
10463 eval $cacheid=no
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 fi
10468
10469
10470 CFLAGS="$xorg_testset_save_CFLAGS"
10471
10472 eval supported=\$$cacheid
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10474 $as_echo "$supported" >&6; }
10475 if test "$supported" = "yes" ; then
10476 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10477 found="yes"
10478 fi
10479 fi
10480
10481
10482
10483 if test "x$STRICT_COMPILE" = "xyes"; then
10484 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10485 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10486 fi
10487
10488
10489
10490
10491
10492
10493 cat >>confdefs.h <<_ACEOF
10494 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10495 _ACEOF
10496
10497 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10498 if test "x$PVM" = "x"; then
10499 PVM="0"
10500 fi
10501
10502 cat >>confdefs.h <<_ACEOF
10503 #define PACKAGE_VERSION_MINOR $PVM
10504 _ACEOF
10505
10506 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10507 if test "x$PVP" = "x"; then
10508 PVP="0"
10509 fi
10510
10511 cat >>confdefs.h <<_ACEOF
10512 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10513 _ACEOF
10514
10515
10516
10517 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10518 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10519 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10520 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10521
10522
10523
10524
10525 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10526 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10527 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10528 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10529 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10530
10531
10532
10533
10534
10535
10536 if test x$APP_MAN_SUFFIX = x ; then
10537 APP_MAN_SUFFIX=1
10538 fi
10539 if test x$APP_MAN_DIR = x ; then
10540 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10541 fi
10542
10543 if test x$LIB_MAN_SUFFIX = x ; then
10544 LIB_MAN_SUFFIX=3
10545 fi
10546 if test x$LIB_MAN_DIR = x ; then
10547 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10548 fi
10549
10550 if test x$FILE_MAN_SUFFIX = x ; then
10551 case $host_os in
10552 solaris*) FILE_MAN_SUFFIX=4 ;;
10553 *) FILE_MAN_SUFFIX=5 ;;
10554 esac
10555 fi
10556 if test x$FILE_MAN_DIR = x ; then
10557 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10558 fi
10559
10560 if test x$MISC_MAN_SUFFIX = x ; then
10561 case $host_os in
10562 solaris*) MISC_MAN_SUFFIX=5 ;;
10563 *) MISC_MAN_SUFFIX=7 ;;
10564 esac
10565 fi
10566 if test x$MISC_MAN_DIR = x ; then
10567 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10568 fi
10569
10570 if test x$DRIVER_MAN_SUFFIX = x ; then
10571 case $host_os in
10572 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10573 *) DRIVER_MAN_SUFFIX=4 ;;
10574 esac
10575 fi
10576 if test x$DRIVER_MAN_DIR = x ; then
10577 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10578 fi
10579
10580 if test x$ADMIN_MAN_SUFFIX = x ; then
10581 case $host_os in
10582 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10583 *) ADMIN_MAN_SUFFIX=8 ;;
10584 esac
10585 fi
10586 if test x$ADMIN_MAN_DIR = x ; then
10587 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10588 fi
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604 XORG_MAN_PAGE="X Version 11"
10605
10606 MAN_SUBSTS="\
10607 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10608 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10609 -e 's|__xservername__|Xorg|g' \
10610 -e 's|__xconfigfile__|xorg.conf|g' \
10611 -e 's|__projectroot__|\$(prefix)|g' \
10612 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10613 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10614 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10615 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10616 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10617 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10618 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10619
10620
10621
10622 # Check whether --enable-silent-rules was given.
10623 if test "${enable_silent_rules+set}" = set; then :
10624 enableval=$enable_silent_rules;
10625 fi
10626
10627 case $enable_silent_rules in # (((
10628 yes) AM_DEFAULT_VERBOSITY=0;;
10629 no) AM_DEFAULT_VERBOSITY=1;;
10630 *) AM_DEFAULT_VERBOSITY=0;;
10631 esac
10632 am_make=${MAKE-make}
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10634 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10635 if ${am_cv_make_support_nested_variables+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 if $as_echo 'TRUE=$(BAR$(V))
10639 BAR0=false
10640 BAR1=true
10641 V=1
10642 am__doit:
10643 @$(TRUE)
10644 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10645 am_cv_make_support_nested_variables=yes
10646 else
10647 am_cv_make_support_nested_variables=no
10648 fi
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10651 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10652 if test $am_cv_make_support_nested_variables = yes; then
10653 AM_V='$(V)'
10654 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10655 else
10656 AM_V=$AM_DEFAULT_VERBOSITY
10657 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10658 fi
10659 AM_BACKSLASH='\'
10660
10661
10662
10663 for ac_func in nanosleep poll select
10664 do :
10665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10667 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10668 cat >>confdefs.h <<_ACEOF
10669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10670 _ACEOF
10671
10672 fi
10673 done
10674
10675
10676 # Math libraries & functions
10677 # - some compilers use builtin inlines for floor
10678 # - lrint() is a C99 addition not found on some older systems
10679 # - must do the libm check first so that the lrint check will have it in $LIBS
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
10681 $as_echo_n "checking for library containing floor... " >&6; }
10682 if ${ac_cv_search_floor+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 ac_func_search_save_LIBS=$LIBS
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 char floor ();
10696 int
10697 main ()
10698 {
10699 return floor ();
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 for ac_lib in '' m; do
10705 if test -z "$ac_lib"; then
10706 ac_res="none required"
10707 else
10708 ac_res=-l$ac_lib
10709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10710 fi
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_search_floor=$ac_res
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext
10716 if ${ac_cv_search_floor+:} false; then :
10717 break
10718 fi
10719 done
10720 if ${ac_cv_search_floor+:} false; then :
10721
10722 else
10723 ac_cv_search_floor=no
10724 fi
10725 rm conftest.$ac_ext
10726 LIBS=$ac_func_search_save_LIBS
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
10729 $as_echo "$ac_cv_search_floor" >&6; }
10730 ac_res=$ac_cv_search_floor
10731 if test "$ac_res" != no; then :
10732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10733
10734 fi
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
10737 $as_echo_n "checking for library containing lrint... " >&6; }
10738 if ${ac_cv_search_lrint+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_func_search_save_LIBS=$LIBS
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char lrint ();
10752 int
10753 main ()
10754 {
10755 return lrint ();
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 for ac_lib in '' m; do
10761 if test -z "$ac_lib"; then
10762 ac_res="none required"
10763 else
10764 ac_res=-l$ac_lib
10765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10766 fi
10767 if ac_fn_c_try_link "$LINENO"; then :
10768 ac_cv_search_lrint=$ac_res
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext
10772 if ${ac_cv_search_lrint+:} false; then :
10773 break
10774 fi
10775 done
10776 if ${ac_cv_search_lrint+:} false; then :
10777
10778 else
10779 ac_cv_search_lrint=no
10780 fi
10781 rm conftest.$ac_ext
10782 LIBS=$ac_func_search_save_LIBS
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
10785 $as_echo "$ac_cv_search_lrint" >&6; }
10786 ac_res=$ac_cv_search_lrint
10787 if test "$ac_res" != no; then :
10788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10789
10790 fi
10791
10792 for ac_func in lrint
10793 do :
10794 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
10795 if test "x$ac_cv_func_lrint" = xyes; then :
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_LRINT 1
10798 _ACEOF
10799
10800 fi
10801 done
10802
10803
10804 # Checks for pkg-config packages
10805
10806 pkg_failed=no
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5
10808 $as_echo_n "checking for XMAG... " >&6; }
10809
10810 if test -n "$XMAG_CFLAGS"; then
10811 pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS"
10812 elif test -n "$PKG_CONFIG"; then
10813 if test -n "$PKG_CONFIG" && \
10814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10815 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10816 ac_status=$?
10817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10818 test $ac_status = 0; }; then
10819 pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
10820 else
10821 pkg_failed=yes
10822 fi
10823 else
10824 pkg_failed=untried
10825 fi
10826 if test -n "$XMAG_LIBS"; then
10827 pkg_cv_XMAG_LIBS="$XMAG_LIBS"
10828 elif test -n "$PKG_CONFIG"; then
10829 if test -n "$PKG_CONFIG" && \
10830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10831 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10832 ac_status=$?
10833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10834 test $ac_status = 0; }; then
10835 pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
10836 else
10837 pkg_failed=yes
10838 fi
10839 else
10840 pkg_failed=untried
10841 fi
10842
10843
10844
10845 if test $pkg_failed = yes; then
10846
10847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10848 _pkg_short_errors_supported=yes
10849 else
10850 _pkg_short_errors_supported=no
10851 fi
10852 if test $_pkg_short_errors_supported = yes; then
10853 XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1`
10854 else
10855 XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1`
10856 fi
10857 # Put the nasty error message in config.log where it belongs
10858 echo "$XMAG_PKG_ERRORS" >&5
10859
10860 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
10861
10862 $XMAG_PKG_ERRORS
10863
10864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10865 installed software in a non-standard prefix.
10866
10867 Alternatively, you may set the environment variables XMAG_CFLAGS
10868 and XMAG_LIBS to avoid the need to call pkg-config.
10869 See the pkg-config man page for more details.
10870 " "$LINENO" 5
10871 elif test $pkg_failed = untried; then
10872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10874 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10875 is in your PATH or set the PKG_CONFIG environment variable to the full
10876 path to pkg-config.
10877
10878 Alternatively, you may set the environment variables XMAG_CFLAGS
10879 and XMAG_LIBS to avoid the need to call pkg-config.
10880 See the pkg-config man page for more details.
10881
10882 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10883 See \`config.log' for more details" "$LINENO" 5; }
10884 else
10885 XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS
10886 XMAG_LIBS=$pkg_cv_XMAG_LIBS
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10888 $as_echo "yes" >&6; }
10889 :
10890 fi
10891
10892 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10893
10894 # Check whether --with-appdefaultdir was given.
10895 if test "${with_appdefaultdir+set}" = set; then :
10896 withval=$with_appdefaultdir; appdefaultdir="$withval"
10897 else
10898 appdefaultdir="${xt_appdefaultdir}"
10899 fi
10900
10901
10902
10903
10904 ac_config_files="$ac_config_files Makefile man/Makefile"
10905
10906 cat >confcache <<\_ACEOF
10907 # This file is a shell script that caches the results of configure
10908 # tests run on this system so they can be shared between configure
10909 # scripts and configure runs, see configure's option --config-cache.
10910 # It is not useful on other systems. If it contains results you don't
10911 # want to keep, you may remove or edit it.
10912 #
10913 # config.status only pays attention to the cache file if you give it
10914 # the --recheck option to rerun configure.
10915 #
10916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10918 # following values.
10919
10920 _ACEOF
10921
10922 # The following way of writing the cache mishandles newlines in values,
10923 # but we know of no workaround that is simple, portable, and efficient.
10924 # So, we kill variables containing newlines.
10925 # Ultrix sh set writes to stderr and can't be redirected directly,
10926 # and sets the high bit in the cache file unless we assign to the vars.
10927 (
10928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10929 eval ac_val=\$$ac_var
10930 case $ac_val in #(
10931 *${as_nl}*)
10932 case $ac_var in #(
10933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10935 esac
10936 case $ac_var in #(
10937 _ | IFS | as_nl) ;; #(
10938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10939 *) { eval $ac_var=; unset $ac_var;} ;;
10940 esac ;;
10941 esac
10942 done
10943
10944 (set) 2>&1 |
10945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10946 *${as_nl}ac_space=\ *)
10947 # `set' does not quote correctly, so add quotes: double-quote
10948 # substitution turns \\\\ into \\, and sed turns \\ into \.
10949 sed -n \
10950 "s/'/'\\\\''/g;
10951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10952 ;; #(
10953 *)
10954 # `set' quotes correctly as required by POSIX, so do not add quotes.
10955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10956 ;;
10957 esac |
10958 sort
10959 ) |
10960 sed '
10961 /^ac_cv_env_/b end
10962 t clear
10963 :clear
10964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10965 t end
10966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10967 :end' >>confcache
10968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10969 if test -w "$cache_file"; then
10970 if test "x$cache_file" != "x/dev/null"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10972 $as_echo "$as_me: updating cache $cache_file" >&6;}
10973 if test ! -f "$cache_file" || test -h "$cache_file"; then
10974 cat confcache >"$cache_file"
10975 else
10976 case $cache_file in #(
10977 */* | ?:*)
10978 mv -f confcache "$cache_file"$$ &&
10979 mv -f "$cache_file"$$ "$cache_file" ;; #(
10980 *)
10981 mv -f confcache "$cache_file" ;;
10982 esac
10983 fi
10984 fi
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10988 fi
10989 fi
10990 rm -f confcache
10991
10992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10993 # Let make expand exec_prefix.
10994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10995
10996 DEFS=-DHAVE_CONFIG_H
10997
10998 ac_libobjs=
10999 ac_ltlibobjs=
11000 U=
11001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11002 # 1. Remove the extension, and $U if already installed.
11003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11006 # will be set to the directory where LIBOBJS objects are built.
11007 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11008 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11009 done
11010 LIBOBJS=$ac_libobjs
11011
11012 LTLIBOBJS=$ac_ltlibobjs
11013
11014
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11016 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11017 if test -n "$am_sleep_pid"; then
11018 # Hide warnings about reused PIDs.
11019 wait $am_sleep_pid 2>/dev/null
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11022 $as_echo "done" >&6; }
11023 if test -n "$EXEEXT"; then
11024 am__EXEEXT_TRUE=
11025 am__EXEEXT_FALSE='#'
11026 else
11027 am__EXEEXT_TRUE='#'
11028 am__EXEEXT_FALSE=
11029 fi
11030
11031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11032 as_fn_error $? "conditional \"AMDEP\" was never defined.
11033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11034 fi
11035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11036 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11038 fi
11039
11040 : "${CONFIG_STATUS=./config.status}"
11041 ac_write_fail=0
11042 ac_clean_files_save=$ac_clean_files
11043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11045 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11046 as_write_fail=0
11047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11048 #! $SHELL
11049 # Generated by $as_me.
11050 # Run this file to recreate the current configuration.
11051 # Compiler output produced by configure, useful for debugging
11052 # configure, is in config.log if it exists.
11053
11054 debug=false
11055 ac_cs_recheck=false
11056 ac_cs_silent=false
11057
11058 SHELL=\${CONFIG_SHELL-$SHELL}
11059 export SHELL
11060 _ASEOF
11061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11062 ## -------------------- ##
11063 ## M4sh Initialization. ##
11064 ## -------------------- ##
11065
11066 # Be more Bourne compatible
11067 DUALCASE=1; export DUALCASE # for MKS sh
11068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11069 emulate sh
11070 NULLCMD=:
11071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11072 # is contrary to our usage. Disable this feature.
11073 alias -g '${1+"$@"}'='"$@"'
11074 setopt NO_GLOB_SUBST
11075 else
11076 case `(set -o) 2>/dev/null` in #(
11077 *posix*) :
11078 set -o posix ;; #(
11079 *) :
11080 ;;
11081 esac
11082 fi
11083
11084
11085 as_nl='
11086 '
11087 export as_nl
11088 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11089 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11092 # Prefer a ksh shell builtin over an external printf program on Solaris,
11093 # but without wasting forks for bash or zsh.
11094 if test -z "$BASH_VERSION$ZSH_VERSION" \
11095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11096 as_echo='print -r --'
11097 as_echo_n='print -rn --'
11098 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11099 as_echo='printf %s\n'
11100 as_echo_n='printf %s'
11101 else
11102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11103 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11104 as_echo_n='/usr/ucb/echo -n'
11105 else
11106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11107 as_echo_n_body='eval
11108 arg=$1;
11109 case $arg in #(
11110 *"$as_nl"*)
11111 expr "X$arg" : "X\\(.*\\)$as_nl";
11112 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11113 esac;
11114 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11115 '
11116 export as_echo_n_body
11117 as_echo_n='sh -c $as_echo_n_body as_echo'
11118 fi
11119 export as_echo_body
11120 as_echo='sh -c $as_echo_body as_echo'
11121 fi
11122
11123 # The user is always right.
11124 if test "${PATH_SEPARATOR+set}" != set; then
11125 PATH_SEPARATOR=:
11126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11128 PATH_SEPARATOR=';'
11129 }
11130 fi
11131
11132
11133 # IFS
11134 # We need space, tab and new line, in precisely that order. Quoting is
11135 # there to prevent editors from complaining about space-tab.
11136 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11137 # splitting by setting IFS to empty value.)
11138 IFS=" "" $as_nl"
11139
11140 # Find who we are. Look in the path if we contain no directory separator.
11141 as_myself=
11142 case $0 in #((
11143 *[\\/]* ) as_myself=$0 ;;
11144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11146 do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11150 done
11151 IFS=$as_save_IFS
11152
11153 ;;
11154 esac
11155 # We did not find ourselves, most probably we were run as `sh COMMAND'
11156 # in which case we are not to be found in the path.
11157 if test "x$as_myself" = x; then
11158 as_myself=$0
11159 fi
11160 if test ! -f "$as_myself"; then
11161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11162 exit 1
11163 fi
11164
11165 # Unset variables that we do not need and which cause bugs (e.g. in
11166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11167 # suppresses any "Segmentation fault" message there. '((' could
11168 # trigger a bug in pdksh 5.2.14.
11169 for as_var in BASH_ENV ENV MAIL MAILPATH
11170 do eval test x\${$as_var+set} = xset \
11171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11172 done
11173 PS1='$ '
11174 PS2='> '
11175 PS4='+ '
11176
11177 # NLS nuisances.
11178 LC_ALL=C
11179 export LC_ALL
11180 LANGUAGE=C
11181 export LANGUAGE
11182
11183 # CDPATH.
11184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11185
11186
11187 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11188 # ----------------------------------------
11189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11191 # script with STATUS, using 1 if that was 0.
11192 as_fn_error ()
11193 {
11194 as_status=$1; test $as_status -eq 0 && as_status=1
11195 if test "$4"; then
11196 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11198 fi
11199 $as_echo "$as_me: error: $2" >&2
11200 as_fn_exit $as_status
11201 } # as_fn_error
11202
11203
11204 # as_fn_set_status STATUS
11205 # -----------------------
11206 # Set $? to STATUS, without forking.
11207 as_fn_set_status ()
11208 {
11209 return $1
11210 } # as_fn_set_status
11211
11212 # as_fn_exit STATUS
11213 # -----------------
11214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11215 as_fn_exit ()
11216 {
11217 set +e
11218 as_fn_set_status $1
11219 exit $1
11220 } # as_fn_exit
11221
11222 # as_fn_unset VAR
11223 # ---------------
11224 # Portably unset VAR.
11225 as_fn_unset ()
11226 {
11227 { eval $1=; unset $1;}
11228 }
11229 as_unset=as_fn_unset
11230 # as_fn_append VAR VALUE
11231 # ----------------------
11232 # Append the text in VALUE to the end of the definition contained in VAR. Take
11233 # advantage of any shell optimizations that allow amortized linear growth over
11234 # repeated appends, instead of the typical quadratic growth present in naive
11235 # implementations.
11236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11237 eval 'as_fn_append ()
11238 {
11239 eval $1+=\$2
11240 }'
11241 else
11242 as_fn_append ()
11243 {
11244 eval $1=\$$1\$2
11245 }
11246 fi # as_fn_append
11247
11248 # as_fn_arith ARG...
11249 # ------------------
11250 # Perform arithmetic evaluation on the ARGs, and store the result in the
11251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11252 # must be portable across $(()) and expr.
11253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11254 eval 'as_fn_arith ()
11255 {
11256 as_val=$(( $* ))
11257 }'
11258 else
11259 as_fn_arith ()
11260 {
11261 as_val=`expr "$@" || test $? -eq 1`
11262 }
11263 fi # as_fn_arith
11264
11265
11266 if expr a : '\(a\)' >/dev/null 2>&1 &&
11267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11268 as_expr=expr
11269 else
11270 as_expr=false
11271 fi
11272
11273 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11274 as_basename=basename
11275 else
11276 as_basename=false
11277 fi
11278
11279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11280 as_dirname=dirname
11281 else
11282 as_dirname=false
11283 fi
11284
11285 as_me=`$as_basename -- "$0" ||
11286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11287 X"$0" : 'X\(//\)$' \| \
11288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11289 $as_echo X/"$0" |
11290 sed '/^.*\/\([^/][^/]*\)\/*$/{
11291 s//\1/
11292 q
11293 }
11294 /^X\/\(\/\/\)$/{
11295 s//\1/
11296 q
11297 }
11298 /^X\/\(\/\).*/{
11299 s//\1/
11300 q
11301 }
11302 s/.*/./; q'`
11303
11304 # Avoid depending upon Character Ranges.
11305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11308 as_cr_digits='0123456789'
11309 as_cr_alnum=$as_cr_Letters$as_cr_digits
11310
11311 ECHO_C= ECHO_N= ECHO_T=
11312 case `echo -n x` in #(((((
11313 -n*)
11314 case `echo 'xy\c'` in
11315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11316 xy) ECHO_C='\c';;
11317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11318 ECHO_T=' ';;
11319 esac;;
11320 *)
11321 ECHO_N='-n';;
11322 esac
11323
11324 rm -f conf$$ conf$$.exe conf$$.file
11325 if test -d conf$$.dir; then
11326 rm -f conf$$.dir/conf$$.file
11327 else
11328 rm -f conf$$.dir
11329 mkdir conf$$.dir 2>/dev/null
11330 fi
11331 if (echo >conf$$.file) 2>/dev/null; then
11332 if ln -s conf$$.file conf$$ 2>/dev/null; then
11333 as_ln_s='ln -s'
11334 # ... but there are two gotchas:
11335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11337 # In both cases, we have to default to `cp -pR'.
11338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11339 as_ln_s='cp -pR'
11340 elif ln conf$$.file conf$$ 2>/dev/null; then
11341 as_ln_s=ln
11342 else
11343 as_ln_s='cp -pR'
11344 fi
11345 else
11346 as_ln_s='cp -pR'
11347 fi
11348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11349 rmdir conf$$.dir 2>/dev/null
11350
11351
11352 # as_fn_mkdir_p
11353 # -------------
11354 # Create "$as_dir" as a directory, including parents if necessary.
11355 as_fn_mkdir_p ()
11356 {
11357
11358 case $as_dir in #(
11359 -*) as_dir=./$as_dir;;
11360 esac
11361 test -d "$as_dir" || eval $as_mkdir_p || {
11362 as_dirs=
11363 while :; do
11364 case $as_dir in #(
11365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11366 *) as_qdir=$as_dir;;
11367 esac
11368 as_dirs="'$as_qdir' $as_dirs"
11369 as_dir=`$as_dirname -- "$as_dir" ||
11370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11371 X"$as_dir" : 'X\(//\)[^/]' \| \
11372 X"$as_dir" : 'X\(//\)$' \| \
11373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11374 $as_echo X"$as_dir" |
11375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11376 s//\1/
11377 q
11378 }
11379 /^X\(\/\/\)[^/].*/{
11380 s//\1/
11381 q
11382 }
11383 /^X\(\/\/\)$/{
11384 s//\1/
11385 q
11386 }
11387 /^X\(\/\).*/{
11388 s//\1/
11389 q
11390 }
11391 s/.*/./; q'`
11392 test -d "$as_dir" && break
11393 done
11394 test -z "$as_dirs" || eval "mkdir $as_dirs"
11395 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11396
11397
11398 } # as_fn_mkdir_p
11399 if mkdir -p . 2>/dev/null; then
11400 as_mkdir_p='mkdir -p "$as_dir"'
11401 else
11402 test -d ./-p && rmdir ./-p
11403 as_mkdir_p=false
11404 fi
11405
11406
11407 # as_fn_executable_p FILE
11408 # -----------------------
11409 # Test if FILE is an executable regular file.
11410 as_fn_executable_p ()
11411 {
11412 test -f "$1" && test -x "$1"
11413 } # as_fn_executable_p
11414 as_test_x='test -x'
11415 as_executable_p=as_fn_executable_p
11416
11417 # Sed expression to map a string onto a valid CPP name.
11418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11419
11420 # Sed expression to map a string onto a valid variable name.
11421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11422
11423
11424 exec 6>&1
11425 ## ----------------------------------- ##
11426 ## Main body of $CONFIG_STATUS script. ##
11427 ## ----------------------------------- ##
11428 _ASEOF
11429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11430
11431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11432 # Save the log message, to keep $0 and so on meaningful, and to
11433 # report actual input values of CONFIG_FILES etc. instead of their
11434 # values after options handling.
11435 ac_log="
11436 This file was extended by xmag $as_me 1.0.6, which was
11437 generated by GNU Autoconf 2.69. Invocation command line was
11438
11439 CONFIG_FILES = $CONFIG_FILES
11440 CONFIG_HEADERS = $CONFIG_HEADERS
11441 CONFIG_LINKS = $CONFIG_LINKS
11442 CONFIG_COMMANDS = $CONFIG_COMMANDS
11443 $ $0 $@
11444
11445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11446 "
11447
11448 _ACEOF
11449
11450 case $ac_config_files in *"
11451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11452 esac
11453
11454 case $ac_config_headers in *"
11455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11456 esac
11457
11458
11459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11460 # Files that config.status was made for.
11461 config_files="$ac_config_files"
11462 config_headers="$ac_config_headers"
11463 config_commands="$ac_config_commands"
11464
11465 _ACEOF
11466
11467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11468 ac_cs_usage="\
11469 \`$as_me' instantiates files and other configuration actions
11470 from templates according to the current configuration. Unless the files
11471 and actions are specified as TAGs, all are instantiated by default.
11472
11473 Usage: $0 [OPTION]... [TAG]...
11474
11475 -h, --help print this help, then exit
11476 -V, --version print version number and configuration settings, then exit
11477 --config print configuration, then exit
11478 -q, --quiet, --silent
11479 do not print progress messages
11480 -d, --debug don't remove temporary files
11481 --recheck update $as_me by reconfiguring in the same conditions
11482 --file=FILE[:TEMPLATE]
11483 instantiate the configuration file FILE
11484 --header=FILE[:TEMPLATE]
11485 instantiate the configuration header FILE
11486
11487 Configuration files:
11488 $config_files
11489
11490 Configuration headers:
11491 $config_headers
11492
11493 Configuration commands:
11494 $config_commands
11495
11496 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11497
11498 _ACEOF
11499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11500 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11501 ac_cs_version="\\
11502 xmag config.status 1.0.6
11503 configured by $0, generated by GNU Autoconf 2.69,
11504 with options \\"\$ac_cs_config\\"
11505
11506 Copyright (C) 2012 Free Software Foundation, Inc.
11507 This config.status script is free software; the Free Software Foundation
11508 gives unlimited permission to copy, distribute and modify it."
11509
11510 ac_pwd='$ac_pwd'
11511 srcdir='$srcdir'
11512 INSTALL='$INSTALL'
11513 MKDIR_P='$MKDIR_P'
11514 AWK='$AWK'
11515 test -n "\$AWK" || AWK=awk
11516 _ACEOF
11517
11518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519 # The default lists apply if the user does not specify any file.
11520 ac_need_defaults=:
11521 while test $# != 0
11522 do
11523 case $1 in
11524 --*=?*)
11525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11526 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11527 ac_shift=:
11528 ;;
11529 --*=)
11530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11531 ac_optarg=
11532 ac_shift=:
11533 ;;
11534 *)
11535 ac_option=$1
11536 ac_optarg=$2
11537 ac_shift=shift
11538 ;;
11539 esac
11540
11541 case $ac_option in
11542 # Handling of the options.
11543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11544 ac_cs_recheck=: ;;
11545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11546 $as_echo "$ac_cs_version"; exit ;;
11547 --config | --confi | --conf | --con | --co | --c )
11548 $as_echo "$ac_cs_config"; exit ;;
11549 --debug | --debu | --deb | --de | --d | -d )
11550 debug=: ;;
11551 --file | --fil | --fi | --f )
11552 $ac_shift
11553 case $ac_optarg in
11554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11555 '') as_fn_error $? "missing file argument" ;;
11556 esac
11557 as_fn_append CONFIG_FILES " '$ac_optarg'"
11558 ac_need_defaults=false;;
11559 --header | --heade | --head | --hea )
11560 $ac_shift
11561 case $ac_optarg in
11562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11563 esac
11564 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11565 ac_need_defaults=false;;
11566 --he | --h)
11567 # Conflict between --help and --header
11568 as_fn_error $? "ambiguous option: \`$1'
11569 Try \`$0 --help' for more information.";;
11570 --help | --hel | -h )
11571 $as_echo "$ac_cs_usage"; exit ;;
11572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11573 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11574 ac_cs_silent=: ;;
11575
11576 # This is an error.
11577 -*) as_fn_error $? "unrecognized option: \`$1'
11578 Try \`$0 --help' for more information." ;;
11579
11580 *) as_fn_append ac_config_targets " $1"
11581 ac_need_defaults=false ;;
11582
11583 esac
11584 shift
11585 done
11586
11587 ac_configure_extra_args=
11588
11589 if $ac_cs_silent; then
11590 exec 6>/dev/null
11591 ac_configure_extra_args="$ac_configure_extra_args --silent"
11592 fi
11593
11594 _ACEOF
11595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11596 if \$ac_cs_recheck; then
11597 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11598 shift
11599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11600 CONFIG_SHELL='$SHELL'
11601 export CONFIG_SHELL
11602 exec "\$@"
11603 fi
11604
11605 _ACEOF
11606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11607 exec 5>>config.log
11608 {
11609 echo
11610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11611 ## Running $as_me. ##
11612 _ASBOX
11613 $as_echo "$ac_log"
11614 } >&5
11615
11616 _ACEOF
11617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11618 #
11619 # INIT-COMMANDS
11620 #
11621 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11622
11623 _ACEOF
11624
11625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11626
11627 # Handling of arguments.
11628 for ac_config_target in $ac_config_targets
11629 do
11630 case $ac_config_target in
11631 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11632 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11634 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11635
11636 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11637 esac
11638 done
11639
11640
11641 # If the user did not use the arguments to specify the items to instantiate,
11642 # then the envvar interface is used. Set only those that are not.
11643 # We use the long form for the default assignment because of an extremely
11644 # bizarre bug on SunOS 4.1.3.
11645 if $ac_need_defaults; then
11646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11649 fi
11650
11651 # Have a temporary directory for convenience. Make it in the build tree
11652 # simply because there is no reason against having it here, and in addition,
11653 # creating and moving files from /tmp can sometimes cause problems.
11654 # Hook for its removal unless debugging.
11655 # Note that there is a small window in which the directory will not be cleaned:
11656 # after its creation but before its name has been assigned to `$tmp'.
11657 $debug ||
11658 {
11659 tmp= ac_tmp=
11660 trap 'exit_status=$?
11661 : "${ac_tmp:=$tmp}"
11662 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11663 ' 0
11664 trap 'as_fn_exit 1' 1 2 13 15
11665 }
11666 # Create a (secure) tmp directory for tmp files.
11667
11668 {
11669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11670 test -d "$tmp"
11671 } ||
11672 {
11673 tmp=./conf$$-$RANDOM
11674 (umask 077 && mkdir "$tmp")
11675 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11676 ac_tmp=$tmp
11677
11678 # Set up the scripts for CONFIG_FILES section.
11679 # No need to generate them if there are no CONFIG_FILES.
11680 # This happens for instance with `./config.status config.h'.
11681 if test -n "$CONFIG_FILES"; then
11682
11683
11684 ac_cr=`echo X | tr X '\015'`
11685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11686 # But we know of no other shell where ac_cr would be empty at this
11687 # point, so we can use a bashism as a fallback.
11688 if test "x$ac_cr" = x; then
11689 eval ac_cr=\$\'\\r\'
11690 fi
11691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11693 ac_cs_awk_cr='\\r'
11694 else
11695 ac_cs_awk_cr=$ac_cr
11696 fi
11697
11698 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11699 _ACEOF
11700
11701
11702 {
11703 echo "cat >conf$$subs.awk <<_ACEOF" &&
11704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11705 echo "_ACEOF"
11706 } >conf$$subs.sh ||
11707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11709 ac_delim='%!_!# '
11710 for ac_last_try in false false false false false :; do
11711 . ./conf$$subs.sh ||
11712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11713
11714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11715 if test $ac_delim_n = $ac_delim_num; then
11716 break
11717 elif $ac_last_try; then
11718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11719 else
11720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11721 fi
11722 done
11723 rm -f conf$$subs.sh
11724
11725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11727 _ACEOF
11728 sed -n '
11729 h
11730 s/^/S["/; s/!.*/"]=/
11731 p
11732 g
11733 s/^[^!]*!//
11734 :repl
11735 t repl
11736 s/'"$ac_delim"'$//
11737 t delim
11738 :nl
11739 h
11740 s/\(.\{148\}\)..*/\1/
11741 t more1
11742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11743 p
11744 n
11745 b repl
11746 :more1
11747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11748 p
11749 g
11750 s/.\{148\}//
11751 t nl
11752 :delim
11753 h
11754 s/\(.\{148\}\)..*/\1/
11755 t more2
11756 s/["\\]/\\&/g; s/^/"/; s/$/"/
11757 p
11758 b
11759 :more2
11760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11761 p
11762 g
11763 s/.\{148\}//
11764 t delim
11765 ' <conf$$subs.awk | sed '
11766 /^[^""]/{
11767 N
11768 s/\n//
11769 }
11770 ' >>$CONFIG_STATUS || ac_write_fail=1
11771 rm -f conf$$subs.awk
11772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11773 _ACAWK
11774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11775 for (key in S) S_is_set[key] = 1
11776 FS = ""
11777
11778 }
11779 {
11780 line = $ 0
11781 nfields = split(line, field, "@")
11782 substed = 0
11783 len = length(field[1])
11784 for (i = 2; i < nfields; i++) {
11785 key = field[i]
11786 keylen = length(key)
11787 if (S_is_set[key]) {
11788 value = S[key]
11789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11790 len += length(value) + length(field[++i])
11791 substed = 1
11792 } else
11793 len += 1 + keylen
11794 }
11795
11796 print line
11797 }
11798
11799 _ACAWK
11800 _ACEOF
11801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11804 else
11805 cat
11806 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11807 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11808 _ACEOF
11809
11810 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11811 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11812 # trailing colons and then remove the whole line if VPATH becomes empty
11813 # (actually we leave an empty line to preserve line numbers).
11814 if test "x$srcdir" = x.; then
11815 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11816 h
11817 s///
11818 s/^/:/
11819 s/[ ]*$/:/
11820 s/:\$(srcdir):/:/g
11821 s/:\${srcdir}:/:/g
11822 s/:@srcdir@:/:/g
11823 s/^:*//
11824 s/:*$//
11825 x
11826 s/\(=[ ]*\).*/\1/
11827 G
11828 s/\n//
11829 s/^[^=]*=[ ]*$//
11830 }'
11831 fi
11832
11833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11834 fi # test -n "$CONFIG_FILES"
11835
11836 # Set up the scripts for CONFIG_HEADERS section.
11837 # No need to generate them if there are no CONFIG_HEADERS.
11838 # This happens for instance with `./config.status Makefile'.
11839 if test -n "$CONFIG_HEADERS"; then
11840 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11841 BEGIN {
11842 _ACEOF
11843
11844 # Transform confdefs.h into an awk script `defines.awk', embedded as
11845 # here-document in config.status, that substitutes the proper values into
11846 # config.h.in to produce config.h.
11847
11848 # Create a delimiter string that does not exist in confdefs.h, to ease
11849 # handling of long lines.
11850 ac_delim='%!_!# '
11851 for ac_last_try in false false :; do
11852 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11853 if test -z "$ac_tt"; then
11854 break
11855 elif $ac_last_try; then
11856 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11857 else
11858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11859 fi
11860 done
11861
11862 # For the awk script, D is an array of macro values keyed by name,
11863 # likewise P contains macro parameters if any. Preserve backslash
11864 # newline sequences.
11865
11866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11867 sed -n '
11868 s/.\{148\}/&'"$ac_delim"'/g
11869 t rset
11870 :rset
11871 s/^[ ]*#[ ]*define[ ][ ]*/ /
11872 t def
11873 d
11874 :def
11875 s/\\$//
11876 t bsnl
11877 s/["\\]/\\&/g
11878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11879 D["\1"]=" \3"/p
11880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11881 d
11882 :bsnl
11883 s/["\\]/\\&/g
11884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11885 D["\1"]=" \3\\\\\\n"\\/p
11886 t cont
11887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11888 t cont
11889 d
11890 :cont
11891 n
11892 s/.\{148\}/&'"$ac_delim"'/g
11893 t clear
11894 :clear
11895 s/\\$//
11896 t bsnlc
11897 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11898 d
11899 :bsnlc
11900 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11901 b cont
11902 ' <confdefs.h | sed '
11903 s/'"$ac_delim"'/"\\\
11904 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11905
11906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11907 for (key in D) D_is_set[key] = 1
11908 FS = ""
11909 }
11910 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11911 line = \$ 0
11912 split(line, arg, " ")
11913 if (arg[1] == "#") {
11914 defundef = arg[2]
11915 mac1 = arg[3]
11916 } else {
11917 defundef = substr(arg[1], 2)
11918 mac1 = arg[2]
11919 }
11920 split(mac1, mac2, "(") #)
11921 macro = mac2[1]
11922 prefix = substr(line, 1, index(line, defundef) - 1)
11923 if (D_is_set[macro]) {
11924 # Preserve the white space surrounding the "#".
11925 print prefix "define", macro P[macro] D[macro]
11926 next
11927 } else {
11928 # Replace #undef with comments. This is necessary, for example,
11929 # in the case of _POSIX_SOURCE, which is predefined and required
11930 # on some systems where configure will not decide to define it.
11931 if (defundef == "undef") {
11932 print "/*", prefix defundef, macro, "*/"
11933 next
11934 }
11935 }
11936 }
11937 { print }
11938 _ACAWK
11939 _ACEOF
11940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11941 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11942 fi # test -n "$CONFIG_HEADERS"
11943
11944
11945 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11946 shift
11947 for ac_tag
11948 do
11949 case $ac_tag in
11950 :[FHLC]) ac_mode=$ac_tag; continue;;
11951 esac
11952 case $ac_mode$ac_tag in
11953 :[FHL]*:*);;
11954 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11955 :[FH]-) ac_tag=-:-;;
11956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11957 esac
11958 ac_save_IFS=$IFS
11959 IFS=:
11960 set x $ac_tag
11961 IFS=$ac_save_IFS
11962 shift
11963 ac_file=$1
11964 shift
11965
11966 case $ac_mode in
11967 :L) ac_source=$1;;
11968 :[FH])
11969 ac_file_inputs=
11970 for ac_f
11971 do
11972 case $ac_f in
11973 -) ac_f="$ac_tmp/stdin";;
11974 *) # Look for the file first in the build tree, then in the source tree
11975 # (if the path is not absolute). The absolute path cannot be DOS-style,
11976 # because $ac_f cannot contain `:'.
11977 test -f "$ac_f" ||
11978 case $ac_f in
11979 [\\/$]*) false;;
11980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11981 esac ||
11982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11983 esac
11984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11985 as_fn_append ac_file_inputs " '$ac_f'"
11986 done
11987
11988 # Let's still pretend it is `configure' which instantiates (i.e., don't
11989 # use $as_me), people would be surprised to read:
11990 # /* config.h. Generated by config.status. */
11991 configure_input='Generated from '`
11992 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11993 `' by configure.'
11994 if test x"$ac_file" != x-; then
11995 configure_input="$ac_file. $configure_input"
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11997 $as_echo "$as_me: creating $ac_file" >&6;}
11998 fi
11999 # Neutralize special characters interpreted by sed in replacement strings.
12000 case $configure_input in #(
12001 *\&* | *\|* | *\\* )
12002 ac_sed_conf_input=`$as_echo "$configure_input" |
12003 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12004 *) ac_sed_conf_input=$configure_input;;
12005 esac
12006
12007 case $ac_tag in
12008 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12010 esac
12011 ;;
12012 esac
12013
12014 ac_dir=`$as_dirname -- "$ac_file" ||
12015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12016 X"$ac_file" : 'X\(//\)[^/]' \| \
12017 X"$ac_file" : 'X\(//\)$' \| \
12018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12019 $as_echo X"$ac_file" |
12020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12021 s//\1/
12022 q
12023 }
12024 /^X\(\/\/\)[^/].*/{
12025 s//\1/
12026 q
12027 }
12028 /^X\(\/\/\)$/{
12029 s//\1/
12030 q
12031 }
12032 /^X\(\/\).*/{
12033 s//\1/
12034 q
12035 }
12036 s/.*/./; q'`
12037 as_dir="$ac_dir"; as_fn_mkdir_p
12038 ac_builddir=.
12039
12040 case "$ac_dir" in
12041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12042 *)
12043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12044 # A ".." for each directory in $ac_dir_suffix.
12045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12046 case $ac_top_builddir_sub in
12047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12049 esac ;;
12050 esac
12051 ac_abs_top_builddir=$ac_pwd
12052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12053 # for backward compatibility:
12054 ac_top_builddir=$ac_top_build_prefix
12055
12056 case $srcdir in
12057 .) # We are building in place.
12058 ac_srcdir=.
12059 ac_top_srcdir=$ac_top_builddir_sub
12060 ac_abs_top_srcdir=$ac_pwd ;;
12061 [\\/]* | ?:[\\/]* ) # Absolute name.
12062 ac_srcdir=$srcdir$ac_dir_suffix;
12063 ac_top_srcdir=$srcdir
12064 ac_abs_top_srcdir=$srcdir ;;
12065 *) # Relative name.
12066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12067 ac_top_srcdir=$ac_top_build_prefix$srcdir
12068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12069 esac
12070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12071
12072
12073 case $ac_mode in
12074 :F)
12075 #
12076 # CONFIG_FILE
12077 #
12078
12079 case $INSTALL in
12080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12082 esac
12083 ac_MKDIR_P=$MKDIR_P
12084 case $MKDIR_P in
12085 [\\/$]* | ?:[\\/]* ) ;;
12086 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12087 esac
12088 _ACEOF
12089
12090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12091 # If the template does not know about datarootdir, expand it.
12092 # FIXME: This hack should be removed a few years after 2.60.
12093 ac_datarootdir_hack=; ac_datarootdir_seen=
12094 ac_sed_dataroot='
12095 /datarootdir/ {
12096 p
12097 q
12098 }
12099 /@datadir@/p
12100 /@docdir@/p
12101 /@infodir@/p
12102 /@localedir@/p
12103 /@mandir@/p'
12104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12105 *datarootdir*) ac_datarootdir_seen=yes;;
12106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12109 _ACEOF
12110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12111 ac_datarootdir_hack='
12112 s&@datadir@&$datadir&g
12113 s&@docdir@&$docdir&g
12114 s&@infodir@&$infodir&g
12115 s&@localedir@&$localedir&g
12116 s&@mandir@&$mandir&g
12117 s&\\\${datarootdir}&$datarootdir&g' ;;
12118 esac
12119 _ACEOF
12120
12121 # Neutralize VPATH when `$srcdir' = `.'.
12122 # Shell code in configure.ac might set extrasub.
12123 # FIXME: do we really want to maintain this feature?
12124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12125 ac_sed_extra="$ac_vpsub
12126 $extrasub
12127 _ACEOF
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129 :t
12130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12131 s|@configure_input@|$ac_sed_conf_input|;t t
12132 s&@top_builddir@&$ac_top_builddir_sub&;t t
12133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12134 s&@srcdir@&$ac_srcdir&;t t
12135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12136 s&@top_srcdir@&$ac_top_srcdir&;t t
12137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12138 s&@builddir@&$ac_builddir&;t t
12139 s&@abs_builddir@&$ac_abs_builddir&;t t
12140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12141 s&@INSTALL@&$ac_INSTALL&;t t
12142 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12143 $ac_datarootdir_hack
12144 "
12145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12147
12148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12151 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12153 which seems to be undefined. Please make sure it is defined" >&5
12154 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12155 which seems to be undefined. Please make sure it is defined" >&2;}
12156
12157 rm -f "$ac_tmp/stdin"
12158 case $ac_file in
12159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12161 esac \
12162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12163 ;;
12164 :H)
12165 #
12166 # CONFIG_HEADER
12167 #
12168 if test x"$ac_file" != x-; then
12169 {
12170 $as_echo "/* $configure_input */" \
12171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12172 } >"$ac_tmp/config.h" \
12173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12174 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12176 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12177 else
12178 rm -f "$ac_file"
12179 mv "$ac_tmp/config.h" "$ac_file" \
12180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12181 fi
12182 else
12183 $as_echo "/* $configure_input */" \
12184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12185 || as_fn_error $? "could not create -" "$LINENO" 5
12186 fi
12187 # Compute "$ac_file"'s index in $config_headers.
12188 _am_arg="$ac_file"
12189 _am_stamp_count=1
12190 for _am_header in $config_headers :; do
12191 case $_am_header in
12192 $_am_arg | $_am_arg:* )
12193 break ;;
12194 * )
12195 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12196 esac
12197 done
12198 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12199 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12200 X"$_am_arg" : 'X\(//\)[^/]' \| \
12201 X"$_am_arg" : 'X\(//\)$' \| \
12202 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12203 $as_echo X"$_am_arg" |
12204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12205 s//\1/
12206 q
12207 }
12208 /^X\(\/\/\)[^/].*/{
12209 s//\1/
12210 q
12211 }
12212 /^X\(\/\/\)$/{
12213 s//\1/
12214 q
12215 }
12216 /^X\(\/\).*/{
12217 s//\1/
12218 q
12219 }
12220 s/.*/./; q'`/stamp-h$_am_stamp_count
12221 ;;
12222
12223 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12224 $as_echo "$as_me: executing $ac_file commands" >&6;}
12225 ;;
12226 esac
12227
12228
12229 case $ac_file$ac_mode in
12230 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12231 # Older Autoconf quotes --file arguments for eval, but not when files
12232 # are listed without --file. Let's play safe and only enable the eval
12233 # if we detect the quoting.
12234 case $CONFIG_FILES in
12235 *\'*) eval set x "$CONFIG_FILES" ;;
12236 *) set x $CONFIG_FILES ;;
12237 esac
12238 shift
12239 for mf
12240 do
12241 # Strip MF so we end up with the name of the file.
12242 mf=`echo "$mf" | sed -e 's/:.*$//'`
12243 # Check whether this is an Automake generated Makefile or not.
12244 # We used to match only the files named 'Makefile.in', but
12245 # some people rename them; so instead we look at the file content.
12246 # Grep'ing the first line is not enough: some people post-process
12247 # each Makefile.in and add a new line on top of each file to say so.
12248 # Grep'ing the whole file is not good either: AIX grep has a line
12249 # limit of 2048, but all sed's we know have understand at least 4000.
12250 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12251 dirpart=`$as_dirname -- "$mf" ||
12252 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253 X"$mf" : 'X\(//\)[^/]' \| \
12254 X"$mf" : 'X\(//\)$' \| \
12255 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12256 $as_echo X"$mf" |
12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12258 s//\1/
12259 q
12260 }
12261 /^X\(\/\/\)[^/].*/{
12262 s//\1/
12263 q
12264 }
12265 /^X\(\/\/\)$/{
12266 s//\1/
12267 q
12268 }
12269 /^X\(\/\).*/{
12270 s//\1/
12271 q
12272 }
12273 s/.*/./; q'`
12274 else
12275 continue
12276 fi
12277 # Extract the definition of DEPDIR, am__include, and am__quote
12278 # from the Makefile without running 'make'.
12279 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12280 test -z "$DEPDIR" && continue
12281 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12282 test -z "$am__include" && continue
12283 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12284 # Find all dependency output files, they are included files with
12285 # $(DEPDIR) in their names. We invoke sed twice because it is the
12286 # simplest approach to changing $(DEPDIR) to its actual value in the
12287 # expansion.
12288 for file in `sed -n "
12289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12291 # Make sure the directory exists.
12292 test -f "$dirpart/$file" && continue
12293 fdir=`$as_dirname -- "$file" ||
12294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12295 X"$file" : 'X\(//\)[^/]' \| \
12296 X"$file" : 'X\(//\)$' \| \
12297 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12298 $as_echo X"$file" |
12299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12300 s//\1/
12301 q
12302 }
12303 /^X\(\/\/\)[^/].*/{
12304 s//\1/
12305 q
12306 }
12307 /^X\(\/\/\)$/{
12308 s//\1/
12309 q
12310 }
12311 /^X\(\/\).*/{
12312 s//\1/
12313 q
12314 }
12315 s/.*/./; q'`
12316 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12317 # echo "creating $dirpart/$file"
12318 echo '# dummy' > "$dirpart/$file"
12319 done
12320 done
12321 }
12322 ;;
12323
12324 esac
12325 done # for ac_tag
12326
12327
12328 as_fn_exit 0
12329 _ACEOF
12330 ac_clean_files=$ac_clean_files_save
12331
12332 test $ac_write_fail = 0 ||
12333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12334
12335
12336 # configure is writing to config.log, and then calls config.status.
12337 # config.status does its own redirection, appending to config.log.
12338 # Unfortunately, on DOS this fails, as config.log is still kept open
12339 # by configure, so config.status won't be able to write to it; its
12340 # output is simply discarded. So we exec the FD to /dev/null,
12341 # effectively closing config.log, so it can be properly (re)opened and
12342 # appended to by config.status. When coming back to configure, we
12343 # need to make the FD available again.
12344 if test "$no_create" != yes; then
12345 ac_cs_success=:
12346 ac_config_status_args=
12347 test "$silent" = yes &&
12348 ac_config_status_args="$ac_config_status_args --quiet"
12349 exec 5>/dev/null
12350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12351 exec 5>>config.log
12352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12353 # would make configure fail if this is the last instruction.
12354 $ac_cs_success || as_fn_exit 1
12355 fi
12356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12359 fi
12360
12361