configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xcursor-themes 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/data/cursors/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/data/cursors/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xcursor-themes'
583 PACKAGE_TARNAME='xcursor-themes'
584 PACKAGE_VERSION='1.0.6'
585 PACKAGE_STRING='xcursor-themes 1.0.6'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/data/cursors/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 HANDHELDS_FALSE
631 HANDHELDS_TRUE
632 REDGLASS_FALSE
633 REDGLASS_TRUE
634 WHITEGLASS_FALSE
635 WHITEGLASS_TRUE
636 cursordir
637 ICONDEFS_LIBS
638 ICONDEFS_CFLAGS
639 XCURSORGEN
640 LN_S
641 MAN_SUBSTS
642 XORG_MAN_PAGE
643 ADMIN_MAN_DIR
644 DRIVER_MAN_DIR
645 MISC_MAN_DIR
646 FILE_MAN_DIR
647 LIB_MAN_DIR
648 APP_MAN_DIR
649 ADMIN_MAN_SUFFIX
650 DRIVER_MAN_SUFFIX
651 MISC_MAN_SUFFIX
652 FILE_MAN_SUFFIX
653 LIB_MAN_SUFFIX
654 APP_MAN_SUFFIX
655 SED
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 INSTALL_CMD
665 PKG_CONFIG_LIBDIR
666 PKG_CONFIG_PATH
667 PKG_CONFIG
668 CHANGELOG_CMD
669 STRICT_CFLAGS
670 CWARNFLAGS
671 BASE_CFLAGS
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_dependency_tracking
762 enable_selective_werror
763 enable_strict_compilation
764 with_cursordir
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP
775 PKG_CONFIG
776 PKG_CONFIG_PATH
777 PKG_CONFIG_LIBDIR
778 ICONDEFS_CFLAGS
779 ICONDEFS_LIBS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures xcursor-themes 1.0.6 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/xcursor-themes]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of xcursor-themes 1.0.6:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --disable-selective-werror
1405 Turn off selective compiler errors. (default:
1406 enabled)
1407 --enable-strict-compilation
1408 Enable all warnings from compiler and make them
1409 errors (default: disabled)
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-cursordir=<pathname>
1415 specify directory for cursor files (default is
1416 autodetected)
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CPP C preprocessor
1427 PKG_CONFIG path to pkg-config utility
1428 PKG_CONFIG_PATH
1429 directories to add to pkg-config's search path
1430 PKG_CONFIG_LIBDIR
1431 path overriding pkg-config's built-in search path
1432 ICONDEFS_CFLAGS
1433 C compiler flags for ICONDEFS, overriding pkg-config
1434 ICONDEFS_LIBS
1435 linker flags for ICONDEFS, overriding pkg-config
1436
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1439
1440 Report bugs to <https://gitlab.freedesktop.org/xorg/data/cursors/issues>.
1441 _ACEOF
1442 ac_status=$?
1443 fi
1444
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 continue
1451 ac_builddir=.
1452
1453 case "$ac_dir" in
1454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *)
1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 esac ;;
1463 esac
1464 ac_abs_top_builddir=$ac_pwd
1465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466 # for backward compatibility:
1467 ac_top_builddir=$ac_top_build_prefix
1468
1469 case $srcdir in
1470 .) # We are building in place.
1471 ac_srcdir=.
1472 ac_top_srcdir=$ac_top_builddir_sub
1473 ac_abs_top_srcdir=$ac_pwd ;;
1474 [\\/]* | ?:[\\/]* ) # Absolute name.
1475 ac_srcdir=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir=$srcdir
1477 ac_abs_top_srcdir=$srcdir ;;
1478 *) # Relative name.
1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 esac
1483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485 cd "$ac_dir" || { ac_status=$?; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1493 else
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 fi || ac_status=$?
1496 cd "$ac_pwd" || { ac_status=$?; break; }
1497 done
1498 fi
1499
1500 test -n "$ac_init_help" && exit $ac_status
1501 if $ac_init_version; then
1502 cat <<\_ACEOF
1503 xcursor-themes configure 1.0.6
1504 generated by GNU Autoconf 2.69
1505
1506 Copyright (C) 2012 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1509 _ACEOF
1510 exit
1511 fi
1512
1513 ## ------------------------ ##
1514 ## Autoconf initialization. ##
1515 ## ------------------------ ##
1516
1517 # ac_fn_c_try_compile LINENO
1518 # --------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_compile ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_compile
1554
1555 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1556 # ---------------------------------------------
1557 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1558 # accordingly.
1559 ac_fn_c_check_decl ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 as_decl_name=`echo $2|sed 's/ *(.*//'`
1563 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1565 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1566 if eval \${$3+:} false; then :
1567 $as_echo_n "(cached) " >&6
1568 else
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1571 $4
1572 int
1573 main ()
1574 {
1575 #ifndef $as_decl_name
1576 #ifdef __cplusplus
1577 (void) $as_decl_use;
1578 #else
1579 (void) $as_decl_name;
1580 #endif
1581 #endif
1582
1583 ;
1584 return 0;
1585 }
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 eval "$3=yes"
1589 else
1590 eval "$3=no"
1591 fi
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 fi
1594 eval ac_res=\$$3
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598
1599 } # ac_fn_c_check_decl
1600
1601 # ac_fn_c_try_cpp LINENO
1602 # ----------------------
1603 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_cpp ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } > conftest.i && {
1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 }; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632 fi
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_cpp
1637
1638 # ac_fn_c_try_run LINENO
1639 # ----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641 # that executables *can* be run.
1642 ac_fn_c_try_run ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_link"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>&5
1653 ac_status=$?
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1656 { { case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_try") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; }; }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: program exited with status $ac_status" >&5
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=$ac_status
1673 fi
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_run
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1691 else
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 eval "$3=yes"
1699 else
1700 eval "$3=no"
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_compile
1710
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_link ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 test -x conftest$ac_exeext
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746 fi
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_link
1756 cat >config.log <<_ACEOF
1757 This file contains any messages produced by compilers while
1758 running configure, to aid debugging if configure makes a mistake.
1759
1760 It was created by xcursor-themes $as_me 1.0.6, which was
1761 generated by GNU Autoconf 2.69. Invocation command line was
1762
1763 $ $0 $@
1764
1765 _ACEOF
1766 exec 5>>config.log
1767 {
1768 cat <<_ASUNAME
1769 ## --------- ##
1770 ## Platform. ##
1771 ## --------- ##
1772
1773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1774 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1775 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1776 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1777 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1778
1779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1780 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1781
1782 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1783 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1785 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1786 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1787 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1788 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1789
1790 _ASUNAME
1791
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 $as_echo "PATH: $as_dir"
1798 done
1799 IFS=$as_save_IFS
1800
1801 } >&5
1802
1803 cat >&5 <<_ACEOF
1804
1805
1806 ## ----------- ##
1807 ## Core tests. ##
1808 ## ----------- ##
1809
1810 _ACEOF
1811
1812
1813 # Keep a trace of the command line.
1814 # Strip out --no-create and --no-recursion so they do not pile up.
1815 # Strip out --silent because we don't want to record it for future runs.
1816 # Also quote any args containing shell meta-characters.
1817 # Make two passes to allow for proper duplicate-argument suppression.
1818 ac_configure_args=
1819 ac_configure_args0=
1820 ac_configure_args1=
1821 ac_must_keep_next=false
1822 for ac_pass in 1 2
1823 do
1824 for ac_arg
1825 do
1826 case $ac_arg in
1827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1829 | -silent | --silent | --silen | --sile | --sil)
1830 continue ;;
1831 *\'*)
1832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 esac
1834 case $ac_pass in
1835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1836 2)
1837 as_fn_append ac_configure_args1 " '$ac_arg'"
1838 if test $ac_must_keep_next = true; then
1839 ac_must_keep_next=false # Got value, back to normal.
1840 else
1841 case $ac_arg in
1842 *=* | --config-cache | -C | -disable-* | --disable-* \
1843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1845 | -with-* | --with-* | -without-* | --without-* | --x)
1846 case "$ac_configure_args0 " in
1847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1848 esac
1849 ;;
1850 -* ) ac_must_keep_next=true ;;
1851 esac
1852 fi
1853 as_fn_append ac_configure_args " '$ac_arg'"
1854 ;;
1855 esac
1856 done
1857 done
1858 { ac_configure_args0=; unset ac_configure_args0;}
1859 { ac_configure_args1=; unset ac_configure_args1;}
1860
1861 # When interrupted or exit'd, cleanup temporary files, and complete
1862 # config.log. We remove comments because anyway the quotes in there
1863 # would cause problems or look ugly.
1864 # WARNING: Use '\'' to represent an apostrophe within the trap.
1865 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1866 trap 'exit_status=$?
1867 # Save into config.log some information that might help in debugging.
1868 {
1869 echo
1870
1871 $as_echo "## ---------------- ##
1872 ## Cache variables. ##
1873 ## ---------------- ##"
1874 echo
1875 # The following way of writing the cache mishandles newlines in values,
1876 (
1877 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1878 eval ac_val=\$$ac_var
1879 case $ac_val in #(
1880 *${as_nl}*)
1881 case $ac_var in #(
1882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1884 esac
1885 case $ac_var in #(
1886 _ | IFS | as_nl) ;; #(
1887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1888 *) { eval $ac_var=; unset $ac_var;} ;;
1889 esac ;;
1890 esac
1891 done
1892 (set) 2>&1 |
1893 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1894 *${as_nl}ac_space=\ *)
1895 sed -n \
1896 "s/'\''/'\''\\\\'\'''\''/g;
1897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1898 ;; #(
1899 *)
1900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1901 ;;
1902 esac |
1903 sort
1904 )
1905 echo
1906
1907 $as_echo "## ----------------- ##
1908 ## Output variables. ##
1909 ## ----------------- ##"
1910 echo
1911 for ac_var in $ac_subst_vars
1912 do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 $as_echo "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1920
1921 if test -n "$ac_subst_files"; then
1922 $as_echo "## ------------------- ##
1923 ## File substitutions. ##
1924 ## ------------------- ##"
1925 echo
1926 for ac_var in $ac_subst_files
1927 do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in
1930 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931 esac
1932 $as_echo "$ac_var='\''$ac_val'\''"
1933 done | sort
1934 echo
1935 fi
1936
1937 if test -s confdefs.h; then
1938 $as_echo "## ----------- ##
1939 ## confdefs.h. ##
1940 ## ----------- ##"
1941 echo
1942 cat confdefs.h
1943 echo
1944 fi
1945 test "$ac_signal" != 0 &&
1946 $as_echo "$as_me: caught signal $ac_signal"
1947 $as_echo "$as_me: exit $exit_status"
1948 } >&5
1949 rm -f core *.core core.conftest.* &&
1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1951 exit $exit_status
1952 ' 0
1953 for ac_signal in 1 2 13 15; do
1954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1955 done
1956 ac_signal=0
1957
1958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1959 rm -f -r conftest* confdefs.h
1960
1961 $as_echo "/* confdefs.h */" > confdefs.h
1962
1963 # Predefined preprocessor variables.
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_NAME "$PACKAGE_NAME"
1967 _ACEOF
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1971 _ACEOF
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1975 _ACEOF
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_STRING "$PACKAGE_STRING"
1979 _ACEOF
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1983 _ACEOF
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_URL "$PACKAGE_URL"
1987 _ACEOF
1988
1989
1990 # Let the site file select an alternate cache file if it wants to.
1991 # Prefer an explicitly selected file to automatically selected ones.
1992 ac_site_file1=NONE
1993 ac_site_file2=NONE
1994 if test -n "$CONFIG_SITE"; then
1995 # We do not want a PATH search for config.site.
1996 case $CONFIG_SITE in #((
1997 -*) ac_site_file1=./$CONFIG_SITE;;
1998 */*) ac_site_file1=$CONFIG_SITE;;
1999 *) ac_site_file1=./$CONFIG_SITE;;
2000 esac
2001 elif test "x$prefix" != xNONE; then
2002 ac_site_file1=$prefix/share/config.site
2003 ac_site_file2=$prefix/etc/config.site
2004 else
2005 ac_site_file1=$ac_default_prefix/share/config.site
2006 ac_site_file2=$ac_default_prefix/etc/config.site
2007 fi
2008 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2009 do
2010 test "x$ac_site_file" = xNONE && continue
2011 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2014 sed 's/^/| /' "$ac_site_file" >&5
2015 . "$ac_site_file" \
2016 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018 as_fn_error $? "failed to load site script $ac_site_file
2019 See \`config.log' for more details" "$LINENO" 5; }
2020 fi
2021 done
2022
2023 if test -r "$cache_file"; then
2024 # Some versions of bash will fail to source /dev/null (special files
2025 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2026 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2028 $as_echo "$as_me: loading cache $cache_file" >&6;}
2029 case $cache_file in
2030 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2031 *) . "./$cache_file";;
2032 esac
2033 fi
2034 else
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2036 $as_echo "$as_me: creating cache $cache_file" >&6;}
2037 >$cache_file
2038 fi
2039
2040 # Check that the precious variables saved in the cache have kept the same
2041 # value.
2042 ac_cache_corrupted=false
2043 for ac_var in $ac_precious_vars; do
2044 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2045 eval ac_new_set=\$ac_env_${ac_var}_set
2046 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2047 eval ac_new_val=\$ac_env_${ac_var}_value
2048 case $ac_old_set,$ac_new_set in
2049 set,)
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2051 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2052 ac_cache_corrupted=: ;;
2053 ,set)
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2055 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2056 ac_cache_corrupted=: ;;
2057 ,);;
2058 *)
2059 if test "x$ac_old_val" != "x$ac_new_val"; then
2060 # differences in whitespace do not lead to failure.
2061 ac_old_val_w=`echo x $ac_old_val`
2062 ac_new_val_w=`echo x $ac_new_val`
2063 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2065 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2066 ac_cache_corrupted=:
2067 else
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2069 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2070 eval $ac_var=\$ac_old_val
2071 fi
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2073 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2075 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2076 fi;;
2077 esac
2078 # Pass precious variables to config.status.
2079 if test "$ac_new_set" = set; then
2080 case $ac_new_val in
2081 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2082 *) ac_arg=$ac_var=$ac_new_val ;;
2083 esac
2084 case " $ac_configure_args " in
2085 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2086 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2087 esac
2088 fi
2089 done
2090 if $ac_cache_corrupted; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2094 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2095 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2096 fi
2097 ## -------------------- ##
2098 ## Main body of script. ##
2099 ## -------------------- ##
2100
2101 ac_ext=c
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106
2107
2108
2109
2110 # Initialize Automake
2111 am__api_version='1.15'
2112
2113 ac_aux_dir=
2114 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2115 if test -f "$ac_dir/install-sh"; then
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/install-sh -c"
2118 break
2119 elif test -f "$ac_dir/install.sh"; then
2120 ac_aux_dir=$ac_dir
2121 ac_install_sh="$ac_aux_dir/install.sh -c"
2122 break
2123 elif test -f "$ac_dir/shtool"; then
2124 ac_aux_dir=$ac_dir
2125 ac_install_sh="$ac_aux_dir/shtool install -c"
2126 break
2127 fi
2128 done
2129 if test -z "$ac_aux_dir"; then
2130 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2131 fi
2132
2133 # These three variables are undocumented and unsupported,
2134 # and are intended to be withdrawn in a future Autoconf release.
2135 # They can cause serious problems if a builder's source tree is in a directory
2136 # whose full name contains unusual characters.
2137 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2138 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2139 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2140
2141
2142 # Find a good install program. We prefer a C program (faster),
2143 # so one script is as good as another. But avoid the broken or
2144 # incompatible versions:
2145 # SysV /etc/install, /usr/sbin/install
2146 # SunOS /usr/etc/install
2147 # IRIX /sbin/install
2148 # AIX /bin/install
2149 # AmigaOS /C/install, which installs bootblocks on floppy discs
2150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153 # OS/2's system install, which has a completely different semantic
2154 # ./install, which can be erroneously created by make from ./install.sh.
2155 # Reject install programs that cannot install multiple files.
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2157 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2158 if test -z "$INSTALL"; then
2159 if ${ac_cv_path_install+:} false; then :
2160 $as_echo_n "(cached) " >&6
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 # Account for people who put trailing slashes in PATH elements.
2168 case $as_dir/ in #((
2169 ./ | .// | /[cC]/* | \
2170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2171 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2172 /usr/ucb/* ) ;;
2173 *)
2174 # OSF1 and SCO ODT 3.0 have their own names for install.
2175 # Don't use installbsd from OSF since it installs stuff as root
2176 # by default.
2177 for ac_prog in ginstall scoinst install; do
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2180 if test $ac_prog = install &&
2181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182 # AIX install. It has an incompatible calling convention.
2183 :
2184 elif test $ac_prog = install &&
2185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186 # program-specific install script used by HP pwplus--don't use.
2187 :
2188 else
2189 rm -rf conftest.one conftest.two conftest.dir
2190 echo one > conftest.one
2191 echo two > conftest.two
2192 mkdir conftest.dir
2193 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2194 test -s conftest.one && test -s conftest.two &&
2195 test -s conftest.dir/conftest.one &&
2196 test -s conftest.dir/conftest.two
2197 then
2198 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2199 break 3
2200 fi
2201 fi
2202 fi
2203 done
2204 done
2205 ;;
2206 esac
2207
2208 done
2209 IFS=$as_save_IFS
2210
2211 rm -rf conftest.one conftest.two conftest.dir
2212
2213 fi
2214 if test "${ac_cv_path_install+set}" = set; then
2215 INSTALL=$ac_cv_path_install
2216 else
2217 # As a last resort, use the slow shell script. Don't cache a
2218 # value for INSTALL within a source directory, because that will
2219 # break other packages using the cache if that directory is
2220 # removed, or if the value is a relative name.
2221 INSTALL=$ac_install_sh
2222 fi
2223 fi
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2225 $as_echo "$INSTALL" >&6; }
2226
2227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2228 # It thinks the first close brace ends the variable substitution.
2229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2230
2231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2232
2233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2234
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2236 $as_echo_n "checking whether build environment is sane... " >&6; }
2237 # Reject unsafe characters in $srcdir or the absolute working directory
2238 # name. Accept space and tab only in the latter.
2239 am_lf='
2240 '
2241 case `pwd` in
2242 *[\\\"\#\$\&\'\`$am_lf]*)
2243 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2244 esac
2245 case $srcdir in
2246 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2247 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2248 esac
2249
2250 # Do 'set' in a subshell so we don't clobber the current shell's
2251 # arguments. Must try -L first in case configure is actually a
2252 # symlink; some systems play weird games with the mod time of symlinks
2253 # (eg FreeBSD returns the mod time of the symlink's containing
2254 # directory).
2255 if (
2256 am_has_slept=no
2257 for am_try in 1 2; do
2258 echo "timestamp, slept: $am_has_slept" > conftest.file
2259 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2260 if test "$*" = "X"; then
2261 # -L didn't work.
2262 set X `ls -t "$srcdir/configure" conftest.file`
2263 fi
2264 if test "$*" != "X $srcdir/configure conftest.file" \
2265 && test "$*" != "X conftest.file $srcdir/configure"; then
2266
2267 # If neither matched, then we have a broken ls. This can happen
2268 # if, for instance, CONFIG_SHELL is bash and it inherits a
2269 # broken ls alias from the environment. This has actually
2270 # happened. Such a system could not be considered "sane".
2271 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2272 alias in your environment" "$LINENO" 5
2273 fi
2274 if test "$2" = conftest.file || test $am_try -eq 2; then
2275 break
2276 fi
2277 # Just in case.
2278 sleep 1
2279 am_has_slept=yes
2280 done
2281 test "$2" = conftest.file
2282 )
2283 then
2284 # Ok.
2285 :
2286 else
2287 as_fn_error $? "newly created file is older than distributed files!
2288 Check your system clock" "$LINENO" 5
2289 fi
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2291 $as_echo "yes" >&6; }
2292 # If we didn't sleep, we still need to ensure time stamps of config.status and
2293 # generated files are strictly newer.
2294 am_sleep_pid=
2295 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2296 ( sleep 1 ) &
2297 am_sleep_pid=$!
2298 fi
2299
2300 rm -f conftest.file
2301
2302 test "$program_prefix" != NONE &&
2303 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2304 # Use a double $ so make ignores it.
2305 test "$program_suffix" != NONE &&
2306 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2307 # Double any \ or $.
2308 # By default was `s,x,x', remove it if useless.
2309 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2310 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2311
2312 # Expand $ac_aux_dir to an absolute path.
2313 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2314
2315 if test x"${MISSING+set}" != xset; then
2316 case $am_aux_dir in
2317 *\ * | *\ *)
2318 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2319 *)
2320 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2321 esac
2322 fi
2323 # Use eval to expand $SHELL
2324 if eval "$MISSING --is-lightweight"; then
2325 am_missing_run="$MISSING "
2326 else
2327 am_missing_run=
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2329 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2330 fi
2331
2332 if test x"${install_sh+set}" != xset; then
2333 case $am_aux_dir in
2334 *\ * | *\ *)
2335 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2336 *)
2337 install_sh="\${SHELL} $am_aux_dir/install-sh"
2338 esac
2339 fi
2340
2341 # Installed binaries are usually stripped using 'strip' when the user
2342 # run "make install-strip". However 'strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the 'STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350 $as_echo_n "checking for $ac_word... " >&6; }
2351 if ${ac_cv_prog_STRIP+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2377 $as_echo "$STRIP" >&6; }
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380 $as_echo "no" >&6; }
2381 fi
2382
2383
2384 fi
2385 if test -z "$ac_cv_prog_STRIP"; then
2386 ac_ct_STRIP=$STRIP
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390 $as_echo_n "checking for $ac_word... " >&6; }
2391 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2417 $as_echo "$ac_ct_STRIP" >&6; }
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2421 fi
2422
2423 if test "x$ac_ct_STRIP" = x; then
2424 STRIP=":"
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432 STRIP=$ac_ct_STRIP
2433 fi
2434 else
2435 STRIP="$ac_cv_prog_STRIP"
2436 fi
2437
2438 fi
2439 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2440
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2442 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2443 if test -z "$MKDIR_P"; then
2444 if ${ac_cv_path_mkdir+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2449 do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_prog in mkdir gmkdir; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2455 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2456 'mkdir (GNU coreutils) '* | \
2457 'mkdir (coreutils) '* | \
2458 'mkdir (fileutils) '4.1*)
2459 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2460 break 3;;
2461 esac
2462 done
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468
2469 test -d ./--version && rmdir ./--version
2470 if test "${ac_cv_path_mkdir+set}" = set; then
2471 MKDIR_P="$ac_cv_path_mkdir -p"
2472 else
2473 # As a last resort, use the slow shell script. Don't cache a
2474 # value for MKDIR_P within a source directory, because that will
2475 # break other packages using the cache if that directory is
2476 # removed, or if the value is a relative name.
2477 MKDIR_P="$ac_install_sh -d"
2478 fi
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2481 $as_echo "$MKDIR_P" >&6; }
2482
2483 for ac_prog in gawk mawk nawk awk
2484 do
2485 # Extract the first word of "$ac_prog", so it can be a program name with args.
2486 set dummy $ac_prog; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_AWK+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$AWK"; then
2493 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 ac_cv_prog_AWK="$ac_prog"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 AWK=$ac_cv_prog_AWK
2513 if test -n "$AWK"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2515 $as_echo "$AWK" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521
2522 test -n "$AWK" && break
2523 done
2524
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2526 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2527 set x ${MAKE-make}
2528 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2529 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 cat >conftest.make <<\_ACEOF
2533 SHELL = /bin/sh
2534 all:
2535 @echo '@@@%%%=$(MAKE)=@@@%%%'
2536 _ACEOF
2537 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2539 *@@@%%%=?*=@@@%%%*)
2540 eval ac_cv_prog_make_${ac_make}_set=yes;;
2541 *)
2542 eval ac_cv_prog_make_${ac_make}_set=no;;
2543 esac
2544 rm -f conftest.make
2545 fi
2546 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2548 $as_echo "yes" >&6; }
2549 SET_MAKE=
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 SET_MAKE="MAKE=${MAKE-make}"
2554 fi
2555
2556 rm -rf .tst 2>/dev/null
2557 mkdir .tst 2>/dev/null
2558 if test -d .tst; then
2559 am__leading_dot=.
2560 else
2561 am__leading_dot=_
2562 fi
2563 rmdir .tst 2>/dev/null
2564
2565 # Check whether --enable-silent-rules was given.
2566 if test "${enable_silent_rules+set}" = set; then :
2567 enableval=$enable_silent_rules;
2568 fi
2569
2570 case $enable_silent_rules in # (((
2571 yes) AM_DEFAULT_VERBOSITY=0;;
2572 no) AM_DEFAULT_VERBOSITY=1;;
2573 *) AM_DEFAULT_VERBOSITY=1;;
2574 esac
2575 am_make=${MAKE-make}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2577 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2578 if ${am_cv_make_support_nested_variables+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 if $as_echo 'TRUE=$(BAR$(V))
2582 BAR0=false
2583 BAR1=true
2584 V=1
2585 am__doit:
2586 @$(TRUE)
2587 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2588 am_cv_make_support_nested_variables=yes
2589 else
2590 am_cv_make_support_nested_variables=no
2591 fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2594 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2595 if test $am_cv_make_support_nested_variables = yes; then
2596 AM_V='$(V)'
2597 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2598 else
2599 AM_V=$AM_DEFAULT_VERBOSITY
2600 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2601 fi
2602 AM_BACKSLASH='\'
2603
2604 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2605 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2606 # is not polluted with repeated "-I."
2607 am__isrc=' -I$(srcdir)'
2608 # test to see if srcdir already configured
2609 if test -f $srcdir/config.status; then
2610 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2611 fi
2612 fi
2613
2614 # test whether we have cygpath
2615 if test -z "$CYGPATH_W"; then
2616 if (cygpath --version) >/dev/null 2>/dev/null; then
2617 CYGPATH_W='cygpath -w'
2618 else
2619 CYGPATH_W=echo
2620 fi
2621 fi
2622
2623
2624 # Define the identity of the package.
2625 PACKAGE='xcursor-themes'
2626 VERSION='1.0.6'
2627
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE "$PACKAGE"
2631 _ACEOF
2632
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define VERSION "$VERSION"
2636 _ACEOF
2637
2638 # Some tools Automake needs.
2639
2640 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2641
2642
2643 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2644
2645
2646 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2647
2648
2649 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2650
2651
2652 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2653
2654 # For better backward compatibility. To be removed once Automake 1.9.x
2655 # dies out for good. For more background, see:
2656 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2657 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2658 mkdir_p='$(MKDIR_P)'
2659
2660 # We need awk for the "check" target (and possibly the TAP driver). The
2661 # system "awk" is bad on some platforms.
2662 # Always define AMTAR for backward compatibility. Yes, it's still used
2663 # in the wild :-( We should find a proper way to deprecate it ...
2664 AMTAR='$${TAR-tar}'
2665
2666
2667 # We'll loop over all known methods to create a tar archive until one works.
2668 _am_tools='gnutar pax cpio none'
2669
2670 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2671
2672
2673
2674
2675
2676
2677 # POSIX will say in a future version that running "rm -f" with no argument
2678 # is OK; and we want to be able to make that assumption in our Makefile
2679 # recipes. So use an aggressive probe to check that the usage we want is
2680 # actually supported "in the wild" to an acceptable degree.
2681 # See automake bug#10828.
2682 # To make any issue more visible, cause the running configure to be aborted
2683 # by default if the 'rm' program in use doesn't match our expectations; the
2684 # user can still override this though.
2685 if rm -f && rm -fr && rm -rf; then : OK; else
2686 cat >&2 <<'END'
2687 Oops!
2688
2689 Your 'rm' program seems unable to run without file operands specified
2690 on the command line, even when the '-f' option is present. This is contrary
2691 to the behaviour of most rm programs out there, and not conforming with
2692 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2693
2694 Please tell bug-automake@gnu.org about your system, including the value
2695 of your $PATH and any error possibly output before this message. This
2696 can help us improve future automake versions.
2697
2698 END
2699 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2700 echo 'Configuration will proceed anyway, since you have set the' >&2
2701 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2702 echo >&2
2703 else
2704 cat >&2 <<'END'
2705 Aborting the configuration process, to ensure you take notice of the issue.
2706
2707 You can download and install GNU coreutils to get an 'rm' implementation
2708 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2709
2710 If you want to complete the configuration process using your problematic
2711 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2712 to "yes", and re-run configure.
2713
2714 END
2715 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2716 fi
2717 fi
2718
2719
2720 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732 DEPDIR="${am__leading_dot}deps"
2733
2734 ac_config_commands="$ac_config_commands depfiles"
2735
2736
2737 am_make=${MAKE-make}
2738 cat > confinc << 'END'
2739 am__doit:
2740 @echo this is the am__doit target
2741 .PHONY: am__doit
2742 END
2743 # If we don't find an include directive, just comment out the code.
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2745 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2746 am__include="#"
2747 am__quote=
2748 _am_result=none
2749 # First try GNU make style include.
2750 echo "include confinc" > confmf
2751 # Ignore all kinds of additional output from 'make'.
2752 case `$am_make -s -f confmf 2> /dev/null` in #(
2753 *the\ am__doit\ target*)
2754 am__include=include
2755 am__quote=
2756 _am_result=GNU
2757 ;;
2758 esac
2759 # Now try BSD make style include.
2760 if test "$am__include" = "#"; then
2761 echo '.include "confinc"' > confmf
2762 case `$am_make -s -f confmf 2> /dev/null` in #(
2763 *the\ am__doit\ target*)
2764 am__include=.include
2765 am__quote="\""
2766 _am_result=BSD
2767 ;;
2768 esac
2769 fi
2770
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2773 $as_echo "$_am_result" >&6; }
2774 rm -f confinc confmf
2775
2776 # Check whether --enable-dependency-tracking was given.
2777 if test "${enable_dependency_tracking+set}" = set; then :
2778 enableval=$enable_dependency_tracking;
2779 fi
2780
2781 if test "x$enable_dependency_tracking" != xno; then
2782 am_depcomp="$ac_aux_dir/depcomp"
2783 AMDEPBACKSLASH='\'
2784 am__nodep='_no'
2785 fi
2786 if test "x$enable_dependency_tracking" != xno; then
2787 AMDEP_TRUE=
2788 AMDEP_FALSE='#'
2789 else
2790 AMDEP_TRUE='#'
2791 AMDEP_FALSE=
2792 fi
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_CC+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840 ac_ct_CC=$CC
2841 # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_CC="gcc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877 if test "x$ac_ct_CC" = x; then
2878 CC=""
2879 else
2880 case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886 CC=$ac_ct_CC
2887 fi
2888 else
2889 CC="$ac_cv_prog_CC"
2890 fi
2891
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_CC="${ac_tool_prefix}cc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 fi
2933 if test -z "$CC"; then
2934 # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 ac_prog_rejected=no
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953 ac_prog_rejected=yes
2954 continue
2955 fi
2956 ac_cv_prog_CC="cc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 if test $ac_prog_rejected = yes; then
2965 # We found a bogon in the path, so make sure we never use it.
2966 set dummy $ac_cv_prog_CC
2967 shift
2968 if test $# != 0; then
2969 # We chose a different compiler from the bogus one.
2970 # However, it has the same basename, so the bogon will be chosen
2971 # first if we set CC to just the basename; use the full file name.
2972 shift
2973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974 fi
2975 fi
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 for ac_prog in cl.exe
2992 do
2993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030 test -n "$CC" && break
3031 done
3032 fi
3033 if test -z "$CC"; then
3034 ac_ct_CC=$CC
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$ac_ct_CC"; then
3045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_ac_ct_CC="$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$ac_ct_CC" && break
3075 done
3076
3077 if test "x$ac_ct_CC" = x; then
3078 CC=""
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 CC=$ac_ct_CC
3087 fi
3088 fi
3089
3090 fi
3091
3092
3093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details" "$LINENO" 5; }
3097
3098 # Provide some information about the compiler.
3099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3100 set X $ac_compile
3101 ac_compiler=$2
3102 for ac_option in --version -v -V -qversion; do
3103 { { ac_try="$ac_compiler $ac_option >&5"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3111 ac_status=$?
3112 if test -s conftest.err; then
3113 sed '10a\
3114 ... rest of stderr output deleted ...
3115 10q' conftest.err >conftest.er1
3116 cat conftest.er1 >&5
3117 fi
3118 rm -f conftest.er1 conftest.err
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3121 done
3122
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3125
3126 int
3127 main ()
3128 {
3129
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 ac_clean_files_save=$ac_clean_files
3135 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136 # Try to create an executable without -o first, disregard a.out.
3137 # It will help us diagnose broken compilers, and finding out an intuition
3138 # of exeext.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140 $as_echo_n "checking whether the C compiler works... " >&6; }
3141 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142
3143 # The possible output files:
3144 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3145
3146 ac_rmfiles=
3147 for ac_file in $ac_files
3148 do
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3152 esac
3153 done
3154 rm -f $ac_rmfiles
3155
3156 if { { ac_try="$ac_link_default"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_link_default") 2>&5
3164 ac_status=$?
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; then :
3167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3170 # so that the user can short-circuit this test for compilers unknown to
3171 # Autoconf.
3172 for ac_file in $ac_files ''
3173 do
3174 test -f "$ac_file" || continue
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177 ;;
3178 [ab].out )
3179 # We found the default executable, but exeext='' is most
3180 # certainly right.
3181 break;;
3182 *.* )
3183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3184 then :; else
3185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 fi
3187 # We set ac_cv_exeext here because the later test for it is not
3188 # safe: cross compilers may not add the suffix if given an `-o'
3189 # argument, so we may need to know it at that point already.
3190 # Even if this section looks crufty: it has the advantage of
3191 # actually working.
3192 break;;
3193 * )
3194 break;;
3195 esac
3196 done
3197 test "$ac_cv_exeext" = no && ac_cv_exeext=
3198
3199 else
3200 ac_file=''
3201 fi
3202 if test -z "$ac_file"; then :
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error 77 "C compiler cannot create executables
3211 See \`config.log' for more details" "$LINENO" 5; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3217 $as_echo_n "checking for C compiler default output file name... " >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3219 $as_echo "$ac_file" >&6; }
3220 ac_exeext=$ac_cv_exeext
3221
3222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3223 ac_clean_files=$ac_clean_files_save
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3225 $as_echo_n "checking for suffix of executables... " >&6; }
3226 if { { ac_try="$ac_link"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_link") 2>&5
3234 ac_status=$?
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; then :
3237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3239 # work properly (i.e., refer to `conftest.exe'), while it won't with
3240 # `rm'.
3241 for ac_file in conftest.exe conftest conftest.*; do
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246 break;;
3247 * ) break;;
3248 esac
3249 done
3250 else
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details" "$LINENO" 5; }
3255 fi
3256 rm -f conftest conftest$ac_cv_exeext
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3258 $as_echo "$ac_cv_exeext" >&6; }
3259
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3262 ac_exeext=$EXEEXT
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265 #include <stdio.h>
3266 int
3267 main ()
3268 {
3269 FILE *f = fopen ("conftest.out", "w");
3270 return ferror (f) || fclose (f) != 0;
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 ac_clean_files="$ac_clean_files conftest.out"
3277 # Check that the compiler produces executables we can run. If not, either
3278 # the compiler is broken, or we cross compile.
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280 $as_echo_n "checking whether we are cross compiling... " >&6; }
3281 if test "$cross_compiling" != yes; then
3282 { { ac_try="$ac_link"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 if { ac_try='./conftest$ac_cv_exeext'
3294 { { case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_try") 2>&5
3301 ac_status=$?
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; }; then
3304 cross_compiling=no
3305 else
3306 if test "$cross_compiling" = maybe; then
3307 cross_compiling=yes
3308 else
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot run C compiled programs.
3312 If you meant to cross compile, use \`--host'.
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 fi
3315 fi
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318 $as_echo "$cross_compiling" >&6; }
3319
3320 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3321 ac_clean_files=$ac_clean_files_save
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3323 $as_echo_n "checking for suffix of object files... " >&6; }
3324 if ${ac_cv_objext+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3329
3330 int
3331 main ()
3332 {
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.o conftest.obj
3339 if { { ac_try="$ac_compile"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_compile") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 for ac_file in conftest.o conftest.obj conftest.*; do
3351 test -f "$ac_file" || continue;
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355 break;;
3356 esac
3357 done
3358 else
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot compute suffix of object files: cannot compile
3365 See \`config.log' for more details" "$LINENO" 5; }
3366 fi
3367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3370 $as_echo "$ac_cv_objext" >&6; }
3371 OBJEXT=$ac_cv_objext
3372 ac_objext=$OBJEXT
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3374 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3375 if ${ac_cv_c_compiler_gnu+:} 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 #ifndef __GNUC__
3385 choke me
3386 #endif
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_compiler_gnu=yes
3394 else
3395 ac_compiler_gnu=no
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3402 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3403 if test $ac_compiler_gnu = yes; then
3404 GCC=yes
3405 else
3406 GCC=
3407 fi
3408 ac_test_CFLAGS=${CFLAGS+set}
3409 ac_save_CFLAGS=$CFLAGS
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3411 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3412 if ${ac_cv_prog_cc_g+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 ac_save_c_werror_flag=$ac_c_werror_flag
3416 ac_c_werror_flag=yes
3417 ac_cv_prog_cc_g=no
3418 CFLAGS="-g"
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_cv_prog_cc_g=yes
3432 else
3433 CFLAGS=""
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446
3447 else
3448 ac_c_werror_flag=$ac_save_c_werror_flag
3449 CFLAGS="-g"
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452
3453 int
3454 main ()
3455 {
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_cv_prog_cc_g=yes
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_c_werror_flag=$ac_save_c_werror_flag
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3472 $as_echo "$ac_cv_prog_cc_g" >&6; }
3473 if test "$ac_test_CFLAGS" = set; then
3474 CFLAGS=$ac_save_CFLAGS
3475 elif test $ac_cv_prog_cc_g = yes; then
3476 if test "$GCC" = yes; then
3477 CFLAGS="-g -O2"
3478 else
3479 CFLAGS="-g"
3480 fi
3481 else
3482 if test "$GCC" = yes; then
3483 CFLAGS="-O2"
3484 else
3485 CFLAGS=
3486 fi
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3489 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3490 if ${ac_cv_prog_cc_c89+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 ac_cv_prog_cc_c89=no
3494 ac_save_CC=$CC
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #include <stdarg.h>
3498 #include <stdio.h>
3499 struct stat;
3500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3501 struct buf { int x; };
3502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503 static char *e (p, i)
3504 char **p;
3505 int i;
3506 {
3507 return p[i];
3508 }
3509 static char *f (char * (*g) (char **, int), char **p, ...)
3510 {
3511 char *s;
3512 va_list v;
3513 va_start (v,p);
3514 s = g (p, va_arg (v,int));
3515 va_end (v);
3516 return s;
3517 }
3518
3519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3520 function prototypes and stuff, but not '\xHH' hex character constants.
3521 These don't provoke an error unfortunately, instead are silently treated
3522 as 'x'. The following induces an error, until -std is added to get
3523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3524 array size at least. It's necessary to write '\x00'==0 to get something
3525 that's true only with -std. */
3526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527
3528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3529 inside strings and character constants. */
3530 #define FOO(x) 'x'
3531 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532
3533 int test (int i, double x);
3534 struct s1 {int (*f) (int a);};
3535 struct s2 {int (*f) (double a);};
3536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3537 int argc;
3538 char **argv;
3539 int
3540 main ()
3541 {
3542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549 do
3550 CC="$ac_save_CC $ac_arg"
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_prog_cc_c89=$ac_arg
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext
3555 test "x$ac_cv_prog_cc_c89" != "xno" && break
3556 done
3557 rm -f conftest.$ac_ext
3558 CC=$ac_save_CC
3559
3560 fi
3561 # AC_CACHE_VAL
3562 case "x$ac_cv_prog_cc_c89" in
3563 x)
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565 $as_echo "none needed" >&6; } ;;
3566 xno)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3568 $as_echo "unsupported" >&6; } ;;
3569 *)
3570 CC="$CC $ac_cv_prog_cc_c89"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3572 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573 esac
3574 if test "x$ac_cv_prog_cc_c89" != xno; then :
3575
3576 fi
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584 ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3590 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3591 if ${am_cv_prog_cc_c_o+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 # Make sure it works both with $CC and with simple cc.
3606 # Following AC_PROG_CC_C_O, we do the test twice because some
3607 # compilers refuse to overwrite an existing .o file with -o,
3608 # though they will create one.
3609 am_cv_prog_cc_c_o=yes
3610 for am_i in 1 2; do
3611 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3612 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } \
3616 && test -f conftest2.$ac_objext; then
3617 : OK
3618 else
3619 am_cv_prog_cc_c_o=no
3620 break
3621 fi
3622 done
3623 rm -f core conftest*
3624 unset am_i
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3627 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3628 if test "$am_cv_prog_cc_c_o" != yes; then
3629 # Losing compiler, so override with the script.
3630 # FIXME: It is wrong to rewrite CC.
3631 # But if we don't then we get into trouble of one sort or another.
3632 # A longer-term fix would be to have automake use am__CC in this case,
3633 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3634 CC="$am_aux_dir/compile $CC"
3635 fi
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642
3643 depcc="$CC" am_compiler_list=
3644
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3646 $as_echo_n "checking dependency style of $depcc... " >&6; }
3647 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651 # We make a subdir and do the tests there. Otherwise we can end up
3652 # making bogus files that we don't know about and never remove. For
3653 # instance it was reported that on HP-UX the gcc test will end up
3654 # making a dummy file named 'D' -- because '-MD' means "put the output
3655 # in D".
3656 rm -rf conftest.dir
3657 mkdir conftest.dir
3658 # Copy depcomp to subdir because otherwise we won't find it if we're
3659 # using a relative directory.
3660 cp "$am_depcomp" conftest.dir
3661 cd conftest.dir
3662 # We will build objects and dependencies in a subdirectory because
3663 # it helps to detect inapplicable dependency modes. For instance
3664 # both Tru64's cc and ICC support -MD to output dependencies as a
3665 # side effect of compilation, but ICC will put the dependencies in
3666 # the current directory while Tru64 will put them in the object
3667 # directory.
3668 mkdir sub
3669
3670 am_cv_CC_dependencies_compiler_type=none
3671 if test "$am_compiler_list" = ""; then
3672 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3673 fi
3674 am__universal=false
3675 case " $depcc " in #(
3676 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3677 esac
3678
3679 for depmode in $am_compiler_list; do
3680 # Setup a source with many dependencies, because some compilers
3681 # like to wrap large dependency lists on column 80 (with \), and
3682 # we should not choose a depcomp mode which is confused by this.
3683 #
3684 # We need to recreate these files for each test, as the compiler may
3685 # overwrite some of them when testing with obscure command lines.
3686 # This happens at least with the AIX C compiler.
3687 : > sub/conftest.c
3688 for i in 1 2 3 4 5 6; do
3689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3691 # Solaris 10 /bin/sh.
3692 echo '/* dummy */' > sub/conftst$i.h
3693 done
3694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695
3696 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3697 # mode. It turns out that the SunPro C++ compiler does not properly
3698 # handle '-M -o', and we need to detect this. Also, some Intel
3699 # versions had trouble with output in subdirs.
3700 am__obj=sub/conftest.${OBJEXT-o}
3701 am__minus_obj="-o $am__obj"
3702 case $depmode in
3703 gcc)
3704 # This depmode causes a compiler race in universal mode.
3705 test "$am__universal" = false || continue
3706 ;;
3707 nosideeffect)
3708 # After this tag, mechanisms are not by side-effect, so they'll
3709 # only be used when explicitly requested.
3710 if test "x$enable_dependency_tracking" = xyes; then
3711 continue
3712 else
3713 break
3714 fi
3715 ;;
3716 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3717 # This compiler won't grok '-c -o', but also, the minuso test has
3718 # not run yet. These depmodes are late enough in the game, and
3719 # so weak that their functioning should not be impacted.
3720 am__obj=conftest.${OBJEXT-o}
3721 am__minus_obj=
3722 ;;
3723 none) break ;;
3724 esac
3725 if depmode=$depmode \
3726 source=sub/conftest.c object=$am__obj \
3727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3728 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3729 >/dev/null 2>conftest.err &&
3730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3732 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3734 # icc doesn't choke on unknown options, it will just issue warnings
3735 # or remarks (even with -Werror). So we grep stderr for any message
3736 # that says an option was ignored or not supported.
3737 # When given -MP, icc 7.0 and 7.1 complain thusly:
3738 # icc: Command line warning: ignoring option '-M'; no argument required
3739 # The diagnosis changed in icc 8.0:
3740 # icc: Command line remark: option '-MP' not supported
3741 if (grep 'ignoring option' conftest.err ||
3742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3743 am_cv_CC_dependencies_compiler_type=$depmode
3744 break
3745 fi
3746 fi
3747 done
3748
3749 cd ..
3750 rm -rf conftest.dir
3751 else
3752 am_cv_CC_dependencies_compiler_type=none
3753 fi
3754
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3757 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3758 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3759
3760 if
3761 test "x$enable_dependency_tracking" != xno \
3762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3763 am__fastdepCC_TRUE=
3764 am__fastdepCC_FALSE='#'
3765 else
3766 am__fastdepCC_TRUE='#'
3767 am__fastdepCC_FALSE=
3768 fi
3769
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3772 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3773 if ${ac_cv_prog_cc_c99+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 ac_cv_prog_cc_c99=no
3777 ac_save_CC=$CC
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #include <stdarg.h>
3781 #include <stdbool.h>
3782 #include <stdlib.h>
3783 #include <wchar.h>
3784 #include <stdio.h>
3785
3786 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3787 #define debug(...) fprintf (stderr, __VA_ARGS__)
3788 #define showlist(...) puts (#__VA_ARGS__)
3789 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3790 static void
3791 test_varargs_macros (void)
3792 {
3793 int x = 1234;
3794 int y = 5678;
3795 debug ("Flag");
3796 debug ("X = %d\n", x);
3797 showlist (The first, second, and third items.);
3798 report (x>y, "x is %d but y is %d", x, y);
3799 }
3800
3801 // Check long long types.
3802 #define BIG64 18446744073709551615ull
3803 #define BIG32 4294967295ul
3804 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3805 #if !BIG_OK
3806 your preprocessor is broken;
3807 #endif
3808 #if BIG_OK
3809 #else
3810 your preprocessor is broken;
3811 #endif
3812 static long long int bignum = -9223372036854775807LL;
3813 static unsigned long long int ubignum = BIG64;
3814
3815 struct incomplete_array
3816 {
3817 int datasize;
3818 double data[];
3819 };
3820
3821 struct named_init {
3822 int number;
3823 const wchar_t *name;
3824 double average;
3825 };
3826
3827 typedef const char *ccp;
3828
3829 static inline int
3830 test_restrict (ccp restrict text)
3831 {
3832 // See if C++-style comments work.
3833 // Iterate through items via the restricted pointer.
3834 // Also check for declarations in for loops.
3835 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3836 continue;
3837 return 0;
3838 }
3839
3840 // Check varargs and va_copy.
3841 static void
3842 test_varargs (const char *format, ...)
3843 {
3844 va_list args;
3845 va_start (args, format);
3846 va_list args_copy;
3847 va_copy (args_copy, args);
3848
3849 const char *str;
3850 int number;
3851 float fnumber;
3852
3853 while (*format)
3854 {
3855 switch (*format++)
3856 {
3857 case 's': // string
3858 str = va_arg (args_copy, const char *);
3859 break;
3860 case 'd': // int
3861 number = va_arg (args_copy, int);
3862 break;
3863 case 'f': // float
3864 fnumber = va_arg (args_copy, double);
3865 break;
3866 default:
3867 break;
3868 }
3869 }
3870 va_end (args_copy);
3871 va_end (args);
3872 }
3873
3874 int
3875 main ()
3876 {
3877
3878 // Check bool.
3879 _Bool success = false;
3880
3881 // Check restrict.
3882 if (test_restrict ("String literal") == 0)
3883 success = true;
3884 char *restrict newvar = "Another string";
3885
3886 // Check varargs.
3887 test_varargs ("s, d' f .", "string", 65, 34.234);
3888 test_varargs_macros ();
3889
3890 // Check flexible array members.
3891 struct incomplete_array *ia =
3892 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3893 ia->datasize = 10;
3894 for (int i = 0; i < ia->datasize; ++i)
3895 ia->data[i] = i * 1.234;
3896
3897 // Check named initializers.
3898 struct named_init ni = {
3899 .number = 34,
3900 .name = L"Test wide string",
3901 .average = 543.34343,
3902 };
3903
3904 ni.number = 58;
3905
3906 int dynamic_array[ni.number];
3907 dynamic_array[ni.number - 1] = 543;
3908
3909 // work around unused variable warnings
3910 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3911 || dynamic_array[ni.number - 1] != 543);
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3918 do
3919 CC="$ac_save_CC $ac_arg"
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_prog_cc_c99=$ac_arg
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext
3924 test "x$ac_cv_prog_cc_c99" != "xno" && break
3925 done
3926 rm -f conftest.$ac_ext
3927 CC=$ac_save_CC
3928
3929 fi
3930 # AC_CACHE_VAL
3931 case "x$ac_cv_prog_cc_c99" in
3932 x)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3934 $as_echo "none needed" >&6; } ;;
3935 xno)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3937 $as_echo "unsupported" >&6; } ;;
3938 *)
3939 CC="$CC $ac_cv_prog_cc_c99"
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3941 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3942 esac
3943 if test "x$ac_cv_prog_cc_c99" != xno; then :
3944
3945 fi
3946
3947
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3958 CPP=
3959 fi
3960 if test -z "$CPP"; then
3961 if ${ac_cv_prog_CPP+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 # Double quotes because CPP needs to be expanded
3965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3966 do
3967 ac_preproc_ok=false
3968 for ac_c_preproc_warn_flag in '' yes
3969 do
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #ifdef __STDC__
3979 # include <limits.h>
3980 #else
3981 # include <assert.h>
3982 #endif
3983 Syntax error
3984 _ACEOF
3985 if ac_fn_c_try_cpp "$LINENO"; then :
3986
3987 else
3988 # Broken: fails on valid input.
3989 continue
3990 fi
3991 rm -f conftest.err conftest.i conftest.$ac_ext
3992
3993 # OK, works on sane cases. Now check whether nonexistent headers
3994 # can be detected and how.
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if ac_fn_c_try_cpp "$LINENO"; then :
4000 # Broken: success on invalid input.
4001 continue
4002 else
4003 # Passes both tests.
4004 ac_preproc_ok=:
4005 break
4006 fi
4007 rm -f conftest.err conftest.i conftest.$ac_ext
4008
4009 done
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.i conftest.err conftest.$ac_ext
4012 if $ac_preproc_ok; then :
4013 break
4014 fi
4015
4016 done
4017 ac_cv_prog_CPP=$CPP
4018
4019 fi
4020 CPP=$ac_cv_prog_CPP
4021 else
4022 ac_cv_prog_CPP=$CPP
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4025 $as_echo "$CPP" >&6; }
4026 ac_preproc_ok=false
4027 for ac_c_preproc_warn_flag in '' yes
4028 do
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037 #ifdef __STDC__
4038 # include <limits.h>
4039 #else
4040 # include <assert.h>
4041 #endif
4042 Syntax error
4043 _ACEOF
4044 if ac_fn_c_try_cpp "$LINENO"; then :
4045
4046 else
4047 # Broken: fails on valid input.
4048 continue
4049 fi
4050 rm -f conftest.err conftest.i conftest.$ac_ext
4051
4052 # OK, works on sane cases. Now check whether nonexistent headers
4053 # can be detected and how.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4057 _ACEOF
4058 if ac_fn_c_try_cpp "$LINENO"; then :
4059 # Broken: success on invalid input.
4060 continue
4061 else
4062 # Passes both tests.
4063 ac_preproc_ok=:
4064 break
4065 fi
4066 rm -f conftest.err conftest.i conftest.$ac_ext
4067
4068 done
4069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070 rm -f conftest.i conftest.err conftest.$ac_ext
4071 if $ac_preproc_ok; then :
4072
4073 else
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4077 See \`config.log' for more details" "$LINENO" 5; }
4078 fi
4079
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4088 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4089 if ${ac_cv_path_GREP+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -z "$GREP"; then
4093 ac_path_GREP_found=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in grep ggrep; do
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4103 as_fn_executable_p "$ac_path_GREP" || continue
4104 # Check for GNU ac_path_GREP and select it if it is found.
4105 # Check for GNU $ac_path_GREP
4106 case `"$ac_path_GREP" --version 2>&1` in
4107 *GNU*)
4108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4109 *)
4110 ac_count=0
4111 $as_echo_n 0123456789 >"conftest.in"
4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'GREP' >> "conftest.nl"
4118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 as_fn_arith $ac_count + 1 && ac_count=$as_val
4121 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_GREP="$ac_path_GREP"
4124 ac_path_GREP_max=$ac_count
4125 fi
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 esac
4131
4132 $ac_path_GREP_found && break 3
4133 done
4134 done
4135 done
4136 IFS=$as_save_IFS
4137 if test -z "$ac_cv_path_GREP"; then
4138 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 fi
4140 else
4141 ac_cv_path_GREP=$GREP
4142 fi
4143
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4146 $as_echo "$ac_cv_path_GREP" >&6; }
4147 GREP="$ac_cv_path_GREP"
4148
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4151 $as_echo_n "checking for egrep... " >&6; }
4152 if ${ac_cv_path_EGREP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4156 then ac_cv_path_EGREP="$GREP -E"
4157 else
4158 if test -z "$EGREP"; then
4159 ac_path_EGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in egrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4169 as_fn_executable_p "$ac_path_EGREP" || continue
4170 # Check for GNU ac_path_EGREP and select it if it is found.
4171 # Check for GNU $ac_path_EGREP
4172 case `"$ac_path_EGREP" --version 2>&1` in
4173 *GNU*)
4174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4175 *)
4176 ac_count=0
4177 $as_echo_n 0123456789 >"conftest.in"
4178 while :
4179 do
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo 'EGREP' >> "conftest.nl"
4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 as_fn_arith $ac_count + 1 && ac_count=$as_val
4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_EGREP="$ac_path_EGREP"
4190 ac_path_EGREP_max=$ac_count
4191 fi
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4194 done
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 esac
4197
4198 $ac_path_EGREP_found && break 3
4199 done
4200 done
4201 done
4202 IFS=$as_save_IFS
4203 if test -z "$ac_cv_path_EGREP"; then
4204 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205 fi
4206 else
4207 ac_cv_path_EGREP=$EGREP
4208 fi
4209
4210 fi
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4213 $as_echo "$ac_cv_path_EGREP" >&6; }
4214 EGREP="$ac_cv_path_EGREP"
4215
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4218 $as_echo_n "checking for ANSI C header files... " >&6; }
4219 if ${ac_cv_header_stdc+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <stdlib.h>
4225 #include <stdarg.h>
4226 #include <string.h>
4227 #include <float.h>
4228
4229 int
4230 main ()
4231 {
4232
4233 ;
4234 return 0;
4235 }
4236 _ACEOF
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_header_stdc=yes
4239 else
4240 ac_cv_header_stdc=no
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243
4244 if test $ac_cv_header_stdc = yes; then
4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <string.h>
4249
4250 _ACEOF
4251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252 $EGREP "memchr" >/dev/null 2>&1; then :
4253
4254 else
4255 ac_cv_header_stdc=no
4256 fi
4257 rm -f conftest*
4258
4259 fi
4260
4261 if test $ac_cv_header_stdc = yes; then
4262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <stdlib.h>
4266
4267 _ACEOF
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "free" >/dev/null 2>&1; then :
4270
4271 else
4272 ac_cv_header_stdc=no
4273 fi
4274 rm -f conftest*
4275
4276 fi
4277
4278 if test $ac_cv_header_stdc = yes; then
4279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4280 if test "$cross_compiling" = yes; then :
4281 :
4282 else
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <ctype.h>
4286 #include <stdlib.h>
4287 #if ((' ' & 0x0FF) == 0x020)
4288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4290 #else
4291 # define ISLOWER(c) \
4292 (('a' <= (c) && (c) <= 'i') \
4293 || ('j' <= (c) && (c) <= 'r') \
4294 || ('s' <= (c) && (c) <= 'z'))
4295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4296 #endif
4297
4298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4299 int
4300 main ()
4301 {
4302 int i;
4303 for (i = 0; i < 256; i++)
4304 if (XOR (islower (i), ISLOWER (i))
4305 || toupper (i) != TOUPPER (i))
4306 return 2;
4307 return 0;
4308 }
4309 _ACEOF
4310 if ac_fn_c_try_run "$LINENO"; then :
4311
4312 else
4313 ac_cv_header_stdc=no
4314 fi
4315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4316 conftest.$ac_objext conftest.beam conftest.$ac_ext
4317 fi
4318
4319 fi
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4322 $as_echo "$ac_cv_header_stdc" >&6; }
4323 if test $ac_cv_header_stdc = yes; then
4324
4325 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4326
4327 fi
4328
4329 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331 inttypes.h stdint.h unistd.h
4332 do :
4333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4335 "
4336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4337 cat >>confdefs.h <<_ACEOF
4338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 _ACEOF
4340
4341 fi
4342
4343 done
4344
4345
4346
4347
4348
4349
4350 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4351 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4352 CLANGCC="yes"
4353 else
4354 CLANGCC="no"
4355 fi
4356
4357 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4358 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4359 INTELCC="yes"
4360 else
4361 INTELCC="no"
4362 fi
4363
4364 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4365 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4366 SUNCC="yes"
4367 else
4368 SUNCC="no"
4369 fi
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 case $PKG_CONFIG in
4389 [\\/]* | ?:[\\/]*)
4390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4391 ;;
4392 *)
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 ;;
4409 esac
4410 fi
4411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4412 if test -n "$PKG_CONFIG"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4414 $as_echo "$PKG_CONFIG" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$ac_cv_path_PKG_CONFIG"; then
4423 ac_pt_PKG_CONFIG=$PKG_CONFIG
4424 # Extract the first word of "pkg-config", so it can be a program name with args.
4425 set dummy pkg-config; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 case $ac_pt_PKG_CONFIG in
4432 [\\/]* | ?:[\\/]*)
4433 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4434 ;;
4435 *)
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451 ;;
4452 esac
4453 fi
4454 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4455 if test -n "$ac_pt_PKG_CONFIG"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4457 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462
4463 if test "x$ac_pt_PKG_CONFIG" = x; then
4464 PKG_CONFIG=""
4465 else
4466 case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470 ac_tool_warned=yes ;;
4471 esac
4472 PKG_CONFIG=$ac_pt_PKG_CONFIG
4473 fi
4474 else
4475 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4476 fi
4477
4478 fi
4479 if test -n "$PKG_CONFIG"; then
4480 _pkg_min_version=0.9.0
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4482 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4483 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 PKG_CONFIG=""
4490 fi
4491 fi
4492 # Make sure we can run config.sub.
4493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4494 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4497 $as_echo_n "checking build system type... " >&6; }
4498 if ${ac_cv_build+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_build_alias=$build_alias
4502 test "x$ac_build_alias" = x &&
4503 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4504 test "x$ac_build_alias" = x &&
4505 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4506 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4511 $as_echo "$ac_cv_build" >&6; }
4512 case $ac_cv_build in
4513 *-*-*) ;;
4514 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4515 esac
4516 build=$ac_cv_build
4517 ac_save_IFS=$IFS; IFS='-'
4518 set x $ac_cv_build
4519 shift
4520 build_cpu=$1
4521 build_vendor=$2
4522 shift; shift
4523 # Remember, the first character of IFS is used to create $*,
4524 # except with old shells:
4525 build_os=$*
4526 IFS=$ac_save_IFS
4527 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4531 $as_echo_n "checking host system type... " >&6; }
4532 if ${ac_cv_host+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test "x$host_alias" = x; then
4536 ac_cv_host=$ac_cv_build
4537 else
4538 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4540 fi
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4544 $as_echo "$ac_cv_host" >&6; }
4545 case $ac_cv_host in
4546 *-*-*) ;;
4547 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4548 esac
4549 host=$ac_cv_host
4550 ac_save_IFS=$IFS; IFS='-'
4551 set x $ac_cv_host
4552 shift
4553 host_cpu=$1
4554 host_vendor=$2
4555 shift; shift
4556 # Remember, the first character of IFS is used to create $*,
4557 # except with old shells:
4558 host_os=$*
4559 IFS=$ac_save_IFS
4560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4561
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4564 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4565 if ${ac_cv_path_SED+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4569 for ac_i in 1 2 3 4 5 6 7; do
4570 ac_script="$ac_script$as_nl$ac_script"
4571 done
4572 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4573 { ac_script=; unset ac_script;}
4574 if test -z "$SED"; then
4575 ac_path_SED_found=false
4576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_prog in sed gsed; do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4585 as_fn_executable_p "$ac_path_SED" || continue
4586 # Check for GNU ac_path_SED and select it if it is found.
4587 # Check for GNU $ac_path_SED
4588 case `"$ac_path_SED" --version 2>&1` in
4589 *GNU*)
4590 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4591 *)
4592 ac_count=0
4593 $as_echo_n 0123456789 >"conftest.in"
4594 while :
4595 do
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 $as_echo '' >> "conftest.nl"
4600 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
4603 if test $ac_count -gt ${ac_path_SED_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_SED="$ac_path_SED"
4606 ac_path_SED_max=$ac_count
4607 fi
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4613
4614 $ac_path_SED_found && break 3
4615 done
4616 done
4617 done
4618 IFS=$as_save_IFS
4619 if test -z "$ac_cv_path_SED"; then
4620 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4621 fi
4622 else
4623 ac_cv_path_SED=$SED
4624 fi
4625
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4628 $as_echo "$ac_cv_path_SED" >&6; }
4629 SED="$ac_cv_path_SED"
4630 rm -f conftest.sed
4631
4632
4633
4634
4635
4636
4637 # Check whether --enable-selective-werror was given.
4638 if test "${enable_selective_werror+set}" = set; then :
4639 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4640 else
4641 SELECTIVE_WERROR=yes
4642 fi
4643
4644
4645
4646
4647
4648 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4649 if test "x$SUNCC" = "xyes"; then
4650 BASE_CFLAGS="-v"
4651 else
4652 BASE_CFLAGS=""
4653 fi
4654
4655 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669 xorg_testset_save_CFLAGS="$CFLAGS"
4670
4671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 int i;
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 xorg_cv_cc_flag_unknown_warning_option=yes
4684 else
4685 xorg_cv_cc_flag_unknown_warning_option=no
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4692 CFLAGS="$xorg_testset_save_CFLAGS"
4693 fi
4694
4695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4698 fi
4699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 int i;
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 xorg_cv_cc_flag_unused_command_line_argument=yes
4711 else
4712 xorg_cv_cc_flag_unused_command_line_argument=no
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4719 CFLAGS="$xorg_testset_save_CFLAGS"
4720 fi
4721
4722 found="no"
4723
4724 if test $found = "no" ; then
4725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4727 fi
4728
4729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4731 fi
4732
4733 CFLAGS="$CFLAGS -Wall"
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4736 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4737 cacheid=xorg_cv_cc_flag__Wall
4738 if eval \${$cacheid+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 int i;
4744 int
4745 main ()
4746 {
4747
4748 ;
4749 return 0;
4750 }
4751 _ACEOF
4752 if ac_fn_c_try_link "$LINENO"; then :
4753 eval $cacheid=yes
4754 else
4755 eval $cacheid=no
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 fi
4760
4761
4762 CFLAGS="$xorg_testset_save_CFLAGS"
4763
4764 eval supported=\$$cacheid
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4766 $as_echo "$supported" >&6; }
4767 if test "$supported" = "yes" ; then
4768 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4769 found="yes"
4770 fi
4771 fi
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787 xorg_testset_save_CFLAGS="$CFLAGS"
4788
4789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 int i;
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 xorg_cv_cc_flag_unknown_warning_option=yes
4802 else
4803 xorg_cv_cc_flag_unknown_warning_option=no
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4810 CFLAGS="$xorg_testset_save_CFLAGS"
4811 fi
4812
4813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4816 fi
4817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 int i;
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 xorg_cv_cc_flag_unused_command_line_argument=yes
4829 else
4830 xorg_cv_cc_flag_unused_command_line_argument=no
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4837 CFLAGS="$xorg_testset_save_CFLAGS"
4838 fi
4839
4840 found="no"
4841
4842 if test $found = "no" ; then
4843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4845 fi
4846
4847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4849 fi
4850
4851 CFLAGS="$CFLAGS -Wpointer-arith"
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4854 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4855 cacheid=xorg_cv_cc_flag__Wpointer_arith
4856 if eval \${$cacheid+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 int i;
4862 int
4863 main ()
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_link "$LINENO"; then :
4871 eval $cacheid=yes
4872 else
4873 eval $cacheid=no
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext \
4876 conftest$ac_exeext conftest.$ac_ext
4877 fi
4878
4879
4880 CFLAGS="$xorg_testset_save_CFLAGS"
4881
4882 eval supported=\$$cacheid
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4884 $as_echo "$supported" >&6; }
4885 if test "$supported" = "yes" ; then
4886 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4887 found="yes"
4888 fi
4889 fi
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 xorg_testset_save_CFLAGS="$CFLAGS"
4906
4907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 int i;
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919 xorg_cv_cc_flag_unknown_warning_option=yes
4920 else
4921 xorg_cv_cc_flag_unknown_warning_option=no
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928 CFLAGS="$xorg_testset_save_CFLAGS"
4929 fi
4930
4931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934 fi
4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 int i;
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 xorg_cv_cc_flag_unused_command_line_argument=yes
4947 else
4948 xorg_cv_cc_flag_unused_command_line_argument=no
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4955 CFLAGS="$xorg_testset_save_CFLAGS"
4956 fi
4957
4958 found="no"
4959
4960 if test $found = "no" ; then
4961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4963 fi
4964
4965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4967 fi
4968
4969 CFLAGS="$CFLAGS -Wmissing-declarations"
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4972 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4973 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4974 if eval \${$cacheid+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 int i;
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_c_try_link "$LINENO"; then :
4989 eval $cacheid=yes
4990 else
4991 eval $cacheid=no
4992 fi
4993 rm -f core conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4995 fi
4996
4997
4998 CFLAGS="$xorg_testset_save_CFLAGS"
4999
5000 eval supported=\$$cacheid
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5002 $as_echo "$supported" >&6; }
5003 if test "$supported" = "yes" ; then
5004 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5005 found="yes"
5006 fi
5007 fi
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023 xorg_testset_save_CFLAGS="$CFLAGS"
5024
5025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5034 int i;
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 xorg_cv_cc_flag_unknown_warning_option=yes
5038 else
5039 xorg_cv_cc_flag_unknown_warning_option=no
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5046 CFLAGS="$xorg_testset_save_CFLAGS"
5047 fi
5048
5049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052 fi
5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 int i;
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 xorg_cv_cc_flag_unused_command_line_argument=yes
5065 else
5066 xorg_cv_cc_flag_unused_command_line_argument=no
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5073 CFLAGS="$xorg_testset_save_CFLAGS"
5074 fi
5075
5076 found="no"
5077
5078 if test $found = "no" ; then
5079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5081 fi
5082
5083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5085 fi
5086
5087 CFLAGS="$CFLAGS -Wformat=2"
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5090 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5091 cacheid=xorg_cv_cc_flag__Wformat_2
5092 if eval \${$cacheid+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 int i;
5098 int
5099 main ()
5100 {
5101
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 if ac_fn_c_try_link "$LINENO"; then :
5107 eval $cacheid=yes
5108 else
5109 eval $cacheid=no
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext \
5112 conftest$ac_exeext conftest.$ac_ext
5113 fi
5114
5115
5116 CFLAGS="$xorg_testset_save_CFLAGS"
5117
5118 eval supported=\$$cacheid
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5120 $as_echo "$supported" >&6; }
5121 if test "$supported" = "yes" ; then
5122 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5123 found="yes"
5124 fi
5125 fi
5126
5127 if test $found = "no" ; then
5128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130 fi
5131
5132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5134 fi
5135
5136 CFLAGS="$CFLAGS -Wformat"
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5139 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5140 cacheid=xorg_cv_cc_flag__Wformat
5141 if eval \${$cacheid+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 int i;
5147 int
5148 main ()
5149 {
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_link "$LINENO"; then :
5156 eval $cacheid=yes
5157 else
5158 eval $cacheid=no
5159 fi
5160 rm -f core conftest.err conftest.$ac_objext \
5161 conftest$ac_exeext conftest.$ac_ext
5162 fi
5163
5164
5165 CFLAGS="$xorg_testset_save_CFLAGS"
5166
5167 eval supported=\$$cacheid
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5169 $as_echo "$supported" >&6; }
5170 if test "$supported" = "yes" ; then
5171 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5172 found="yes"
5173 fi
5174 fi
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 xorg_testset_save_CFLAGS="$CFLAGS"
5193
5194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 int i;
5204 _ACEOF
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 xorg_cv_cc_flag_unknown_warning_option=yes
5207 else
5208 xorg_cv_cc_flag_unknown_warning_option=no
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5215 CFLAGS="$xorg_testset_save_CFLAGS"
5216 fi
5217
5218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221 fi
5222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 int i;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 xorg_cv_cc_flag_unused_command_line_argument=yes
5234 else
5235 xorg_cv_cc_flag_unused_command_line_argument=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5242 CFLAGS="$xorg_testset_save_CFLAGS"
5243 fi
5244
5245 found="no"
5246
5247 if test $found = "no" ; then
5248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5250 fi
5251
5252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5254 fi
5255
5256 CFLAGS="$CFLAGS -Wstrict-prototypes"
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5259 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5260 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5261 if eval \${$cacheid+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 int i;
5267 int
5268 main ()
5269 {
5270
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_link "$LINENO"; then :
5276 eval $cacheid=yes
5277 else
5278 eval $cacheid=no
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282 fi
5283
5284
5285 CFLAGS="$xorg_testset_save_CFLAGS"
5286
5287 eval supported=\$$cacheid
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5289 $as_echo "$supported" >&6; }
5290 if test "$supported" = "yes" ; then
5291 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5292 found="yes"
5293 fi
5294 fi
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 xorg_testset_save_CFLAGS="$CFLAGS"
5311
5312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 xorg_cv_cc_flag_unknown_warning_option=yes
5325 else
5326 xorg_cv_cc_flag_unknown_warning_option=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5333 CFLAGS="$xorg_testset_save_CFLAGS"
5334 fi
5335
5336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339 fi
5340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 int i;
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 xorg_cv_cc_flag_unused_command_line_argument=yes
5352 else
5353 xorg_cv_cc_flag_unused_command_line_argument=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5361 fi
5362
5363 found="no"
5364
5365 if test $found = "no" ; then
5366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5368 fi
5369
5370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372 fi
5373
5374 CFLAGS="$CFLAGS -Wmissing-prototypes"
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5377 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5378 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5379 if eval \${$cacheid+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 int i;
5385 int
5386 main ()
5387 {
5388
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_link "$LINENO"; then :
5394 eval $cacheid=yes
5395 else
5396 eval $cacheid=no
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext \
5399 conftest$ac_exeext conftest.$ac_ext
5400 fi
5401
5402
5403 CFLAGS="$xorg_testset_save_CFLAGS"
5404
5405 eval supported=\$$cacheid
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5407 $as_echo "$supported" >&6; }
5408 if test "$supported" = "yes" ; then
5409 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5410 found="yes"
5411 fi
5412 fi
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 xorg_testset_save_CFLAGS="$CFLAGS"
5429
5430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 int i;
5440 _ACEOF
5441 if ac_fn_c_try_compile "$LINENO"; then :
5442 xorg_cv_cc_flag_unknown_warning_option=yes
5443 else
5444 xorg_cv_cc_flag_unknown_warning_option=no
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5451 CFLAGS="$xorg_testset_save_CFLAGS"
5452 fi
5453
5454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5457 fi
5458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 int i;
5467 _ACEOF
5468 if ac_fn_c_try_compile "$LINENO"; then :
5469 xorg_cv_cc_flag_unused_command_line_argument=yes
5470 else
5471 xorg_cv_cc_flag_unused_command_line_argument=no
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5478 CFLAGS="$xorg_testset_save_CFLAGS"
5479 fi
5480
5481 found="no"
5482
5483 if test $found = "no" ; then
5484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5486 fi
5487
5488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5490 fi
5491
5492 CFLAGS="$CFLAGS -Wnested-externs"
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5495 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5496 cacheid=xorg_cv_cc_flag__Wnested_externs
5497 if eval \${$cacheid+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 int i;
5503 int
5504 main ()
5505 {
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_link "$LINENO"; then :
5512 eval $cacheid=yes
5513 else
5514 eval $cacheid=no
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5518 fi
5519
5520
5521 CFLAGS="$xorg_testset_save_CFLAGS"
5522
5523 eval supported=\$$cacheid
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5525 $as_echo "$supported" >&6; }
5526 if test "$supported" = "yes" ; then
5527 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5528 found="yes"
5529 fi
5530 fi
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546 xorg_testset_save_CFLAGS="$CFLAGS"
5547
5548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 int i;
5558 _ACEOF
5559 if ac_fn_c_try_compile "$LINENO"; then :
5560 xorg_cv_cc_flag_unknown_warning_option=yes
5561 else
5562 xorg_cv_cc_flag_unknown_warning_option=no
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5569 CFLAGS="$xorg_testset_save_CFLAGS"
5570 fi
5571
5572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5575 fi
5576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 int i;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 xorg_cv_cc_flag_unused_command_line_argument=yes
5588 else
5589 xorg_cv_cc_flag_unused_command_line_argument=no
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5597 fi
5598
5599 found="no"
5600
5601 if test $found = "no" ; then
5602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5604 fi
5605
5606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608 fi
5609
5610 CFLAGS="$CFLAGS -Wbad-function-cast"
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5613 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5614 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5615 if eval \${$cacheid+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 int i;
5621 int
5622 main ()
5623 {
5624
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 if ac_fn_c_try_link "$LINENO"; then :
5630 eval $cacheid=yes
5631 else
5632 eval $cacheid=no
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext \
5635 conftest$ac_exeext conftest.$ac_ext
5636 fi
5637
5638
5639 CFLAGS="$xorg_testset_save_CFLAGS"
5640
5641 eval supported=\$$cacheid
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5643 $as_echo "$supported" >&6; }
5644 if test "$supported" = "yes" ; then
5645 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5646 found="yes"
5647 fi
5648 fi
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664 xorg_testset_save_CFLAGS="$CFLAGS"
5665
5666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int i;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 xorg_cv_cc_flag_unknown_warning_option=yes
5679 else
5680 xorg_cv_cc_flag_unknown_warning_option=no
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5687 CFLAGS="$xorg_testset_save_CFLAGS"
5688 fi
5689
5690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5693 fi
5694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 int i;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 xorg_cv_cc_flag_unused_command_line_argument=yes
5706 else
5707 xorg_cv_cc_flag_unused_command_line_argument=no
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5714 CFLAGS="$xorg_testset_save_CFLAGS"
5715 fi
5716
5717 found="no"
5718
5719 if test $found = "no" ; then
5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5722 fi
5723
5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5726 fi
5727
5728 CFLAGS="$CFLAGS -Wold-style-definition"
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5731 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5732 cacheid=xorg_cv_cc_flag__Wold_style_definition
5733 if eval \${$cacheid+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 int
5740 main ()
5741 {
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_link "$LINENO"; then :
5748 eval $cacheid=yes
5749 else
5750 eval $cacheid=no
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext \
5753 conftest$ac_exeext conftest.$ac_ext
5754 fi
5755
5756
5757 CFLAGS="$xorg_testset_save_CFLAGS"
5758
5759 eval supported=\$$cacheid
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5761 $as_echo "$supported" >&6; }
5762 if test "$supported" = "yes" ; then
5763 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5764 found="yes"
5765 fi
5766 fi
5767
5768 if test $found = "no" ; then
5769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771 fi
5772
5773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5775 fi
5776
5777 CFLAGS="$CFLAGS -fd"
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5780 $as_echo_n "checking if $CC supports -fd... " >&6; }
5781 cacheid=xorg_cv_cc_flag__fd
5782 if eval \${$cacheid+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 int i;
5788 int
5789 main ()
5790 {
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_c_try_link "$LINENO"; then :
5797 eval $cacheid=yes
5798 else
5799 eval $cacheid=no
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext
5803 fi
5804
5805
5806 CFLAGS="$xorg_testset_save_CFLAGS"
5807
5808 eval supported=\$$cacheid
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5810 $as_echo "$supported" >&6; }
5811 if test "$supported" = "yes" ; then
5812 BASE_CFLAGS="$BASE_CFLAGS -fd"
5813 found="yes"
5814 fi
5815 fi
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 xorg_testset_save_CFLAGS="$CFLAGS"
5832
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 int i;
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 xorg_cv_cc_flag_unknown_warning_option=yes
5846 else
5847 xorg_cv_cc_flag_unknown_warning_option=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5854 CFLAGS="$xorg_testset_save_CFLAGS"
5855 fi
5856
5857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860 fi
5861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 xorg_cv_cc_flag_unused_command_line_argument=yes
5873 else
5874 xorg_cv_cc_flag_unused_command_line_argument=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882 fi
5883
5884 found="no"
5885
5886 if test $found = "no" ; then
5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 fi
5890
5891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5893 fi
5894
5895 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5896
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5898 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5899 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5900 if eval \${$cacheid+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 int
5907 main ()
5908 {
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_link "$LINENO"; then :
5915 eval $cacheid=yes
5916 else
5917 eval $cacheid=no
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext \
5920 conftest$ac_exeext conftest.$ac_ext
5921 fi
5922
5923
5924 CFLAGS="$xorg_testset_save_CFLAGS"
5925
5926 eval supported=\$$cacheid
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5928 $as_echo "$supported" >&6; }
5929 if test "$supported" = "yes" ; then
5930 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5931 found="yes"
5932 fi
5933 fi
5934
5935
5936
5937
5938
5939 # This chunk adds additional warnings that could catch undesired effects.
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 xorg_testset_save_CFLAGS="$CFLAGS"
5954
5955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 int i;
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 xorg_cv_cc_flag_unknown_warning_option=yes
5968 else
5969 xorg_cv_cc_flag_unknown_warning_option=no
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5976 CFLAGS="$xorg_testset_save_CFLAGS"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 fi
5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 int i;
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"; then :
5994 xorg_cv_cc_flag_unused_command_line_argument=yes
5995 else
5996 xorg_cv_cc_flag_unused_command_line_argument=no
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6003 CFLAGS="$xorg_testset_save_CFLAGS"
6004 fi
6005
6006 found="no"
6007
6008 if test $found = "no" ; then
6009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011 fi
6012
6013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6015 fi
6016
6017 CFLAGS="$CFLAGS -Wunused"
6018
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6020 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6021 cacheid=xorg_cv_cc_flag__Wunused
6022 if eval \${$cacheid+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 int i;
6028 int
6029 main ()
6030 {
6031
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_link "$LINENO"; then :
6037 eval $cacheid=yes
6038 else
6039 eval $cacheid=no
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext \
6042 conftest$ac_exeext conftest.$ac_ext
6043 fi
6044
6045
6046 CFLAGS="$xorg_testset_save_CFLAGS"
6047
6048 eval supported=\$$cacheid
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6050 $as_echo "$supported" >&6; }
6051 if test "$supported" = "yes" ; then
6052 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6053 found="yes"
6054 fi
6055 fi
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 xorg_testset_save_CFLAGS="$CFLAGS"
6072
6073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 int i;
6083 _ACEOF
6084 if ac_fn_c_try_compile "$LINENO"; then :
6085 xorg_cv_cc_flag_unknown_warning_option=yes
6086 else
6087 xorg_cv_cc_flag_unknown_warning_option=no
6088 fi
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 fi
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6094 CFLAGS="$xorg_testset_save_CFLAGS"
6095 fi
6096
6097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6100 fi
6101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int i;
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"; then :
6112 xorg_cv_cc_flag_unused_command_line_argument=yes
6113 else
6114 xorg_cv_cc_flag_unused_command_line_argument=no
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6121 CFLAGS="$xorg_testset_save_CFLAGS"
6122 fi
6123
6124 found="no"
6125
6126 if test $found = "no" ; then
6127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6129 fi
6130
6131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6133 fi
6134
6135 CFLAGS="$CFLAGS -Wuninitialized"
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6138 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6139 cacheid=xorg_cv_cc_flag__Wuninitialized
6140 if eval \${$cacheid+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 int i;
6146 int
6147 main ()
6148 {
6149
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_link "$LINENO"; then :
6155 eval $cacheid=yes
6156 else
6157 eval $cacheid=no
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6161 fi
6162
6163
6164 CFLAGS="$xorg_testset_save_CFLAGS"
6165
6166 eval supported=\$$cacheid
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6168 $as_echo "$supported" >&6; }
6169 if test "$supported" = "yes" ; then
6170 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6171 found="yes"
6172 fi
6173 fi
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 xorg_testset_save_CFLAGS="$CFLAGS"
6190
6191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 int i;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203 xorg_cv_cc_flag_unknown_warning_option=yes
6204 else
6205 xorg_cv_cc_flag_unknown_warning_option=no
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 fi
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6212 CFLAGS="$xorg_testset_save_CFLAGS"
6213 fi
6214
6215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 fi
6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 xorg_cv_cc_flag_unused_command_line_argument=yes
6231 else
6232 xorg_cv_cc_flag_unused_command_line_argument=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 found="no"
6243
6244 if test $found = "no" ; then
6245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247 fi
6248
6249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6251 fi
6252
6253 CFLAGS="$CFLAGS -Wshadow"
6254
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6256 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6257 cacheid=xorg_cv_cc_flag__Wshadow
6258 if eval \${$cacheid+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 int i;
6264 int
6265 main ()
6266 {
6267
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 if ac_fn_c_try_link "$LINENO"; then :
6273 eval $cacheid=yes
6274 else
6275 eval $cacheid=no
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 fi
6280
6281
6282 CFLAGS="$xorg_testset_save_CFLAGS"
6283
6284 eval supported=\$$cacheid
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6286 $as_echo "$supported" >&6; }
6287 if test "$supported" = "yes" ; then
6288 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6289 found="yes"
6290 fi
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 xorg_testset_save_CFLAGS="$CFLAGS"
6308
6309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 int i;
6319 _ACEOF
6320 if ac_fn_c_try_compile "$LINENO"; then :
6321 xorg_cv_cc_flag_unknown_warning_option=yes
6322 else
6323 xorg_cv_cc_flag_unknown_warning_option=no
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6330 CFLAGS="$xorg_testset_save_CFLAGS"
6331 fi
6332
6333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336 fi
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 xorg_cv_cc_flag_unused_command_line_argument=yes
6349 else
6350 xorg_cv_cc_flag_unused_command_line_argument=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358 fi
6359
6360 found="no"
6361
6362 if test $found = "no" ; then
6363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365 fi
6366
6367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6369 fi
6370
6371 CFLAGS="$CFLAGS -Wmissing-noreturn"
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6374 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6375 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6376 if eval \${$cacheid+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381 int i;
6382 int
6383 main ()
6384 {
6385
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_link "$LINENO"; then :
6391 eval $cacheid=yes
6392 else
6393 eval $cacheid=no
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext \
6396 conftest$ac_exeext conftest.$ac_ext
6397 fi
6398
6399
6400 CFLAGS="$xorg_testset_save_CFLAGS"
6401
6402 eval supported=\$$cacheid
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6404 $as_echo "$supported" >&6; }
6405 if test "$supported" = "yes" ; then
6406 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6407 found="yes"
6408 fi
6409 fi
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425 xorg_testset_save_CFLAGS="$CFLAGS"
6426
6427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6430 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6431 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 int i;
6437 _ACEOF
6438 if ac_fn_c_try_compile "$LINENO"; then :
6439 xorg_cv_cc_flag_unknown_warning_option=yes
6440 else
6441 xorg_cv_cc_flag_unknown_warning_option=no
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6446 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6448 CFLAGS="$xorg_testset_save_CFLAGS"
6449 fi
6450
6451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454 fi
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6457 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6458 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 int i;
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 xorg_cv_cc_flag_unused_command_line_argument=yes
6467 else
6468 xorg_cv_cc_flag_unused_command_line_argument=no
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6473 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6475 CFLAGS="$xorg_testset_save_CFLAGS"
6476 fi
6477
6478 found="no"
6479
6480 if test $found = "no" ; then
6481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6483 fi
6484
6485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6487 fi
6488
6489 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6490
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6492 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6493 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6494 if eval \${$cacheid+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 int i;
6500 int
6501 main ()
6502 {
6503
6504 ;
6505 return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_link "$LINENO"; then :
6509 eval $cacheid=yes
6510 else
6511 eval $cacheid=no
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext \
6514 conftest$ac_exeext conftest.$ac_ext
6515 fi
6516
6517
6518 CFLAGS="$xorg_testset_save_CFLAGS"
6519
6520 eval supported=\$$cacheid
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6522 $as_echo "$supported" >&6; }
6523 if test "$supported" = "yes" ; then
6524 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6525 found="yes"
6526 fi
6527 fi
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543 xorg_testset_save_CFLAGS="$CFLAGS"
6544
6545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 int i;
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"; then :
6557 xorg_cv_cc_flag_unknown_warning_option=yes
6558 else
6559 xorg_cv_cc_flag_unknown_warning_option=no
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 fi
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6566 CFLAGS="$xorg_testset_save_CFLAGS"
6567 fi
6568
6569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572 fi
6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 xorg_cv_cc_flag_unused_command_line_argument=yes
6585 else
6586 xorg_cv_cc_flag_unused_command_line_argument=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6593 CFLAGS="$xorg_testset_save_CFLAGS"
6594 fi
6595
6596 found="no"
6597
6598 if test $found = "no" ; then
6599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601 fi
6602
6603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6605 fi
6606
6607 CFLAGS="$CFLAGS -Wredundant-decls"
6608
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6610 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6611 cacheid=xorg_cv_cc_flag__Wredundant_decls
6612 if eval \${$cacheid+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 int i;
6618 int
6619 main ()
6620 {
6621
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 eval $cacheid=yes
6628 else
6629 eval $cacheid=no
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6633 fi
6634
6635
6636 CFLAGS="$xorg_testset_save_CFLAGS"
6637
6638 eval supported=\$$cacheid
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6640 $as_echo "$supported" >&6; }
6641 if test "$supported" = "yes" ; then
6642 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6643 found="yes"
6644 fi
6645 fi
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661 xorg_testset_save_CFLAGS="$CFLAGS"
6662
6663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 int i;
6673 _ACEOF
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675 xorg_cv_cc_flag_unknown_warning_option=yes
6676 else
6677 xorg_cv_cc_flag_unknown_warning_option=no
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6684 CFLAGS="$xorg_testset_save_CFLAGS"
6685 fi
6686
6687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 fi
6691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int i;
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"; then :
6702 xorg_cv_cc_flag_unused_command_line_argument=yes
6703 else
6704 xorg_cv_cc_flag_unused_command_line_argument=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712 fi
6713
6714 found="no"
6715
6716 if test $found = "no" ; then
6717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719 fi
6720
6721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6723 fi
6724
6725 CFLAGS="$CFLAGS -Wlogical-op"
6726
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6728 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6729 cacheid=xorg_cv_cc_flag__Wlogical_op
6730 if eval \${$cacheid+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 int i;
6736 int
6737 main ()
6738 {
6739
6740 ;
6741 return 0;
6742 }
6743 _ACEOF
6744 if ac_fn_c_try_link "$LINENO"; then :
6745 eval $cacheid=yes
6746 else
6747 eval $cacheid=no
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 fi
6752
6753
6754 CFLAGS="$xorg_testset_save_CFLAGS"
6755
6756 eval supported=\$$cacheid
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6758 $as_echo "$supported" >&6; }
6759 if test "$supported" = "yes" ; then
6760 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6761 found="yes"
6762 fi
6763 fi
6764
6765
6766
6767 # These are currently disabled because they are noisy. They will be enabled
6768 # in the future once the codebase is sufficiently modernized to silence
6769 # them. For now, I don't want them to drown out the other warnings.
6770 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6771 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6772 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6773
6774 # Turn some warnings into errors, so we don't accidently get successful builds
6775 # when there are problems that should be fixed.
6776
6777 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 int i;
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 xorg_cv_cc_flag_unknown_warning_option=yes
6806 else
6807 xorg_cv_cc_flag_unknown_warning_option=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6812 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6814 CFLAGS="$xorg_testset_save_CFLAGS"
6815 fi
6816
6817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820 fi
6821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6823 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6824 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 int i;
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 xorg_cv_cc_flag_unused_command_line_argument=yes
6833 else
6834 xorg_cv_cc_flag_unused_command_line_argument=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6839 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842 fi
6843
6844 found="no"
6845
6846 if test $found = "no" ; then
6847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849 fi
6850
6851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6853 fi
6854
6855 CFLAGS="$CFLAGS -Werror=implicit"
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6858 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6859 cacheid=xorg_cv_cc_flag__Werror_implicit
6860 if eval \${$cacheid+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 int i;
6866 int
6867 main ()
6868 {
6869
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 eval $cacheid=yes
6876 else
6877 eval $cacheid=no
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 fi
6882
6883
6884 CFLAGS="$xorg_testset_save_CFLAGS"
6885
6886 eval supported=\$$cacheid
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6888 $as_echo "$supported" >&6; }
6889 if test "$supported" = "yes" ; then
6890 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6891 found="yes"
6892 fi
6893 fi
6894
6895 if test $found = "no" ; then
6896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6898 fi
6899
6900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6902 fi
6903
6904 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6907 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6908 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6909 if eval \${$cacheid+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 int i;
6915 int
6916 main ()
6917 {
6918
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_link "$LINENO"; then :
6924 eval $cacheid=yes
6925 else
6926 eval $cacheid=no
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930 fi
6931
6932
6933 CFLAGS="$xorg_testset_save_CFLAGS"
6934
6935 eval supported=\$$cacheid
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6937 $as_echo "$supported" >&6; }
6938 if test "$supported" = "yes" ; then
6939 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6940 found="yes"
6941 fi
6942 fi
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 xorg_testset_save_CFLAGS="$CFLAGS"
6959
6960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 int i;
6970 _ACEOF
6971 if ac_fn_c_try_compile "$LINENO"; then :
6972 xorg_cv_cc_flag_unknown_warning_option=yes
6973 else
6974 xorg_cv_cc_flag_unknown_warning_option=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982 fi
6983
6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 fi
6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 int i;
6997 _ACEOF
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999 xorg_cv_cc_flag_unused_command_line_argument=yes
7000 else
7001 xorg_cv_cc_flag_unused_command_line_argument=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7008 CFLAGS="$xorg_testset_save_CFLAGS"
7009 fi
7010
7011 found="no"
7012
7013 if test $found = "no" ; then
7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016 fi
7017
7018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7020 fi
7021
7022 CFLAGS="$CFLAGS -Werror=nonnull"
7023
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7025 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7026 cacheid=xorg_cv_cc_flag__Werror_nonnull
7027 if eval \${$cacheid+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 int i;
7033 int
7034 main ()
7035 {
7036
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 if ac_fn_c_try_link "$LINENO"; then :
7042 eval $cacheid=yes
7043 else
7044 eval $cacheid=no
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 fi
7049
7050
7051 CFLAGS="$xorg_testset_save_CFLAGS"
7052
7053 eval supported=\$$cacheid
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7055 $as_echo "$supported" >&6; }
7056 if test "$supported" = "yes" ; then
7057 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7058 found="yes"
7059 fi
7060 fi
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076 xorg_testset_save_CFLAGS="$CFLAGS"
7077
7078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 int i;
7088 _ACEOF
7089 if ac_fn_c_try_compile "$LINENO"; then :
7090 xorg_cv_cc_flag_unknown_warning_option=yes
7091 else
7092 xorg_cv_cc_flag_unknown_warning_option=no
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7099 CFLAGS="$xorg_testset_save_CFLAGS"
7100 fi
7101
7102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7105 fi
7106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 _ACEOF
7116 if ac_fn_c_try_compile "$LINENO"; then :
7117 xorg_cv_cc_flag_unused_command_line_argument=yes
7118 else
7119 xorg_cv_cc_flag_unused_command_line_argument=no
7120 fi
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7126 CFLAGS="$xorg_testset_save_CFLAGS"
7127 fi
7128
7129 found="no"
7130
7131 if test $found = "no" ; then
7132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134 fi
7135
7136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7138 fi
7139
7140 CFLAGS="$CFLAGS -Werror=init-self"
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7143 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7144 cacheid=xorg_cv_cc_flag__Werror_init_self
7145 if eval \${$cacheid+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 int
7152 main ()
7153 {
7154
7155 ;
7156 return 0;
7157 }
7158 _ACEOF
7159 if ac_fn_c_try_link "$LINENO"; then :
7160 eval $cacheid=yes
7161 else
7162 eval $cacheid=no
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166 fi
7167
7168
7169 CFLAGS="$xorg_testset_save_CFLAGS"
7170
7171 eval supported=\$$cacheid
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7173 $as_echo "$supported" >&6; }
7174 if test "$supported" = "yes" ; then
7175 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7176 found="yes"
7177 fi
7178 fi
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 xorg_testset_save_CFLAGS="$CFLAGS"
7195
7196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 int i;
7206 _ACEOF
7207 if ac_fn_c_try_compile "$LINENO"; then :
7208 xorg_cv_cc_flag_unknown_warning_option=yes
7209 else
7210 xorg_cv_cc_flag_unknown_warning_option=no
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7217 CFLAGS="$xorg_testset_save_CFLAGS"
7218 fi
7219
7220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7223 fi
7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 int i;
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 xorg_cv_cc_flag_unused_command_line_argument=yes
7236 else
7237 xorg_cv_cc_flag_unused_command_line_argument=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7244 CFLAGS="$xorg_testset_save_CFLAGS"
7245 fi
7246
7247 found="no"
7248
7249 if test $found = "no" ; then
7250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252 fi
7253
7254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7256 fi
7257
7258 CFLAGS="$CFLAGS -Werror=main"
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7261 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7262 cacheid=xorg_cv_cc_flag__Werror_main
7263 if eval \${$cacheid+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 int i;
7269 int
7270 main ()
7271 {
7272
7273 ;
7274 return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_link "$LINENO"; then :
7278 eval $cacheid=yes
7279 else
7280 eval $cacheid=no
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 fi
7285
7286
7287 CFLAGS="$xorg_testset_save_CFLAGS"
7288
7289 eval supported=\$$cacheid
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7291 $as_echo "$supported" >&6; }
7292 if test "$supported" = "yes" ; then
7293 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7294 found="yes"
7295 fi
7296 fi
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312 xorg_testset_save_CFLAGS="$CFLAGS"
7313
7314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 int i;
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"; then :
7326 xorg_cv_cc_flag_unknown_warning_option=yes
7327 else
7328 xorg_cv_cc_flag_unknown_warning_option=no
7329 fi
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 fi
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7335 CFLAGS="$xorg_testset_save_CFLAGS"
7336 fi
7337
7338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7341 fi
7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 int i;
7351 _ACEOF
7352 if ac_fn_c_try_compile "$LINENO"; then :
7353 xorg_cv_cc_flag_unused_command_line_argument=yes
7354 else
7355 xorg_cv_cc_flag_unused_command_line_argument=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7362 CFLAGS="$xorg_testset_save_CFLAGS"
7363 fi
7364
7365 found="no"
7366
7367 if test $found = "no" ; then
7368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370 fi
7371
7372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7374 fi
7375
7376 CFLAGS="$CFLAGS -Werror=missing-braces"
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7379 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7380 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7381 if eval \${$cacheid+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 int i;
7387 int
7388 main ()
7389 {
7390
7391 ;
7392 return 0;
7393 }
7394 _ACEOF
7395 if ac_fn_c_try_link "$LINENO"; then :
7396 eval $cacheid=yes
7397 else
7398 eval $cacheid=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 fi
7403
7404
7405 CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407 eval supported=\$$cacheid
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409 $as_echo "$supported" >&6; }
7410 if test "$supported" = "yes" ; then
7411 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7412 found="yes"
7413 fi
7414 fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 int i;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 xorg_cv_cc_flag_unknown_warning_option=yes
7445 else
7446 xorg_cv_cc_flag_unknown_warning_option=no
7447 fi
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7453 CFLAGS="$xorg_testset_save_CFLAGS"
7454 fi
7455
7456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459 fi
7460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 int i;
7469 _ACEOF
7470 if ac_fn_c_try_compile "$LINENO"; then :
7471 xorg_cv_cc_flag_unused_command_line_argument=yes
7472 else
7473 xorg_cv_cc_flag_unused_command_line_argument=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7480 CFLAGS="$xorg_testset_save_CFLAGS"
7481 fi
7482
7483 found="no"
7484
7485 if test $found = "no" ; then
7486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488 fi
7489
7490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7492 fi
7493
7494 CFLAGS="$CFLAGS -Werror=sequence-point"
7495
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7497 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7498 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7499 if eval \${$cacheid+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 int i;
7505 int
7506 main ()
7507 {
7508
7509 ;
7510 return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_link "$LINENO"; then :
7514 eval $cacheid=yes
7515 else
7516 eval $cacheid=no
7517 fi
7518 rm -f core conftest.err conftest.$ac_objext \
7519 conftest$ac_exeext conftest.$ac_ext
7520 fi
7521
7522
7523 CFLAGS="$xorg_testset_save_CFLAGS"
7524
7525 eval supported=\$$cacheid
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7527 $as_echo "$supported" >&6; }
7528 if test "$supported" = "yes" ; then
7529 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7530 found="yes"
7531 fi
7532 fi
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548 xorg_testset_save_CFLAGS="$CFLAGS"
7549
7550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 int i;
7560 _ACEOF
7561 if ac_fn_c_try_compile "$LINENO"; then :
7562 xorg_cv_cc_flag_unknown_warning_option=yes
7563 else
7564 xorg_cv_cc_flag_unknown_warning_option=no
7565 fi
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7571 CFLAGS="$xorg_testset_save_CFLAGS"
7572 fi
7573
7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577 fi
7578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 int i;
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 xorg_cv_cc_flag_unused_command_line_argument=yes
7590 else
7591 xorg_cv_cc_flag_unused_command_line_argument=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599 fi
7600
7601 found="no"
7602
7603 if test $found = "no" ; then
7604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606 fi
7607
7608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7610 fi
7611
7612 CFLAGS="$CFLAGS -Werror=return-type"
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7615 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7616 cacheid=xorg_cv_cc_flag__Werror_return_type
7617 if eval \${$cacheid+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 int i;
7623 int
7624 main ()
7625 {
7626
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"; then :
7632 eval $cacheid=yes
7633 else
7634 eval $cacheid=no
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 fi
7639
7640
7641 CFLAGS="$xorg_testset_save_CFLAGS"
7642
7643 eval supported=\$$cacheid
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7645 $as_echo "$supported" >&6; }
7646 if test "$supported" = "yes" ; then
7647 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7648 found="yes"
7649 fi
7650 fi
7651
7652 if test $found = "no" ; then
7653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655 fi
7656
7657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659 fi
7660
7661 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7664 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7665 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7666 if eval \${$cacheid+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 int i;
7672 int
7673 main ()
7674 {
7675
7676 ;
7677 return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_link "$LINENO"; then :
7681 eval $cacheid=yes
7682 else
7683 eval $cacheid=no
7684 fi
7685 rm -f core conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 fi
7688
7689
7690 CFLAGS="$xorg_testset_save_CFLAGS"
7691
7692 eval supported=\$$cacheid
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7694 $as_echo "$supported" >&6; }
7695 if test "$supported" = "yes" ; then
7696 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7697 found="yes"
7698 fi
7699 fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 xorg_testset_save_CFLAGS="$CFLAGS"
7716
7717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 xorg_cv_cc_flag_unknown_warning_option=yes
7730 else
7731 xorg_cv_cc_flag_unknown_warning_option=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7738 CFLAGS="$xorg_testset_save_CFLAGS"
7739 fi
7740
7741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744 fi
7745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756 xorg_cv_cc_flag_unused_command_line_argument=yes
7757 else
7758 xorg_cv_cc_flag_unused_command_line_argument=no
7759 fi
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7765 CFLAGS="$xorg_testset_save_CFLAGS"
7766 fi
7767
7768 found="no"
7769
7770 if test $found = "no" ; then
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 fi
7774
7775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7777 fi
7778
7779 CFLAGS="$CFLAGS -Werror=trigraphs"
7780
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7782 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7783 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7784 if eval \${$cacheid+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 int i;
7790 int
7791 main ()
7792 {
7793
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_link "$LINENO"; then :
7799 eval $cacheid=yes
7800 else
7801 eval $cacheid=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 fi
7806
7807
7808 CFLAGS="$xorg_testset_save_CFLAGS"
7809
7810 eval supported=\$$cacheid
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7812 $as_echo "$supported" >&6; }
7813 if test "$supported" = "yes" ; then
7814 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7815 found="yes"
7816 fi
7817 fi
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 xorg_testset_save_CFLAGS="$CFLAGS"
7834
7835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 int i;
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847 xorg_cv_cc_flag_unknown_warning_option=yes
7848 else
7849 xorg_cv_cc_flag_unknown_warning_option=no
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7856 CFLAGS="$xorg_testset_save_CFLAGS"
7857 fi
7858
7859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862 fi
7863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 int i;
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 xorg_cv_cc_flag_unused_command_line_argument=yes
7875 else
7876 xorg_cv_cc_flag_unused_command_line_argument=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884 fi
7885
7886 found="no"
7887
7888 if test $found = "no" ; then
7889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891 fi
7892
7893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7895 fi
7896
7897 CFLAGS="$CFLAGS -Werror=array-bounds"
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7900 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7901 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7902 if eval \${$cacheid+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907 int i;
7908 int
7909 main ()
7910 {
7911
7912 ;
7913 return 0;
7914 }
7915 _ACEOF
7916 if ac_fn_c_try_link "$LINENO"; then :
7917 eval $cacheid=yes
7918 else
7919 eval $cacheid=no
7920 fi
7921 rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 fi
7924
7925
7926 CFLAGS="$xorg_testset_save_CFLAGS"
7927
7928 eval supported=\$$cacheid
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7930 $as_echo "$supported" >&6; }
7931 if test "$supported" = "yes" ; then
7932 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7933 found="yes"
7934 fi
7935 fi
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 xorg_testset_save_CFLAGS="$CFLAGS"
7952
7953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7956 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7957 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 int i;
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965 xorg_cv_cc_flag_unknown_warning_option=yes
7966 else
7967 xorg_cv_cc_flag_unknown_warning_option=no
7968 fi
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7972 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7974 CFLAGS="$xorg_testset_save_CFLAGS"
7975 fi
7976
7977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980 fi
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7983 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7984 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 int i;
7990 _ACEOF
7991 if ac_fn_c_try_compile "$LINENO"; then :
7992 xorg_cv_cc_flag_unused_command_line_argument=yes
7993 else
7994 xorg_cv_cc_flag_unused_command_line_argument=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7999 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002 fi
8003
8004 found="no"
8005
8006 if test $found = "no" ; then
8007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009 fi
8010
8011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8013 fi
8014
8015 CFLAGS="$CFLAGS -Werror=write-strings"
8016
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8018 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8019 cacheid=xorg_cv_cc_flag__Werror_write_strings
8020 if eval \${$cacheid+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025 int i;
8026 int
8027 main ()
8028 {
8029
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"; then :
8035 eval $cacheid=yes
8036 else
8037 eval $cacheid=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 fi
8042
8043
8044 CFLAGS="$xorg_testset_save_CFLAGS"
8045
8046 eval supported=\$$cacheid
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8048 $as_echo "$supported" >&6; }
8049 if test "$supported" = "yes" ; then
8050 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8051 found="yes"
8052 fi
8053 fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 xorg_testset_save_CFLAGS="$CFLAGS"
8070
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8074 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8075 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 int i;
8081 _ACEOF
8082 if ac_fn_c_try_compile "$LINENO"; then :
8083 xorg_cv_cc_flag_unknown_warning_option=yes
8084 else
8085 xorg_cv_cc_flag_unknown_warning_option=no
8086 fi
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8090 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8092 CFLAGS="$xorg_testset_save_CFLAGS"
8093 fi
8094
8095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098 fi
8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8101 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8102 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 _ACEOF
8109 if ac_fn_c_try_compile "$LINENO"; then :
8110 xorg_cv_cc_flag_unused_command_line_argument=yes
8111 else
8112 xorg_cv_cc_flag_unused_command_line_argument=no
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8117 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8119 CFLAGS="$xorg_testset_save_CFLAGS"
8120 fi
8121
8122 found="no"
8123
8124 if test $found = "no" ; then
8125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8127 fi
8128
8129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8131 fi
8132
8133 CFLAGS="$CFLAGS -Werror=address"
8134
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8136 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8137 cacheid=xorg_cv_cc_flag__Werror_address
8138 if eval \${$cacheid+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 int i;
8144 int
8145 main ()
8146 {
8147
8148 ;
8149 return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153 eval $cacheid=yes
8154 else
8155 eval $cacheid=no
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 fi
8160
8161
8162 CFLAGS="$xorg_testset_save_CFLAGS"
8163
8164 eval supported=\$$cacheid
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8166 $as_echo "$supported" >&6; }
8167 if test "$supported" = "yes" ; then
8168 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8169 found="yes"
8170 fi
8171 fi
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187 xorg_testset_save_CFLAGS="$CFLAGS"
8188
8189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 int i;
8199 _ACEOF
8200 if ac_fn_c_try_compile "$LINENO"; then :
8201 xorg_cv_cc_flag_unknown_warning_option=yes
8202 else
8203 xorg_cv_cc_flag_unknown_warning_option=no
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 fi
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8210 CFLAGS="$xorg_testset_save_CFLAGS"
8211 fi
8212
8213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8216 fi
8217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228 xorg_cv_cc_flag_unused_command_line_argument=yes
8229 else
8230 xorg_cv_cc_flag_unused_command_line_argument=no
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8237 CFLAGS="$xorg_testset_save_CFLAGS"
8238 fi
8239
8240 found="no"
8241
8242 if test $found = "no" ; then
8243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8245 fi
8246
8247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8249 fi
8250
8251 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8252
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8254 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8255 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8256 if eval \${$cacheid+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 int i;
8262 int
8263 main ()
8264 {
8265
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"; then :
8271 eval $cacheid=yes
8272 else
8273 eval $cacheid=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 fi
8278
8279
8280 CFLAGS="$xorg_testset_save_CFLAGS"
8281
8282 eval supported=\$$cacheid
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8284 $as_echo "$supported" >&6; }
8285 if test "$supported" = "yes" ; then
8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8287 found="yes"
8288 fi
8289 fi
8290
8291 if test $found = "no" ; then
8292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294 fi
8295
8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298 fi
8299
8300 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8303 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8304 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8305 if eval \${$cacheid+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310 int i;
8311 int
8312 main ()
8313 {
8314
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_link "$LINENO"; then :
8320 eval $cacheid=yes
8321 else
8322 eval $cacheid=no
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326 fi
8327
8328
8329 CFLAGS="$xorg_testset_save_CFLAGS"
8330
8331 eval supported=\$$cacheid
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8333 $as_echo "$supported" >&6; }
8334 if test "$supported" = "yes" ; then
8335 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8336 found="yes"
8337 fi
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354 xorg_testset_save_CFLAGS="$CFLAGS"
8355
8356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8359 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8360 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 int i;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 xorg_cv_cc_flag_unknown_warning_option=yes
8369 else
8370 xorg_cv_cc_flag_unknown_warning_option=no
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8375 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8377 CFLAGS="$xorg_testset_save_CFLAGS"
8378 fi
8379
8380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383 fi
8384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8386 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8387 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 int i;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 xorg_cv_cc_flag_unused_command_line_argument=yes
8396 else
8397 xorg_cv_cc_flag_unused_command_line_argument=no
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8402 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8404 CFLAGS="$xorg_testset_save_CFLAGS"
8405 fi
8406
8407 found="no"
8408
8409 if test $found = "no" ; then
8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412 fi
8413
8414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416 fi
8417
8418 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8421 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8422 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8423 if eval \${$cacheid+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 int i;
8429 int
8430 main ()
8431 {
8432
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 eval $cacheid=yes
8439 else
8440 eval $cacheid=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 fi
8445
8446
8447 CFLAGS="$xorg_testset_save_CFLAGS"
8448
8449 eval supported=\$$cacheid
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8451 $as_echo "$supported" >&6; }
8452 if test "$supported" = "yes" ; then
8453 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8454 found="yes"
8455 fi
8456 fi
8457
8458 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8459 else
8460 { $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
8461 $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;}
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475 xorg_testset_save_CFLAGS="$CFLAGS"
8476
8477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 int i;
8487 _ACEOF
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 xorg_cv_cc_flag_unknown_warning_option=yes
8490 else
8491 xorg_cv_cc_flag_unknown_warning_option=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504 fi
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 int i;
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 xorg_cv_cc_flag_unused_command_line_argument=yes
8517 else
8518 xorg_cv_cc_flag_unused_command_line_argument=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8525 CFLAGS="$xorg_testset_save_CFLAGS"
8526 fi
8527
8528 found="no"
8529
8530 if test $found = "no" ; then
8531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 fi
8534
8535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8537 fi
8538
8539 CFLAGS="$CFLAGS -Wimplicit"
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8542 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8543 cacheid=xorg_cv_cc_flag__Wimplicit
8544 if eval \${$cacheid+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 int i;
8550 int
8551 main ()
8552 {
8553
8554 ;
8555 return 0;
8556 }
8557 _ACEOF
8558 if ac_fn_c_try_link "$LINENO"; then :
8559 eval $cacheid=yes
8560 else
8561 eval $cacheid=no
8562 fi
8563 rm -f core conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 fi
8566
8567
8568 CFLAGS="$xorg_testset_save_CFLAGS"
8569
8570 eval supported=\$$cacheid
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8572 $as_echo "$supported" >&6; }
8573 if test "$supported" = "yes" ; then
8574 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8575 found="yes"
8576 fi
8577 fi
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593 xorg_testset_save_CFLAGS="$CFLAGS"
8594
8595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 int i;
8605 _ACEOF
8606 if ac_fn_c_try_compile "$LINENO"; then :
8607 xorg_cv_cc_flag_unknown_warning_option=yes
8608 else
8609 xorg_cv_cc_flag_unknown_warning_option=no
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8616 CFLAGS="$xorg_testset_save_CFLAGS"
8617 fi
8618
8619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622 fi
8623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 int i;
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 xorg_cv_cc_flag_unused_command_line_argument=yes
8635 else
8636 xorg_cv_cc_flag_unused_command_line_argument=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8643 CFLAGS="$xorg_testset_save_CFLAGS"
8644 fi
8645
8646 found="no"
8647
8648 if test $found = "no" ; then
8649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651 fi
8652
8653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8655 fi
8656
8657 CFLAGS="$CFLAGS -Wnonnull"
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8660 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8661 cacheid=xorg_cv_cc_flag__Wnonnull
8662 if eval \${$cacheid+:} false; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 int i;
8668 int
8669 main ()
8670 {
8671
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 if ac_fn_c_try_link "$LINENO"; then :
8677 eval $cacheid=yes
8678 else
8679 eval $cacheid=no
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 fi
8684
8685
8686 CFLAGS="$xorg_testset_save_CFLAGS"
8687
8688 eval supported=\$$cacheid
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8690 $as_echo "$supported" >&6; }
8691 if test "$supported" = "yes" ; then
8692 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8693 found="yes"
8694 fi
8695 fi
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711 xorg_testset_save_CFLAGS="$CFLAGS"
8712
8713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 int i;
8723 _ACEOF
8724 if ac_fn_c_try_compile "$LINENO"; then :
8725 xorg_cv_cc_flag_unknown_warning_option=yes
8726 else
8727 xorg_cv_cc_flag_unknown_warning_option=no
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8734 CFLAGS="$xorg_testset_save_CFLAGS"
8735 fi
8736
8737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740 fi
8741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 int i;
8750 _ACEOF
8751 if ac_fn_c_try_compile "$LINENO"; then :
8752 xorg_cv_cc_flag_unused_command_line_argument=yes
8753 else
8754 xorg_cv_cc_flag_unused_command_line_argument=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8761 CFLAGS="$xorg_testset_save_CFLAGS"
8762 fi
8763
8764 found="no"
8765
8766 if test $found = "no" ; then
8767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769 fi
8770
8771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773 fi
8774
8775 CFLAGS="$CFLAGS -Winit-self"
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8778 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8779 cacheid=xorg_cv_cc_flag__Winit_self
8780 if eval \${$cacheid+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 int i;
8786 int
8787 main ()
8788 {
8789
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"; then :
8795 eval $cacheid=yes
8796 else
8797 eval $cacheid=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801 fi
8802
8803
8804 CFLAGS="$xorg_testset_save_CFLAGS"
8805
8806 eval supported=\$$cacheid
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8808 $as_echo "$supported" >&6; }
8809 if test "$supported" = "yes" ; then
8810 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8811 found="yes"
8812 fi
8813 fi
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 xorg_testset_save_CFLAGS="$CFLAGS"
8830
8831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 int i;
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843 xorg_cv_cc_flag_unknown_warning_option=yes
8844 else
8845 xorg_cv_cc_flag_unknown_warning_option=no
8846 fi
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 fi
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8852 CFLAGS="$xorg_testset_save_CFLAGS"
8853 fi
8854
8855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8858 fi
8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 int i;
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 xorg_cv_cc_flag_unused_command_line_argument=yes
8871 else
8872 xorg_cv_cc_flag_unused_command_line_argument=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8879 CFLAGS="$xorg_testset_save_CFLAGS"
8880 fi
8881
8882 found="no"
8883
8884 if test $found = "no" ; then
8885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 fi
8888
8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8891 fi
8892
8893 CFLAGS="$CFLAGS -Wmain"
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8896 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8897 cacheid=xorg_cv_cc_flag__Wmain
8898 if eval \${$cacheid+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 int i;
8904 int
8905 main ()
8906 {
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913 eval $cacheid=yes
8914 else
8915 eval $cacheid=no
8916 fi
8917 rm -f core conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
8919 fi
8920
8921
8922 CFLAGS="$xorg_testset_save_CFLAGS"
8923
8924 eval supported=\$$cacheid
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8926 $as_echo "$supported" >&6; }
8927 if test "$supported" = "yes" ; then
8928 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8929 found="yes"
8930 fi
8931 fi
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947 xorg_testset_save_CFLAGS="$CFLAGS"
8948
8949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 int i;
8959 _ACEOF
8960 if ac_fn_c_try_compile "$LINENO"; then :
8961 xorg_cv_cc_flag_unknown_warning_option=yes
8962 else
8963 xorg_cv_cc_flag_unknown_warning_option=no
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8970 CFLAGS="$xorg_testset_save_CFLAGS"
8971 fi
8972
8973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976 fi
8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"; then :
8988 xorg_cv_cc_flag_unused_command_line_argument=yes
8989 else
8990 xorg_cv_cc_flag_unused_command_line_argument=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998 fi
8999
9000 found="no"
9001
9002 if test $found = "no" ; then
9003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005 fi
9006
9007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9009 fi
9010
9011 CFLAGS="$CFLAGS -Wmissing-braces"
9012
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9014 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9015 cacheid=xorg_cv_cc_flag__Wmissing_braces
9016 if eval \${$cacheid+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 int i;
9022 int
9023 main ()
9024 {
9025
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_link "$LINENO"; then :
9031 eval $cacheid=yes
9032 else
9033 eval $cacheid=no
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9037 fi
9038
9039
9040 CFLAGS="$xorg_testset_save_CFLAGS"
9041
9042 eval supported=\$$cacheid
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9044 $as_echo "$supported" >&6; }
9045 if test "$supported" = "yes" ; then
9046 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9047 found="yes"
9048 fi
9049 fi
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065 xorg_testset_save_CFLAGS="$CFLAGS"
9066
9067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 int i;
9077 _ACEOF
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079 xorg_cv_cc_flag_unknown_warning_option=yes
9080 else
9081 xorg_cv_cc_flag_unknown_warning_option=no
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9088 CFLAGS="$xorg_testset_save_CFLAGS"
9089 fi
9090
9091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094 fi
9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103 int i;
9104 _ACEOF
9105 if ac_fn_c_try_compile "$LINENO"; then :
9106 xorg_cv_cc_flag_unused_command_line_argument=yes
9107 else
9108 xorg_cv_cc_flag_unused_command_line_argument=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9115 CFLAGS="$xorg_testset_save_CFLAGS"
9116 fi
9117
9118 found="no"
9119
9120 if test $found = "no" ; then
9121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123 fi
9124
9125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9127 fi
9128
9129 CFLAGS="$CFLAGS -Wsequence-point"
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9132 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9133 cacheid=xorg_cv_cc_flag__Wsequence_point
9134 if eval \${$cacheid+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 int i;
9140 int
9141 main ()
9142 {
9143
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 eval $cacheid=yes
9150 else
9151 eval $cacheid=no
9152 fi
9153 rm -f core conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 fi
9156
9157
9158 CFLAGS="$xorg_testset_save_CFLAGS"
9159
9160 eval supported=\$$cacheid
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9162 $as_echo "$supported" >&6; }
9163 if test "$supported" = "yes" ; then
9164 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9165 found="yes"
9166 fi
9167 fi
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 xorg_testset_save_CFLAGS="$CFLAGS"
9184
9185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 int i;
9195 _ACEOF
9196 if ac_fn_c_try_compile "$LINENO"; then :
9197 xorg_cv_cc_flag_unknown_warning_option=yes
9198 else
9199 xorg_cv_cc_flag_unknown_warning_option=no
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9206 CFLAGS="$xorg_testset_save_CFLAGS"
9207 fi
9208
9209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 fi
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 int i;
9222 _ACEOF
9223 if ac_fn_c_try_compile "$LINENO"; then :
9224 xorg_cv_cc_flag_unused_command_line_argument=yes
9225 else
9226 xorg_cv_cc_flag_unused_command_line_argument=no
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234 fi
9235
9236 found="no"
9237
9238 if test $found = "no" ; then
9239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241 fi
9242
9243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9245 fi
9246
9247 CFLAGS="$CFLAGS -Wreturn-type"
9248
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9250 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9251 cacheid=xorg_cv_cc_flag__Wreturn_type
9252 if eval \${$cacheid+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 int i;
9258 int
9259 main ()
9260 {
9261
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9267 eval $cacheid=yes
9268 else
9269 eval $cacheid=no
9270 fi
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 fi
9274
9275
9276 CFLAGS="$xorg_testset_save_CFLAGS"
9277
9278 eval supported=\$$cacheid
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9280 $as_echo "$supported" >&6; }
9281 if test "$supported" = "yes" ; then
9282 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9283 found="yes"
9284 fi
9285 fi
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301 xorg_testset_save_CFLAGS="$CFLAGS"
9302
9303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9306 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9307 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int i;
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"; then :
9315 xorg_cv_cc_flag_unknown_warning_option=yes
9316 else
9317 xorg_cv_cc_flag_unknown_warning_option=no
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9320 fi
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9322 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9324 CFLAGS="$xorg_testset_save_CFLAGS"
9325 fi
9326
9327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330 fi
9331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9333 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9334 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 int i;
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"; then :
9342 xorg_cv_cc_flag_unused_command_line_argument=yes
9343 else
9344 xorg_cv_cc_flag_unused_command_line_argument=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9349 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9351 CFLAGS="$xorg_testset_save_CFLAGS"
9352 fi
9353
9354 found="no"
9355
9356 if test $found = "no" ; then
9357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359 fi
9360
9361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9363 fi
9364
9365 CFLAGS="$CFLAGS -Wtrigraphs"
9366
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9368 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9369 cacheid=xorg_cv_cc_flag__Wtrigraphs
9370 if eval \${$cacheid+:} false; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375 int i;
9376 int
9377 main ()
9378 {
9379
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 eval $cacheid=yes
9386 else
9387 eval $cacheid=no
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 fi
9392
9393
9394 CFLAGS="$xorg_testset_save_CFLAGS"
9395
9396 eval supported=\$$cacheid
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9398 $as_echo "$supported" >&6; }
9399 if test "$supported" = "yes" ; then
9400 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9401 found="yes"
9402 fi
9403 fi
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419 xorg_testset_save_CFLAGS="$CFLAGS"
9420
9421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 int i;
9431 _ACEOF
9432 if ac_fn_c_try_compile "$LINENO"; then :
9433 xorg_cv_cc_flag_unknown_warning_option=yes
9434 else
9435 xorg_cv_cc_flag_unknown_warning_option=no
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9442 CFLAGS="$xorg_testset_save_CFLAGS"
9443 fi
9444
9445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 fi
9449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int i;
9458 _ACEOF
9459 if ac_fn_c_try_compile "$LINENO"; then :
9460 xorg_cv_cc_flag_unused_command_line_argument=yes
9461 else
9462 xorg_cv_cc_flag_unused_command_line_argument=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9469 CFLAGS="$xorg_testset_save_CFLAGS"
9470 fi
9471
9472 found="no"
9473
9474 if test $found = "no" ; then
9475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9477 fi
9478
9479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9481 fi
9482
9483 CFLAGS="$CFLAGS -Warray-bounds"
9484
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9486 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9487 cacheid=xorg_cv_cc_flag__Warray_bounds
9488 if eval \${$cacheid+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int i;
9494 int
9495 main ()
9496 {
9497
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503 eval $cacheid=yes
9504 else
9505 eval $cacheid=no
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509 fi
9510
9511
9512 CFLAGS="$xorg_testset_save_CFLAGS"
9513
9514 eval supported=\$$cacheid
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9516 $as_echo "$supported" >&6; }
9517 if test "$supported" = "yes" ; then
9518 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9519 found="yes"
9520 fi
9521 fi
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537 xorg_testset_save_CFLAGS="$CFLAGS"
9538
9539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 int i;
9549 _ACEOF
9550 if ac_fn_c_try_compile "$LINENO"; then :
9551 xorg_cv_cc_flag_unknown_warning_option=yes
9552 else
9553 xorg_cv_cc_flag_unknown_warning_option=no
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9560 CFLAGS="$xorg_testset_save_CFLAGS"
9561 fi
9562
9563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566 fi
9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 int i;
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"; then :
9578 xorg_cv_cc_flag_unused_command_line_argument=yes
9579 else
9580 xorg_cv_cc_flag_unused_command_line_argument=no
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9587 CFLAGS="$xorg_testset_save_CFLAGS"
9588 fi
9589
9590 found="no"
9591
9592 if test $found = "no" ; then
9593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9595 fi
9596
9597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9599 fi
9600
9601 CFLAGS="$CFLAGS -Wwrite-strings"
9602
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9604 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9605 cacheid=xorg_cv_cc_flag__Wwrite_strings
9606 if eval \${$cacheid+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 int i;
9612 int
9613 main ()
9614 {
9615
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 if ac_fn_c_try_link "$LINENO"; then :
9621 eval $cacheid=yes
9622 else
9623 eval $cacheid=no
9624 fi
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 fi
9628
9629
9630 CFLAGS="$xorg_testset_save_CFLAGS"
9631
9632 eval supported=\$$cacheid
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9634 $as_echo "$supported" >&6; }
9635 if test "$supported" = "yes" ; then
9636 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9637 found="yes"
9638 fi
9639 fi
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655 xorg_testset_save_CFLAGS="$CFLAGS"
9656
9657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 int i;
9667 _ACEOF
9668 if ac_fn_c_try_compile "$LINENO"; then :
9669 xorg_cv_cc_flag_unknown_warning_option=yes
9670 else
9671 xorg_cv_cc_flag_unknown_warning_option=no
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9678 CFLAGS="$xorg_testset_save_CFLAGS"
9679 fi
9680
9681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 fi
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 int i;
9694 _ACEOF
9695 if ac_fn_c_try_compile "$LINENO"; then :
9696 xorg_cv_cc_flag_unused_command_line_argument=yes
9697 else
9698 xorg_cv_cc_flag_unused_command_line_argument=no
9699 fi
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9705 CFLAGS="$xorg_testset_save_CFLAGS"
9706 fi
9707
9708 found="no"
9709
9710 if test $found = "no" ; then
9711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713 fi
9714
9715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9717 fi
9718
9719 CFLAGS="$CFLAGS -Waddress"
9720
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9722 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9723 cacheid=xorg_cv_cc_flag__Waddress
9724 if eval \${$cacheid+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 int i;
9730 int
9731 main ()
9732 {
9733
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 eval $cacheid=yes
9740 else
9741 eval $cacheid=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 fi
9746
9747
9748 CFLAGS="$xorg_testset_save_CFLAGS"
9749
9750 eval supported=\$$cacheid
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9752 $as_echo "$supported" >&6; }
9753 if test "$supported" = "yes" ; then
9754 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9755 found="yes"
9756 fi
9757 fi
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773 xorg_testset_save_CFLAGS="$CFLAGS"
9774
9775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 int i;
9785 _ACEOF
9786 if ac_fn_c_try_compile "$LINENO"; then :
9787 xorg_cv_cc_flag_unknown_warning_option=yes
9788 else
9789 xorg_cv_cc_flag_unknown_warning_option=no
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9796 CFLAGS="$xorg_testset_save_CFLAGS"
9797 fi
9798
9799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9802 fi
9803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 int i;
9812 _ACEOF
9813 if ac_fn_c_try_compile "$LINENO"; then :
9814 xorg_cv_cc_flag_unused_command_line_argument=yes
9815 else
9816 xorg_cv_cc_flag_unused_command_line_argument=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9823 CFLAGS="$xorg_testset_save_CFLAGS"
9824 fi
9825
9826 found="no"
9827
9828 if test $found = "no" ; then
9829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831 fi
9832
9833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9835 fi
9836
9837 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9838
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9840 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9841 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9842 if eval \${$cacheid+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 int i;
9848 int
9849 main ()
9850 {
9851
9852 ;
9853 return 0;
9854 }
9855 _ACEOF
9856 if ac_fn_c_try_link "$LINENO"; then :
9857 eval $cacheid=yes
9858 else
9859 eval $cacheid=no
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 fi
9864
9865
9866 CFLAGS="$xorg_testset_save_CFLAGS"
9867
9868 eval supported=\$$cacheid
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9870 $as_echo "$supported" >&6; }
9871 if test "$supported" = "yes" ; then
9872 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9873 found="yes"
9874 fi
9875 fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 xorg_testset_save_CFLAGS="$CFLAGS"
9892
9893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 int i;
9903 _ACEOF
9904 if ac_fn_c_try_compile "$LINENO"; then :
9905 xorg_cv_cc_flag_unknown_warning_option=yes
9906 else
9907 xorg_cv_cc_flag_unknown_warning_option=no
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9910 fi
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9914 CFLAGS="$xorg_testset_save_CFLAGS"
9915 fi
9916
9917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920 fi
9921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int i;
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932 xorg_cv_cc_flag_unused_command_line_argument=yes
9933 else
9934 xorg_cv_cc_flag_unused_command_line_argument=no
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9941 CFLAGS="$xorg_testset_save_CFLAGS"
9942 fi
9943
9944 found="no"
9945
9946 if test $found = "no" ; then
9947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9949 fi
9950
9951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9953 fi
9954
9955 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9958 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9959 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9960 if eval \${$cacheid+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 int i;
9966 int
9967 main ()
9968 {
9969
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 eval $cacheid=yes
9976 else
9977 eval $cacheid=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 fi
9982
9983
9984 CFLAGS="$xorg_testset_save_CFLAGS"
9985
9986 eval supported=\$$cacheid
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9988 $as_echo "$supported" >&6; }
9989 if test "$supported" = "yes" ; then
9990 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9991 found="yes"
9992 fi
9993 fi
9994
9995
9996 fi
9997
9998
9999
10000
10001
10002
10003
10004 CWARNFLAGS="$BASE_CFLAGS"
10005 if test "x$GCC" = xyes ; then
10006 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10007 fi
10008
10009
10010
10011
10012
10013
10014
10015
10016 # Check whether --enable-strict-compilation was given.
10017 if test "${enable_strict_compilation+set}" = set; then :
10018 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10019 else
10020 STRICT_COMPILE=no
10021 fi
10022
10023
10024
10025
10026
10027
10028 STRICT_CFLAGS=""
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042 xorg_testset_save_CFLAGS="$CFLAGS"
10043
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10047 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10048 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int i;
10054 _ACEOF
10055 if ac_fn_c_try_compile "$LINENO"; then :
10056 xorg_cv_cc_flag_unknown_warning_option=yes
10057 else
10058 xorg_cv_cc_flag_unknown_warning_option=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10063 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10065 CFLAGS="$xorg_testset_save_CFLAGS"
10066 fi
10067
10068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071 fi
10072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10074 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10075 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 int i;
10081 _ACEOF
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083 xorg_cv_cc_flag_unused_command_line_argument=yes
10084 else
10085 xorg_cv_cc_flag_unused_command_line_argument=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10090 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10092 CFLAGS="$xorg_testset_save_CFLAGS"
10093 fi
10094
10095 found="no"
10096
10097 if test $found = "no" ; then
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 fi
10101
10102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10104 fi
10105
10106 CFLAGS="$CFLAGS -pedantic"
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10109 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10110 cacheid=xorg_cv_cc_flag__pedantic
10111 if eval \${$cacheid+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 int i;
10117 int
10118 main ()
10119 {
10120
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126 eval $cacheid=yes
10127 else
10128 eval $cacheid=no
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 fi
10133
10134
10135 CFLAGS="$xorg_testset_save_CFLAGS"
10136
10137 eval supported=\$$cacheid
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10139 $as_echo "$supported" >&6; }
10140 if test "$supported" = "yes" ; then
10141 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10142 found="yes"
10143 fi
10144 fi
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160 xorg_testset_save_CFLAGS="$CFLAGS"
10161
10162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10165 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10166 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 int i;
10172 _ACEOF
10173 if ac_fn_c_try_compile "$LINENO"; then :
10174 xorg_cv_cc_flag_unknown_warning_option=yes
10175 else
10176 xorg_cv_cc_flag_unknown_warning_option=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10181 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184 fi
10185
10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189 fi
10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10192 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10193 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 int i;
10199 _ACEOF
10200 if ac_fn_c_try_compile "$LINENO"; then :
10201 xorg_cv_cc_flag_unused_command_line_argument=yes
10202 else
10203 xorg_cv_cc_flag_unused_command_line_argument=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10208 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211 fi
10212
10213 found="no"
10214
10215 if test $found = "no" ; then
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 fi
10219
10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10222 fi
10223
10224 CFLAGS="$CFLAGS -Werror"
10225
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10227 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10228 cacheid=xorg_cv_cc_flag__Werror
10229 if eval \${$cacheid+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 int i;
10235 int
10236 main ()
10237 {
10238
10239 ;
10240 return 0;
10241 }
10242 _ACEOF
10243 if ac_fn_c_try_link "$LINENO"; then :
10244 eval $cacheid=yes
10245 else
10246 eval $cacheid=no
10247 fi
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 fi
10251
10252
10253 CFLAGS="$xorg_testset_save_CFLAGS"
10254
10255 eval supported=\$$cacheid
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10257 $as_echo "$supported" >&6; }
10258 if test "$supported" = "yes" ; then
10259 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10260 found="yes"
10261 fi
10262 fi
10263
10264 if test $found = "no" ; then
10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267 fi
10268
10269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10271 fi
10272
10273 CFLAGS="$CFLAGS -errwarn"
10274
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10276 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10277 cacheid=xorg_cv_cc_flag__errwarn
10278 if eval \${$cacheid+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 int i;
10284 int
10285 main ()
10286 {
10287
10288 ;
10289 return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_link "$LINENO"; then :
10293 eval $cacheid=yes
10294 else
10295 eval $cacheid=no
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 fi
10300
10301
10302 CFLAGS="$xorg_testset_save_CFLAGS"
10303
10304 eval supported=\$$cacheid
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10306 $as_echo "$supported" >&6; }
10307 if test "$supported" = "yes" ; then
10308 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10309 found="yes"
10310 fi
10311 fi
10312
10313
10314
10315 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10316 # activate it with -Werror, so we add it here explicitly.
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330 xorg_testset_save_CFLAGS="$CFLAGS"
10331
10332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10341 int i;
10342 _ACEOF
10343 if ac_fn_c_try_compile "$LINENO"; then :
10344 xorg_cv_cc_flag_unknown_warning_option=yes
10345 else
10346 xorg_cv_cc_flag_unknown_warning_option=no
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10353 CFLAGS="$xorg_testset_save_CFLAGS"
10354 fi
10355
10356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359 fi
10360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 int i;
10369 _ACEOF
10370 if ac_fn_c_try_compile "$LINENO"; then :
10371 xorg_cv_cc_flag_unused_command_line_argument=yes
10372 else
10373 xorg_cv_cc_flag_unused_command_line_argument=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10380 CFLAGS="$xorg_testset_save_CFLAGS"
10381 fi
10382
10383 found="no"
10384
10385 if test $found = "no" ; then
10386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10388 fi
10389
10390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10392 fi
10393
10394 CFLAGS="$CFLAGS -Werror=attributes"
10395
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10397 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10398 cacheid=xorg_cv_cc_flag__Werror_attributes
10399 if eval \${$cacheid+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 int i;
10405 int
10406 main ()
10407 {
10408
10409 ;
10410 return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_link "$LINENO"; then :
10414 eval $cacheid=yes
10415 else
10416 eval $cacheid=no
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 fi
10421
10422
10423 CFLAGS="$xorg_testset_save_CFLAGS"
10424
10425 eval supported=\$$cacheid
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10427 $as_echo "$supported" >&6; }
10428 if test "$supported" = "yes" ; then
10429 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10430 found="yes"
10431 fi
10432 fi
10433
10434
10435
10436 if test "x$STRICT_COMPILE" = "xyes"; then
10437 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10438 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10439 fi
10440
10441
10442
10443
10444
10445
10446 cat >>confdefs.h <<_ACEOF
10447 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10448 _ACEOF
10449
10450 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10451 if test "x$PVM" = "x"; then
10452 PVM="0"
10453 fi
10454
10455 cat >>confdefs.h <<_ACEOF
10456 #define PACKAGE_VERSION_MINOR $PVM
10457 _ACEOF
10458
10459 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10460 if test "x$PVP" = "x"; then
10461 PVP="0"
10462 fi
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10466 _ACEOF
10467
10468
10469
10470 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10471 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10472 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10473 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10474
10475
10476
10477
10478 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10479 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10480 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10481 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10482 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10483
10484
10485
10486
10487
10488
10489 if test x$APP_MAN_SUFFIX = x ; then
10490 APP_MAN_SUFFIX=1
10491 fi
10492 if test x$APP_MAN_DIR = x ; then
10493 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10494 fi
10495
10496 if test x$LIB_MAN_SUFFIX = x ; then
10497 LIB_MAN_SUFFIX=3
10498 fi
10499 if test x$LIB_MAN_DIR = x ; then
10500 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10501 fi
10502
10503 if test x$FILE_MAN_SUFFIX = x ; then
10504 case $host_os in
10505 # Solaris 2.0 - 11 use SysV man page sections
10506 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10507 *) FILE_MAN_SUFFIX=5 ;;
10508 esac
10509 fi
10510 if test x$FILE_MAN_DIR = x ; then
10511 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10512 fi
10513
10514 if test x$MISC_MAN_SUFFIX = x ; then
10515 case $host_os in
10516 # Solaris 2.0 - 11 use SysV man page sections
10517 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10518 *) MISC_MAN_SUFFIX=7 ;;
10519 esac
10520 fi
10521 if test x$MISC_MAN_DIR = x ; then
10522 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10523 fi
10524
10525 if test x$DRIVER_MAN_SUFFIX = x ; then
10526 case $host_os in
10527 # Solaris 2.0 - 11 use SysV man page sections
10528 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10529 *) DRIVER_MAN_SUFFIX=4 ;;
10530 esac
10531 fi
10532 if test x$DRIVER_MAN_DIR = x ; then
10533 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10534 fi
10535
10536 if test x$ADMIN_MAN_SUFFIX = x ; then
10537 case $host_os in
10538 # Solaris 2.0 - 11 use SysV man page sections
10539 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10540 *) ADMIN_MAN_SUFFIX=8 ;;
10541 esac
10542 fi
10543 if test x$ADMIN_MAN_DIR = x ; then
10544 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10545 fi
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561 XORG_MAN_PAGE="X Version 11"
10562
10563 MAN_SUBSTS="\
10564 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10565 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10566 -e 's|__xservername__|Xorg|g' \
10567 -e 's|__xconfigfile__|xorg.conf|g' \
10568 -e 's|__projectroot__|\$(prefix)|g' \
10569 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10570 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10571 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10572 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10573 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10574 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10575 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10576
10577
10578
10579 # Check whether --enable-silent-rules was given.
10580 if test "${enable_silent_rules+set}" = set; then :
10581 enableval=$enable_silent_rules;
10582 fi
10583
10584 case $enable_silent_rules in # (((
10585 yes) AM_DEFAULT_VERBOSITY=0;;
10586 no) AM_DEFAULT_VERBOSITY=1;;
10587 *) AM_DEFAULT_VERBOSITY=0;;
10588 esac
10589 am_make=${MAKE-make}
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10591 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10592 if ${am_cv_make_support_nested_variables+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 if $as_echo 'TRUE=$(BAR$(V))
10596 BAR0=false
10597 BAR1=true
10598 V=1
10599 am__doit:
10600 @$(TRUE)
10601 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10602 am_cv_make_support_nested_variables=yes
10603 else
10604 am_cv_make_support_nested_variables=no
10605 fi
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10608 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10609 if test $am_cv_make_support_nested_variables = yes; then
10610 AM_V='$(V)'
10611 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10612 else
10613 AM_V=$AM_DEFAULT_VERBOSITY
10614 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10615 fi
10616 AM_BACKSLASH='\'
10617
10618
10619
10620
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10622 $as_echo_n "checking whether ln -s works... " >&6; }
10623 LN_S=$as_ln_s
10624 if test "$LN_S" = "ln -s"; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626 $as_echo "yes" >&6; }
10627 else
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10629 $as_echo "no, using $LN_S" >&6; }
10630 fi
10631
10632
10633 # Extract the first word of "xcursorgen", so it can be a program name with args.
10634 set dummy xcursorgen; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if ${ac_cv_path_XCURSORGEN+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 case $XCURSORGEN in
10641 [\\/]* | ?:[\\/]*)
10642 ac_cv_path_XCURSORGEN="$XCURSORGEN" # Let the user override the test with a path.
10643 ;;
10644 *)
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10647 do
10648 IFS=$as_save_IFS
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10652 ac_cv_path_XCURSORGEN="$as_dir/$ac_word$ac_exec_ext"
10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10654 break 2
10655 fi
10656 done
10657 done
10658 IFS=$as_save_IFS
10659
10660 test -z "$ac_cv_path_XCURSORGEN" && ac_cv_path_XCURSORGEN="no"
10661 ;;
10662 esac
10663 fi
10664 XCURSORGEN=$ac_cv_path_XCURSORGEN
10665 if test -n "$XCURSORGEN"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCURSORGEN" >&5
10667 $as_echo "$XCURSORGEN" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10671 fi
10672
10673
10674 if test "x$XCURSORGEN" = xno; then
10675 as_fn_error $? "xcursorgen is required to build these cursors." "$LINENO" 5
10676 fi
10677
10678
10679
10680 pkg_failed=no
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICONDEFS" >&5
10682 $as_echo_n "checking for ICONDEFS... " >&6; }
10683
10684 if test -n "$ICONDEFS_CFLAGS"; then
10685 pkg_cv_ICONDEFS_CFLAGS="$ICONDEFS_CFLAGS"
10686 elif test -n "$PKG_CONFIG"; then
10687 if test -n "$PKG_CONFIG" && \
10688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5
10689 ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5
10690 ac_status=$?
10691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10692 test $ac_status = 0; }; then
10693 pkg_cv_ICONDEFS_CFLAGS=`$PKG_CONFIG --cflags "xcursor" 2>/dev/null`
10694 test "x$?" != "x0" && pkg_failed=yes
10695 else
10696 pkg_failed=yes
10697 fi
10698 else
10699 pkg_failed=untried
10700 fi
10701 if test -n "$ICONDEFS_LIBS"; then
10702 pkg_cv_ICONDEFS_LIBS="$ICONDEFS_LIBS"
10703 elif test -n "$PKG_CONFIG"; then
10704 if test -n "$PKG_CONFIG" && \
10705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5
10706 ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5
10707 ac_status=$?
10708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10709 test $ac_status = 0; }; then
10710 pkg_cv_ICONDEFS_LIBS=`$PKG_CONFIG --libs "xcursor" 2>/dev/null`
10711 test "x$?" != "x0" && pkg_failed=yes
10712 else
10713 pkg_failed=yes
10714 fi
10715 else
10716 pkg_failed=untried
10717 fi
10718
10719
10720
10721 if test $pkg_failed = yes; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724
10725 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10726 _pkg_short_errors_supported=yes
10727 else
10728 _pkg_short_errors_supported=no
10729 fi
10730 if test $_pkg_short_errors_supported = yes; then
10731 ICONDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcursor" 2>&1`
10732 else
10733 ICONDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcursor" 2>&1`
10734 fi
10735 # Put the nasty error message in config.log where it belongs
10736 echo "$ICONDEFS_PKG_ERRORS" >&5
10737
10738 as_fn_error $? "Package requirements (xcursor) were not met:
10739
10740 $ICONDEFS_PKG_ERRORS
10741
10742 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10743 installed software in a non-standard prefix.
10744
10745 Alternatively, you may set the environment variables ICONDEFS_CFLAGS
10746 and ICONDEFS_LIBS to avoid the need to call pkg-config.
10747 See the pkg-config man page for more details." "$LINENO" 5
10748 elif test $pkg_failed = untried; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10753 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10754 is in your PATH or set the PKG_CONFIG environment variable to the full
10755 path to pkg-config.
10756
10757 Alternatively, you may set the environment variables ICONDEFS_CFLAGS
10758 and ICONDEFS_LIBS to avoid the need to call pkg-config.
10759 See the pkg-config man page for more details.
10760
10761 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10762 See \`config.log' for more details" "$LINENO" 5; }
10763 else
10764 ICONDEFS_CFLAGS=$pkg_cv_ICONDEFS_CFLAGS
10765 ICONDEFS_LIBS=$pkg_cv_ICONDEFS_LIBS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767 $as_echo "yes" >&6; }
10768
10769 fi
10770 pkg_cursordir=`$PKG_CONFIG --variable=icondir xcursor`
10771
10772 # Check whether --with-cursordir was given.
10773 if test "${with_cursordir+set}" = set; then :
10774 withval=$with_cursordir; cursordir="$withval"
10775 else
10776 cursordir="${pkg_cursordir}"
10777 fi
10778
10779
10780
10781 if true; then
10782 WHITEGLASS_TRUE=
10783 WHITEGLASS_FALSE='#'
10784 else
10785 WHITEGLASS_TRUE='#'
10786 WHITEGLASS_FALSE=
10787 fi
10788
10789 if true; then
10790 REDGLASS_TRUE=
10791 REDGLASS_FALSE='#'
10792 else
10793 REDGLASS_TRUE='#'
10794 REDGLASS_FALSE=
10795 fi
10796
10797 if true; then
10798 HANDHELDS_TRUE=
10799 HANDHELDS_FALSE='#'
10800 else
10801 HANDHELDS_TRUE='#'
10802 HANDHELDS_FALSE=
10803 fi
10804
10805
10806
10807 ac_config_files="$ac_config_files Makefile handhelds/Makefile redglass/Makefile whiteglass/Makefile"
10808
10809 cat >confcache <<\_ACEOF
10810 # This file is a shell script that caches the results of configure
10811 # tests run on this system so they can be shared between configure
10812 # scripts and configure runs, see configure's option --config-cache.
10813 # It is not useful on other systems. If it contains results you don't
10814 # want to keep, you may remove or edit it.
10815 #
10816 # config.status only pays attention to the cache file if you give it
10817 # the --recheck option to rerun configure.
10818 #
10819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10821 # following values.
10822
10823 _ACEOF
10824
10825 # The following way of writing the cache mishandles newlines in values,
10826 # but we know of no workaround that is simple, portable, and efficient.
10827 # So, we kill variables containing newlines.
10828 # Ultrix sh set writes to stderr and can't be redirected directly,
10829 # and sets the high bit in the cache file unless we assign to the vars.
10830 (
10831 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10832 eval ac_val=\$$ac_var
10833 case $ac_val in #(
10834 *${as_nl}*)
10835 case $ac_var in #(
10836 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10837 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10838 esac
10839 case $ac_var in #(
10840 _ | IFS | as_nl) ;; #(
10841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10842 *) { eval $ac_var=; unset $ac_var;} ;;
10843 esac ;;
10844 esac
10845 done
10846
10847 (set) 2>&1 |
10848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10849 *${as_nl}ac_space=\ *)
10850 # `set' does not quote correctly, so add quotes: double-quote
10851 # substitution turns \\\\ into \\, and sed turns \\ into \.
10852 sed -n \
10853 "s/'/'\\\\''/g;
10854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10855 ;; #(
10856 *)
10857 # `set' quotes correctly as required by POSIX, so do not add quotes.
10858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10859 ;;
10860 esac |
10861 sort
10862 ) |
10863 sed '
10864 /^ac_cv_env_/b end
10865 t clear
10866 :clear
10867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10868 t end
10869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10870 :end' >>confcache
10871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10872 if test -w "$cache_file"; then
10873 if test "x$cache_file" != "x/dev/null"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10875 $as_echo "$as_me: updating cache $cache_file" >&6;}
10876 if test ! -f "$cache_file" || test -h "$cache_file"; then
10877 cat confcache >"$cache_file"
10878 else
10879 case $cache_file in #(
10880 */* | ?:*)
10881 mv -f confcache "$cache_file"$$ &&
10882 mv -f "$cache_file"$$ "$cache_file" ;; #(
10883 *)
10884 mv -f confcache "$cache_file" ;;
10885 esac
10886 fi
10887 fi
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10890 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10891 fi
10892 fi
10893 rm -f confcache
10894
10895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10896 # Let make expand exec_prefix.
10897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10898
10899 # Transform confdefs.h into DEFS.
10900 # Protect against shell expansion while executing Makefile rules.
10901 # Protect against Makefile macro expansion.
10902 #
10903 # If the first sed substitution is executed (which looks for macros that
10904 # take arguments), then branch to the quote section. Otherwise,
10905 # look for a macro that doesn't take arguments.
10906 ac_script='
10907 :mline
10908 /\\$/{
10909 N
10910 s,\\\n,,
10911 b mline
10912 }
10913 t clear
10914 :clear
10915 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10916 t quote
10917 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10918 t quote
10919 b any
10920 :quote
10921 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10922 s/\[/\\&/g
10923 s/\]/\\&/g
10924 s/\$/$$/g
10925 H
10926 :any
10927 ${
10928 g
10929 s/^\n//
10930 s/\n/ /g
10931 p
10932 }
10933 '
10934 DEFS=`sed -n "$ac_script" confdefs.h`
10935
10936
10937 ac_libobjs=
10938 ac_ltlibobjs=
10939 U=
10940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10941 # 1. Remove the extension, and $U if already installed.
10942 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10943 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10945 # will be set to the directory where LIBOBJS objects are built.
10946 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10947 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10948 done
10949 LIBOBJS=$ac_libobjs
10950
10951 LTLIBOBJS=$ac_ltlibobjs
10952
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10955 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10956 if test -n "$am_sleep_pid"; then
10957 # Hide warnings about reused PIDs.
10958 wait $am_sleep_pid 2>/dev/null
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10961 $as_echo "done" >&6; }
10962 if test -n "$EXEEXT"; then
10963 am__EXEEXT_TRUE=
10964 am__EXEEXT_FALSE='#'
10965 else
10966 am__EXEEXT_TRUE='#'
10967 am__EXEEXT_FALSE=
10968 fi
10969
10970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10971 as_fn_error $? "conditional \"AMDEP\" was never defined.
10972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10973 fi
10974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10975 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10977 fi
10978 if test -z "${WHITEGLASS_TRUE}" && test -z "${WHITEGLASS_FALSE}"; then
10979 as_fn_error $? "conditional \"WHITEGLASS\" was never defined.
10980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10981 fi
10982 if test -z "${REDGLASS_TRUE}" && test -z "${REDGLASS_FALSE}"; then
10983 as_fn_error $? "conditional \"REDGLASS\" was never defined.
10984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10985 fi
10986 if test -z "${HANDHELDS_TRUE}" && test -z "${HANDHELDS_FALSE}"; then
10987 as_fn_error $? "conditional \"HANDHELDS\" was never defined.
10988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10989 fi
10990
10991 : "${CONFIG_STATUS=./config.status}"
10992 ac_write_fail=0
10993 ac_clean_files_save=$ac_clean_files
10994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10996 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10997 as_write_fail=0
10998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10999 #! $SHELL
11000 # Generated by $as_me.
11001 # Run this file to recreate the current configuration.
11002 # Compiler output produced by configure, useful for debugging
11003 # configure, is in config.log if it exists.
11004
11005 debug=false
11006 ac_cs_recheck=false
11007 ac_cs_silent=false
11008
11009 SHELL=\${CONFIG_SHELL-$SHELL}
11010 export SHELL
11011 _ASEOF
11012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11013 ## -------------------- ##
11014 ## M4sh Initialization. ##
11015 ## -------------------- ##
11016
11017 # Be more Bourne compatible
11018 DUALCASE=1; export DUALCASE # for MKS sh
11019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11020 emulate sh
11021 NULLCMD=:
11022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11023 # is contrary to our usage. Disable this feature.
11024 alias -g '${1+"$@"}'='"$@"'
11025 setopt NO_GLOB_SUBST
11026 else
11027 case `(set -o) 2>/dev/null` in #(
11028 *posix*) :
11029 set -o posix ;; #(
11030 *) :
11031 ;;
11032 esac
11033 fi
11034
11035
11036 as_nl='
11037 '
11038 export as_nl
11039 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11043 # Prefer a ksh shell builtin over an external printf program on Solaris,
11044 # but without wasting forks for bash or zsh.
11045 if test -z "$BASH_VERSION$ZSH_VERSION" \
11046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11047 as_echo='print -r --'
11048 as_echo_n='print -rn --'
11049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11050 as_echo='printf %s\n'
11051 as_echo_n='printf %s'
11052 else
11053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11055 as_echo_n='/usr/ucb/echo -n'
11056 else
11057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11058 as_echo_n_body='eval
11059 arg=$1;
11060 case $arg in #(
11061 *"$as_nl"*)
11062 expr "X$arg" : "X\\(.*\\)$as_nl";
11063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11064 esac;
11065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11066 '
11067 export as_echo_n_body
11068 as_echo_n='sh -c $as_echo_n_body as_echo'
11069 fi
11070 export as_echo_body
11071 as_echo='sh -c $as_echo_body as_echo'
11072 fi
11073
11074 # The user is always right.
11075 if test "${PATH_SEPARATOR+set}" != set; then
11076 PATH_SEPARATOR=:
11077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11079 PATH_SEPARATOR=';'
11080 }
11081 fi
11082
11083
11084 # IFS
11085 # We need space, tab and new line, in precisely that order. Quoting is
11086 # there to prevent editors from complaining about space-tab.
11087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11088 # splitting by setting IFS to empty value.)
11089 IFS=" "" $as_nl"
11090
11091 # Find who we are. Look in the path if we contain no directory separator.
11092 as_myself=
11093 case $0 in #((
11094 *[\\/]* ) as_myself=$0 ;;
11095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11097 do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11101 done
11102 IFS=$as_save_IFS
11103
11104 ;;
11105 esac
11106 # We did not find ourselves, most probably we were run as `sh COMMAND'
11107 # in which case we are not to be found in the path.
11108 if test "x$as_myself" = x; then
11109 as_myself=$0
11110 fi
11111 if test ! -f "$as_myself"; then
11112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11113 exit 1
11114 fi
11115
11116 # Unset variables that we do not need and which cause bugs (e.g. in
11117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11118 # suppresses any "Segmentation fault" message there. '((' could
11119 # trigger a bug in pdksh 5.2.14.
11120 for as_var in BASH_ENV ENV MAIL MAILPATH
11121 do eval test x\${$as_var+set} = xset \
11122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11123 done
11124 PS1='$ '
11125 PS2='> '
11126 PS4='+ '
11127
11128 # NLS nuisances.
11129 LC_ALL=C
11130 export LC_ALL
11131 LANGUAGE=C
11132 export LANGUAGE
11133
11134 # CDPATH.
11135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11136
11137
11138 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11139 # ----------------------------------------
11140 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11141 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11142 # script with STATUS, using 1 if that was 0.
11143 as_fn_error ()
11144 {
11145 as_status=$1; test $as_status -eq 0 && as_status=1
11146 if test "$4"; then
11147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11149 fi
11150 $as_echo "$as_me: error: $2" >&2
11151 as_fn_exit $as_status
11152 } # as_fn_error
11153
11154
11155 # as_fn_set_status STATUS
11156 # -----------------------
11157 # Set $? to STATUS, without forking.
11158 as_fn_set_status ()
11159 {
11160 return $1
11161 } # as_fn_set_status
11162
11163 # as_fn_exit STATUS
11164 # -----------------
11165 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11166 as_fn_exit ()
11167 {
11168 set +e
11169 as_fn_set_status $1
11170 exit $1
11171 } # as_fn_exit
11172
11173 # as_fn_unset VAR
11174 # ---------------
11175 # Portably unset VAR.
11176 as_fn_unset ()
11177 {
11178 { eval $1=; unset $1;}
11179 }
11180 as_unset=as_fn_unset
11181 # as_fn_append VAR VALUE
11182 # ----------------------
11183 # Append the text in VALUE to the end of the definition contained in VAR. Take
11184 # advantage of any shell optimizations that allow amortized linear growth over
11185 # repeated appends, instead of the typical quadratic growth present in naive
11186 # implementations.
11187 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11188 eval 'as_fn_append ()
11189 {
11190 eval $1+=\$2
11191 }'
11192 else
11193 as_fn_append ()
11194 {
11195 eval $1=\$$1\$2
11196 }
11197 fi # as_fn_append
11198
11199 # as_fn_arith ARG...
11200 # ------------------
11201 # Perform arithmetic evaluation on the ARGs, and store the result in the
11202 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11203 # must be portable across $(()) and expr.
11204 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11205 eval 'as_fn_arith ()
11206 {
11207 as_val=$(( $* ))
11208 }'
11209 else
11210 as_fn_arith ()
11211 {
11212 as_val=`expr "$@" || test $? -eq 1`
11213 }
11214 fi # as_fn_arith
11215
11216
11217 if expr a : '\(a\)' >/dev/null 2>&1 &&
11218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11219 as_expr=expr
11220 else
11221 as_expr=false
11222 fi
11223
11224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11225 as_basename=basename
11226 else
11227 as_basename=false
11228 fi
11229
11230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11231 as_dirname=dirname
11232 else
11233 as_dirname=false
11234 fi
11235
11236 as_me=`$as_basename -- "$0" ||
11237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11238 X"$0" : 'X\(//\)$' \| \
11239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11240 $as_echo X/"$0" |
11241 sed '/^.*\/\([^/][^/]*\)\/*$/{
11242 s//\1/
11243 q
11244 }
11245 /^X\/\(\/\/\)$/{
11246 s//\1/
11247 q
11248 }
11249 /^X\/\(\/\).*/{
11250 s//\1/
11251 q
11252 }
11253 s/.*/./; q'`
11254
11255 # Avoid depending upon Character Ranges.
11256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11259 as_cr_digits='0123456789'
11260 as_cr_alnum=$as_cr_Letters$as_cr_digits
11261
11262 ECHO_C= ECHO_N= ECHO_T=
11263 case `echo -n x` in #(((((
11264 -n*)
11265 case `echo 'xy\c'` in
11266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11267 xy) ECHO_C='\c';;
11268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11269 ECHO_T=' ';;
11270 esac;;
11271 *)
11272 ECHO_N='-n';;
11273 esac
11274
11275 rm -f conf$$ conf$$.exe conf$$.file
11276 if test -d conf$$.dir; then
11277 rm -f conf$$.dir/conf$$.file
11278 else
11279 rm -f conf$$.dir
11280 mkdir conf$$.dir 2>/dev/null
11281 fi
11282 if (echo >conf$$.file) 2>/dev/null; then
11283 if ln -s conf$$.file conf$$ 2>/dev/null; then
11284 as_ln_s='ln -s'
11285 # ... but there are two gotchas:
11286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11288 # In both cases, we have to default to `cp -pR'.
11289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11290 as_ln_s='cp -pR'
11291 elif ln conf$$.file conf$$ 2>/dev/null; then
11292 as_ln_s=ln
11293 else
11294 as_ln_s='cp -pR'
11295 fi
11296 else
11297 as_ln_s='cp -pR'
11298 fi
11299 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11300 rmdir conf$$.dir 2>/dev/null
11301
11302
11303 # as_fn_mkdir_p
11304 # -------------
11305 # Create "$as_dir" as a directory, including parents if necessary.
11306 as_fn_mkdir_p ()
11307 {
11308
11309 case $as_dir in #(
11310 -*) as_dir=./$as_dir;;
11311 esac
11312 test -d "$as_dir" || eval $as_mkdir_p || {
11313 as_dirs=
11314 while :; do
11315 case $as_dir in #(
11316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11317 *) as_qdir=$as_dir;;
11318 esac
11319 as_dirs="'$as_qdir' $as_dirs"
11320 as_dir=`$as_dirname -- "$as_dir" ||
11321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11322 X"$as_dir" : 'X\(//\)[^/]' \| \
11323 X"$as_dir" : 'X\(//\)$' \| \
11324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11325 $as_echo X"$as_dir" |
11326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11327 s//\1/
11328 q
11329 }
11330 /^X\(\/\/\)[^/].*/{
11331 s//\1/
11332 q
11333 }
11334 /^X\(\/\/\)$/{
11335 s//\1/
11336 q
11337 }
11338 /^X\(\/\).*/{
11339 s//\1/
11340 q
11341 }
11342 s/.*/./; q'`
11343 test -d "$as_dir" && break
11344 done
11345 test -z "$as_dirs" || eval "mkdir $as_dirs"
11346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11347
11348
11349 } # as_fn_mkdir_p
11350 if mkdir -p . 2>/dev/null; then
11351 as_mkdir_p='mkdir -p "$as_dir"'
11352 else
11353 test -d ./-p && rmdir ./-p
11354 as_mkdir_p=false
11355 fi
11356
11357
11358 # as_fn_executable_p FILE
11359 # -----------------------
11360 # Test if FILE is an executable regular file.
11361 as_fn_executable_p ()
11362 {
11363 test -f "$1" && test -x "$1"
11364 } # as_fn_executable_p
11365 as_test_x='test -x'
11366 as_executable_p=as_fn_executable_p
11367
11368 # Sed expression to map a string onto a valid CPP name.
11369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11370
11371 # Sed expression to map a string onto a valid variable name.
11372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11373
11374
11375 exec 6>&1
11376 ## ----------------------------------- ##
11377 ## Main body of $CONFIG_STATUS script. ##
11378 ## ----------------------------------- ##
11379 _ASEOF
11380 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11381
11382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11383 # Save the log message, to keep $0 and so on meaningful, and to
11384 # report actual input values of CONFIG_FILES etc. instead of their
11385 # values after options handling.
11386 ac_log="
11387 This file was extended by xcursor-themes $as_me 1.0.6, which was
11388 generated by GNU Autoconf 2.69. Invocation command line was
11389
11390 CONFIG_FILES = $CONFIG_FILES
11391 CONFIG_HEADERS = $CONFIG_HEADERS
11392 CONFIG_LINKS = $CONFIG_LINKS
11393 CONFIG_COMMANDS = $CONFIG_COMMANDS
11394 $ $0 $@
11395
11396 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11397 "
11398
11399 _ACEOF
11400
11401 case $ac_config_files in *"
11402 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11403 esac
11404
11405
11406
11407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11408 # Files that config.status was made for.
11409 config_files="$ac_config_files"
11410 config_commands="$ac_config_commands"
11411
11412 _ACEOF
11413
11414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11415 ac_cs_usage="\
11416 \`$as_me' instantiates files and other configuration actions
11417 from templates according to the current configuration. Unless the files
11418 and actions are specified as TAGs, all are instantiated by default.
11419
11420 Usage: $0 [OPTION]... [TAG]...
11421
11422 -h, --help print this help, then exit
11423 -V, --version print version number and configuration settings, then exit
11424 --config print configuration, then exit
11425 -q, --quiet, --silent
11426 do not print progress messages
11427 -d, --debug don't remove temporary files
11428 --recheck update $as_me by reconfiguring in the same conditions
11429 --file=FILE[:TEMPLATE]
11430 instantiate the configuration file FILE
11431
11432 Configuration files:
11433 $config_files
11434
11435 Configuration commands:
11436 $config_commands
11437
11438 Report bugs to <https://gitlab.freedesktop.org/xorg/data/cursors/issues>."
11439
11440 _ACEOF
11441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11442 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11443 ac_cs_version="\\
11444 xcursor-themes config.status 1.0.6
11445 configured by $0, generated by GNU Autoconf 2.69,
11446 with options \\"\$ac_cs_config\\"
11447
11448 Copyright (C) 2012 Free Software Foundation, Inc.
11449 This config.status script is free software; the Free Software Foundation
11450 gives unlimited permission to copy, distribute and modify it."
11451
11452 ac_pwd='$ac_pwd'
11453 srcdir='$srcdir'
11454 INSTALL='$INSTALL'
11455 MKDIR_P='$MKDIR_P'
11456 AWK='$AWK'
11457 test -n "\$AWK" || AWK=awk
11458 _ACEOF
11459
11460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11461 # The default lists apply if the user does not specify any file.
11462 ac_need_defaults=:
11463 while test $# != 0
11464 do
11465 case $1 in
11466 --*=?*)
11467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11469 ac_shift=:
11470 ;;
11471 --*=)
11472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11473 ac_optarg=
11474 ac_shift=:
11475 ;;
11476 *)
11477 ac_option=$1
11478 ac_optarg=$2
11479 ac_shift=shift
11480 ;;
11481 esac
11482
11483 case $ac_option in
11484 # Handling of the options.
11485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11486 ac_cs_recheck=: ;;
11487 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11488 $as_echo "$ac_cs_version"; exit ;;
11489 --config | --confi | --conf | --con | --co | --c )
11490 $as_echo "$ac_cs_config"; exit ;;
11491 --debug | --debu | --deb | --de | --d | -d )
11492 debug=: ;;
11493 --file | --fil | --fi | --f )
11494 $ac_shift
11495 case $ac_optarg in
11496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11497 '') as_fn_error $? "missing file argument" ;;
11498 esac
11499 as_fn_append CONFIG_FILES " '$ac_optarg'"
11500 ac_need_defaults=false;;
11501 --he | --h | --help | --hel | -h )
11502 $as_echo "$ac_cs_usage"; exit ;;
11503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11505 ac_cs_silent=: ;;
11506
11507 # This is an error.
11508 -*) as_fn_error $? "unrecognized option: \`$1'
11509 Try \`$0 --help' for more information." ;;
11510
11511 *) as_fn_append ac_config_targets " $1"
11512 ac_need_defaults=false ;;
11513
11514 esac
11515 shift
11516 done
11517
11518 ac_configure_extra_args=
11519
11520 if $ac_cs_silent; then
11521 exec 6>/dev/null
11522 ac_configure_extra_args="$ac_configure_extra_args --silent"
11523 fi
11524
11525 _ACEOF
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 if \$ac_cs_recheck; then
11528 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11529 shift
11530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11531 CONFIG_SHELL='$SHELL'
11532 export CONFIG_SHELL
11533 exec "\$@"
11534 fi
11535
11536 _ACEOF
11537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11538 exec 5>>config.log
11539 {
11540 echo
11541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11542 ## Running $as_me. ##
11543 _ASBOX
11544 $as_echo "$ac_log"
11545 } >&5
11546
11547 _ACEOF
11548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11549 #
11550 # INIT-COMMANDS
11551 #
11552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11553
11554 _ACEOF
11555
11556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11557
11558 # Handling of arguments.
11559 for ac_config_target in $ac_config_targets
11560 do
11561 case $ac_config_target in
11562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11564 "handhelds/Makefile") CONFIG_FILES="$CONFIG_FILES handhelds/Makefile" ;;
11565 "redglass/Makefile") CONFIG_FILES="$CONFIG_FILES redglass/Makefile" ;;
11566 "whiteglass/Makefile") CONFIG_FILES="$CONFIG_FILES whiteglass/Makefile" ;;
11567
11568 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11569 esac
11570 done
11571
11572
11573 # If the user did not use the arguments to specify the items to instantiate,
11574 # then the envvar interface is used. Set only those that are not.
11575 # We use the long form for the default assignment because of an extremely
11576 # bizarre bug on SunOS 4.1.3.
11577 if $ac_need_defaults; then
11578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11580 fi
11581
11582 # Have a temporary directory for convenience. Make it in the build tree
11583 # simply because there is no reason against having it here, and in addition,
11584 # creating and moving files from /tmp can sometimes cause problems.
11585 # Hook for its removal unless debugging.
11586 # Note that there is a small window in which the directory will not be cleaned:
11587 # after its creation but before its name has been assigned to `$tmp'.
11588 $debug ||
11589 {
11590 tmp= ac_tmp=
11591 trap 'exit_status=$?
11592 : "${ac_tmp:=$tmp}"
11593 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11594 ' 0
11595 trap 'as_fn_exit 1' 1 2 13 15
11596 }
11597 # Create a (secure) tmp directory for tmp files.
11598
11599 {
11600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11601 test -d "$tmp"
11602 } ||
11603 {
11604 tmp=./conf$$-$RANDOM
11605 (umask 077 && mkdir "$tmp")
11606 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11607 ac_tmp=$tmp
11608
11609 # Set up the scripts for CONFIG_FILES section.
11610 # No need to generate them if there are no CONFIG_FILES.
11611 # This happens for instance with `./config.status config.h'.
11612 if test -n "$CONFIG_FILES"; then
11613
11614
11615 ac_cr=`echo X | tr X '\015'`
11616 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11617 # But we know of no other shell where ac_cr would be empty at this
11618 # point, so we can use a bashism as a fallback.
11619 if test "x$ac_cr" = x; then
11620 eval ac_cr=\$\'\\r\'
11621 fi
11622 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11623 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11624 ac_cs_awk_cr='\\r'
11625 else
11626 ac_cs_awk_cr=$ac_cr
11627 fi
11628
11629 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11630 _ACEOF
11631
11632
11633 {
11634 echo "cat >conf$$subs.awk <<_ACEOF" &&
11635 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11636 echo "_ACEOF"
11637 } >conf$$subs.sh ||
11638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11639 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11640 ac_delim='%!_!# '
11641 for ac_last_try in false false false false false :; do
11642 . ./conf$$subs.sh ||
11643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11644
11645 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11646 if test $ac_delim_n = $ac_delim_num; then
11647 break
11648 elif $ac_last_try; then
11649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11650 else
11651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11652 fi
11653 done
11654 rm -f conf$$subs.sh
11655
11656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11657 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11658 _ACEOF
11659 sed -n '
11660 h
11661 s/^/S["/; s/!.*/"]=/
11662 p
11663 g
11664 s/^[^!]*!//
11665 :repl
11666 t repl
11667 s/'"$ac_delim"'$//
11668 t delim
11669 :nl
11670 h
11671 s/\(.\{148\}\)..*/\1/
11672 t more1
11673 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11674 p
11675 n
11676 b repl
11677 :more1
11678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11679 p
11680 g
11681 s/.\{148\}//
11682 t nl
11683 :delim
11684 h
11685 s/\(.\{148\}\)..*/\1/
11686 t more2
11687 s/["\\]/\\&/g; s/^/"/; s/$/"/
11688 p
11689 b
11690 :more2
11691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11692 p
11693 g
11694 s/.\{148\}//
11695 t delim
11696 ' <conf$$subs.awk | sed '
11697 /^[^""]/{
11698 N
11699 s/\n//
11700 }
11701 ' >>$CONFIG_STATUS || ac_write_fail=1
11702 rm -f conf$$subs.awk
11703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11704 _ACAWK
11705 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11706 for (key in S) S_is_set[key] = 1
11707 FS = ""
11708
11709 }
11710 {
11711 line = $ 0
11712 nfields = split(line, field, "@")
11713 substed = 0
11714 len = length(field[1])
11715 for (i = 2; i < nfields; i++) {
11716 key = field[i]
11717 keylen = length(key)
11718 if (S_is_set[key]) {
11719 value = S[key]
11720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11721 len += length(value) + length(field[++i])
11722 substed = 1
11723 } else
11724 len += 1 + keylen
11725 }
11726
11727 print line
11728 }
11729
11730 _ACAWK
11731 _ACEOF
11732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11733 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11735 else
11736 cat
11737 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11738 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11739 _ACEOF
11740
11741 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11742 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11743 # trailing colons and then remove the whole line if VPATH becomes empty
11744 # (actually we leave an empty line to preserve line numbers).
11745 if test "x$srcdir" = x.; then
11746 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11747 h
11748 s///
11749 s/^/:/
11750 s/[ ]*$/:/
11751 s/:\$(srcdir):/:/g
11752 s/:\${srcdir}:/:/g
11753 s/:@srcdir@:/:/g
11754 s/^:*//
11755 s/:*$//
11756 x
11757 s/\(=[ ]*\).*/\1/
11758 G
11759 s/\n//
11760 s/^[^=]*=[ ]*$//
11761 }'
11762 fi
11763
11764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11765 fi # test -n "$CONFIG_FILES"
11766
11767
11768 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11769 shift
11770 for ac_tag
11771 do
11772 case $ac_tag in
11773 :[FHLC]) ac_mode=$ac_tag; continue;;
11774 esac
11775 case $ac_mode$ac_tag in
11776 :[FHL]*:*);;
11777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11778 :[FH]-) ac_tag=-:-;;
11779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11780 esac
11781 ac_save_IFS=$IFS
11782 IFS=:
11783 set x $ac_tag
11784 IFS=$ac_save_IFS
11785 shift
11786 ac_file=$1
11787 shift
11788
11789 case $ac_mode in
11790 :L) ac_source=$1;;
11791 :[FH])
11792 ac_file_inputs=
11793 for ac_f
11794 do
11795 case $ac_f in
11796 -) ac_f="$ac_tmp/stdin";;
11797 *) # Look for the file first in the build tree, then in the source tree
11798 # (if the path is not absolute). The absolute path cannot be DOS-style,
11799 # because $ac_f cannot contain `:'.
11800 test -f "$ac_f" ||
11801 case $ac_f in
11802 [\\/$]*) false;;
11803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11804 esac ||
11805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11806 esac
11807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11808 as_fn_append ac_file_inputs " '$ac_f'"
11809 done
11810
11811 # Let's still pretend it is `configure' which instantiates (i.e., don't
11812 # use $as_me), people would be surprised to read:
11813 # /* config.h. Generated by config.status. */
11814 configure_input='Generated from '`
11815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11816 `' by configure.'
11817 if test x"$ac_file" != x-; then
11818 configure_input="$ac_file. $configure_input"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11820 $as_echo "$as_me: creating $ac_file" >&6;}
11821 fi
11822 # Neutralize special characters interpreted by sed in replacement strings.
11823 case $configure_input in #(
11824 *\&* | *\|* | *\\* )
11825 ac_sed_conf_input=`$as_echo "$configure_input" |
11826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11827 *) ac_sed_conf_input=$configure_input;;
11828 esac
11829
11830 case $ac_tag in
11831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11833 esac
11834 ;;
11835 esac
11836
11837 ac_dir=`$as_dirname -- "$ac_file" ||
11838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11839 X"$ac_file" : 'X\(//\)[^/]' \| \
11840 X"$ac_file" : 'X\(//\)$' \| \
11841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11842 $as_echo X"$ac_file" |
11843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11844 s//\1/
11845 q
11846 }
11847 /^X\(\/\/\)[^/].*/{
11848 s//\1/
11849 q
11850 }
11851 /^X\(\/\/\)$/{
11852 s//\1/
11853 q
11854 }
11855 /^X\(\/\).*/{
11856 s//\1/
11857 q
11858 }
11859 s/.*/./; q'`
11860 as_dir="$ac_dir"; as_fn_mkdir_p
11861 ac_builddir=.
11862
11863 case "$ac_dir" in
11864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11865 *)
11866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11867 # A ".." for each directory in $ac_dir_suffix.
11868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11869 case $ac_top_builddir_sub in
11870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11872 esac ;;
11873 esac
11874 ac_abs_top_builddir=$ac_pwd
11875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11876 # for backward compatibility:
11877 ac_top_builddir=$ac_top_build_prefix
11878
11879 case $srcdir in
11880 .) # We are building in place.
11881 ac_srcdir=.
11882 ac_top_srcdir=$ac_top_builddir_sub
11883 ac_abs_top_srcdir=$ac_pwd ;;
11884 [\\/]* | ?:[\\/]* ) # Absolute name.
11885 ac_srcdir=$srcdir$ac_dir_suffix;
11886 ac_top_srcdir=$srcdir
11887 ac_abs_top_srcdir=$srcdir ;;
11888 *) # Relative name.
11889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11890 ac_top_srcdir=$ac_top_build_prefix$srcdir
11891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11892 esac
11893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11894
11895
11896 case $ac_mode in
11897 :F)
11898 #
11899 # CONFIG_FILE
11900 #
11901
11902 case $INSTALL in
11903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11904 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11905 esac
11906 ac_MKDIR_P=$MKDIR_P
11907 case $MKDIR_P in
11908 [\\/$]* | ?:[\\/]* ) ;;
11909 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11910 esac
11911 _ACEOF
11912
11913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11914 # If the template does not know about datarootdir, expand it.
11915 # FIXME: This hack should be removed a few years after 2.60.
11916 ac_datarootdir_hack=; ac_datarootdir_seen=
11917 ac_sed_dataroot='
11918 /datarootdir/ {
11919 p
11920 q
11921 }
11922 /@datadir@/p
11923 /@docdir@/p
11924 /@infodir@/p
11925 /@localedir@/p
11926 /@mandir@/p'
11927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11928 *datarootdir*) ac_datarootdir_seen=yes;;
11929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11932 _ACEOF
11933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11934 ac_datarootdir_hack='
11935 s&@datadir@&$datadir&g
11936 s&@docdir@&$docdir&g
11937 s&@infodir@&$infodir&g
11938 s&@localedir@&$localedir&g
11939 s&@mandir@&$mandir&g
11940 s&\\\${datarootdir}&$datarootdir&g' ;;
11941 esac
11942 _ACEOF
11943
11944 # Neutralize VPATH when `$srcdir' = `.'.
11945 # Shell code in configure.ac might set extrasub.
11946 # FIXME: do we really want to maintain this feature?
11947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948 ac_sed_extra="$ac_vpsub
11949 $extrasub
11950 _ACEOF
11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952 :t
11953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11954 s|@configure_input@|$ac_sed_conf_input|;t t
11955 s&@top_builddir@&$ac_top_builddir_sub&;t t
11956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11957 s&@srcdir@&$ac_srcdir&;t t
11958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11959 s&@top_srcdir@&$ac_top_srcdir&;t t
11960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11961 s&@builddir@&$ac_builddir&;t t
11962 s&@abs_builddir@&$ac_abs_builddir&;t t
11963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11964 s&@INSTALL@&$ac_INSTALL&;t t
11965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11966 $ac_datarootdir_hack
11967 "
11968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11970
11971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11974 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11976 which seems to be undefined. Please make sure it is defined" >&5
11977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11978 which seems to be undefined. Please make sure it is defined" >&2;}
11979
11980 rm -f "$ac_tmp/stdin"
11981 case $ac_file in
11982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11984 esac \
11985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11986 ;;
11987
11988
11989 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11990 $as_echo "$as_me: executing $ac_file commands" >&6;}
11991 ;;
11992 esac
11993
11994
11995 case $ac_file$ac_mode in
11996 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11997 # Older Autoconf quotes --file arguments for eval, but not when files
11998 # are listed without --file. Let's play safe and only enable the eval
11999 # if we detect the quoting.
12000 case $CONFIG_FILES in
12001 *\'*) eval set x "$CONFIG_FILES" ;;
12002 *) set x $CONFIG_FILES ;;
12003 esac
12004 shift
12005 for mf
12006 do
12007 # Strip MF so we end up with the name of the file.
12008 mf=`echo "$mf" | sed -e 's/:.*$//'`
12009 # Check whether this is an Automake generated Makefile or not.
12010 # We used to match only the files named 'Makefile.in', but
12011 # some people rename them; so instead we look at the file content.
12012 # Grep'ing the first line is not enough: some people post-process
12013 # each Makefile.in and add a new line on top of each file to say so.
12014 # Grep'ing the whole file is not good either: AIX grep has a line
12015 # limit of 2048, but all sed's we know have understand at least 4000.
12016 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12017 dirpart=`$as_dirname -- "$mf" ||
12018 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12019 X"$mf" : 'X\(//\)[^/]' \| \
12020 X"$mf" : 'X\(//\)$' \| \
12021 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12022 $as_echo X"$mf" |
12023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12024 s//\1/
12025 q
12026 }
12027 /^X\(\/\/\)[^/].*/{
12028 s//\1/
12029 q
12030 }
12031 /^X\(\/\/\)$/{
12032 s//\1/
12033 q
12034 }
12035 /^X\(\/\).*/{
12036 s//\1/
12037 q
12038 }
12039 s/.*/./; q'`
12040 else
12041 continue
12042 fi
12043 # Extract the definition of DEPDIR, am__include, and am__quote
12044 # from the Makefile without running 'make'.
12045 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12046 test -z "$DEPDIR" && continue
12047 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12048 test -z "$am__include" && continue
12049 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12050 # Find all dependency output files, they are included files with
12051 # $(DEPDIR) in their names. We invoke sed twice because it is the
12052 # simplest approach to changing $(DEPDIR) to its actual value in the
12053 # expansion.
12054 for file in `sed -n "
12055 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12057 # Make sure the directory exists.
12058 test -f "$dirpart/$file" && continue
12059 fdir=`$as_dirname -- "$file" ||
12060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061 X"$file" : 'X\(//\)[^/]' \| \
12062 X"$file" : 'X\(//\)$' \| \
12063 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12064 $as_echo X"$file" |
12065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12066 s//\1/
12067 q
12068 }
12069 /^X\(\/\/\)[^/].*/{
12070 s//\1/
12071 q
12072 }
12073 /^X\(\/\/\)$/{
12074 s//\1/
12075 q
12076 }
12077 /^X\(\/\).*/{
12078 s//\1/
12079 q
12080 }
12081 s/.*/./; q'`
12082 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12083 # echo "creating $dirpart/$file"
12084 echo '# dummy' > "$dirpart/$file"
12085 done
12086 done
12087 }
12088 ;;
12089
12090 esac
12091 done # for ac_tag
12092
12093
12094 as_fn_exit 0
12095 _ACEOF
12096 ac_clean_files=$ac_clean_files_save
12097
12098 test $ac_write_fail = 0 ||
12099 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12100
12101
12102 # configure is writing to config.log, and then calls config.status.
12103 # config.status does its own redirection, appending to config.log.
12104 # Unfortunately, on DOS this fails, as config.log is still kept open
12105 # by configure, so config.status won't be able to write to it; its
12106 # output is simply discarded. So we exec the FD to /dev/null,
12107 # effectively closing config.log, so it can be properly (re)opened and
12108 # appended to by config.status. When coming back to configure, we
12109 # need to make the FD available again.
12110 if test "$no_create" != yes; then
12111 ac_cs_success=:
12112 ac_config_status_args=
12113 test "$silent" = yes &&
12114 ac_config_status_args="$ac_config_status_args --quiet"
12115 exec 5>/dev/null
12116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12117 exec 5>>config.log
12118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12119 # would make configure fail if this is the last instruction.
12120 $ac_cs_success || as_fn_exit 1
12121 fi
12122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12125 fi
12126
12127