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 transset 1.0.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='transset'
583 PACKAGE_TARNAME='transset'
584 PACKAGE_VERSION='1.0.2'
585 PACKAGE_STRING='transset 1.0.2'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 TRANSSET_LIBS
631 TRANSSET_CFLAGS
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 SED
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 INSTALL_CMD
656 PKG_CONFIG_LIBDIR
657 PKG_CONFIG_PATH
658 PKG_CONFIG
659 CHANGELOG_CMD
660 STRICT_CFLAGS
661 CWARNFLAGS
662 BASE_CFLAGS
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_silent_rules
752 enable_dependency_tracking
753 enable_selective_werror
754 enable_strict_compilation
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CC
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CPP
765 PKG_CONFIG
766 PKG_CONFIG_PATH
767 PKG_CONFIG_LIBDIR
768 TRANSSET_CFLAGS
769 TRANSSET_LIBS'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *=) ac_optarg= ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 ;;
1176
1177 esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198 do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1274 fi
1275 else
1276 ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1289 fi
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1302
1303 #
1304 # Report the --help message.
1305 #
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310 \`configure' configures transset 1.0.2 to adapt to many kinds of systems.
1311
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1316
1317 Defaults for the options are specified in brackets.
1318
1319 Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1335
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1340
1341 For better control, use the options below.
1342
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/transset]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1364
1365 cat <<\_ACEOF
1366
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1371
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of transset 1.0.2:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-dependency-tracking
1391 do not reject slow dependency extractors
1392 --disable-dependency-tracking
1393 speeds up one-time build
1394 --disable-selective-werror
1395 Turn off selective compiler errors. (default:
1396 enabled)
1397 --enable-strict-compilation
1398 Enable all warnings from compiler and make them
1399 errors (default: disabled)
1400
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CPP C preprocessor
1410 PKG_CONFIG path to pkg-config utility
1411 PKG_CONFIG_PATH
1412 directories to add to pkg-config's search path
1413 PKG_CONFIG_LIBDIR
1414 path overriding pkg-config's built-in search path
1415 TRANSSET_CFLAGS
1416 C compiler flags for TRANSSET, overriding pkg-config
1417 TRANSSET_LIBS
1418 linker flags for TRANSSET, overriding pkg-config
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 transset configure 1.0.2
1487 generated by GNU Autoconf 2.69
1488
1489 Copyright (C) 2012 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1539 # ---------------------------------------------
1540 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1541 # accordingly.
1542 ac_fn_c_check_decl ()
1543 {
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 as_decl_name=`echo $2|sed 's/ *(.*//'`
1546 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1548 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1549 if eval \${$3+:} false; then :
1550 $as_echo_n "(cached) " >&6
1551 else
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1554 $4
1555 int
1556 main ()
1557 {
1558 #ifndef $as_decl_name
1559 #ifdef __cplusplus
1560 (void) $as_decl_use;
1561 #else
1562 (void) $as_decl_name;
1563 #endif
1564 #endif
1565
1566 ;
1567 return 0;
1568 }
1569 _ACEOF
1570 if ac_fn_c_try_compile "$LINENO"; then :
1571 eval "$3=yes"
1572 else
1573 eval "$3=no"
1574 fi
1575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576 fi
1577 eval ac_res=\$$3
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 $as_echo "$ac_res" >&6; }
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581
1582 } # ac_fn_c_check_decl
1583
1584 # ac_fn_c_try_cpp LINENO
1585 # ----------------------
1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_cpp ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { { ac_try="$ac_cpp conftest.$ac_ext"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } > conftest.i && {
1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_cpp
1620
1621 # ac_fn_c_try_run LINENO
1622 # ----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624 # that executables *can* be run.
1625 ac_fn_c_try_run ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>&5
1636 ac_status=$?
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639 { { case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_try") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; }; }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: program exited with status $ac_status" >&5
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=$ac_status
1656 fi
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_run
1662
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 fi
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692 } # ac_fn_c_check_header_compile
1693
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_link
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1742
1743 It was created by transset $as_me 1.0.2, which was
1744 generated by GNU Autoconf 2.69. Invocation command line was
1745
1746 $ $0 $@
1747
1748 _ACEOF
1749 exec 5>>config.log
1750 {
1751 cat <<_ASUNAME
1752 ## --------- ##
1753 ## Platform. ##
1754 ## --------- ##
1755
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1764
1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772
1773 _ASUNAME
1774
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 $as_echo "PATH: $as_dir"
1781 done
1782 IFS=$as_save_IFS
1783
1784 } >&5
1785
1786 cat >&5 <<_ACEOF
1787
1788
1789 ## ----------- ##
1790 ## Core tests. ##
1791 ## ----------- ##
1792
1793 _ACEOF
1794
1795
1796 # Keep a trace of the command line.
1797 # Strip out --no-create and --no-recursion so they do not pile up.
1798 # Strip out --silent because we don't want to record it for future runs.
1799 # Also quote any args containing shell meta-characters.
1800 # Make two passes to allow for proper duplicate-argument suppression.
1801 ac_configure_args=
1802 ac_configure_args0=
1803 ac_configure_args1=
1804 ac_must_keep_next=false
1805 for ac_pass in 1 2
1806 do
1807 for ac_arg
1808 do
1809 case $ac_arg in
1810 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812 | -silent | --silent | --silen | --sile | --sil)
1813 continue ;;
1814 *\'*)
1815 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816 esac
1817 case $ac_pass in
1818 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819 2)
1820 as_fn_append ac_configure_args1 " '$ac_arg'"
1821 if test $ac_must_keep_next = true; then
1822 ac_must_keep_next=false # Got value, back to normal.
1823 else
1824 case $ac_arg in
1825 *=* | --config-cache | -C | -disable-* | --disable-* \
1826 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828 | -with-* | --with-* | -without-* | --without-* | --x)
1829 case "$ac_configure_args0 " in
1830 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831 esac
1832 ;;
1833 -* ) ac_must_keep_next=true ;;
1834 esac
1835 fi
1836 as_fn_append ac_configure_args " '$ac_arg'"
1837 ;;
1838 esac
1839 done
1840 done
1841 { ac_configure_args0=; unset ac_configure_args0;}
1842 { ac_configure_args1=; unset ac_configure_args1;}
1843
1844 # When interrupted or exit'd, cleanup temporary files, and complete
1845 # config.log. We remove comments because anyway the quotes in there
1846 # would cause problems or look ugly.
1847 # WARNING: Use '\'' to represent an apostrophe within the trap.
1848 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849 trap 'exit_status=$?
1850 # Save into config.log some information that might help in debugging.
1851 {
1852 echo
1853
1854 $as_echo "## ---------------- ##
1855 ## Cache variables. ##
1856 ## ---------------- ##"
1857 echo
1858 # The following way of writing the cache mishandles newlines in values,
1859 (
1860 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861 eval ac_val=\$$ac_var
1862 case $ac_val in #(
1863 *${as_nl}*)
1864 case $ac_var in #(
1865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867 esac
1868 case $ac_var in #(
1869 _ | IFS | as_nl) ;; #(
1870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871 *) { eval $ac_var=; unset $ac_var;} ;;
1872 esac ;;
1873 esac
1874 done
1875 (set) 2>&1 |
1876 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877 *${as_nl}ac_space=\ *)
1878 sed -n \
1879 "s/'\''/'\''\\\\'\'''\''/g;
1880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881 ;; #(
1882 *)
1883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884 ;;
1885 esac |
1886 sort
1887 )
1888 echo
1889
1890 $as_echo "## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##"
1893 echo
1894 for ac_var in $ac_subst_vars
1895 do
1896 eval ac_val=\$$ac_var
1897 case $ac_val in
1898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 esac
1900 $as_echo "$ac_var='\''$ac_val'\''"
1901 done | sort
1902 echo
1903
1904 if test -n "$ac_subst_files"; then
1905 $as_echo "## ------------------- ##
1906 ## File substitutions. ##
1907 ## ------------------- ##"
1908 echo
1909 for ac_var in $ac_subst_files
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 $as_echo "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918 fi
1919
1920 if test -s confdefs.h; then
1921 $as_echo "## ----------- ##
1922 ## confdefs.h. ##
1923 ## ----------- ##"
1924 echo
1925 cat confdefs.h
1926 echo
1927 fi
1928 test "$ac_signal" != 0 &&
1929 $as_echo "$as_me: caught signal $ac_signal"
1930 $as_echo "$as_me: exit $exit_status"
1931 } >&5
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934 exit $exit_status
1935 ' 0
1936 for ac_signal in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1938 done
1939 ac_signal=0
1940
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest* confdefs.h
1943
1944 $as_echo "/* confdefs.h */" > confdefs.h
1945
1946 # Predefined preprocessor variables.
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954 _ACEOF
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_STRING "$PACKAGE_STRING"
1962 _ACEOF
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966 _ACEOF
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_URL "$PACKAGE_URL"
1970 _ACEOF
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 ac_site_file1=NONE
1976 ac_site_file2=NONE
1977 if test -n "$CONFIG_SITE"; then
1978 # We do not want a PATH search for config.site.
1979 case $CONFIG_SITE in #((
1980 -*) ac_site_file1=./$CONFIG_SITE;;
1981 */*) ac_site_file1=$CONFIG_SITE;;
1982 *) ac_site_file1=./$CONFIG_SITE;;
1983 esac
1984 elif test "x$prefix" != xNONE; then
1985 ac_site_file1=$prefix/share/config.site
1986 ac_site_file2=$prefix/etc/config.site
1987 else
1988 ac_site_file1=$ac_default_prefix/share/config.site
1989 ac_site_file2=$ac_default_prefix/etc/config.site
1990 fi
1991 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992 do
1993 test "x$ac_site_file" = xNONE && continue
1994 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997 sed 's/^/| /' "$ac_site_file" >&5
1998 . "$ac_site_file" \
1999 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 as_fn_error $? "failed to load site script $ac_site_file
2002 See \`config.log' for more details" "$LINENO" 5; }
2003 fi
2004 done
2005
2006 if test -r "$cache_file"; then
2007 # Some versions of bash will fail to source /dev/null (special files
2008 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2009 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011 $as_echo "$as_me: loading cache $cache_file" >&6;}
2012 case $cache_file in
2013 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014 *) . "./$cache_file";;
2015 esac
2016 fi
2017 else
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019 $as_echo "$as_me: creating cache $cache_file" >&6;}
2020 >$cache_file
2021 fi
2022
2023 # Check that the precious variables saved in the cache have kept the same
2024 # value.
2025 ac_cache_corrupted=false
2026 for ac_var in $ac_precious_vars; do
2027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028 eval ac_new_set=\$ac_env_${ac_var}_set
2029 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030 eval ac_new_val=\$ac_env_${ac_var}_value
2031 case $ac_old_set,$ac_new_set in
2032 set,)
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 ac_cache_corrupted=: ;;
2036 ,set)
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 ac_cache_corrupted=: ;;
2040 ,);;
2041 *)
2042 if test "x$ac_old_val" != "x$ac_new_val"; then
2043 # differences in whitespace do not lead to failure.
2044 ac_old_val_w=`echo x $ac_old_val`
2045 ac_new_val_w=`echo x $ac_new_val`
2046 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2048 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049 ac_cache_corrupted=:
2050 else
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053 eval $ac_var=\$ac_old_val
2054 fi
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2056 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2058 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2059 fi;;
2060 esac
2061 # Pass precious variables to config.status.
2062 if test "$ac_new_set" = set; then
2063 case $ac_new_val in
2064 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 *) ac_arg=$ac_var=$ac_new_val ;;
2066 esac
2067 case " $ac_configure_args " in
2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2069 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070 esac
2071 fi
2072 done
2073 if $ac_cache_corrupted; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2077 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2079 fi
2080 ## -------------------- ##
2081 ## Main body of script. ##
2082 ## -------------------- ##
2083
2084 ac_ext=c
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089
2090
2091 RELEASE_DATE="2018-03-09"
2092
2093 ac_config_headers="$ac_config_headers config.h"
2094
2095
2096 # Initialize Automake
2097 am__api_version='1.15'
2098
2099 ac_aux_dir=
2100 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2101 if test -f "$ac_dir/install-sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install-sh -c"
2104 break
2105 elif test -f "$ac_dir/install.sh"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/install.sh -c"
2108 break
2109 elif test -f "$ac_dir/shtool"; then
2110 ac_aux_dir=$ac_dir
2111 ac_install_sh="$ac_aux_dir/shtool install -c"
2112 break
2113 fi
2114 done
2115 if test -z "$ac_aux_dir"; then
2116 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2117 fi
2118
2119 # These three variables are undocumented and unsupported,
2120 # and are intended to be withdrawn in a future Autoconf release.
2121 # They can cause serious problems if a builder's source tree is in a directory
2122 # whose full name contains unusual characters.
2123 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2124 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2125 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126
2127
2128 # Find a good install program. We prefer a C program (faster),
2129 # so one script is as good as another. But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2134 # AIX /bin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 # Reject install programs that cannot install multiple files.
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2143 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2144 if test -z "$INSTALL"; then
2145 if ${ac_cv_path_install+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in #((
2155 ./ | .// | /[cC]/* | \
2156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2158 /usr/ucb/* ) ;;
2159 *)
2160 # OSF1 and SCO ODT 3.0 have their own names for install.
2161 # Don't use installbsd from OSF since it installs stuff as root
2162 # by default.
2163 for ac_prog in ginstall scoinst install; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2166 if test $ac_prog = install &&
2167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # AIX install. It has an incompatible calling convention.
2169 :
2170 elif test $ac_prog = install &&
2171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # program-specific install script used by HP pwplus--don't use.
2173 :
2174 else
2175 rm -rf conftest.one conftest.two conftest.dir
2176 echo one > conftest.one
2177 echo two > conftest.two
2178 mkdir conftest.dir
2179 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2180 test -s conftest.one && test -s conftest.two &&
2181 test -s conftest.dir/conftest.one &&
2182 test -s conftest.dir/conftest.two
2183 then
2184 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185 break 3
2186 fi
2187 fi
2188 fi
2189 done
2190 done
2191 ;;
2192 esac
2193
2194 done
2195 IFS=$as_save_IFS
2196
2197 rm -rf conftest.one conftest.two conftest.dir
2198
2199 fi
2200 if test "${ac_cv_path_install+set}" = set; then
2201 INSTALL=$ac_cv_path_install
2202 else
2203 # As a last resort, use the slow shell script. Don't cache a
2204 # value for INSTALL within a source directory, because that will
2205 # break other packages using the cache if that directory is
2206 # removed, or if the value is a relative name.
2207 INSTALL=$ac_install_sh
2208 fi
2209 fi
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2211 $as_echo "$INSTALL" >&6; }
2212
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2222 $as_echo_n "checking whether build environment is sane... " >&6; }
2223 # Reject unsafe characters in $srcdir or the absolute working directory
2224 # name. Accept space and tab only in the latter.
2225 am_lf='
2226 '
2227 case `pwd` in
2228 *[\\\"\#\$\&\'\`$am_lf]*)
2229 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2230 esac
2231 case $srcdir in
2232 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2233 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2234 esac
2235
2236 # Do 'set' in a subshell so we don't clobber the current shell's
2237 # arguments. Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2240 # directory).
2241 if (
2242 am_has_slept=no
2243 for am_try in 1 2; do
2244 echo "timestamp, slept: $am_has_slept" > conftest.file
2245 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246 if test "$*" = "X"; then
2247 # -L didn't work.
2248 set X `ls -t "$srcdir/configure" conftest.file`
2249 fi
2250 if test "$*" != "X $srcdir/configure conftest.file" \
2251 && test "$*" != "X conftest.file $srcdir/configure"; then
2252
2253 # If neither matched, then we have a broken ls. This can happen
2254 # if, for instance, CONFIG_SHELL is bash and it inherits a
2255 # broken ls alias from the environment. This has actually
2256 # happened. Such a system could not be considered "sane".
2257 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2258 alias in your environment" "$LINENO" 5
2259 fi
2260 if test "$2" = conftest.file || test $am_try -eq 2; then
2261 break
2262 fi
2263 # Just in case.
2264 sleep 1
2265 am_has_slept=yes
2266 done
2267 test "$2" = conftest.file
2268 )
2269 then
2270 # Ok.
2271 :
2272 else
2273 as_fn_error $? "newly created file is older than distributed files!
2274 Check your system clock" "$LINENO" 5
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2277 $as_echo "yes" >&6; }
2278 # If we didn't sleep, we still need to ensure time stamps of config.status and
2279 # generated files are strictly newer.
2280 am_sleep_pid=
2281 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2282 ( sleep 1 ) &
2283 am_sleep_pid=$!
2284 fi
2285
2286 rm -f conftest.file
2287
2288 test "$program_prefix" != NONE &&
2289 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2290 # Use a double $ so make ignores it.
2291 test "$program_suffix" != NONE &&
2292 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2293 # Double any \ or $.
2294 # By default was `s,x,x', remove it if useless.
2295 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2296 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2297
2298 # Expand $ac_aux_dir to an absolute path.
2299 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2300
2301 if test x"${MISSING+set}" != xset; then
2302 case $am_aux_dir in
2303 *\ * | *\ *)
2304 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2305 *)
2306 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2307 esac
2308 fi
2309 # Use eval to expand $SHELL
2310 if eval "$MISSING --is-lightweight"; then
2311 am_missing_run="$MISSING "
2312 else
2313 am_missing_run=
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2315 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2316 fi
2317
2318 if test x"${install_sh+set}" != xset; then
2319 case $am_aux_dir in
2320 *\ * | *\ *)
2321 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2322 *)
2323 install_sh="\${SHELL} $am_aux_dir/install-sh"
2324 esac
2325 fi
2326
2327 # Installed binaries are usually stripped using 'strip' when the user
2328 # run "make install-strip". However 'strip' might not be the right
2329 # tool to use in cross-compilation environments, therefore Automake
2330 # will honor the 'STRIP' environment variable to overrule this program.
2331 if test "$cross_compiling" != no; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}strip; ac_word=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if ${ac_cv_prog_STRIP+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test -n "$STRIP"; then
2341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 STRIP=$ac_cv_prog_STRIP
2361 if test -n "$STRIP"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2363 $as_echo "$STRIP" >&6; }
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2367 fi
2368
2369
2370 fi
2371 if test -z "$ac_cv_prog_STRIP"; then
2372 ac_ct_STRIP=$STRIP
2373 # Extract the first word of "strip", so it can be a program name with args.
2374 set dummy strip; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test -n "$ac_ct_STRIP"; then
2381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 ac_cv_prog_ac_ct_STRIP="strip"
2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2393 fi
2394 done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399 fi
2400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2401 if test -n "$ac_ct_STRIP"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2403 $as_echo "$ac_ct_STRIP" >&6; }
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406 $as_echo "no" >&6; }
2407 fi
2408
2409 if test "x$ac_ct_STRIP" = x; then
2410 STRIP=":"
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418 STRIP=$ac_ct_STRIP
2419 fi
2420 else
2421 STRIP="$ac_cv_prog_STRIP"
2422 fi
2423
2424 fi
2425 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2428 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2429 if test -z "$MKDIR_P"; then
2430 if ${ac_cv_path_mkdir+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_prog in mkdir gmkdir; do
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2441 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2442 'mkdir (GNU coreutils) '* | \
2443 'mkdir (coreutils) '* | \
2444 'mkdir (fileutils) '4.1*)
2445 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2446 break 3;;
2447 esac
2448 done
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454
2455 test -d ./--version && rmdir ./--version
2456 if test "${ac_cv_path_mkdir+set}" = set; then
2457 MKDIR_P="$ac_cv_path_mkdir -p"
2458 else
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for MKDIR_P within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 MKDIR_P="$ac_install_sh -d"
2464 fi
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2467 $as_echo "$MKDIR_P" >&6; }
2468
2469 for ac_prog in gawk mawk nawk awk
2470 do
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if ${ac_cv_prog_AWK+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 if test -n "$AWK"; then
2479 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_AWK="$ac_prog"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 AWK=$ac_cv_prog_AWK
2499 if test -n "$AWK"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2501 $as_echo "$AWK" >&6; }
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2505 fi
2506
2507
2508 test -n "$AWK" && break
2509 done
2510
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2512 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2513 set x ${MAKE-make}
2514 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2515 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 cat >conftest.make <<\_ACEOF
2519 SHELL = /bin/sh
2520 all:
2521 @echo '@@@%%%=$(MAKE)=@@@%%%'
2522 _ACEOF
2523 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2524 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2525 *@@@%%%=?*=@@@%%%*)
2526 eval ac_cv_prog_make_${ac_make}_set=yes;;
2527 *)
2528 eval ac_cv_prog_make_${ac_make}_set=no;;
2529 esac
2530 rm -f conftest.make
2531 fi
2532 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2534 $as_echo "yes" >&6; }
2535 SET_MAKE=
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 SET_MAKE="MAKE=${MAKE-make}"
2540 fi
2541
2542 rm -rf .tst 2>/dev/null
2543 mkdir .tst 2>/dev/null
2544 if test -d .tst; then
2545 am__leading_dot=.
2546 else
2547 am__leading_dot=_
2548 fi
2549 rmdir .tst 2>/dev/null
2550
2551 # Check whether --enable-silent-rules was given.
2552 if test "${enable_silent_rules+set}" = set; then :
2553 enableval=$enable_silent_rules;
2554 fi
2555
2556 case $enable_silent_rules in # (((
2557 yes) AM_DEFAULT_VERBOSITY=0;;
2558 no) AM_DEFAULT_VERBOSITY=1;;
2559 *) AM_DEFAULT_VERBOSITY=1;;
2560 esac
2561 am_make=${MAKE-make}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2563 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2564 if ${am_cv_make_support_nested_variables+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if $as_echo 'TRUE=$(BAR$(V))
2568 BAR0=false
2569 BAR1=true
2570 V=1
2571 am__doit:
2572 @$(TRUE)
2573 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2574 am_cv_make_support_nested_variables=yes
2575 else
2576 am_cv_make_support_nested_variables=no
2577 fi
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2580 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2581 if test $am_cv_make_support_nested_variables = yes; then
2582 AM_V='$(V)'
2583 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2584 else
2585 AM_V=$AM_DEFAULT_VERBOSITY
2586 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2587 fi
2588 AM_BACKSLASH='\'
2589
2590 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2591 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2592 # is not polluted with repeated "-I."
2593 am__isrc=' -I$(srcdir)'
2594 # test to see if srcdir already configured
2595 if test -f $srcdir/config.status; then
2596 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2597 fi
2598 fi
2599
2600 # test whether we have cygpath
2601 if test -z "$CYGPATH_W"; then
2602 if (cygpath --version) >/dev/null 2>/dev/null; then
2603 CYGPATH_W='cygpath -w'
2604 else
2605 CYGPATH_W=echo
2606 fi
2607 fi
2608
2609
2610 # Define the identity of the package.
2611 PACKAGE='transset'
2612 VERSION='1.0.2'
2613
2614
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE "$PACKAGE"
2617 _ACEOF
2618
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define VERSION "$VERSION"
2622 _ACEOF
2623
2624 # Some tools Automake needs.
2625
2626 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2627
2628
2629 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2630
2631
2632 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2633
2634
2635 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2636
2637
2638 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2639
2640 # For better backward compatibility. To be removed once Automake 1.9.x
2641 # dies out for good. For more background, see:
2642 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2643 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2644 mkdir_p='$(MKDIR_P)'
2645
2646 # We need awk for the "check" target (and possibly the TAP driver). The
2647 # system "awk" is bad on some platforms.
2648 # Always define AMTAR for backward compatibility. Yes, it's still used
2649 # in the wild :-( We should find a proper way to deprecate it ...
2650 AMTAR='$${TAR-tar}'
2651
2652
2653 # We'll loop over all known methods to create a tar archive until one works.
2654 _am_tools='gnutar pax cpio none'
2655
2656 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2657
2658
2659
2660
2661
2662
2663 # POSIX will say in a future version that running "rm -f" with no argument
2664 # is OK; and we want to be able to make that assumption in our Makefile
2665 # recipes. So use an aggressive probe to check that the usage we want is
2666 # actually supported "in the wild" to an acceptable degree.
2667 # See automake bug#10828.
2668 # To make any issue more visible, cause the running configure to be aborted
2669 # by default if the 'rm' program in use doesn't match our expectations; the
2670 # user can still override this though.
2671 if rm -f && rm -fr && rm -rf; then : OK; else
2672 cat >&2 <<'END'
2673 Oops!
2674
2675 Your 'rm' program seems unable to run without file operands specified
2676 on the command line, even when the '-f' option is present. This is contrary
2677 to the behaviour of most rm programs out there, and not conforming with
2678 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2679
2680 Please tell bug-automake@gnu.org about your system, including the value
2681 of your $PATH and any error possibly output before this message. This
2682 can help us improve future automake versions.
2683
2684 END
2685 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2686 echo 'Configuration will proceed anyway, since you have set the' >&2
2687 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2688 echo >&2
2689 else
2690 cat >&2 <<'END'
2691 Aborting the configuration process, to ensure you take notice of the issue.
2692
2693 You can download and install GNU coreutils to get an 'rm' implementation
2694 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2695
2696 If you want to complete the configuration process using your problematic
2697 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2698 to "yes", and re-run configure.
2699
2700 END
2701 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2702 fi
2703 fi
2704
2705
2706 # Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718 DEPDIR="${am__leading_dot}deps"
2719
2720 ac_config_commands="$ac_config_commands depfiles"
2721
2722
2723 am_make=${MAKE-make}
2724 cat > confinc << 'END'
2725 am__doit:
2726 @echo this is the am__doit target
2727 .PHONY: am__doit
2728 END
2729 # If we don't find an include directive, just comment out the code.
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2731 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2732 am__include="#"
2733 am__quote=
2734 _am_result=none
2735 # First try GNU make style include.
2736 echo "include confinc" > confmf
2737 # Ignore all kinds of additional output from 'make'.
2738 case `$am_make -s -f confmf 2> /dev/null` in #(
2739 *the\ am__doit\ target*)
2740 am__include=include
2741 am__quote=
2742 _am_result=GNU
2743 ;;
2744 esac
2745 # Now try BSD make style include.
2746 if test "$am__include" = "#"; then
2747 echo '.include "confinc"' > confmf
2748 case `$am_make -s -f confmf 2> /dev/null` in #(
2749 *the\ am__doit\ target*)
2750 am__include=.include
2751 am__quote="\""
2752 _am_result=BSD
2753 ;;
2754 esac
2755 fi
2756
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2759 $as_echo "$_am_result" >&6; }
2760 rm -f confinc confmf
2761
2762 # Check whether --enable-dependency-tracking was given.
2763 if test "${enable_dependency_tracking+set}" = set; then :
2764 enableval=$enable_dependency_tracking;
2765 fi
2766
2767 if test "x$enable_dependency_tracking" != xno; then
2768 am_depcomp="$ac_aux_dir/depcomp"
2769 AMDEPBACKSLASH='\'
2770 am__nodep='_no'
2771 fi
2772 if test "x$enable_dependency_tracking" != xno; then
2773 AMDEP_TRUE=
2774 AMDEP_FALSE='#'
2775 else
2776 AMDEP_TRUE='#'
2777 AMDEP_FALSE=
2778 fi
2779
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824 fi
2825 if test -z "$ac_cv_prog_CC"; then
2826 ac_ct_CC=$CC
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC="gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857 $as_echo "$ac_ct_CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872 CC=$ac_ct_CC
2873 fi
2874 else
2875 CC="$ac_cv_prog_CC"
2876 fi
2877
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_CC="${ac_tool_prefix}cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 fi
2919 if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 ac_prog_rejected=no
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected=yes
2940 continue
2941 fi
2942 ac_cv_prog_CC="cc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy $ac_cv_prog_CC
2953 shift
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2958 shift
2959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 fi
2961 fi
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in cl.exe
2978 do
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 test -n "$CC" && break
3017 done
3018 fi
3019 if test -z "$CC"; then
3020 ac_ct_CC=$CC
3021 for ac_prog in cl.exe
3022 do
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 test -n "$ac_ct_CC" && break
3061 done
3062
3063 if test "x$ac_ct_CC" = x; then
3064 CC=""
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 CC=$ac_ct_CC
3073 fi
3074 fi
3075
3076 fi
3077
3078
3079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3083
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3103 fi
3104 rm -f conftest.er1 conftest.err
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 done
3108
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3134 do
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3141
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3159 do
3160 test -f "$ac_file" || continue
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3163 ;;
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 fi
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
3178 break;;
3179 * )
3180 break;;
3181 esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184
3185 else
3186 ac_file=''
3187 fi
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3207
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3241 fi
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3252 int
3253 main ()
3254 {
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3300 fi
3301 fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3305
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 $as_echo_n "checking for suffix of object files... " >&6; }
3310 if ${ac_cv_objext+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315
3316 int
3317 main ()
3318 {
3319
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.o conftest.obj
3325 if { { ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compile") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 for ac_file in conftest.o conftest.obj conftest.*; do
3337 test -f "$ac_file" || continue;
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 break;;
3342 esac
3343 done
3344 else
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356 $as_echo "$ac_cv_objext" >&6; }
3357 OBJEXT=$ac_cv_objext
3358 ac_objext=$OBJEXT
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361 if ${ac_cv_c_compiler_gnu+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366
3367 int
3368 main ()
3369 {
3370 #ifndef __GNUC__
3371 choke me
3372 #endif
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_compiler_gnu=yes
3380 else
3381 ac_compiler_gnu=no
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3385
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389 if test $ac_compiler_gnu = yes; then
3390 GCC=yes
3391 else
3392 GCC=
3393 fi
3394 ac_test_CFLAGS=${CFLAGS+set}
3395 ac_save_CFLAGS=$CFLAGS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3398 if ${ac_cv_prog_cc_g+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3403 ac_cv_prog_cc_g=no
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407
3408 int
3409 main ()
3410 {
3411
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_cv_prog_cc_g=yes
3418 else
3419 CFLAGS=""
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432
3433 else
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438
3439 int
3440 main ()
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_g=yes
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458 $as_echo "$ac_cv_prog_cc_g" >&6; }
3459 if test "$ac_test_CFLAGS" = set; then
3460 CFLAGS=$ac_save_CFLAGS
3461 elif test $ac_cv_prog_cc_g = yes; then
3462 if test "$GCC" = yes; then
3463 CFLAGS="-g -O2"
3464 else
3465 CFLAGS="-g"
3466 fi
3467 else
3468 if test "$GCC" = yes; then
3469 CFLAGS="-O2"
3470 else
3471 CFLAGS=
3472 fi
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3476 if ${ac_cv_prog_cc_c89+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 ac_cv_prog_cc_c89=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdarg.h>
3484 #include <stdio.h>
3485 struct stat;
3486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3487 struct buf { int x; };
3488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489 static char *e (p, i)
3490 char **p;
3491 int i;
3492 {
3493 return p[i];
3494 }
3495 static char *f (char * (*g) (char **, int), char **p, ...)
3496 {
3497 char *s;
3498 va_list v;
3499 va_start (v,p);
3500 s = g (p, va_arg (v,int));
3501 va_end (v);
3502 return s;
3503 }
3504
3505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3506 function prototypes and stuff, but not '\xHH' hex character constants.
3507 These don't provoke an error unfortunately, instead are silently treated
3508 as 'x'. The following induces an error, until -std is added to get
3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3510 array size at least. It's necessary to write '\x00'==0 to get something
3511 that's true only with -std. */
3512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3513
3514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515 inside strings and character constants. */
3516 #define FOO(x) 'x'
3517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3518
3519 int test (int i, double x);
3520 struct s1 {int (*f) (int a);};
3521 struct s2 {int (*f) (double a);};
3522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523 int argc;
3524 char **argv;
3525 int
3526 main ()
3527 {
3528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3535 do
3536 CC="$ac_save_CC $ac_arg"
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_c89=$ac_arg
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
3542 done
3543 rm -f conftest.$ac_ext
3544 CC=$ac_save_CC
3545
3546 fi
3547 # AC_CACHE_VAL
3548 case "x$ac_cv_prog_cc_c89" in
3549 x)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551 $as_echo "none needed" >&6; } ;;
3552 xno)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 $as_echo "unsupported" >&6; } ;;
3555 *)
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3559 esac
3560 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561
3562 fi
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3576 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3577 if ${am_cv_prog_cc_c_o+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 # Make sure it works both with $CC and with simple cc.
3592 # Following AC_PROG_CC_C_O, we do the test twice because some
3593 # compilers refuse to overwrite an existing .o file with -o,
3594 # though they will create one.
3595 am_cv_prog_cc_c_o=yes
3596 for am_i in 1 2; do
3597 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3598 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } \
3602 && test -f conftest2.$ac_objext; then
3603 : OK
3604 else
3605 am_cv_prog_cc_c_o=no
3606 break
3607 fi
3608 done
3609 rm -f core conftest*
3610 unset am_i
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3613 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3614 if test "$am_cv_prog_cc_c_o" != yes; then
3615 # Losing compiler, so override with the script.
3616 # FIXME: It is wrong to rewrite CC.
3617 # But if we don't then we get into trouble of one sort or another.
3618 # A longer-term fix would be to have automake use am__CC in this case,
3619 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3620 CC="$am_aux_dir/compile $CC"
3621 fi
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628
3629 depcc="$CC" am_compiler_list=
3630
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3632 $as_echo_n "checking dependency style of $depcc... " >&6; }
3633 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3637 # We make a subdir and do the tests there. Otherwise we can end up
3638 # making bogus files that we don't know about and never remove. For
3639 # instance it was reported that on HP-UX the gcc test will end up
3640 # making a dummy file named 'D' -- because '-MD' means "put the output
3641 # in D".
3642 rm -rf conftest.dir
3643 mkdir conftest.dir
3644 # Copy depcomp to subdir because otherwise we won't find it if we're
3645 # using a relative directory.
3646 cp "$am_depcomp" conftest.dir
3647 cd conftest.dir
3648 # We will build objects and dependencies in a subdirectory because
3649 # it helps to detect inapplicable dependency modes. For instance
3650 # both Tru64's cc and ICC support -MD to output dependencies as a
3651 # side effect of compilation, but ICC will put the dependencies in
3652 # the current directory while Tru64 will put them in the object
3653 # directory.
3654 mkdir sub
3655
3656 am_cv_CC_dependencies_compiler_type=none
3657 if test "$am_compiler_list" = ""; then
3658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3659 fi
3660 am__universal=false
3661 case " $depcc " in #(
3662 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3663 esac
3664
3665 for depmode in $am_compiler_list; do
3666 # Setup a source with many dependencies, because some compilers
3667 # like to wrap large dependency lists on column 80 (with \), and
3668 # we should not choose a depcomp mode which is confused by this.
3669 #
3670 # We need to recreate these files for each test, as the compiler may
3671 # overwrite some of them when testing with obscure command lines.
3672 # This happens at least with the AIX C compiler.
3673 : > sub/conftest.c
3674 for i in 1 2 3 4 5 6; do
3675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3677 # Solaris 10 /bin/sh.
3678 echo '/* dummy */' > sub/conftst$i.h
3679 done
3680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3681
3682 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3683 # mode. It turns out that the SunPro C++ compiler does not properly
3684 # handle '-M -o', and we need to detect this. Also, some Intel
3685 # versions had trouble with output in subdirs.
3686 am__obj=sub/conftest.${OBJEXT-o}
3687 am__minus_obj="-o $am__obj"
3688 case $depmode in
3689 gcc)
3690 # This depmode causes a compiler race in universal mode.
3691 test "$am__universal" = false || continue
3692 ;;
3693 nosideeffect)
3694 # After this tag, mechanisms are not by side-effect, so they'll
3695 # only be used when explicitly requested.
3696 if test "x$enable_dependency_tracking" = xyes; then
3697 continue
3698 else
3699 break
3700 fi
3701 ;;
3702 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3703 # This compiler won't grok '-c -o', but also, the minuso test has
3704 # not run yet. These depmodes are late enough in the game, and
3705 # so weak that their functioning should not be impacted.
3706 am__obj=conftest.${OBJEXT-o}
3707 am__minus_obj=
3708 ;;
3709 none) break ;;
3710 esac
3711 if depmode=$depmode \
3712 source=sub/conftest.c object=$am__obj \
3713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3715 >/dev/null 2>conftest.err &&
3716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3720 # icc doesn't choke on unknown options, it will just issue warnings
3721 # or remarks (even with -Werror). So we grep stderr for any message
3722 # that says an option was ignored or not supported.
3723 # When given -MP, icc 7.0 and 7.1 complain thusly:
3724 # icc: Command line warning: ignoring option '-M'; no argument required
3725 # The diagnosis changed in icc 8.0:
3726 # icc: Command line remark: option '-MP' not supported
3727 if (grep 'ignoring option' conftest.err ||
3728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3729 am_cv_CC_dependencies_compiler_type=$depmode
3730 break
3731 fi
3732 fi
3733 done
3734
3735 cd ..
3736 rm -rf conftest.dir
3737 else
3738 am_cv_CC_dependencies_compiler_type=none
3739 fi
3740
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3743 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3745
3746 if
3747 test "x$enable_dependency_tracking" != xno \
3748 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3749 am__fastdepCC_TRUE=
3750 am__fastdepCC_FALSE='#'
3751 else
3752 am__fastdepCC_TRUE='#'
3753 am__fastdepCC_FALSE=
3754 fi
3755
3756
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3758 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3759 if ${ac_cv_prog_cc_c99+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_cv_prog_cc_c99=no
3763 ac_save_CC=$CC
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <stdarg.h>
3767 #include <stdbool.h>
3768 #include <stdlib.h>
3769 #include <wchar.h>
3770 #include <stdio.h>
3771
3772 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3773 #define debug(...) fprintf (stderr, __VA_ARGS__)
3774 #define showlist(...) puts (#__VA_ARGS__)
3775 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3776 static void
3777 test_varargs_macros (void)
3778 {
3779 int x = 1234;
3780 int y = 5678;
3781 debug ("Flag");
3782 debug ("X = %d\n", x);
3783 showlist (The first, second, and third items.);
3784 report (x>y, "x is %d but y is %d", x, y);
3785 }
3786
3787 // Check long long types.
3788 #define BIG64 18446744073709551615ull
3789 #define BIG32 4294967295ul
3790 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3791 #if !BIG_OK
3792 your preprocessor is broken;
3793 #endif
3794 #if BIG_OK
3795 #else
3796 your preprocessor is broken;
3797 #endif
3798 static long long int bignum = -9223372036854775807LL;
3799 static unsigned long long int ubignum = BIG64;
3800
3801 struct incomplete_array
3802 {
3803 int datasize;
3804 double data[];
3805 };
3806
3807 struct named_init {
3808 int number;
3809 const wchar_t *name;
3810 double average;
3811 };
3812
3813 typedef const char *ccp;
3814
3815 static inline int
3816 test_restrict (ccp restrict text)
3817 {
3818 // See if C++-style comments work.
3819 // Iterate through items via the restricted pointer.
3820 // Also check for declarations in for loops.
3821 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3822 continue;
3823 return 0;
3824 }
3825
3826 // Check varargs and va_copy.
3827 static void
3828 test_varargs (const char *format, ...)
3829 {
3830 va_list args;
3831 va_start (args, format);
3832 va_list args_copy;
3833 va_copy (args_copy, args);
3834
3835 const char *str;
3836 int number;
3837 float fnumber;
3838
3839 while (*format)
3840 {
3841 switch (*format++)
3842 {
3843 case 's': // string
3844 str = va_arg (args_copy, const char *);
3845 break;
3846 case 'd': // int
3847 number = va_arg (args_copy, int);
3848 break;
3849 case 'f': // float
3850 fnumber = va_arg (args_copy, double);
3851 break;
3852 default:
3853 break;
3854 }
3855 }
3856 va_end (args_copy);
3857 va_end (args);
3858 }
3859
3860 int
3861 main ()
3862 {
3863
3864 // Check bool.
3865 _Bool success = false;
3866
3867 // Check restrict.
3868 if (test_restrict ("String literal") == 0)
3869 success = true;
3870 char *restrict newvar = "Another string";
3871
3872 // Check varargs.
3873 test_varargs ("s, d' f .", "string", 65, 34.234);
3874 test_varargs_macros ();
3875
3876 // Check flexible array members.
3877 struct incomplete_array *ia =
3878 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3879 ia->datasize = 10;
3880 for (int i = 0; i < ia->datasize; ++i)
3881 ia->data[i] = i * 1.234;
3882
3883 // Check named initializers.
3884 struct named_init ni = {
3885 .number = 34,
3886 .name = L"Test wide string",
3887 .average = 543.34343,
3888 };
3889
3890 ni.number = 58;
3891
3892 int dynamic_array[ni.number];
3893 dynamic_array[ni.number - 1] = 543;
3894
3895 // work around unused variable warnings
3896 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3897 || dynamic_array[ni.number - 1] != 543);
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3904 do
3905 CC="$ac_save_CC $ac_arg"
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_c99=$ac_arg
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext
3910 test "x$ac_cv_prog_cc_c99" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3914
3915 fi
3916 # AC_CACHE_VAL
3917 case "x$ac_cv_prog_cc_c99" in
3918 x)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 $as_echo "none needed" >&6; } ;;
3921 xno)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923 $as_echo "unsupported" >&6; } ;;
3924 *)
3925 CC="$CC $ac_cv_prog_cc_c99"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3927 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3928 esac
3929 if test "x$ac_cv_prog_cc_c99" != xno; then :
3930
3931 fi
3932
3933
3934
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3942 # On Suns, sometimes $CPP names a directory.
3943 if test -n "$CPP" && test -d "$CPP"; then
3944 CPP=
3945 fi
3946 if test -z "$CPP"; then
3947 if ${ac_cv_prog_CPP+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 # Double quotes because CPP needs to be expanded
3951 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3952 do
3953 ac_preproc_ok=false
3954 for ac_c_preproc_warn_flag in '' yes
3955 do
3956 # Use a header file that comes with gcc, so configuring glibc
3957 # with a fresh cross-compiler works.
3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 # <limits.h> exists even on freestanding compilers.
3960 # On the NeXT, cc -E runs the code through the compiler's parser,
3961 # not just through cpp. "Syntax error" is here to catch this case.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #ifdef __STDC__
3965 # include <limits.h>
3966 #else
3967 # include <assert.h>
3968 #endif
3969 Syntax error
3970 _ACEOF
3971 if ac_fn_c_try_cpp "$LINENO"; then :
3972
3973 else
3974 # Broken: fails on valid input.
3975 continue
3976 fi
3977 rm -f conftest.err conftest.i conftest.$ac_ext
3978
3979 # OK, works on sane cases. Now check whether nonexistent headers
3980 # can be detected and how.
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #include <ac_nonexistent.h>
3984 _ACEOF
3985 if ac_fn_c_try_cpp "$LINENO"; then :
3986 # Broken: success on invalid input.
3987 continue
3988 else
3989 # Passes both tests.
3990 ac_preproc_ok=:
3991 break
3992 fi
3993 rm -f conftest.err conftest.i conftest.$ac_ext
3994
3995 done
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.i conftest.err conftest.$ac_ext
3998 if $ac_preproc_ok; then :
3999 break
4000 fi
4001
4002 done
4003 ac_cv_prog_CPP=$CPP
4004
4005 fi
4006 CPP=$ac_cv_prog_CPP
4007 else
4008 ac_cv_prog_CPP=$CPP
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4011 $as_echo "$CPP" >&6; }
4012 ac_preproc_ok=false
4013 for ac_c_preproc_warn_flag in '' yes
4014 do
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error" is here to catch this case.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #ifdef __STDC__
4024 # include <limits.h>
4025 #else
4026 # include <assert.h>
4027 #endif
4028 Syntax error
4029 _ACEOF
4030 if ac_fn_c_try_cpp "$LINENO"; then :
4031
4032 else
4033 # Broken: fails on valid input.
4034 continue
4035 fi
4036 rm -f conftest.err conftest.i conftest.$ac_ext
4037
4038 # OK, works on sane cases. Now check whether nonexistent headers
4039 # can be detected and how.
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 #include <ac_nonexistent.h>
4043 _ACEOF
4044 if ac_fn_c_try_cpp "$LINENO"; then :
4045 # Broken: success on invalid input.
4046 continue
4047 else
4048 # Passes both tests.
4049 ac_preproc_ok=:
4050 break
4051 fi
4052 rm -f conftest.err conftest.i conftest.$ac_ext
4053
4054 done
4055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4056 rm -f conftest.i conftest.err conftest.$ac_ext
4057 if $ac_preproc_ok; then :
4058
4059 else
4060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4063 See \`config.log' for more details" "$LINENO" 5; }
4064 fi
4065
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4074 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4075 if ${ac_cv_path_GREP+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -z "$GREP"; then
4079 ac_path_GREP_found=false
4080 # Loop through the user's path and test for each of PROGNAME-LIST
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083 do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_prog in grep ggrep; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089 as_fn_executable_p "$ac_path_GREP" || continue
4090 # Check for GNU ac_path_GREP and select it if it is found.
4091 # Check for GNU $ac_path_GREP
4092 case `"$ac_path_GREP" --version 2>&1` in
4093 *GNU*)
4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095 *)
4096 ac_count=0
4097 $as_echo_n 0123456789 >"conftest.in"
4098 while :
4099 do
4100 cat "conftest.in" "conftest.in" >"conftest.tmp"
4101 mv "conftest.tmp" "conftest.in"
4102 cp "conftest.in" "conftest.nl"
4103 $as_echo 'GREP' >> "conftest.nl"
4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106 as_fn_arith $ac_count + 1 && ac_count=$as_val
4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108 # Best one so far, save it but keep looking for a better one
4109 ac_cv_path_GREP="$ac_path_GREP"
4110 ac_path_GREP_max=$ac_count
4111 fi
4112 # 10*(2^10) chars as input seems more than enough
4113 test $ac_count -gt 10 && break
4114 done
4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116 esac
4117
4118 $ac_path_GREP_found && break 3
4119 done
4120 done
4121 done
4122 IFS=$as_save_IFS
4123 if test -z "$ac_cv_path_GREP"; then
4124 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4125 fi
4126 else
4127 ac_cv_path_GREP=$GREP
4128 fi
4129
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4132 $as_echo "$ac_cv_path_GREP" >&6; }
4133 GREP="$ac_cv_path_GREP"
4134
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4137 $as_echo_n "checking for egrep... " >&6; }
4138 if ${ac_cv_path_EGREP+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4142 then ac_cv_path_EGREP="$GREP -E"
4143 else
4144 if test -z "$EGREP"; then
4145 ac_path_EGREP_found=false
4146 # Loop through the user's path and test for each of PROGNAME-LIST
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_prog in egrep; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4155 as_fn_executable_p "$ac_path_EGREP" || continue
4156 # Check for GNU ac_path_EGREP and select it if it is found.
4157 # Check for GNU $ac_path_EGREP
4158 case `"$ac_path_EGREP" --version 2>&1` in
4159 *GNU*)
4160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4161 *)
4162 ac_count=0
4163 $as_echo_n 0123456789 >"conftest.in"
4164 while :
4165 do
4166 cat "conftest.in" "conftest.in" >"conftest.tmp"
4167 mv "conftest.tmp" "conftest.in"
4168 cp "conftest.in" "conftest.nl"
4169 $as_echo 'EGREP' >> "conftest.nl"
4170 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172 as_fn_arith $ac_count + 1 && ac_count=$as_val
4173 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4174 # Best one so far, save it but keep looking for a better one
4175 ac_cv_path_EGREP="$ac_path_EGREP"
4176 ac_path_EGREP_max=$ac_count
4177 fi
4178 # 10*(2^10) chars as input seems more than enough
4179 test $ac_count -gt 10 && break
4180 done
4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182 esac
4183
4184 $ac_path_EGREP_found && break 3
4185 done
4186 done
4187 done
4188 IFS=$as_save_IFS
4189 if test -z "$ac_cv_path_EGREP"; then
4190 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4191 fi
4192 else
4193 ac_cv_path_EGREP=$EGREP
4194 fi
4195
4196 fi
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4199 $as_echo "$ac_cv_path_EGREP" >&6; }
4200 EGREP="$ac_cv_path_EGREP"
4201
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4204 $as_echo_n "checking for ANSI C header files... " >&6; }
4205 if ${ac_cv_header_stdc+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <stdlib.h>
4211 #include <stdarg.h>
4212 #include <string.h>
4213 #include <float.h>
4214
4215 int
4216 main ()
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_header_stdc=yes
4225 else
4226 ac_cv_header_stdc=no
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
4230 if test $ac_cv_header_stdc = yes; then
4231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <string.h>
4235
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "memchr" >/dev/null 2>&1; then :
4239
4240 else
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f conftest*
4244
4245 fi
4246
4247 if test $ac_cv_header_stdc = yes; then
4248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <stdlib.h>
4252
4253 _ACEOF
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "free" >/dev/null 2>&1; then :
4256
4257 else
4258 ac_cv_header_stdc=no
4259 fi
4260 rm -f conftest*
4261
4262 fi
4263
4264 if test $ac_cv_header_stdc = yes; then
4265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4266 if test "$cross_compiling" = yes; then :
4267 :
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #include <ctype.h>
4272 #include <stdlib.h>
4273 #if ((' ' & 0x0FF) == 0x020)
4274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4276 #else
4277 # define ISLOWER(c) \
4278 (('a' <= (c) && (c) <= 'i') \
4279 || ('j' <= (c) && (c) <= 'r') \
4280 || ('s' <= (c) && (c) <= 'z'))
4281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4282 #endif
4283
4284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4285 int
4286 main ()
4287 {
4288 int i;
4289 for (i = 0; i < 256; i++)
4290 if (XOR (islower (i), ISLOWER (i))
4291 || toupper (i) != TOUPPER (i))
4292 return 2;
4293 return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_c_try_run "$LINENO"; then :
4297
4298 else
4299 ac_cv_header_stdc=no
4300 fi
4301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4302 conftest.$ac_objext conftest.beam conftest.$ac_ext
4303 fi
4304
4305 fi
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4308 $as_echo "$ac_cv_header_stdc" >&6; }
4309 if test $ac_cv_header_stdc = yes; then
4310
4311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4312
4313 fi
4314
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4317 inttypes.h stdint.h unistd.h
4318 do :
4319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4321 "
4322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4323 cat >>confdefs.h <<_ACEOF
4324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4325 _ACEOF
4326
4327 fi
4328
4329 done
4330
4331
4332
4333
4334
4335
4336 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4337 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4338 CLANGCC="yes"
4339 else
4340 CLANGCC="no"
4341 fi
4342
4343 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4344 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4345 INTELCC="yes"
4346 else
4347 INTELCC="no"
4348 fi
4349
4350 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4351 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4352 SUNCC="yes"
4353 else
4354 SUNCC="no"
4355 fi
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4366 if test -n "$ac_tool_prefix"; then
4367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4368 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 case $PKG_CONFIG in
4375 [\\/]* | ?:[\\/]*)
4376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4377 ;;
4378 *)
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 ;;
4395 esac
4396 fi
4397 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4398 if test -n "$PKG_CONFIG"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4400 $as_echo "$PKG_CONFIG" >&6; }
4401 else
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404 fi
4405
4406
4407 fi
4408 if test -z "$ac_cv_path_PKG_CONFIG"; then
4409 ac_pt_PKG_CONFIG=$PKG_CONFIG
4410 # Extract the first word of "pkg-config", so it can be a program name with args.
4411 set dummy pkg-config; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 case $ac_pt_PKG_CONFIG in
4418 [\\/]* | ?:[\\/]*)
4419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4420 ;;
4421 *)
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437 ;;
4438 esac
4439 fi
4440 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4441 if test -n "$ac_pt_PKG_CONFIG"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4443 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449 if test "x$ac_pt_PKG_CONFIG" = x; then
4450 PKG_CONFIG=""
4451 else
4452 case $cross_compiling:$ac_tool_warned in
4453 yes:)
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456 ac_tool_warned=yes ;;
4457 esac
4458 PKG_CONFIG=$ac_pt_PKG_CONFIG
4459 fi
4460 else
4461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4462 fi
4463
4464 fi
4465 if test -n "$PKG_CONFIG"; then
4466 _pkg_min_version=0.9.0
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4468 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4469 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 PKG_CONFIG=""
4476 fi
4477 fi
4478 # Make sure we can run config.sub.
4479 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4480 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4483 $as_echo_n "checking build system type... " >&6; }
4484 if ${ac_cv_build+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 ac_build_alias=$build_alias
4488 test "x$ac_build_alias" = x &&
4489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4490 test "x$ac_build_alias" = x &&
4491 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4492 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4497 $as_echo "$ac_cv_build" >&6; }
4498 case $ac_cv_build in
4499 *-*-*) ;;
4500 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4501 esac
4502 build=$ac_cv_build
4503 ac_save_IFS=$IFS; IFS='-'
4504 set x $ac_cv_build
4505 shift
4506 build_cpu=$1
4507 build_vendor=$2
4508 shift; shift
4509 # Remember, the first character of IFS is used to create $*,
4510 # except with old shells:
4511 build_os=$*
4512 IFS=$ac_save_IFS
4513 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4514
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4517 $as_echo_n "checking host system type... " >&6; }
4518 if ${ac_cv_host+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test "x$host_alias" = x; then
4522 ac_cv_host=$ac_cv_build
4523 else
4524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4526 fi
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4530 $as_echo "$ac_cv_host" >&6; }
4531 case $ac_cv_host in
4532 *-*-*) ;;
4533 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4534 esac
4535 host=$ac_cv_host
4536 ac_save_IFS=$IFS; IFS='-'
4537 set x $ac_cv_host
4538 shift
4539 host_cpu=$1
4540 host_vendor=$2
4541 shift; shift
4542 # Remember, the first character of IFS is used to create $*,
4543 # except with old shells:
4544 host_os=$*
4545 IFS=$ac_save_IFS
4546 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4547
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4550 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4551 if ${ac_cv_path_SED+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4555 for ac_i in 1 2 3 4 5 6 7; do
4556 ac_script="$ac_script$as_nl$ac_script"
4557 done
4558 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4559 { ac_script=; unset ac_script;}
4560 if test -z "$SED"; then
4561 ac_path_SED_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in sed gsed; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4571 as_fn_executable_p "$ac_path_SED" || continue
4572 # Check for GNU ac_path_SED and select it if it is found.
4573 # Check for GNU $ac_path_SED
4574 case `"$ac_path_SED" --version 2>&1` in
4575 *GNU*)
4576 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4577 *)
4578 ac_count=0
4579 $as_echo_n 0123456789 >"conftest.in"
4580 while :
4581 do
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo '' >> "conftest.nl"
4586 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_SED_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_SED="$ac_path_SED"
4592 ac_path_SED_max=$ac_count
4593 fi
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4596 done
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600 $ac_path_SED_found && break 3
4601 done
4602 done
4603 done
4604 IFS=$as_save_IFS
4605 if test -z "$ac_cv_path_SED"; then
4606 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4607 fi
4608 else
4609 ac_cv_path_SED=$SED
4610 fi
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4614 $as_echo "$ac_cv_path_SED" >&6; }
4615 SED="$ac_cv_path_SED"
4616 rm -f conftest.sed
4617
4618
4619
4620
4621
4622
4623 # Check whether --enable-selective-werror was given.
4624 if test "${enable_selective_werror+set}" = set; then :
4625 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4626 else
4627 SELECTIVE_WERROR=yes
4628 fi
4629
4630
4631
4632
4633
4634 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4635 if test "x$SUNCC" = "xyes"; then
4636 BASE_CFLAGS="-v"
4637 else
4638 BASE_CFLAGS=""
4639 fi
4640
4641 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655 xorg_testset_save_CFLAGS="$CFLAGS"
4656
4657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 int i;
4667 _ACEOF
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 xorg_cv_cc_flag_unknown_warning_option=yes
4670 else
4671 xorg_cv_cc_flag_unknown_warning_option=no
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4678 CFLAGS="$xorg_testset_save_CFLAGS"
4679 fi
4680
4681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4684 fi
4685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 int i;
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 xorg_cv_cc_flag_unused_command_line_argument=yes
4697 else
4698 xorg_cv_cc_flag_unused_command_line_argument=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4705 CFLAGS="$xorg_testset_save_CFLAGS"
4706 fi
4707
4708 found="no"
4709
4710 if test $found = "no" ; then
4711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4713 fi
4714
4715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717 fi
4718
4719 CFLAGS="$CFLAGS -Wall"
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4722 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4723 cacheid=xorg_cv_cc_flag__Wall
4724 if eval \${$cacheid+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 int i;
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_link "$LINENO"; then :
4739 eval $cacheid=yes
4740 else
4741 eval $cacheid=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext \
4744 conftest$ac_exeext conftest.$ac_ext
4745 fi
4746
4747
4748 CFLAGS="$xorg_testset_save_CFLAGS"
4749
4750 eval supported=\$$cacheid
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4752 $as_echo "$supported" >&6; }
4753 if test "$supported" = "yes" ; then
4754 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4755 found="yes"
4756 fi
4757 fi
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773 xorg_testset_save_CFLAGS="$CFLAGS"
4774
4775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 int i;
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 xorg_cv_cc_flag_unknown_warning_option=yes
4788 else
4789 xorg_cv_cc_flag_unknown_warning_option=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4796 CFLAGS="$xorg_testset_save_CFLAGS"
4797 fi
4798
4799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4802 fi
4803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 int i;
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 xorg_cv_cc_flag_unused_command_line_argument=yes
4815 else
4816 xorg_cv_cc_flag_unused_command_line_argument=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4823 CFLAGS="$xorg_testset_save_CFLAGS"
4824 fi
4825
4826 found="no"
4827
4828 if test $found = "no" ; then
4829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831 fi
4832
4833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4835 fi
4836
4837 CFLAGS="$CFLAGS -Wpointer-arith"
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4840 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4841 cacheid=xorg_cv_cc_flag__Wpointer_arith
4842 if eval \${$cacheid+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 int i;
4848 int
4849 main ()
4850 {
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_link "$LINENO"; then :
4857 eval $cacheid=yes
4858 else
4859 eval $cacheid=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext \
4862 conftest$ac_exeext conftest.$ac_ext
4863 fi
4864
4865
4866 CFLAGS="$xorg_testset_save_CFLAGS"
4867
4868 eval supported=\$$cacheid
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4870 $as_echo "$supported" >&6; }
4871 if test "$supported" = "yes" ; then
4872 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4873 found="yes"
4874 fi
4875 fi
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891 xorg_testset_save_CFLAGS="$CFLAGS"
4892
4893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 xorg_cv_cc_flag_unknown_warning_option=yes
4906 else
4907 xorg_cv_cc_flag_unknown_warning_option=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4914 CFLAGS="$xorg_testset_save_CFLAGS"
4915 fi
4916
4917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920 fi
4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int i;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 xorg_cv_cc_flag_unused_command_line_argument=yes
4933 else
4934 xorg_cv_cc_flag_unused_command_line_argument=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4942 fi
4943
4944 found="no"
4945
4946 if test $found = "no" ; then
4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949 fi
4950
4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 fi
4954
4955 CFLAGS="$CFLAGS -Wmissing-declarations"
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4958 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4959 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4960 if eval \${$cacheid+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 int i;
4966 int
4967 main ()
4968 {
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 if ac_fn_c_try_link "$LINENO"; then :
4975 eval $cacheid=yes
4976 else
4977 eval $cacheid=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
4981 fi
4982
4983
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986 eval supported=\$$cacheid
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988 $as_echo "$supported" >&6; }
4989 if test "$supported" = "yes" ; then
4990 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4991 found="yes"
4992 fi
4993 fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 xorg_testset_save_CFLAGS="$CFLAGS"
5010
5011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 int i;
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 xorg_cv_cc_flag_unknown_warning_option=yes
5024 else
5025 xorg_cv_cc_flag_unknown_warning_option=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5032 CFLAGS="$xorg_testset_save_CFLAGS"
5033 fi
5034
5035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 fi
5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 _ACEOF
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 xorg_cv_cc_flag_unused_command_line_argument=yes
5051 else
5052 xorg_cv_cc_flag_unused_command_line_argument=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060 fi
5061
5062 found="no"
5063
5064 if test $found = "no" ; then
5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067 fi
5068
5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071 fi
5072
5073 CFLAGS="$CFLAGS -Wformat=2"
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5076 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5077 cacheid=xorg_cv_cc_flag__Wformat_2
5078 if eval \${$cacheid+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int i;
5084 int
5085 main ()
5086 {
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 if ac_fn_c_try_link "$LINENO"; then :
5093 eval $cacheid=yes
5094 else
5095 eval $cacheid=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext \
5098 conftest$ac_exeext conftest.$ac_ext
5099 fi
5100
5101
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5103
5104 eval supported=\$$cacheid
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5106 $as_echo "$supported" >&6; }
5107 if test "$supported" = "yes" ; then
5108 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5109 found="yes"
5110 fi
5111 fi
5112
5113 if test $found = "no" ; then
5114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5116 fi
5117
5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5120 fi
5121
5122 CFLAGS="$CFLAGS -Wformat"
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5125 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5126 cacheid=xorg_cv_cc_flag__Wformat
5127 if eval \${$cacheid+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 int i;
5133 int
5134 main ()
5135 {
5136
5137 ;
5138 return 0;
5139 }
5140 _ACEOF
5141 if ac_fn_c_try_link "$LINENO"; then :
5142 eval $cacheid=yes
5143 else
5144 eval $cacheid=no
5145 fi
5146 rm -f core conftest.err conftest.$ac_objext \
5147 conftest$ac_exeext conftest.$ac_ext
5148 fi
5149
5150
5151 CFLAGS="$xorg_testset_save_CFLAGS"
5152
5153 eval supported=\$$cacheid
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5155 $as_echo "$supported" >&6; }
5156 if test "$supported" = "yes" ; then
5157 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5158 found="yes"
5159 fi
5160 fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 xorg_testset_save_CFLAGS="$CFLAGS"
5179
5180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5183 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5184 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 int i;
5190 _ACEOF
5191 if ac_fn_c_try_compile "$LINENO"; then :
5192 xorg_cv_cc_flag_unknown_warning_option=yes
5193 else
5194 xorg_cv_cc_flag_unknown_warning_option=no
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5199 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5201 CFLAGS="$xorg_testset_save_CFLAGS"
5202 fi
5203
5204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207 fi
5208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5210 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5211 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 int i;
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"; then :
5219 xorg_cv_cc_flag_unused_command_line_argument=yes
5220 else
5221 xorg_cv_cc_flag_unused_command_line_argument=no
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5226 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5228 CFLAGS="$xorg_testset_save_CFLAGS"
5229 fi
5230
5231 found="no"
5232
5233 if test $found = "no" ; then
5234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236 fi
5237
5238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240 fi
5241
5242 CFLAGS="$CFLAGS -Wstrict-prototypes"
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5245 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5246 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5247 if eval \${$cacheid+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 int i;
5253 int
5254 main ()
5255 {
5256
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 eval $cacheid=yes
5263 else
5264 eval $cacheid=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268 fi
5269
5270
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5272
5273 eval supported=\$$cacheid
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5275 $as_echo "$supported" >&6; }
5276 if test "$supported" = "yes" ; then
5277 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5278 found="yes"
5279 fi
5280 fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 int i;
5308 _ACEOF
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 xorg_cv_cc_flag_unknown_warning_option=yes
5311 else
5312 xorg_cv_cc_flag_unknown_warning_option=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 int i;
5335 _ACEOF
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 xorg_cv_cc_flag_unused_command_line_argument=yes
5338 else
5339 xorg_cv_cc_flag_unused_command_line_argument=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5344 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5346 CFLAGS="$xorg_testset_save_CFLAGS"
5347 fi
5348
5349 found="no"
5350
5351 if test $found = "no" ; then
5352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5354 fi
5355
5356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5358 fi
5359
5360 CFLAGS="$CFLAGS -Wmissing-prototypes"
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5363 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5364 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5365 if eval \${$cacheid+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 int i;
5371 int
5372 main ()
5373 {
5374
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_link "$LINENO"; then :
5380 eval $cacheid=yes
5381 else
5382 eval $cacheid=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext \
5385 conftest$ac_exeext conftest.$ac_ext
5386 fi
5387
5388
5389 CFLAGS="$xorg_testset_save_CFLAGS"
5390
5391 eval supported=\$$cacheid
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5393 $as_echo "$supported" >&6; }
5394 if test "$supported" = "yes" ; then
5395 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5396 found="yes"
5397 fi
5398 fi
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 xorg_testset_save_CFLAGS="$CFLAGS"
5415
5416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5419 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5420 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 xorg_cv_cc_flag_unknown_warning_option=yes
5429 else
5430 xorg_cv_cc_flag_unknown_warning_option=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5435 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443 fi
5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5446 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5447 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 int i;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 xorg_cv_cc_flag_unused_command_line_argument=yes
5456 else
5457 xorg_cv_cc_flag_unused_command_line_argument=no
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5462 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5464 CFLAGS="$xorg_testset_save_CFLAGS"
5465 fi
5466
5467 found="no"
5468
5469 if test $found = "no" ; then
5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5472 fi
5473
5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476 fi
5477
5478 CFLAGS="$CFLAGS -Wnested-externs"
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5481 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5482 cacheid=xorg_cv_cc_flag__Wnested_externs
5483 if eval \${$cacheid+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 int i;
5489 int
5490 main ()
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_link "$LINENO"; then :
5498 eval $cacheid=yes
5499 else
5500 eval $cacheid=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext \
5503 conftest$ac_exeext conftest.$ac_ext
5504 fi
5505
5506
5507 CFLAGS="$xorg_testset_save_CFLAGS"
5508
5509 eval supported=\$$cacheid
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5511 $as_echo "$supported" >&6; }
5512 if test "$supported" = "yes" ; then
5513 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5514 found="yes"
5515 fi
5516 fi
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 xorg_testset_save_CFLAGS="$CFLAGS"
5533
5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5537 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5538 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 int i;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 xorg_cv_cc_flag_unknown_warning_option=yes
5547 else
5548 xorg_cv_cc_flag_unknown_warning_option=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5553 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561 fi
5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5564 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5565 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 xorg_cv_cc_flag_unused_command_line_argument=yes
5574 else
5575 xorg_cv_cc_flag_unused_command_line_argument=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5580 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5583 fi
5584
5585 found="no"
5586
5587 if test $found = "no" ; then
5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 fi
5591
5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594 fi
5595
5596 CFLAGS="$CFLAGS -Wbad-function-cast"
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5599 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5600 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5601 if eval \${$cacheid+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 int i;
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_link "$LINENO"; then :
5616 eval $cacheid=yes
5617 else
5618 eval $cacheid=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext \
5621 conftest$ac_exeext conftest.$ac_ext
5622 fi
5623
5624
5625 CFLAGS="$xorg_testset_save_CFLAGS"
5626
5627 eval supported=\$$cacheid
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5629 $as_echo "$supported" >&6; }
5630 if test "$supported" = "yes" ; then
5631 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5632 found="yes"
5633 fi
5634 fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 xorg_testset_save_CFLAGS="$CFLAGS"
5651
5652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5655 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5656 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 xorg_cv_cc_flag_unknown_warning_option=yes
5665 else
5666 xorg_cv_cc_flag_unknown_warning_option=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5671 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679 fi
5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5682 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5683 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 xorg_cv_cc_flag_unused_command_line_argument=yes
5692 else
5693 xorg_cv_cc_flag_unused_command_line_argument=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5698 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 found="no"
5704
5705 if test $found = "no" ; then
5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708 fi
5709
5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712 fi
5713
5714 CFLAGS="$CFLAGS -Wold-style-definition"
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5717 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5718 cacheid=xorg_cv_cc_flag__Wold_style_definition
5719 if eval \${$cacheid+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 int i;
5725 int
5726 main ()
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"; then :
5734 eval $cacheid=yes
5735 else
5736 eval $cacheid=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 fi
5741
5742
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5744
5745 eval supported=\$$cacheid
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5747 $as_echo "$supported" >&6; }
5748 if test "$supported" = "yes" ; then
5749 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5750 found="yes"
5751 fi
5752 fi
5753
5754 if test $found = "no" ; then
5755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757 fi
5758
5759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5761 fi
5762
5763 CFLAGS="$CFLAGS -fd"
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5766 $as_echo_n "checking if $CC supports -fd... " >&6; }
5767 cacheid=xorg_cv_cc_flag__fd
5768 if eval \${$cacheid+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 int i;
5774 int
5775 main ()
5776 {
5777
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_link "$LINENO"; then :
5783 eval $cacheid=yes
5784 else
5785 eval $cacheid=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789 fi
5790
5791
5792 CFLAGS="$xorg_testset_save_CFLAGS"
5793
5794 eval supported=\$$cacheid
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5796 $as_echo "$supported" >&6; }
5797 if test "$supported" = "yes" ; then
5798 BASE_CFLAGS="$BASE_CFLAGS -fd"
5799 found="yes"
5800 fi
5801 fi
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 xorg_testset_save_CFLAGS="$CFLAGS"
5818
5819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 _ACEOF
5830 if ac_fn_c_try_compile "$LINENO"; then :
5831 xorg_cv_cc_flag_unknown_warning_option=yes
5832 else
5833 xorg_cv_cc_flag_unknown_warning_option=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5840 CFLAGS="$xorg_testset_save_CFLAGS"
5841 fi
5842
5843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 fi
5847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 xorg_cv_cc_flag_unused_command_line_argument=yes
5859 else
5860 xorg_cv_cc_flag_unused_command_line_argument=no
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5867 CFLAGS="$xorg_testset_save_CFLAGS"
5868 fi
5869
5870 found="no"
5871
5872 if test $found = "no" ; then
5873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875 fi
5876
5877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879 fi
5880
5881 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5884 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5885 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5886 if eval \${$cacheid+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 int i;
5892 int
5893 main ()
5894 {
5895
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_link "$LINENO"; then :
5901 eval $cacheid=yes
5902 else
5903 eval $cacheid=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext \
5906 conftest$ac_exeext conftest.$ac_ext
5907 fi
5908
5909
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911
5912 eval supported=\$$cacheid
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5914 $as_echo "$supported" >&6; }
5915 if test "$supported" = "yes" ; then
5916 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5917 found="yes"
5918 fi
5919 fi
5920
5921
5922
5923
5924
5925 # This chunk adds additional warnings that could catch undesired effects.
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 xorg_testset_save_CFLAGS="$CFLAGS"
5940
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5944 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5945 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 int i;
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953 xorg_cv_cc_flag_unknown_warning_option=yes
5954 else
5955 xorg_cv_cc_flag_unknown_warning_option=no
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5960 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5962 CFLAGS="$xorg_testset_save_CFLAGS"
5963 fi
5964
5965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968 fi
5969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5971 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5972 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977 int i;
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"; then :
5980 xorg_cv_cc_flag_unused_command_line_argument=yes
5981 else
5982 xorg_cv_cc_flag_unused_command_line_argument=no
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5987 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5989 CFLAGS="$xorg_testset_save_CFLAGS"
5990 fi
5991
5992 found="no"
5993
5994 if test $found = "no" ; then
5995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5997 fi
5998
5999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001 fi
6002
6003 CFLAGS="$CFLAGS -Wunused"
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6006 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6007 cacheid=xorg_cv_cc_flag__Wunused
6008 if eval \${$cacheid+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 int i;
6014 int
6015 main ()
6016 {
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_link "$LINENO"; then :
6023 eval $cacheid=yes
6024 else
6025 eval $cacheid=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
6029 fi
6030
6031
6032 CFLAGS="$xorg_testset_save_CFLAGS"
6033
6034 eval supported=\$$cacheid
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6036 $as_echo "$supported" >&6; }
6037 if test "$supported" = "yes" ; then
6038 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6039 found="yes"
6040 fi
6041 fi
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 xorg_testset_save_CFLAGS="$CFLAGS"
6058
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 int i;
6069 _ACEOF
6070 if ac_fn_c_try_compile "$LINENO"; then :
6071 xorg_cv_cc_flag_unknown_warning_option=yes
6072 else
6073 xorg_cv_cc_flag_unknown_warning_option=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081 fi
6082
6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 fi
6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 int i;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 xorg_cv_cc_flag_unused_command_line_argument=yes
6099 else
6100 xorg_cv_cc_flag_unused_command_line_argument=no
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107 CFLAGS="$xorg_testset_save_CFLAGS"
6108 fi
6109
6110 found="no"
6111
6112 if test $found = "no" ; then
6113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 fi
6116
6117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 fi
6120
6121 CFLAGS="$CFLAGS -Wuninitialized"
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6124 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6125 cacheid=xorg_cv_cc_flag__Wuninitialized
6126 if eval \${$cacheid+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 int i;
6132 int
6133 main ()
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_link "$LINENO"; then :
6141 eval $cacheid=yes
6142 else
6143 eval $cacheid=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 fi
6148
6149
6150 CFLAGS="$xorg_testset_save_CFLAGS"
6151
6152 eval supported=\$$cacheid
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154 $as_echo "$supported" >&6; }
6155 if test "$supported" = "yes" ; then
6156 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6157 found="yes"
6158 fi
6159 fi
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 xorg_testset_save_CFLAGS="$CFLAGS"
6176
6177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 xorg_cv_cc_flag_unknown_warning_option=yes
6190 else
6191 xorg_cv_cc_flag_unknown_warning_option=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6198 CFLAGS="$xorg_testset_save_CFLAGS"
6199 fi
6200
6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 fi
6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 int i;
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 xorg_cv_cc_flag_unused_command_line_argument=yes
6217 else
6218 xorg_cv_cc_flag_unused_command_line_argument=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226 fi
6227
6228 found="no"
6229
6230 if test $found = "no" ; then
6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233 fi
6234
6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 fi
6238
6239 CFLAGS="$CFLAGS -Wshadow"
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6242 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6243 cacheid=xorg_cv_cc_flag__Wshadow
6244 if eval \${$cacheid+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 int i;
6250 int
6251 main ()
6252 {
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_link "$LINENO"; then :
6259 eval $cacheid=yes
6260 else
6261 eval $cacheid=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265 fi
6266
6267
6268 CFLAGS="$xorg_testset_save_CFLAGS"
6269
6270 eval supported=\$$cacheid
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6272 $as_echo "$supported" >&6; }
6273 if test "$supported" = "yes" ; then
6274 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6275 found="yes"
6276 fi
6277 fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 xorg_testset_save_CFLAGS="$CFLAGS"
6294
6295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307 xorg_cv_cc_flag_unknown_warning_option=yes
6308 else
6309 xorg_cv_cc_flag_unknown_warning_option=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6316 CFLAGS="$xorg_testset_save_CFLAGS"
6317 fi
6318
6319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322 fi
6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 xorg_cv_cc_flag_unused_command_line_argument=yes
6335 else
6336 xorg_cv_cc_flag_unused_command_line_argument=no
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344 fi
6345
6346 found="no"
6347
6348 if test $found = "no" ; then
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 fi
6352
6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355 fi
6356
6357 CFLAGS="$CFLAGS -Wmissing-noreturn"
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6360 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6361 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6362 if eval \${$cacheid+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 int i;
6368 int
6369 main ()
6370 {
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_link "$LINENO"; then :
6377 eval $cacheid=yes
6378 else
6379 eval $cacheid=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 fi
6384
6385
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388 eval supported=\$$cacheid
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390 $as_echo "$supported" >&6; }
6391 if test "$supported" = "yes" ; then
6392 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6393 found="yes"
6394 fi
6395 fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 xorg_testset_save_CFLAGS="$CFLAGS"
6412
6413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 int i;
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 xorg_cv_cc_flag_unknown_warning_option=yes
6426 else
6427 xorg_cv_cc_flag_unknown_warning_option=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 fi
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435 fi
6436
6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 xorg_cv_cc_flag_unused_command_line_argument=yes
6453 else
6454 xorg_cv_cc_flag_unused_command_line_argument=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6461 CFLAGS="$xorg_testset_save_CFLAGS"
6462 fi
6463
6464 found="no"
6465
6466 if test $found = "no" ; then
6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469 fi
6470
6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473 fi
6474
6475 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6478 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6479 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6480 if eval \${$cacheid+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 int i;
6486 int
6487 main ()
6488 {
6489
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_link "$LINENO"; then :
6495 eval $cacheid=yes
6496 else
6497 eval $cacheid=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501 fi
6502
6503
6504 CFLAGS="$xorg_testset_save_CFLAGS"
6505
6506 eval supported=\$$cacheid
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6508 $as_echo "$supported" >&6; }
6509 if test "$supported" = "yes" ; then
6510 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6511 found="yes"
6512 fi
6513 fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 xorg_testset_save_CFLAGS="$CFLAGS"
6530
6531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 xorg_cv_cc_flag_unknown_warning_option=yes
6544 else
6545 xorg_cv_cc_flag_unknown_warning_option=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6552 CFLAGS="$xorg_testset_save_CFLAGS"
6553 fi
6554
6555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558 fi
6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_cv_cc_flag_unused_command_line_argument=yes
6571 else
6572 xorg_cv_cc_flag_unused_command_line_argument=no
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6580 fi
6581
6582 found="no"
6583
6584 if test $found = "no" ; then
6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587 fi
6588
6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591 fi
6592
6593 CFLAGS="$CFLAGS -Wredundant-decls"
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6596 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6597 cacheid=xorg_cv_cc_flag__Wredundant_decls
6598 if eval \${$cacheid+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 int i;
6604 int
6605 main ()
6606 {
6607
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 if ac_fn_c_try_link "$LINENO"; then :
6613 eval $cacheid=yes
6614 else
6615 eval $cacheid=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext \
6618 conftest$ac_exeext conftest.$ac_ext
6619 fi
6620
6621
6622 CFLAGS="$xorg_testset_save_CFLAGS"
6623
6624 eval supported=\$$cacheid
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6626 $as_echo "$supported" >&6; }
6627 if test "$supported" = "yes" ; then
6628 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6629 found="yes"
6630 fi
6631 fi
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 xorg_testset_save_CFLAGS="$CFLAGS"
6648
6649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6652 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6653 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int i;
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 xorg_cv_cc_flag_unknown_warning_option=yes
6662 else
6663 xorg_cv_cc_flag_unknown_warning_option=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6668 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6671 fi
6672
6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 fi
6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6679 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6680 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"; then :
6688 xorg_cv_cc_flag_unused_command_line_argument=yes
6689 else
6690 xorg_cv_cc_flag_unused_command_line_argument=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 fi
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6695 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6697 CFLAGS="$xorg_testset_save_CFLAGS"
6698 fi
6699
6700 found="no"
6701
6702 if test $found = "no" ; then
6703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6705 fi
6706
6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709 fi
6710
6711 CFLAGS="$CFLAGS -Wlogical-op"
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6714 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6715 cacheid=xorg_cv_cc_flag__Wlogical_op
6716 if eval \${$cacheid+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int i;
6722 int
6723 main ()
6724 {
6725
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_link "$LINENO"; then :
6731 eval $cacheid=yes
6732 else
6733 eval $cacheid=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6737 fi
6738
6739
6740 CFLAGS="$xorg_testset_save_CFLAGS"
6741
6742 eval supported=\$$cacheid
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6744 $as_echo "$supported" >&6; }
6745 if test "$supported" = "yes" ; then
6746 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6747 found="yes"
6748 fi
6749 fi
6750
6751
6752
6753 # These are currently disabled because they are noisy. They will be enabled
6754 # in the future once the codebase is sufficiently modernized to silence
6755 # them. For now, I don't want them to drown out the other warnings.
6756 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6757 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6758 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6759
6760 # Turn some warnings into errors, so we don't accidently get successful builds
6761 # when there are problems that should be fixed.
6762
6763 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 xorg_testset_save_CFLAGS="$CFLAGS"
6778
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int i;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 xorg_cv_cc_flag_unknown_warning_option=yes
6792 else
6793 xorg_cv_cc_flag_unknown_warning_option=no
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6800 CFLAGS="$xorg_testset_save_CFLAGS"
6801 fi
6802
6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 fi
6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 int i;
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818 xorg_cv_cc_flag_unused_command_line_argument=yes
6819 else
6820 xorg_cv_cc_flag_unused_command_line_argument=no
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6828 fi
6829
6830 found="no"
6831
6832 if test $found = "no" ; then
6833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6835 fi
6836
6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839 fi
6840
6841 CFLAGS="$CFLAGS -Werror=implicit"
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6844 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6845 cacheid=xorg_cv_cc_flag__Werror_implicit
6846 if eval \${$cacheid+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 int i;
6852 int
6853 main ()
6854 {
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_link "$LINENO"; then :
6861 eval $cacheid=yes
6862 else
6863 eval $cacheid=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867 fi
6868
6869
6870 CFLAGS="$xorg_testset_save_CFLAGS"
6871
6872 eval supported=\$$cacheid
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6874 $as_echo "$supported" >&6; }
6875 if test "$supported" = "yes" ; then
6876 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6877 found="yes"
6878 fi
6879 fi
6880
6881 if test $found = "no" ; then
6882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884 fi
6885
6886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888 fi
6889
6890 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6893 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6894 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6895 if eval \${$cacheid+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 int i;
6901 int
6902 main ()
6903 {
6904
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_c_try_link "$LINENO"; then :
6910 eval $cacheid=yes
6911 else
6912 eval $cacheid=no
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6916 fi
6917
6918
6919 CFLAGS="$xorg_testset_save_CFLAGS"
6920
6921 eval supported=\$$cacheid
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6923 $as_echo "$supported" >&6; }
6924 if test "$supported" = "yes" ; then
6925 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6926 found="yes"
6927 fi
6928 fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944 xorg_testset_save_CFLAGS="$CFLAGS"
6945
6946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6949 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6950 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 int i;
6956 _ACEOF
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 xorg_cv_cc_flag_unknown_warning_option=yes
6959 else
6960 xorg_cv_cc_flag_unknown_warning_option=no
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6965 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6967 CFLAGS="$xorg_testset_save_CFLAGS"
6968 fi
6969
6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973 fi
6974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6976 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6977 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 int i;
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 xorg_cv_cc_flag_unused_command_line_argument=yes
6986 else
6987 xorg_cv_cc_flag_unused_command_line_argument=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6992 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6994 CFLAGS="$xorg_testset_save_CFLAGS"
6995 fi
6996
6997 found="no"
6998
6999 if test $found = "no" ; then
7000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002 fi
7003
7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006 fi
7007
7008 CFLAGS="$CFLAGS -Werror=nonnull"
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7011 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7012 cacheid=xorg_cv_cc_flag__Werror_nonnull
7013 if eval \${$cacheid+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 int
7020 main ()
7021 {
7022
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 eval $cacheid=yes
7029 else
7030 eval $cacheid=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 fi
7035
7036
7037 CFLAGS="$xorg_testset_save_CFLAGS"
7038
7039 eval supported=\$$cacheid
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7041 $as_echo "$supported" >&6; }
7042 if test "$supported" = "yes" ; then
7043 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7044 found="yes"
7045 fi
7046 fi
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 xorg_testset_save_CFLAGS="$CFLAGS"
7063
7064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7067 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7068 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 int i;
7074 _ACEOF
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076 xorg_cv_cc_flag_unknown_warning_option=yes
7077 else
7078 xorg_cv_cc_flag_unknown_warning_option=no
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085 CFLAGS="$xorg_testset_save_CFLAGS"
7086 fi
7087
7088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 fi
7092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 int i;
7101 _ACEOF
7102 if ac_fn_c_try_compile "$LINENO"; then :
7103 xorg_cv_cc_flag_unused_command_line_argument=yes
7104 else
7105 xorg_cv_cc_flag_unused_command_line_argument=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 fi
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7110 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7112 CFLAGS="$xorg_testset_save_CFLAGS"
7113 fi
7114
7115 found="no"
7116
7117 if test $found = "no" ; then
7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120 fi
7121
7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124 fi
7125
7126 CFLAGS="$CFLAGS -Werror=init-self"
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7129 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7130 cacheid=xorg_cv_cc_flag__Werror_init_self
7131 if eval \${$cacheid+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 int i;
7137 int
7138 main ()
7139 {
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_link "$LINENO"; then :
7146 eval $cacheid=yes
7147 else
7148 eval $cacheid=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152 fi
7153
7154
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157 eval supported=\$$cacheid
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7159 $as_echo "$supported" >&6; }
7160 if test "$supported" = "yes" ; then
7161 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7162 found="yes"
7163 fi
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 xorg_testset_save_CFLAGS="$CFLAGS"
7181
7182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7185 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7186 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 xorg_cv_cc_flag_unknown_warning_option=yes
7195 else
7196 xorg_cv_cc_flag_unknown_warning_option=no
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7201 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204 fi
7205
7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 fi
7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7212 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7213 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 int i;
7219 _ACEOF
7220 if ac_fn_c_try_compile "$LINENO"; then :
7221 xorg_cv_cc_flag_unused_command_line_argument=yes
7222 else
7223 xorg_cv_cc_flag_unused_command_line_argument=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7228 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7231 fi
7232
7233 found="no"
7234
7235 if test $found = "no" ; then
7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238 fi
7239
7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242 fi
7243
7244 CFLAGS="$CFLAGS -Werror=main"
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7247 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7248 cacheid=xorg_cv_cc_flag__Werror_main
7249 if eval \${$cacheid+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 int i;
7255 int
7256 main ()
7257 {
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264 eval $cacheid=yes
7265 else
7266 eval $cacheid=no
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 fi
7271
7272
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275 eval supported=\$$cacheid
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277 $as_echo "$supported" >&6; }
7278 if test "$supported" = "yes" ; then
7279 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7280 found="yes"
7281 fi
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 int i;
7310 _ACEOF
7311 if ac_fn_c_try_compile "$LINENO"; then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7313 else
7314 xorg_cv_cc_flag_unknown_warning_option=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322 fi
7323
7324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 xorg_cv_cc_flag_unused_command_line_argument=yes
7340 else
7341 xorg_cv_cc_flag_unused_command_line_argument=no
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348 CFLAGS="$xorg_testset_save_CFLAGS"
7349 fi
7350
7351 found="no"
7352
7353 if test $found = "no" ; then
7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 fi
7357
7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360 fi
7361
7362 CFLAGS="$CFLAGS -Werror=missing-braces"
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7365 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7366 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7367 if eval \${$cacheid+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 int i;
7373 int
7374 main ()
7375 {
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 eval $cacheid=yes
7383 else
7384 eval $cacheid=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
7388 fi
7389
7390
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393 eval supported=\$$cacheid
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395 $as_echo "$supported" >&6; }
7396 if test "$supported" = "yes" ; then
7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7398 found="yes"
7399 fi
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 xorg_testset_save_CFLAGS="$CFLAGS"
7417
7418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 int i;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 xorg_cv_cc_flag_unknown_warning_option=yes
7431 else
7432 xorg_cv_cc_flag_unknown_warning_option=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440 fi
7441
7442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 fi
7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 xorg_cv_cc_flag_unused_command_line_argument=yes
7458 else
7459 xorg_cv_cc_flag_unused_command_line_argument=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7466 CFLAGS="$xorg_testset_save_CFLAGS"
7467 fi
7468
7469 found="no"
7470
7471 if test $found = "no" ; then
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 fi
7475
7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478 fi
7479
7480 CFLAGS="$CFLAGS -Werror=sequence-point"
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7483 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7484 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7485 if eval \${$cacheid+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 int
7492 main ()
7493 {
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7500 eval $cacheid=yes
7501 else
7502 eval $cacheid=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7506 fi
7507
7508
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510
7511 eval supported=\$$cacheid
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7513 $as_echo "$supported" >&6; }
7514 if test "$supported" = "yes" ; then
7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7516 found="yes"
7517 fi
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 xorg_testset_save_CFLAGS="$CFLAGS"
7535
7536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7539 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7540 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int i;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 xorg_cv_cc_flag_unknown_warning_option=yes
7549 else
7550 xorg_cv_cc_flag_unknown_warning_option=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7555 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558 fi
7559
7560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 fi
7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7566 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7567 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 xorg_cv_cc_flag_unused_command_line_argument=yes
7576 else
7577 xorg_cv_cc_flag_unused_command_line_argument=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7582 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 found="no"
7588
7589 if test $found = "no" ; then
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 fi
7593
7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596 fi
7597
7598 CFLAGS="$CFLAGS -Werror=return-type"
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7601 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7602 cacheid=xorg_cv_cc_flag__Werror_return_type
7603 if eval \${$cacheid+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 int i;
7609 int
7610 main ()
7611 {
7612
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_c_try_link "$LINENO"; then :
7618 eval $cacheid=yes
7619 else
7620 eval $cacheid=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 fi
7625
7626
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628
7629 eval supported=\$$cacheid
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7631 $as_echo "$supported" >&6; }
7632 if test "$supported" = "yes" ; then
7633 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7634 found="yes"
7635 fi
7636 fi
7637
7638 if test $found = "no" ; then
7639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641 fi
7642
7643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645 fi
7646
7647 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7648
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7650 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7651 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7652 if eval \${$cacheid+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 int i;
7658 int
7659 main ()
7660 {
7661
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"; then :
7667 eval $cacheid=yes
7668 else
7669 eval $cacheid=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext \
7672 conftest$ac_exeext conftest.$ac_ext
7673 fi
7674
7675
7676 CFLAGS="$xorg_testset_save_CFLAGS"
7677
7678 eval supported=\$$cacheid
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7680 $as_echo "$supported" >&6; }
7681 if test "$supported" = "yes" ; then
7682 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7683 found="yes"
7684 fi
7685 fi
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701 xorg_testset_save_CFLAGS="$CFLAGS"
7702
7703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7706 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7707 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 int i;
7713 _ACEOF
7714 if ac_fn_c_try_compile "$LINENO"; then :
7715 xorg_cv_cc_flag_unknown_warning_option=yes
7716 else
7717 xorg_cv_cc_flag_unknown_warning_option=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7722 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725 fi
7726
7727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 fi
7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7733 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7734 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 int i;
7740 _ACEOF
7741 if ac_fn_c_try_compile "$LINENO"; then :
7742 xorg_cv_cc_flag_unused_command_line_argument=yes
7743 else
7744 xorg_cv_cc_flag_unused_command_line_argument=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7749 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7751 CFLAGS="$xorg_testset_save_CFLAGS"
7752 fi
7753
7754 found="no"
7755
7756 if test $found = "no" ; then
7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759 fi
7760
7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763 fi
7764
7765 CFLAGS="$CFLAGS -Werror=trigraphs"
7766
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7768 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7769 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7770 if eval \${$cacheid+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 int
7777 main ()
7778 {
7779
7780 ;
7781 return 0;
7782 }
7783 _ACEOF
7784 if ac_fn_c_try_link "$LINENO"; then :
7785 eval $cacheid=yes
7786 else
7787 eval $cacheid=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791 fi
7792
7793
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795
7796 eval supported=\$$cacheid
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7798 $as_echo "$supported" >&6; }
7799 if test "$supported" = "yes" ; then
7800 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7801 found="yes"
7802 fi
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 xorg_testset_save_CFLAGS="$CFLAGS"
7820
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 int i;
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 xorg_cv_cc_flag_unknown_warning_option=yes
7834 else
7835 xorg_cv_cc_flag_unknown_warning_option=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7842 CFLAGS="$xorg_testset_save_CFLAGS"
7843 fi
7844
7845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 fi
7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 int i;
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 xorg_cv_cc_flag_unused_command_line_argument=yes
7861 else
7862 xorg_cv_cc_flag_unused_command_line_argument=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7869 CFLAGS="$xorg_testset_save_CFLAGS"
7870 fi
7871
7872 found="no"
7873
7874 if test $found = "no" ; then
7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877 fi
7878
7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 fi
7882
7883 CFLAGS="$CFLAGS -Werror=array-bounds"
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7886 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7887 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7888 if eval \${$cacheid+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 int i;
7894 int
7895 main ()
7896 {
7897
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 eval $cacheid=yes
7904 else
7905 eval $cacheid=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909 fi
7910
7911
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913
7914 eval supported=\$$cacheid
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7916 $as_echo "$supported" >&6; }
7917 if test "$supported" = "yes" ; then
7918 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7919 found="yes"
7920 fi
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 xorg_testset_save_CFLAGS="$CFLAGS"
7938
7939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 int i;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 xorg_cv_cc_flag_unknown_warning_option=yes
7952 else
7953 xorg_cv_cc_flag_unknown_warning_option=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7960 CFLAGS="$xorg_testset_save_CFLAGS"
7961 fi
7962
7963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 fi
7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 int i;
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 xorg_cv_cc_flag_unused_command_line_argument=yes
7979 else
7980 xorg_cv_cc_flag_unused_command_line_argument=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7987 CFLAGS="$xorg_testset_save_CFLAGS"
7988 fi
7989
7990 found="no"
7991
7992 if test $found = "no" ; then
7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7995 fi
7996
7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999 fi
8000
8001 CFLAGS="$CFLAGS -Werror=write-strings"
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8004 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8005 cacheid=xorg_cv_cc_flag__Werror_write_strings
8006 if eval \${$cacheid+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 int i;
8012 int
8013 main ()
8014 {
8015
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 if ac_fn_c_try_link "$LINENO"; then :
8021 eval $cacheid=yes
8022 else
8023 eval $cacheid=no
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8027 fi
8028
8029
8030 CFLAGS="$xorg_testset_save_CFLAGS"
8031
8032 eval supported=\$$cacheid
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034 $as_echo "$supported" >&6; }
8035 if test "$supported" = "yes" ; then
8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8037 found="yes"
8038 fi
8039 fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055 xorg_testset_save_CFLAGS="$CFLAGS"
8056
8057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 int i;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 xorg_cv_cc_flag_unknown_warning_option=yes
8070 else
8071 xorg_cv_cc_flag_unknown_warning_option=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8078 CFLAGS="$xorg_testset_save_CFLAGS"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 fi
8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 xorg_cv_cc_flag_unused_command_line_argument=yes
8097 else
8098 xorg_cv_cc_flag_unused_command_line_argument=no
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8105 CFLAGS="$xorg_testset_save_CFLAGS"
8106 fi
8107
8108 found="no"
8109
8110 if test $found = "no" ; then
8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113 fi
8114
8115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117 fi
8118
8119 CFLAGS="$CFLAGS -Werror=address"
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8122 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8123 cacheid=xorg_cv_cc_flag__Werror_address
8124 if eval \${$cacheid+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 int i;
8130 int
8131 main ()
8132 {
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 eval $cacheid=yes
8140 else
8141 eval $cacheid=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 fi
8146
8147
8148 CFLAGS="$xorg_testset_save_CFLAGS"
8149
8150 eval supported=\$$cacheid
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8152 $as_echo "$supported" >&6; }
8153 if test "$supported" = "yes" ; then
8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8155 found="yes"
8156 fi
8157 fi
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 xorg_testset_save_CFLAGS="$CFLAGS"
8174
8175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int i;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 xorg_cv_cc_flag_unknown_warning_option=yes
8188 else
8189 xorg_cv_cc_flag_unknown_warning_option=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197 fi
8198
8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202 fi
8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 xorg_cv_cc_flag_unused_command_line_argument=yes
8215 else
8216 xorg_cv_cc_flag_unused_command_line_argument=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8224 fi
8225
8226 found="no"
8227
8228 if test $found = "no" ; then
8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231 fi
8232
8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235 fi
8236
8237 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8238
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8240 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8241 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8242 if eval \${$cacheid+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 int i;
8248 int
8249 main ()
8250 {
8251
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 eval $cacheid=yes
8258 else
8259 eval $cacheid=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 fi
8264
8265
8266 CFLAGS="$xorg_testset_save_CFLAGS"
8267
8268 eval supported=\$$cacheid
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8270 $as_echo "$supported" >&6; }
8271 if test "$supported" = "yes" ; then
8272 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8273 found="yes"
8274 fi
8275 fi
8276
8277 if test $found = "no" ; then
8278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8280 fi
8281
8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284 fi
8285
8286 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8289 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8290 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8291 if eval \${$cacheid+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 int i;
8297 int
8298 main ()
8299 {
8300
8301 ;
8302 return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306 eval $cacheid=yes
8307 else
8308 eval $cacheid=no
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 fi
8313
8314
8315 CFLAGS="$xorg_testset_save_CFLAGS"
8316
8317 eval supported=\$$cacheid
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8319 $as_echo "$supported" >&6; }
8320 if test "$supported" = "yes" ; then
8321 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8322 found="yes"
8323 fi
8324 fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 xorg_testset_save_CFLAGS="$CFLAGS"
8341
8342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8345 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8346 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int i;
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 xorg_cv_cc_flag_unknown_warning_option=yes
8355 else
8356 xorg_cv_cc_flag_unknown_warning_option=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8361 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364 fi
8365
8366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 fi
8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8372 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8373 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 int i;
8379 _ACEOF
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 xorg_cv_cc_flag_unused_command_line_argument=yes
8382 else
8383 xorg_cv_cc_flag_unused_command_line_argument=no
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8388 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8390 CFLAGS="$xorg_testset_save_CFLAGS"
8391 fi
8392
8393 found="no"
8394
8395 if test $found = "no" ; then
8396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398 fi
8399
8400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402 fi
8403
8404 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8407 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8408 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8409 if eval \${$cacheid+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 int
8416 main ()
8417 {
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 eval $cacheid=yes
8425 else
8426 eval $cacheid=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8430 fi
8431
8432
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8434
8435 eval supported=\$$cacheid
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437 $as_echo "$supported" >&6; }
8438 if test "$supported" = "yes" ; then
8439 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8440 found="yes"
8441 fi
8442 fi
8443
8444 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8445 else
8446 { $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
8447 $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;}
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 xorg_testset_save_CFLAGS="$CFLAGS"
8462
8463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 int i;
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 xorg_cv_cc_flag_unknown_warning_option=yes
8476 else
8477 xorg_cv_cc_flag_unknown_warning_option=no
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 fi
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8484 CFLAGS="$xorg_testset_save_CFLAGS"
8485 fi
8486
8487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490 fi
8491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 int i;
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 xorg_cv_cc_flag_unused_command_line_argument=yes
8503 else
8504 xorg_cv_cc_flag_unused_command_line_argument=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8511 CFLAGS="$xorg_testset_save_CFLAGS"
8512 fi
8513
8514 found="no"
8515
8516 if test $found = "no" ; then
8517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8519 fi
8520
8521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523 fi
8524
8525 CFLAGS="$CFLAGS -Wimplicit"
8526
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8528 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8529 cacheid=xorg_cv_cc_flag__Wimplicit
8530 if eval \${$cacheid+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 int i;
8536 int
8537 main ()
8538 {
8539
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 eval $cacheid=yes
8546 else
8547 eval $cacheid=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 fi
8552
8553
8554 CFLAGS="$xorg_testset_save_CFLAGS"
8555
8556 eval supported=\$$cacheid
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8558 $as_echo "$supported" >&6; }
8559 if test "$supported" = "yes" ; then
8560 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8561 found="yes"
8562 fi
8563 fi
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 int i;
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 xorg_cv_cc_flag_unknown_warning_option=yes
8594 else
8595 xorg_cv_cc_flag_unknown_warning_option=no
8596 fi
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8602 CFLAGS="$xorg_testset_save_CFLAGS"
8603 fi
8604
8605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 fi
8609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 int i;
8618 _ACEOF
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 xorg_cv_cc_flag_unused_command_line_argument=yes
8621 else
8622 xorg_cv_cc_flag_unused_command_line_argument=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8629 CFLAGS="$xorg_testset_save_CFLAGS"
8630 fi
8631
8632 found="no"
8633
8634 if test $found = "no" ; then
8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8637 fi
8638
8639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641 fi
8642
8643 CFLAGS="$CFLAGS -Wnonnull"
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8646 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8647 cacheid=xorg_cv_cc_flag__Wnonnull
8648 if eval \${$cacheid+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 int i;
8654 int
8655 main ()
8656 {
8657
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 eval $cacheid=yes
8664 else
8665 eval $cacheid=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669 fi
8670
8671
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673
8674 eval supported=\$$cacheid
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8676 $as_echo "$supported" >&6; }
8677 if test "$supported" = "yes" ; then
8678 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8679 found="yes"
8680 fi
8681 fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 xorg_testset_save_CFLAGS="$CFLAGS"
8698
8699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 _ACEOF
8710 if ac_fn_c_try_compile "$LINENO"; then :
8711 xorg_cv_cc_flag_unknown_warning_option=yes
8712 else
8713 xorg_cv_cc_flag_unknown_warning_option=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8721 fi
8722
8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 fi
8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 xorg_cv_cc_flag_unused_command_line_argument=yes
8739 else
8740 xorg_cv_cc_flag_unused_command_line_argument=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8747 CFLAGS="$xorg_testset_save_CFLAGS"
8748 fi
8749
8750 found="no"
8751
8752 if test $found = "no" ; then
8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8755 fi
8756
8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759 fi
8760
8761 CFLAGS="$CFLAGS -Winit-self"
8762
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8764 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8765 cacheid=xorg_cv_cc_flag__Winit_self
8766 if eval \${$cacheid+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 int
8773 main ()
8774 {
8775
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 eval $cacheid=yes
8782 else
8783 eval $cacheid=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 fi
8788
8789
8790 CFLAGS="$xorg_testset_save_CFLAGS"
8791
8792 eval supported=\$$cacheid
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8794 $as_echo "$supported" >&6; }
8795 if test "$supported" = "yes" ; then
8796 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8797 found="yes"
8798 fi
8799 fi
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815 xorg_testset_save_CFLAGS="$CFLAGS"
8816
8817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 int i;
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 xorg_cv_cc_flag_unknown_warning_option=yes
8830 else
8831 xorg_cv_cc_flag_unknown_warning_option=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839 fi
8840
8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844 fi
8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"; then :
8856 xorg_cv_cc_flag_unused_command_line_argument=yes
8857 else
8858 xorg_cv_cc_flag_unused_command_line_argument=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8865 CFLAGS="$xorg_testset_save_CFLAGS"
8866 fi
8867
8868 found="no"
8869
8870 if test $found = "no" ; then
8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873 fi
8874
8875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877 fi
8878
8879 CFLAGS="$CFLAGS -Wmain"
8880
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8882 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8883 cacheid=xorg_cv_cc_flag__Wmain
8884 if eval \${$cacheid+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 int i;
8890 int
8891 main ()
8892 {
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"; then :
8899 eval $cacheid=yes
8900 else
8901 eval $cacheid=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905 fi
8906
8907
8908 CFLAGS="$xorg_testset_save_CFLAGS"
8909
8910 eval supported=\$$cacheid
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8912 $as_echo "$supported" >&6; }
8913 if test "$supported" = "yes" ; then
8914 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8915 found="yes"
8916 fi
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 xorg_testset_save_CFLAGS="$CFLAGS"
8934
8935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 int i;
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 xorg_cv_cc_flag_unknown_warning_option=yes
8948 else
8949 xorg_cv_cc_flag_unknown_warning_option=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8956 CFLAGS="$xorg_testset_save_CFLAGS"
8957 fi
8958
8959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962 fi
8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"; then :
8974 xorg_cv_cc_flag_unused_command_line_argument=yes
8975 else
8976 xorg_cv_cc_flag_unused_command_line_argument=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8983 CFLAGS="$xorg_testset_save_CFLAGS"
8984 fi
8985
8986 found="no"
8987
8988 if test $found = "no" ; then
8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991 fi
8992
8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995 fi
8996
8997 CFLAGS="$CFLAGS -Wmissing-braces"
8998
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9000 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9001 cacheid=xorg_cv_cc_flag__Wmissing_braces
9002 if eval \${$cacheid+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 int
9009 main ()
9010 {
9011
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 eval $cacheid=yes
9018 else
9019 eval $cacheid=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 fi
9024
9025
9026 CFLAGS="$xorg_testset_save_CFLAGS"
9027
9028 eval supported=\$$cacheid
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9030 $as_echo "$supported" >&6; }
9031 if test "$supported" = "yes" ; then
9032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9033 found="yes"
9034 fi
9035 fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 xorg_testset_save_CFLAGS="$CFLAGS"
9052
9053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 int i;
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 xorg_cv_cc_flag_unknown_warning_option=yes
9066 else
9067 xorg_cv_cc_flag_unknown_warning_option=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9074 CFLAGS="$xorg_testset_save_CFLAGS"
9075 fi
9076
9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 fi
9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"; then :
9092 xorg_cv_cc_flag_unused_command_line_argument=yes
9093 else
9094 xorg_cv_cc_flag_unused_command_line_argument=no
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9101 CFLAGS="$xorg_testset_save_CFLAGS"
9102 fi
9103
9104 found="no"
9105
9106 if test $found = "no" ; then
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 fi
9110
9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113 fi
9114
9115 CFLAGS="$CFLAGS -Wsequence-point"
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9118 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9119 cacheid=xorg_cv_cc_flag__Wsequence_point
9120 if eval \${$cacheid+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 int
9127 main ()
9128 {
9129
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 if ac_fn_c_try_link "$LINENO"; then :
9135 eval $cacheid=yes
9136 else
9137 eval $cacheid=no
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 fi
9142
9143
9144 CFLAGS="$xorg_testset_save_CFLAGS"
9145
9146 eval supported=\$$cacheid
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9148 $as_echo "$supported" >&6; }
9149 if test "$supported" = "yes" ; then
9150 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9151 found="yes"
9152 fi
9153 fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 xorg_testset_save_CFLAGS="$CFLAGS"
9170
9171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int i;
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"; then :
9183 xorg_cv_cc_flag_unknown_warning_option=yes
9184 else
9185 xorg_cv_cc_flag_unknown_warning_option=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193 fi
9194
9195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198 fi
9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 xorg_cv_cc_flag_unused_command_line_argument=yes
9211 else
9212 xorg_cv_cc_flag_unused_command_line_argument=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9219 CFLAGS="$xorg_testset_save_CFLAGS"
9220 fi
9221
9222 found="no"
9223
9224 if test $found = "no" ; then
9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227 fi
9228
9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231 fi
9232
9233 CFLAGS="$CFLAGS -Wreturn-type"
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9236 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9237 cacheid=xorg_cv_cc_flag__Wreturn_type
9238 if eval \${$cacheid+:} false; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 int i;
9244 int
9245 main ()
9246 {
9247
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 eval $cacheid=yes
9254 else
9255 eval $cacheid=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 fi
9260
9261
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264 eval supported=\$$cacheid
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266 $as_echo "$supported" >&6; }
9267 if test "$supported" = "yes" ; then
9268 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9269 found="yes"
9270 fi
9271 fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 xorg_testset_save_CFLAGS="$CFLAGS"
9288
9289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 int i;
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301 xorg_cv_cc_flag_unknown_warning_option=yes
9302 else
9303 xorg_cv_cc_flag_unknown_warning_option=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311 fi
9312
9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 fi
9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 int i;
9326 _ACEOF
9327 if ac_fn_c_try_compile "$LINENO"; then :
9328 xorg_cv_cc_flag_unused_command_line_argument=yes
9329 else
9330 xorg_cv_cc_flag_unused_command_line_argument=no
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 fi
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9337 CFLAGS="$xorg_testset_save_CFLAGS"
9338 fi
9339
9340 found="no"
9341
9342 if test $found = "no" ; then
9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345 fi
9346
9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349 fi
9350
9351 CFLAGS="$CFLAGS -Wtrigraphs"
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9354 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9355 cacheid=xorg_cv_cc_flag__Wtrigraphs
9356 if eval \${$cacheid+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 int i;
9362 int
9363 main ()
9364 {
9365
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 eval $cacheid=yes
9372 else
9373 eval $cacheid=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 fi
9378
9379
9380 CFLAGS="$xorg_testset_save_CFLAGS"
9381
9382 eval supported=\$$cacheid
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9384 $as_echo "$supported" >&6; }
9385 if test "$supported" = "yes" ; then
9386 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9387 found="yes"
9388 fi
9389 fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405 xorg_testset_save_CFLAGS="$CFLAGS"
9406
9407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 int i;
9417 _ACEOF
9418 if ac_fn_c_try_compile "$LINENO"; then :
9419 xorg_cv_cc_flag_unknown_warning_option=yes
9420 else
9421 xorg_cv_cc_flag_unknown_warning_option=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9428 CFLAGS="$xorg_testset_save_CFLAGS"
9429 fi
9430
9431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 fi
9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int i;
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 xorg_cv_cc_flag_unused_command_line_argument=yes
9447 else
9448 xorg_cv_cc_flag_unused_command_line_argument=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9455 CFLAGS="$xorg_testset_save_CFLAGS"
9456 fi
9457
9458 found="no"
9459
9460 if test $found = "no" ; then
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 fi
9464
9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467 fi
9468
9469 CFLAGS="$CFLAGS -Warray-bounds"
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9472 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9473 cacheid=xorg_cv_cc_flag__Warray_bounds
9474 if eval \${$cacheid+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 int
9481 main ()
9482 {
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 eval $cacheid=yes
9490 else
9491 eval $cacheid=no
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 fi
9496
9497
9498 CFLAGS="$xorg_testset_save_CFLAGS"
9499
9500 eval supported=\$$cacheid
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9502 $as_echo "$supported" >&6; }
9503 if test "$supported" = "yes" ; then
9504 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9505 found="yes"
9506 fi
9507 fi
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523 xorg_testset_save_CFLAGS="$CFLAGS"
9524
9525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9537 xorg_cv_cc_flag_unknown_warning_option=yes
9538 else
9539 xorg_cv_cc_flag_unknown_warning_option=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 fi
9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 _ACEOF
9563 if ac_fn_c_try_compile "$LINENO"; then :
9564 xorg_cv_cc_flag_unused_command_line_argument=yes
9565 else
9566 xorg_cv_cc_flag_unused_command_line_argument=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 found="no"
9577
9578 if test $found = "no" ; then
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 fi
9582
9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 fi
9586
9587 CFLAGS="$CFLAGS -Wwrite-strings"
9588
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9590 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9591 cacheid=xorg_cv_cc_flag__Wwrite_strings
9592 if eval \${$cacheid+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 int i;
9598 int
9599 main ()
9600 {
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 eval $cacheid=yes
9608 else
9609 eval $cacheid=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614
9615
9616 CFLAGS="$xorg_testset_save_CFLAGS"
9617
9618 eval supported=\$$cacheid
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9620 $as_echo "$supported" >&6; }
9621 if test "$supported" = "yes" ; then
9622 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9623 found="yes"
9624 fi
9625 fi
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641 xorg_testset_save_CFLAGS="$CFLAGS"
9642
9643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9646 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9647 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 int i;
9653 _ACEOF
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 xorg_cv_cc_flag_unknown_warning_option=yes
9656 else
9657 xorg_cv_cc_flag_unknown_warning_option=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9662 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670 fi
9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9673 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9674 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 _ACEOF
9681 if ac_fn_c_try_compile "$LINENO"; then :
9682 xorg_cv_cc_flag_unused_command_line_argument=yes
9683 else
9684 xorg_cv_cc_flag_unused_command_line_argument=no
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9689 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9691 CFLAGS="$xorg_testset_save_CFLAGS"
9692 fi
9693
9694 found="no"
9695
9696 if test $found = "no" ; then
9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699 fi
9700
9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703 fi
9704
9705 CFLAGS="$CFLAGS -Waddress"
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9708 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9709 cacheid=xorg_cv_cc_flag__Waddress
9710 if eval \${$cacheid+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 int i;
9716 int
9717 main ()
9718 {
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725 eval $cacheid=yes
9726 else
9727 eval $cacheid=no
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 fi
9732
9733
9734 CFLAGS="$xorg_testset_save_CFLAGS"
9735
9736 eval supported=\$$cacheid
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9738 $as_echo "$supported" >&6; }
9739 if test "$supported" = "yes" ; then
9740 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9741 found="yes"
9742 fi
9743 fi
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759 xorg_testset_save_CFLAGS="$CFLAGS"
9760
9761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9764 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9765 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int i;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 xorg_cv_cc_flag_unknown_warning_option=yes
9774 else
9775 xorg_cv_cc_flag_unknown_warning_option=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9780 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783 fi
9784
9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 fi
9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9791 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9792 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 int i;
9798 _ACEOF
9799 if ac_fn_c_try_compile "$LINENO"; then :
9800 xorg_cv_cc_flag_unused_command_line_argument=yes
9801 else
9802 xorg_cv_cc_flag_unused_command_line_argument=no
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9807 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9809 CFLAGS="$xorg_testset_save_CFLAGS"
9810 fi
9811
9812 found="no"
9813
9814 if test $found = "no" ; then
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 fi
9818
9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821 fi
9822
9823 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9824
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9826 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9827 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9828 if eval \${$cacheid+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 int i;
9834 int
9835 main ()
9836 {
9837
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 eval $cacheid=yes
9844 else
9845 eval $cacheid=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 fi
9850
9851
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854 eval supported=\$$cacheid
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856 $as_echo "$supported" >&6; }
9857 if test "$supported" = "yes" ; then
9858 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9859 found="yes"
9860 fi
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 xorg_cv_cc_flag_unknown_warning_option=yes
9892 else
9893 xorg_cv_cc_flag_unknown_warning_option=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 fi
9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 xorg_cv_cc_flag_unused_command_line_argument=yes
9919 else
9920 xorg_cv_cc_flag_unused_command_line_argument=no
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927 CFLAGS="$xorg_testset_save_CFLAGS"
9928 fi
9929
9930 found="no"
9931
9932 if test $found = "no" ; then
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 fi
9936
9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939 fi
9940
9941 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9944 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9945 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9946 if eval \${$cacheid+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 int
9953 main ()
9954 {
9955
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 eval $cacheid=yes
9962 else
9963 eval $cacheid=no
9964 fi
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 fi
9968
9969
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971
9972 eval supported=\$$cacheid
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9974 $as_echo "$supported" >&6; }
9975 if test "$supported" = "yes" ; then
9976 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9977 found="yes"
9978 fi
9979 fi
9980
9981
9982 fi
9983
9984
9985
9986
9987
9988
9989
9990 CWARNFLAGS="$BASE_CFLAGS"
9991 if test "x$GCC" = xyes ; then
9992 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9993 fi
9994
9995
9996
9997
9998
9999
10000
10001
10002 # Check whether --enable-strict-compilation was given.
10003 if test "${enable_strict_compilation+set}" = set; then :
10004 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10005 else
10006 STRICT_COMPILE=no
10007 fi
10008
10009
10010
10011
10012
10013
10014 STRICT_CFLAGS=""
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028 xorg_testset_save_CFLAGS="$CFLAGS"
10029
10030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 int i;
10040 _ACEOF
10041 if ac_fn_c_try_compile "$LINENO"; then :
10042 xorg_cv_cc_flag_unknown_warning_option=yes
10043 else
10044 xorg_cv_cc_flag_unknown_warning_option=no
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10051 CFLAGS="$xorg_testset_save_CFLAGS"
10052 fi
10053
10054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057 fi
10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 int i;
10067 _ACEOF
10068 if ac_fn_c_try_compile "$LINENO"; then :
10069 xorg_cv_cc_flag_unused_command_line_argument=yes
10070 else
10071 xorg_cv_cc_flag_unused_command_line_argument=no
10072 fi
10073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10078 CFLAGS="$xorg_testset_save_CFLAGS"
10079 fi
10080
10081 found="no"
10082
10083 if test $found = "no" ; then
10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086 fi
10087
10088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10090 fi
10091
10092 CFLAGS="$CFLAGS -pedantic"
10093
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10095 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10096 cacheid=xorg_cv_cc_flag__pedantic
10097 if eval \${$cacheid+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102 int i;
10103 int
10104 main ()
10105 {
10106
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 eval $cacheid=yes
10113 else
10114 eval $cacheid=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 fi
10119
10120
10121 CFLAGS="$xorg_testset_save_CFLAGS"
10122
10123 eval supported=\$$cacheid
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10125 $as_echo "$supported" >&6; }
10126 if test "$supported" = "yes" ; then
10127 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10128 found="yes"
10129 fi
10130 fi
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146 xorg_testset_save_CFLAGS="$CFLAGS"
10147
10148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157 int i;
10158 _ACEOF
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160 xorg_cv_cc_flag_unknown_warning_option=yes
10161 else
10162 xorg_cv_cc_flag_unknown_warning_option=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169 CFLAGS="$xorg_testset_save_CFLAGS"
10170 fi
10171
10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int i;
10185 _ACEOF
10186 if ac_fn_c_try_compile "$LINENO"; then :
10187 xorg_cv_cc_flag_unused_command_line_argument=yes
10188 else
10189 xorg_cv_cc_flag_unused_command_line_argument=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10196 CFLAGS="$xorg_testset_save_CFLAGS"
10197 fi
10198
10199 found="no"
10200
10201 if test $found = "no" ; then
10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204 fi
10205
10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208 fi
10209
10210 CFLAGS="$CFLAGS -Werror"
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10213 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10214 cacheid=xorg_cv_cc_flag__Werror
10215 if eval \${$cacheid+:} false; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 int i;
10221 int
10222 main ()
10223 {
10224
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10230 eval $cacheid=yes
10231 else
10232 eval $cacheid=no
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 fi
10237
10238
10239 CFLAGS="$xorg_testset_save_CFLAGS"
10240
10241 eval supported=\$$cacheid
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10243 $as_echo "$supported" >&6; }
10244 if test "$supported" = "yes" ; then
10245 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10246 found="yes"
10247 fi
10248 fi
10249
10250 if test $found = "no" ; then
10251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253 fi
10254
10255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10257 fi
10258
10259 CFLAGS="$CFLAGS -errwarn"
10260
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10262 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10263 cacheid=xorg_cv_cc_flag__errwarn
10264 if eval \${$cacheid+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 int i;
10270 int
10271 main ()
10272 {
10273
10274 ;
10275 return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"; then :
10279 eval $cacheid=yes
10280 else
10281 eval $cacheid=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 fi
10286
10287
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289
10290 eval supported=\$$cacheid
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10292 $as_echo "$supported" >&6; }
10293 if test "$supported" = "yes" ; then
10294 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10295 found="yes"
10296 fi
10297 fi
10298
10299
10300
10301 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10302 # activate it with -Werror, so we add it here explicitly.
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316 xorg_testset_save_CFLAGS="$CFLAGS"
10317
10318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 int i;
10328 _ACEOF
10329 if ac_fn_c_try_compile "$LINENO"; then :
10330 xorg_cv_cc_flag_unknown_warning_option=yes
10331 else
10332 xorg_cv_cc_flag_unknown_warning_option=no
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335 fi
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10339 CFLAGS="$xorg_testset_save_CFLAGS"
10340 fi
10341
10342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345 fi
10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 int i;
10355 _ACEOF
10356 if ac_fn_c_try_compile "$LINENO"; then :
10357 xorg_cv_cc_flag_unused_command_line_argument=yes
10358 else
10359 xorg_cv_cc_flag_unused_command_line_argument=no
10360 fi
10361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10362 fi
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10366 CFLAGS="$xorg_testset_save_CFLAGS"
10367 fi
10368
10369 found="no"
10370
10371 if test $found = "no" ; then
10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374 fi
10375
10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10378 fi
10379
10380 CFLAGS="$CFLAGS -Werror=attributes"
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10383 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10384 cacheid=xorg_cv_cc_flag__Werror_attributes
10385 if eval \${$cacheid+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 int i;
10391 int
10392 main ()
10393 {
10394
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"; then :
10400 eval $cacheid=yes
10401 else
10402 eval $cacheid=no
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 fi
10407
10408
10409 CFLAGS="$xorg_testset_save_CFLAGS"
10410
10411 eval supported=\$$cacheid
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10413 $as_echo "$supported" >&6; }
10414 if test "$supported" = "yes" ; then
10415 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10416 found="yes"
10417 fi
10418 fi
10419
10420
10421
10422 if test "x$STRICT_COMPILE" = "xyes"; then
10423 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10424 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10425 fi
10426
10427
10428
10429
10430
10431
10432 cat >>confdefs.h <<_ACEOF
10433 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10434 _ACEOF
10435
10436 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10437 if test "x$PVM" = "x"; then
10438 PVM="0"
10439 fi
10440
10441 cat >>confdefs.h <<_ACEOF
10442 #define PACKAGE_VERSION_MINOR $PVM
10443 _ACEOF
10444
10445 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10446 if test "x$PVP" = "x"; then
10447 PVP="0"
10448 fi
10449
10450 cat >>confdefs.h <<_ACEOF
10451 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10452 _ACEOF
10453
10454
10455
10456 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10457 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10458 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10459 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10460
10461
10462
10463
10464 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10465 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10466 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10467 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10468 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10469
10470
10471
10472
10473
10474
10475 if test x$APP_MAN_SUFFIX = x ; then
10476 APP_MAN_SUFFIX=1
10477 fi
10478 if test x$APP_MAN_DIR = x ; then
10479 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10480 fi
10481
10482 if test x$LIB_MAN_SUFFIX = x ; then
10483 LIB_MAN_SUFFIX=3
10484 fi
10485 if test x$LIB_MAN_DIR = x ; then
10486 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10487 fi
10488
10489 if test x$FILE_MAN_SUFFIX = x ; then
10490 case $host_os in
10491 # Solaris 2.0 - 11 use SysV man page sections
10492 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10493 *) FILE_MAN_SUFFIX=5 ;;
10494 esac
10495 fi
10496 if test x$FILE_MAN_DIR = x ; then
10497 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10498 fi
10499
10500 if test x$MISC_MAN_SUFFIX = x ; then
10501 case $host_os in
10502 # Solaris 2.0 - 11 use SysV man page sections
10503 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10504 *) MISC_MAN_SUFFIX=7 ;;
10505 esac
10506 fi
10507 if test x$MISC_MAN_DIR = x ; then
10508 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10509 fi
10510
10511 if test x$DRIVER_MAN_SUFFIX = x ; then
10512 case $host_os in
10513 # Solaris 2.0 - 11 use SysV man page sections
10514 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10515 *) DRIVER_MAN_SUFFIX=4 ;;
10516 esac
10517 fi
10518 if test x$DRIVER_MAN_DIR = x ; then
10519 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10520 fi
10521
10522 if test x$ADMIN_MAN_SUFFIX = x ; then
10523 case $host_os in
10524 # Solaris 2.0 - 11 use SysV man page sections
10525 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10526 *) ADMIN_MAN_SUFFIX=8 ;;
10527 esac
10528 fi
10529 if test x$ADMIN_MAN_DIR = x ; then
10530 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10531 fi
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 XORG_MAN_PAGE="X Version 11"
10548
10549 MAN_SUBSTS="\
10550 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10551 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10552 -e 's|__xservername__|Xorg|g' \
10553 -e 's|__xconfigfile__|xorg.conf|g' \
10554 -e 's|__projectroot__|\$(prefix)|g' \
10555 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10556 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10557 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10558 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10559 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10560 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10561 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10562
10563
10564
10565 # Check whether --enable-silent-rules was given.
10566 if test "${enable_silent_rules+set}" = set; then :
10567 enableval=$enable_silent_rules;
10568 fi
10569
10570 case $enable_silent_rules in # (((
10571 yes) AM_DEFAULT_VERBOSITY=0;;
10572 no) AM_DEFAULT_VERBOSITY=1;;
10573 *) AM_DEFAULT_VERBOSITY=0;;
10574 esac
10575 am_make=${MAKE-make}
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10577 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10578 if ${am_cv_make_support_nested_variables+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 if $as_echo 'TRUE=$(BAR$(V))
10582 BAR0=false
10583 BAR1=true
10584 V=1
10585 am__doit:
10586 @$(TRUE)
10587 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10588 am_cv_make_support_nested_variables=yes
10589 else
10590 am_cv_make_support_nested_variables=no
10591 fi
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10594 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10595 if test $am_cv_make_support_nested_variables = yes; then
10596 AM_V='$(V)'
10597 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10598 else
10599 AM_V=$AM_DEFAULT_VERBOSITY
10600 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10601 fi
10602 AM_BACKSLASH='\'
10603
10604
10605
10606 # Obtain compiler/linker options for the transset dependencies
10607
10608 pkg_failed=no
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRANSSET" >&5
10610 $as_echo_n "checking for TRANSSET... " >&6; }
10611
10612 if test -n "$TRANSSET_CFLAGS"; then
10613 pkg_cv_TRANSSET_CFLAGS="$TRANSSET_CFLAGS"
10614 elif test -n "$PKG_CONFIG"; then
10615 if test -n "$PKG_CONFIG" && \
10616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10617 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10618 ac_status=$?
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; }; then
10621 pkg_cv_TRANSSET_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
10622 test "x$?" != "x0" && pkg_failed=yes
10623 else
10624 pkg_failed=yes
10625 fi
10626 else
10627 pkg_failed=untried
10628 fi
10629 if test -n "$TRANSSET_LIBS"; then
10630 pkg_cv_TRANSSET_LIBS="$TRANSSET_LIBS"
10631 elif test -n "$PKG_CONFIG"; then
10632 if test -n "$PKG_CONFIG" && \
10633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10634 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10635 ac_status=$?
10636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10637 test $ac_status = 0; }; then
10638 pkg_cv_TRANSSET_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
10639 test "x$?" != "x0" && pkg_failed=yes
10640 else
10641 pkg_failed=yes
10642 fi
10643 else
10644 pkg_failed=untried
10645 fi
10646
10647
10648
10649 if test $pkg_failed = yes; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10652
10653 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10654 _pkg_short_errors_supported=yes
10655 else
10656 _pkg_short_errors_supported=no
10657 fi
10658 if test $_pkg_short_errors_supported = yes; then
10659 TRANSSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
10660 else
10661 TRANSSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
10662 fi
10663 # Put the nasty error message in config.log where it belongs
10664 echo "$TRANSSET_PKG_ERRORS" >&5
10665
10666 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
10667
10668 $TRANSSET_PKG_ERRORS
10669
10670 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10671 installed software in a non-standard prefix.
10672
10673 Alternatively, you may set the environment variables TRANSSET_CFLAGS
10674 and TRANSSET_LIBS to avoid the need to call pkg-config.
10675 See the pkg-config man page for more details." "$LINENO" 5
10676 elif test $pkg_failed = untried; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10681 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10682 is in your PATH or set the PKG_CONFIG environment variable to the full
10683 path to pkg-config.
10684
10685 Alternatively, you may set the environment variables TRANSSET_CFLAGS
10686 and TRANSSET_LIBS to avoid the need to call pkg-config.
10687 See the pkg-config man page for more details.
10688
10689 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10690 See \`config.log' for more details" "$LINENO" 5; }
10691 else
10692 TRANSSET_CFLAGS=$pkg_cv_TRANSSET_CFLAGS
10693 TRANSSET_LIBS=$pkg_cv_TRANSSET_LIBS
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10695 $as_echo "yes" >&6; }
10696
10697 fi
10698
10699
10700 cat >>confdefs.h <<_ACEOF
10701 #define RELEASE_DATE "$RELEASE_DATE"
10702 _ACEOF
10703
10704
10705 ac_config_files="$ac_config_files Makefile man/Makefile"
10706
10707 cat >confcache <<\_ACEOF
10708 # This file is a shell script that caches the results of configure
10709 # tests run on this system so they can be shared between configure
10710 # scripts and configure runs, see configure's option --config-cache.
10711 # It is not useful on other systems. If it contains results you don't
10712 # want to keep, you may remove or edit it.
10713 #
10714 # config.status only pays attention to the cache file if you give it
10715 # the --recheck option to rerun configure.
10716 #
10717 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10718 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10719 # following values.
10720
10721 _ACEOF
10722
10723 # The following way of writing the cache mishandles newlines in values,
10724 # but we know of no workaround that is simple, portable, and efficient.
10725 # So, we kill variables containing newlines.
10726 # Ultrix sh set writes to stderr and can't be redirected directly,
10727 # and sets the high bit in the cache file unless we assign to the vars.
10728 (
10729 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10730 eval ac_val=\$$ac_var
10731 case $ac_val in #(
10732 *${as_nl}*)
10733 case $ac_var in #(
10734 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10736 esac
10737 case $ac_var in #(
10738 _ | IFS | as_nl) ;; #(
10739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10740 *) { eval $ac_var=; unset $ac_var;} ;;
10741 esac ;;
10742 esac
10743 done
10744
10745 (set) 2>&1 |
10746 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10747 *${as_nl}ac_space=\ *)
10748 # `set' does not quote correctly, so add quotes: double-quote
10749 # substitution turns \\\\ into \\, and sed turns \\ into \.
10750 sed -n \
10751 "s/'/'\\\\''/g;
10752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10753 ;; #(
10754 *)
10755 # `set' quotes correctly as required by POSIX, so do not add quotes.
10756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10757 ;;
10758 esac |
10759 sort
10760 ) |
10761 sed '
10762 /^ac_cv_env_/b end
10763 t clear
10764 :clear
10765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10766 t end
10767 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10768 :end' >>confcache
10769 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10770 if test -w "$cache_file"; then
10771 if test "x$cache_file" != "x/dev/null"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10773 $as_echo "$as_me: updating cache $cache_file" >&6;}
10774 if test ! -f "$cache_file" || test -h "$cache_file"; then
10775 cat confcache >"$cache_file"
10776 else
10777 case $cache_file in #(
10778 */* | ?:*)
10779 mv -f confcache "$cache_file"$$ &&
10780 mv -f "$cache_file"$$ "$cache_file" ;; #(
10781 *)
10782 mv -f confcache "$cache_file" ;;
10783 esac
10784 fi
10785 fi
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10789 fi
10790 fi
10791 rm -f confcache
10792
10793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10794 # Let make expand exec_prefix.
10795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10796
10797 DEFS=-DHAVE_CONFIG_H
10798
10799 ac_libobjs=
10800 ac_ltlibobjs=
10801 U=
10802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10803 # 1. Remove the extension, and $U if already installed.
10804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10805 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10807 # will be set to the directory where LIBOBJS objects are built.
10808 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10809 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10810 done
10811 LIBOBJS=$ac_libobjs
10812
10813 LTLIBOBJS=$ac_ltlibobjs
10814
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10817 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10818 if test -n "$am_sleep_pid"; then
10819 # Hide warnings about reused PIDs.
10820 wait $am_sleep_pid 2>/dev/null
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10823 $as_echo "done" >&6; }
10824 if test -n "$EXEEXT"; then
10825 am__EXEEXT_TRUE=
10826 am__EXEEXT_FALSE='#'
10827 else
10828 am__EXEEXT_TRUE='#'
10829 am__EXEEXT_FALSE=
10830 fi
10831
10832 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10833 as_fn_error $? "conditional \"AMDEP\" was never defined.
10834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10835 fi
10836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10837 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10839 fi
10840
10841 : "${CONFIG_STATUS=./config.status}"
10842 ac_write_fail=0
10843 ac_clean_files_save=$ac_clean_files
10844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10846 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10847 as_write_fail=0
10848 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10849 #! $SHELL
10850 # Generated by $as_me.
10851 # Run this file to recreate the current configuration.
10852 # Compiler output produced by configure, useful for debugging
10853 # configure, is in config.log if it exists.
10854
10855 debug=false
10856 ac_cs_recheck=false
10857 ac_cs_silent=false
10858
10859 SHELL=\${CONFIG_SHELL-$SHELL}
10860 export SHELL
10861 _ASEOF
10862 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10863 ## -------------------- ##
10864 ## M4sh Initialization. ##
10865 ## -------------------- ##
10866
10867 # Be more Bourne compatible
10868 DUALCASE=1; export DUALCASE # for MKS sh
10869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10870 emulate sh
10871 NULLCMD=:
10872 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10873 # is contrary to our usage. Disable this feature.
10874 alias -g '${1+"$@"}'='"$@"'
10875 setopt NO_GLOB_SUBST
10876 else
10877 case `(set -o) 2>/dev/null` in #(
10878 *posix*) :
10879 set -o posix ;; #(
10880 *) :
10881 ;;
10882 esac
10883 fi
10884
10885
10886 as_nl='
10887 '
10888 export as_nl
10889 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10890 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10893 # Prefer a ksh shell builtin over an external printf program on Solaris,
10894 # but without wasting forks for bash or zsh.
10895 if test -z "$BASH_VERSION$ZSH_VERSION" \
10896 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10897 as_echo='print -r --'
10898 as_echo_n='print -rn --'
10899 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10900 as_echo='printf %s\n'
10901 as_echo_n='printf %s'
10902 else
10903 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10904 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10905 as_echo_n='/usr/ucb/echo -n'
10906 else
10907 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10908 as_echo_n_body='eval
10909 arg=$1;
10910 case $arg in #(
10911 *"$as_nl"*)
10912 expr "X$arg" : "X\\(.*\\)$as_nl";
10913 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10914 esac;
10915 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10916 '
10917 export as_echo_n_body
10918 as_echo_n='sh -c $as_echo_n_body as_echo'
10919 fi
10920 export as_echo_body
10921 as_echo='sh -c $as_echo_body as_echo'
10922 fi
10923
10924 # The user is always right.
10925 if test "${PATH_SEPARATOR+set}" != set; then
10926 PATH_SEPARATOR=:
10927 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10928 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10929 PATH_SEPARATOR=';'
10930 }
10931 fi
10932
10933
10934 # IFS
10935 # We need space, tab and new line, in precisely that order. Quoting is
10936 # there to prevent editors from complaining about space-tab.
10937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10938 # splitting by setting IFS to empty value.)
10939 IFS=" "" $as_nl"
10940
10941 # Find who we are. Look in the path if we contain no directory separator.
10942 as_myself=
10943 case $0 in #((
10944 *[\\/]* ) as_myself=$0 ;;
10945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10951 done
10952 IFS=$as_save_IFS
10953
10954 ;;
10955 esac
10956 # We did not find ourselves, most probably we were run as `sh COMMAND'
10957 # in which case we are not to be found in the path.
10958 if test "x$as_myself" = x; then
10959 as_myself=$0
10960 fi
10961 if test ! -f "$as_myself"; then
10962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10963 exit 1
10964 fi
10965
10966 # Unset variables that we do not need and which cause bugs (e.g. in
10967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10968 # suppresses any "Segmentation fault" message there. '((' could
10969 # trigger a bug in pdksh 5.2.14.
10970 for as_var in BASH_ENV ENV MAIL MAILPATH
10971 do eval test x\${$as_var+set} = xset \
10972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10973 done
10974 PS1='$ '
10975 PS2='> '
10976 PS4='+ '
10977
10978 # NLS nuisances.
10979 LC_ALL=C
10980 export LC_ALL
10981 LANGUAGE=C
10982 export LANGUAGE
10983
10984 # CDPATH.
10985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10986
10987
10988 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10989 # ----------------------------------------
10990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10992 # script with STATUS, using 1 if that was 0.
10993 as_fn_error ()
10994 {
10995 as_status=$1; test $as_status -eq 0 && as_status=1
10996 if test "$4"; then
10997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10999 fi
11000 $as_echo "$as_me: error: $2" >&2
11001 as_fn_exit $as_status
11002 } # as_fn_error
11003
11004
11005 # as_fn_set_status STATUS
11006 # -----------------------
11007 # Set $? to STATUS, without forking.
11008 as_fn_set_status ()
11009 {
11010 return $1
11011 } # as_fn_set_status
11012
11013 # as_fn_exit STATUS
11014 # -----------------
11015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11016 as_fn_exit ()
11017 {
11018 set +e
11019 as_fn_set_status $1
11020 exit $1
11021 } # as_fn_exit
11022
11023 # as_fn_unset VAR
11024 # ---------------
11025 # Portably unset VAR.
11026 as_fn_unset ()
11027 {
11028 { eval $1=; unset $1;}
11029 }
11030 as_unset=as_fn_unset
11031 # as_fn_append VAR VALUE
11032 # ----------------------
11033 # Append the text in VALUE to the end of the definition contained in VAR. Take
11034 # advantage of any shell optimizations that allow amortized linear growth over
11035 # repeated appends, instead of the typical quadratic growth present in naive
11036 # implementations.
11037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11038 eval 'as_fn_append ()
11039 {
11040 eval $1+=\$2
11041 }'
11042 else
11043 as_fn_append ()
11044 {
11045 eval $1=\$$1\$2
11046 }
11047 fi # as_fn_append
11048
11049 # as_fn_arith ARG...
11050 # ------------------
11051 # Perform arithmetic evaluation on the ARGs, and store the result in the
11052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11053 # must be portable across $(()) and expr.
11054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11055 eval 'as_fn_arith ()
11056 {
11057 as_val=$(( $* ))
11058 }'
11059 else
11060 as_fn_arith ()
11061 {
11062 as_val=`expr "$@" || test $? -eq 1`
11063 }
11064 fi # as_fn_arith
11065
11066
11067 if expr a : '\(a\)' >/dev/null 2>&1 &&
11068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11069 as_expr=expr
11070 else
11071 as_expr=false
11072 fi
11073
11074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11075 as_basename=basename
11076 else
11077 as_basename=false
11078 fi
11079
11080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11081 as_dirname=dirname
11082 else
11083 as_dirname=false
11084 fi
11085
11086 as_me=`$as_basename -- "$0" ||
11087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11088 X"$0" : 'X\(//\)$' \| \
11089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11090 $as_echo X/"$0" |
11091 sed '/^.*\/\([^/][^/]*\)\/*$/{
11092 s//\1/
11093 q
11094 }
11095 /^X\/\(\/\/\)$/{
11096 s//\1/
11097 q
11098 }
11099 /^X\/\(\/\).*/{
11100 s//\1/
11101 q
11102 }
11103 s/.*/./; q'`
11104
11105 # Avoid depending upon Character Ranges.
11106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11109 as_cr_digits='0123456789'
11110 as_cr_alnum=$as_cr_Letters$as_cr_digits
11111
11112 ECHO_C= ECHO_N= ECHO_T=
11113 case `echo -n x` in #(((((
11114 -n*)
11115 case `echo 'xy\c'` in
11116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11117 xy) ECHO_C='\c';;
11118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11119 ECHO_T=' ';;
11120 esac;;
11121 *)
11122 ECHO_N='-n';;
11123 esac
11124
11125 rm -f conf$$ conf$$.exe conf$$.file
11126 if test -d conf$$.dir; then
11127 rm -f conf$$.dir/conf$$.file
11128 else
11129 rm -f conf$$.dir
11130 mkdir conf$$.dir 2>/dev/null
11131 fi
11132 if (echo >conf$$.file) 2>/dev/null; then
11133 if ln -s conf$$.file conf$$ 2>/dev/null; then
11134 as_ln_s='ln -s'
11135 # ... but there are two gotchas:
11136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11138 # In both cases, we have to default to `cp -pR'.
11139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11140 as_ln_s='cp -pR'
11141 elif ln conf$$.file conf$$ 2>/dev/null; then
11142 as_ln_s=ln
11143 else
11144 as_ln_s='cp -pR'
11145 fi
11146 else
11147 as_ln_s='cp -pR'
11148 fi
11149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11150 rmdir conf$$.dir 2>/dev/null
11151
11152
11153 # as_fn_mkdir_p
11154 # -------------
11155 # Create "$as_dir" as a directory, including parents if necessary.
11156 as_fn_mkdir_p ()
11157 {
11158
11159 case $as_dir in #(
11160 -*) as_dir=./$as_dir;;
11161 esac
11162 test -d "$as_dir" || eval $as_mkdir_p || {
11163 as_dirs=
11164 while :; do
11165 case $as_dir in #(
11166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11167 *) as_qdir=$as_dir;;
11168 esac
11169 as_dirs="'$as_qdir' $as_dirs"
11170 as_dir=`$as_dirname -- "$as_dir" ||
11171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11172 X"$as_dir" : 'X\(//\)[^/]' \| \
11173 X"$as_dir" : 'X\(//\)$' \| \
11174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11175 $as_echo X"$as_dir" |
11176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11177 s//\1/
11178 q
11179 }
11180 /^X\(\/\/\)[^/].*/{
11181 s//\1/
11182 q
11183 }
11184 /^X\(\/\/\)$/{
11185 s//\1/
11186 q
11187 }
11188 /^X\(\/\).*/{
11189 s//\1/
11190 q
11191 }
11192 s/.*/./; q'`
11193 test -d "$as_dir" && break
11194 done
11195 test -z "$as_dirs" || eval "mkdir $as_dirs"
11196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11197
11198
11199 } # as_fn_mkdir_p
11200 if mkdir -p . 2>/dev/null; then
11201 as_mkdir_p='mkdir -p "$as_dir"'
11202 else
11203 test -d ./-p && rmdir ./-p
11204 as_mkdir_p=false
11205 fi
11206
11207
11208 # as_fn_executable_p FILE
11209 # -----------------------
11210 # Test if FILE is an executable regular file.
11211 as_fn_executable_p ()
11212 {
11213 test -f "$1" && test -x "$1"
11214 } # as_fn_executable_p
11215 as_test_x='test -x'
11216 as_executable_p=as_fn_executable_p
11217
11218 # Sed expression to map a string onto a valid CPP name.
11219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11220
11221 # Sed expression to map a string onto a valid variable name.
11222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11223
11224
11225 exec 6>&1
11226 ## ----------------------------------- ##
11227 ## Main body of $CONFIG_STATUS script. ##
11228 ## ----------------------------------- ##
11229 _ASEOF
11230 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11231
11232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11233 # Save the log message, to keep $0 and so on meaningful, and to
11234 # report actual input values of CONFIG_FILES etc. instead of their
11235 # values after options handling.
11236 ac_log="
11237 This file was extended by transset $as_me 1.0.2, which was
11238 generated by GNU Autoconf 2.69. Invocation command line was
11239
11240 CONFIG_FILES = $CONFIG_FILES
11241 CONFIG_HEADERS = $CONFIG_HEADERS
11242 CONFIG_LINKS = $CONFIG_LINKS
11243 CONFIG_COMMANDS = $CONFIG_COMMANDS
11244 $ $0 $@
11245
11246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11247 "
11248
11249 _ACEOF
11250
11251 case $ac_config_files in *"
11252 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11253 esac
11254
11255 case $ac_config_headers in *"
11256 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11257 esac
11258
11259
11260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11261 # Files that config.status was made for.
11262 config_files="$ac_config_files"
11263 config_headers="$ac_config_headers"
11264 config_commands="$ac_config_commands"
11265
11266 _ACEOF
11267
11268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11269 ac_cs_usage="\
11270 \`$as_me' instantiates files and other configuration actions
11271 from templates according to the current configuration. Unless the files
11272 and actions are specified as TAGs, all are instantiated by default.
11273
11274 Usage: $0 [OPTION]... [TAG]...
11275
11276 -h, --help print this help, then exit
11277 -V, --version print version number and configuration settings, then exit
11278 --config print configuration, then exit
11279 -q, --quiet, --silent
11280 do not print progress messages
11281 -d, --debug don't remove temporary files
11282 --recheck update $as_me by reconfiguring in the same conditions
11283 --file=FILE[:TEMPLATE]
11284 instantiate the configuration file FILE
11285 --header=FILE[:TEMPLATE]
11286 instantiate the configuration header FILE
11287
11288 Configuration files:
11289 $config_files
11290
11291 Configuration headers:
11292 $config_headers
11293
11294 Configuration commands:
11295 $config_commands
11296
11297 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11298
11299 _ACEOF
11300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11301 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11302 ac_cs_version="\\
11303 transset config.status 1.0.2
11304 configured by $0, generated by GNU Autoconf 2.69,
11305 with options \\"\$ac_cs_config\\"
11306
11307 Copyright (C) 2012 Free Software Foundation, Inc.
11308 This config.status script is free software; the Free Software Foundation
11309 gives unlimited permission to copy, distribute and modify it."
11310
11311 ac_pwd='$ac_pwd'
11312 srcdir='$srcdir'
11313 INSTALL='$INSTALL'
11314 MKDIR_P='$MKDIR_P'
11315 AWK='$AWK'
11316 test -n "\$AWK" || AWK=awk
11317 _ACEOF
11318
11319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11320 # The default lists apply if the user does not specify any file.
11321 ac_need_defaults=:
11322 while test $# != 0
11323 do
11324 case $1 in
11325 --*=?*)
11326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11327 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11328 ac_shift=:
11329 ;;
11330 --*=)
11331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11332 ac_optarg=
11333 ac_shift=:
11334 ;;
11335 *)
11336 ac_option=$1
11337 ac_optarg=$2
11338 ac_shift=shift
11339 ;;
11340 esac
11341
11342 case $ac_option in
11343 # Handling of the options.
11344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11345 ac_cs_recheck=: ;;
11346 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11347 $as_echo "$ac_cs_version"; exit ;;
11348 --config | --confi | --conf | --con | --co | --c )
11349 $as_echo "$ac_cs_config"; exit ;;
11350 --debug | --debu | --deb | --de | --d | -d )
11351 debug=: ;;
11352 --file | --fil | --fi | --f )
11353 $ac_shift
11354 case $ac_optarg in
11355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11356 '') as_fn_error $? "missing file argument" ;;
11357 esac
11358 as_fn_append CONFIG_FILES " '$ac_optarg'"
11359 ac_need_defaults=false;;
11360 --header | --heade | --head | --hea )
11361 $ac_shift
11362 case $ac_optarg in
11363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11364 esac
11365 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11366 ac_need_defaults=false;;
11367 --he | --h)
11368 # Conflict between --help and --header
11369 as_fn_error $? "ambiguous option: \`$1'
11370 Try \`$0 --help' for more information.";;
11371 --help | --hel | -h )
11372 $as_echo "$ac_cs_usage"; exit ;;
11373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11375 ac_cs_silent=: ;;
11376
11377 # This is an error.
11378 -*) as_fn_error $? "unrecognized option: \`$1'
11379 Try \`$0 --help' for more information." ;;
11380
11381 *) as_fn_append ac_config_targets " $1"
11382 ac_need_defaults=false ;;
11383
11384 esac
11385 shift
11386 done
11387
11388 ac_configure_extra_args=
11389
11390 if $ac_cs_silent; then
11391 exec 6>/dev/null
11392 ac_configure_extra_args="$ac_configure_extra_args --silent"
11393 fi
11394
11395 _ACEOF
11396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 if \$ac_cs_recheck; then
11398 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11399 shift
11400 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11401 CONFIG_SHELL='$SHELL'
11402 export CONFIG_SHELL
11403 exec "\$@"
11404 fi
11405
11406 _ACEOF
11407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11408 exec 5>>config.log
11409 {
11410 echo
11411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11412 ## Running $as_me. ##
11413 _ASBOX
11414 $as_echo "$ac_log"
11415 } >&5
11416
11417 _ACEOF
11418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11419 #
11420 # INIT-COMMANDS
11421 #
11422 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11423
11424 _ACEOF
11425
11426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11427
11428 # Handling of arguments.
11429 for ac_config_target in $ac_config_targets
11430 do
11431 case $ac_config_target in
11432 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11433 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11434 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11435 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11436
11437 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11438 esac
11439 done
11440
11441
11442 # If the user did not use the arguments to specify the items to instantiate,
11443 # then the envvar interface is used. Set only those that are not.
11444 # We use the long form for the default assignment because of an extremely
11445 # bizarre bug on SunOS 4.1.3.
11446 if $ac_need_defaults; then
11447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11450 fi
11451
11452 # Have a temporary directory for convenience. Make it in the build tree
11453 # simply because there is no reason against having it here, and in addition,
11454 # creating and moving files from /tmp can sometimes cause problems.
11455 # Hook for its removal unless debugging.
11456 # Note that there is a small window in which the directory will not be cleaned:
11457 # after its creation but before its name has been assigned to `$tmp'.
11458 $debug ||
11459 {
11460 tmp= ac_tmp=
11461 trap 'exit_status=$?
11462 : "${ac_tmp:=$tmp}"
11463 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11464 ' 0
11465 trap 'as_fn_exit 1' 1 2 13 15
11466 }
11467 # Create a (secure) tmp directory for tmp files.
11468
11469 {
11470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11471 test -d "$tmp"
11472 } ||
11473 {
11474 tmp=./conf$$-$RANDOM
11475 (umask 077 && mkdir "$tmp")
11476 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11477 ac_tmp=$tmp
11478
11479 # Set up the scripts for CONFIG_FILES section.
11480 # No need to generate them if there are no CONFIG_FILES.
11481 # This happens for instance with `./config.status config.h'.
11482 if test -n "$CONFIG_FILES"; then
11483
11484
11485 ac_cr=`echo X | tr X '\015'`
11486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11487 # But we know of no other shell where ac_cr would be empty at this
11488 # point, so we can use a bashism as a fallback.
11489 if test "x$ac_cr" = x; then
11490 eval ac_cr=\$\'\\r\'
11491 fi
11492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11494 ac_cs_awk_cr='\\r'
11495 else
11496 ac_cs_awk_cr=$ac_cr
11497 fi
11498
11499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11500 _ACEOF
11501
11502
11503 {
11504 echo "cat >conf$$subs.awk <<_ACEOF" &&
11505 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11506 echo "_ACEOF"
11507 } >conf$$subs.sh ||
11508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11509 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11510 ac_delim='%!_!# '
11511 for ac_last_try in false false false false false :; do
11512 . ./conf$$subs.sh ||
11513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11514
11515 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11516 if test $ac_delim_n = $ac_delim_num; then
11517 break
11518 elif $ac_last_try; then
11519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11520 else
11521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11522 fi
11523 done
11524 rm -f conf$$subs.sh
11525
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11528 _ACEOF
11529 sed -n '
11530 h
11531 s/^/S["/; s/!.*/"]=/
11532 p
11533 g
11534 s/^[^!]*!//
11535 :repl
11536 t repl
11537 s/'"$ac_delim"'$//
11538 t delim
11539 :nl
11540 h
11541 s/\(.\{148\}\)..*/\1/
11542 t more1
11543 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11544 p
11545 n
11546 b repl
11547 :more1
11548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11549 p
11550 g
11551 s/.\{148\}//
11552 t nl
11553 :delim
11554 h
11555 s/\(.\{148\}\)..*/\1/
11556 t more2
11557 s/["\\]/\\&/g; s/^/"/; s/$/"/
11558 p
11559 b
11560 :more2
11561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11562 p
11563 g
11564 s/.\{148\}//
11565 t delim
11566 ' <conf$$subs.awk | sed '
11567 /^[^""]/{
11568 N
11569 s/\n//
11570 }
11571 ' >>$CONFIG_STATUS || ac_write_fail=1
11572 rm -f conf$$subs.awk
11573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11574 _ACAWK
11575 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11576 for (key in S) S_is_set[key] = 1
11577 FS = ""
11578
11579 }
11580 {
11581 line = $ 0
11582 nfields = split(line, field, "@")
11583 substed = 0
11584 len = length(field[1])
11585 for (i = 2; i < nfields; i++) {
11586 key = field[i]
11587 keylen = length(key)
11588 if (S_is_set[key]) {
11589 value = S[key]
11590 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11591 len += length(value) + length(field[++i])
11592 substed = 1
11593 } else
11594 len += 1 + keylen
11595 }
11596
11597 print line
11598 }
11599
11600 _ACAWK
11601 _ACEOF
11602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11603 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11604 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11605 else
11606 cat
11607 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11608 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11609 _ACEOF
11610
11611 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11612 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11613 # trailing colons and then remove the whole line if VPATH becomes empty
11614 # (actually we leave an empty line to preserve line numbers).
11615 if test "x$srcdir" = x.; then
11616 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11617 h
11618 s///
11619 s/^/:/
11620 s/[ ]*$/:/
11621 s/:\$(srcdir):/:/g
11622 s/:\${srcdir}:/:/g
11623 s/:@srcdir@:/:/g
11624 s/^:*//
11625 s/:*$//
11626 x
11627 s/\(=[ ]*\).*/\1/
11628 G
11629 s/\n//
11630 s/^[^=]*=[ ]*$//
11631 }'
11632 fi
11633
11634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11635 fi # test -n "$CONFIG_FILES"
11636
11637 # Set up the scripts for CONFIG_HEADERS section.
11638 # No need to generate them if there are no CONFIG_HEADERS.
11639 # This happens for instance with `./config.status Makefile'.
11640 if test -n "$CONFIG_HEADERS"; then
11641 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11642 BEGIN {
11643 _ACEOF
11644
11645 # Transform confdefs.h into an awk script `defines.awk', embedded as
11646 # here-document in config.status, that substitutes the proper values into
11647 # config.h.in to produce config.h.
11648
11649 # Create a delimiter string that does not exist in confdefs.h, to ease
11650 # handling of long lines.
11651 ac_delim='%!_!# '
11652 for ac_last_try in false false :; do
11653 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11654 if test -z "$ac_tt"; then
11655 break
11656 elif $ac_last_try; then
11657 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11658 else
11659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11660 fi
11661 done
11662
11663 # For the awk script, D is an array of macro values keyed by name,
11664 # likewise P contains macro parameters if any. Preserve backslash
11665 # newline sequences.
11666
11667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11668 sed -n '
11669 s/.\{148\}/&'"$ac_delim"'/g
11670 t rset
11671 :rset
11672 s/^[ ]*#[ ]*define[ ][ ]*/ /
11673 t def
11674 d
11675 :def
11676 s/\\$//
11677 t bsnl
11678 s/["\\]/\\&/g
11679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11680 D["\1"]=" \3"/p
11681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11682 d
11683 :bsnl
11684 s/["\\]/\\&/g
11685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11686 D["\1"]=" \3\\\\\\n"\\/p
11687 t cont
11688 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11689 t cont
11690 d
11691 :cont
11692 n
11693 s/.\{148\}/&'"$ac_delim"'/g
11694 t clear
11695 :clear
11696 s/\\$//
11697 t bsnlc
11698 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11699 d
11700 :bsnlc
11701 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11702 b cont
11703 ' <confdefs.h | sed '
11704 s/'"$ac_delim"'/"\\\
11705 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11706
11707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11708 for (key in D) D_is_set[key] = 1
11709 FS = ""
11710 }
11711 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11712 line = \$ 0
11713 split(line, arg, " ")
11714 if (arg[1] == "#") {
11715 defundef = arg[2]
11716 mac1 = arg[3]
11717 } else {
11718 defundef = substr(arg[1], 2)
11719 mac1 = arg[2]
11720 }
11721 split(mac1, mac2, "(") #)
11722 macro = mac2[1]
11723 prefix = substr(line, 1, index(line, defundef) - 1)
11724 if (D_is_set[macro]) {
11725 # Preserve the white space surrounding the "#".
11726 print prefix "define", macro P[macro] D[macro]
11727 next
11728 } else {
11729 # Replace #undef with comments. This is necessary, for example,
11730 # in the case of _POSIX_SOURCE, which is predefined and required
11731 # on some systems where configure will not decide to define it.
11732 if (defundef == "undef") {
11733 print "/*", prefix defundef, macro, "*/"
11734 next
11735 }
11736 }
11737 }
11738 { print }
11739 _ACAWK
11740 _ACEOF
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11743 fi # test -n "$CONFIG_HEADERS"
11744
11745
11746 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11747 shift
11748 for ac_tag
11749 do
11750 case $ac_tag in
11751 :[FHLC]) ac_mode=$ac_tag; continue;;
11752 esac
11753 case $ac_mode$ac_tag in
11754 :[FHL]*:*);;
11755 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11756 :[FH]-) ac_tag=-:-;;
11757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11758 esac
11759 ac_save_IFS=$IFS
11760 IFS=:
11761 set x $ac_tag
11762 IFS=$ac_save_IFS
11763 shift
11764 ac_file=$1
11765 shift
11766
11767 case $ac_mode in
11768 :L) ac_source=$1;;
11769 :[FH])
11770 ac_file_inputs=
11771 for ac_f
11772 do
11773 case $ac_f in
11774 -) ac_f="$ac_tmp/stdin";;
11775 *) # Look for the file first in the build tree, then in the source tree
11776 # (if the path is not absolute). The absolute path cannot be DOS-style,
11777 # because $ac_f cannot contain `:'.
11778 test -f "$ac_f" ||
11779 case $ac_f in
11780 [\\/$]*) false;;
11781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11782 esac ||
11783 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11784 esac
11785 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11786 as_fn_append ac_file_inputs " '$ac_f'"
11787 done
11788
11789 # Let's still pretend it is `configure' which instantiates (i.e., don't
11790 # use $as_me), people would be surprised to read:
11791 # /* config.h. Generated by config.status. */
11792 configure_input='Generated from '`
11793 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11794 `' by configure.'
11795 if test x"$ac_file" != x-; then
11796 configure_input="$ac_file. $configure_input"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11798 $as_echo "$as_me: creating $ac_file" >&6;}
11799 fi
11800 # Neutralize special characters interpreted by sed in replacement strings.
11801 case $configure_input in #(
11802 *\&* | *\|* | *\\* )
11803 ac_sed_conf_input=`$as_echo "$configure_input" |
11804 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11805 *) ac_sed_conf_input=$configure_input;;
11806 esac
11807
11808 case $ac_tag in
11809 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11811 esac
11812 ;;
11813 esac
11814
11815 ac_dir=`$as_dirname -- "$ac_file" ||
11816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11817 X"$ac_file" : 'X\(//\)[^/]' \| \
11818 X"$ac_file" : 'X\(//\)$' \| \
11819 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11820 $as_echo X"$ac_file" |
11821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11822 s//\1/
11823 q
11824 }
11825 /^X\(\/\/\)[^/].*/{
11826 s//\1/
11827 q
11828 }
11829 /^X\(\/\/\)$/{
11830 s//\1/
11831 q
11832 }
11833 /^X\(\/\).*/{
11834 s//\1/
11835 q
11836 }
11837 s/.*/./; q'`
11838 as_dir="$ac_dir"; as_fn_mkdir_p
11839 ac_builddir=.
11840
11841 case "$ac_dir" in
11842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11843 *)
11844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11845 # A ".." for each directory in $ac_dir_suffix.
11846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11847 case $ac_top_builddir_sub in
11848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11850 esac ;;
11851 esac
11852 ac_abs_top_builddir=$ac_pwd
11853 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11854 # for backward compatibility:
11855 ac_top_builddir=$ac_top_build_prefix
11856
11857 case $srcdir in
11858 .) # We are building in place.
11859 ac_srcdir=.
11860 ac_top_srcdir=$ac_top_builddir_sub
11861 ac_abs_top_srcdir=$ac_pwd ;;
11862 [\\/]* | ?:[\\/]* ) # Absolute name.
11863 ac_srcdir=$srcdir$ac_dir_suffix;
11864 ac_top_srcdir=$srcdir
11865 ac_abs_top_srcdir=$srcdir ;;
11866 *) # Relative name.
11867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11868 ac_top_srcdir=$ac_top_build_prefix$srcdir
11869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11870 esac
11871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11872
11873
11874 case $ac_mode in
11875 :F)
11876 #
11877 # CONFIG_FILE
11878 #
11879
11880 case $INSTALL in
11881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11883 esac
11884 ac_MKDIR_P=$MKDIR_P
11885 case $MKDIR_P in
11886 [\\/$]* | ?:[\\/]* ) ;;
11887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11888 esac
11889 _ACEOF
11890
11891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11892 # If the template does not know about datarootdir, expand it.
11893 # FIXME: This hack should be removed a few years after 2.60.
11894 ac_datarootdir_hack=; ac_datarootdir_seen=
11895 ac_sed_dataroot='
11896 /datarootdir/ {
11897 p
11898 q
11899 }
11900 /@datadir@/p
11901 /@docdir@/p
11902 /@infodir@/p
11903 /@localedir@/p
11904 /@mandir@/p'
11905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11906 *datarootdir*) ac_datarootdir_seen=yes;;
11907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11910 _ACEOF
11911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912 ac_datarootdir_hack='
11913 s&@datadir@&$datadir&g
11914 s&@docdir@&$docdir&g
11915 s&@infodir@&$infodir&g
11916 s&@localedir@&$localedir&g
11917 s&@mandir@&$mandir&g
11918 s&\\\${datarootdir}&$datarootdir&g' ;;
11919 esac
11920 _ACEOF
11921
11922 # Neutralize VPATH when `$srcdir' = `.'.
11923 # Shell code in configure.ac might set extrasub.
11924 # FIXME: do we really want to maintain this feature?
11925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926 ac_sed_extra="$ac_vpsub
11927 $extrasub
11928 _ACEOF
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930 :t
11931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11932 s|@configure_input@|$ac_sed_conf_input|;t t
11933 s&@top_builddir@&$ac_top_builddir_sub&;t t
11934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11935 s&@srcdir@&$ac_srcdir&;t t
11936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11937 s&@top_srcdir@&$ac_top_srcdir&;t t
11938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11939 s&@builddir@&$ac_builddir&;t t
11940 s&@abs_builddir@&$ac_abs_builddir&;t t
11941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11942 s&@INSTALL@&$ac_INSTALL&;t t
11943 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11944 $ac_datarootdir_hack
11945 "
11946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11947 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11948
11949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11950 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11952 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11954 which seems to be undefined. Please make sure it is defined" >&5
11955 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11956 which seems to be undefined. Please make sure it is defined" >&2;}
11957
11958 rm -f "$ac_tmp/stdin"
11959 case $ac_file in
11960 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11961 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11962 esac \
11963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11964 ;;
11965 :H)
11966 #
11967 # CONFIG_HEADER
11968 #
11969 if test x"$ac_file" != x-; then
11970 {
11971 $as_echo "/* $configure_input */" \
11972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11973 } >"$ac_tmp/config.h" \
11974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11975 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11977 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11978 else
11979 rm -f "$ac_file"
11980 mv "$ac_tmp/config.h" "$ac_file" \
11981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11982 fi
11983 else
11984 $as_echo "/* $configure_input */" \
11985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11986 || as_fn_error $? "could not create -" "$LINENO" 5
11987 fi
11988 # Compute "$ac_file"'s index in $config_headers.
11989 _am_arg="$ac_file"
11990 _am_stamp_count=1
11991 for _am_header in $config_headers :; do
11992 case $_am_header in
11993 $_am_arg | $_am_arg:* )
11994 break ;;
11995 * )
11996 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11997 esac
11998 done
11999 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12000 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001 X"$_am_arg" : 'X\(//\)[^/]' \| \
12002 X"$_am_arg" : 'X\(//\)$' \| \
12003 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12004 $as_echo X"$_am_arg" |
12005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12006 s//\1/
12007 q
12008 }
12009 /^X\(\/\/\)[^/].*/{
12010 s//\1/
12011 q
12012 }
12013 /^X\(\/\/\)$/{
12014 s//\1/
12015 q
12016 }
12017 /^X\(\/\).*/{
12018 s//\1/
12019 q
12020 }
12021 s/.*/./; q'`/stamp-h$_am_stamp_count
12022 ;;
12023
12024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12025 $as_echo "$as_me: executing $ac_file commands" >&6;}
12026 ;;
12027 esac
12028
12029
12030 case $ac_file$ac_mode in
12031 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12032 # Older Autoconf quotes --file arguments for eval, but not when files
12033 # are listed without --file. Let's play safe and only enable the eval
12034 # if we detect the quoting.
12035 case $CONFIG_FILES in
12036 *\'*) eval set x "$CONFIG_FILES" ;;
12037 *) set x $CONFIG_FILES ;;
12038 esac
12039 shift
12040 for mf
12041 do
12042 # Strip MF so we end up with the name of the file.
12043 mf=`echo "$mf" | sed -e 's/:.*$//'`
12044 # Check whether this is an Automake generated Makefile or not.
12045 # We used to match only the files named 'Makefile.in', but
12046 # some people rename them; so instead we look at the file content.
12047 # Grep'ing the first line is not enough: some people post-process
12048 # each Makefile.in and add a new line on top of each file to say so.
12049 # Grep'ing the whole file is not good either: AIX grep has a line
12050 # limit of 2048, but all sed's we know have understand at least 4000.
12051 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12052 dirpart=`$as_dirname -- "$mf" ||
12053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12054 X"$mf" : 'X\(//\)[^/]' \| \
12055 X"$mf" : 'X\(//\)$' \| \
12056 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12057 $as_echo X"$mf" |
12058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12059 s//\1/
12060 q
12061 }
12062 /^X\(\/\/\)[^/].*/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\/\)$/{
12067 s//\1/
12068 q
12069 }
12070 /^X\(\/\).*/{
12071 s//\1/
12072 q
12073 }
12074 s/.*/./; q'`
12075 else
12076 continue
12077 fi
12078 # Extract the definition of DEPDIR, am__include, and am__quote
12079 # from the Makefile without running 'make'.
12080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12081 test -z "$DEPDIR" && continue
12082 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12083 test -z "$am__include" && continue
12084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12085 # Find all dependency output files, they are included files with
12086 # $(DEPDIR) in their names. We invoke sed twice because it is the
12087 # simplest approach to changing $(DEPDIR) to its actual value in the
12088 # expansion.
12089 for file in `sed -n "
12090 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12091 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12092 # Make sure the directory exists.
12093 test -f "$dirpart/$file" && continue
12094 fdir=`$as_dirname -- "$file" ||
12095 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12096 X"$file" : 'X\(//\)[^/]' \| \
12097 X"$file" : 'X\(//\)$' \| \
12098 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12099 $as_echo X"$file" |
12100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12101 s//\1/
12102 q
12103 }
12104 /^X\(\/\/\)[^/].*/{
12105 s//\1/
12106 q
12107 }
12108 /^X\(\/\/\)$/{
12109 s//\1/
12110 q
12111 }
12112 /^X\(\/\).*/{
12113 s//\1/
12114 q
12115 }
12116 s/.*/./; q'`
12117 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12118 # echo "creating $dirpart/$file"
12119 echo '# dummy' > "$dirpart/$file"
12120 done
12121 done
12122 }
12123 ;;
12124
12125 esac
12126 done # for ac_tag
12127
12128
12129 as_fn_exit 0
12130 _ACEOF
12131 ac_clean_files=$ac_clean_files_save
12132
12133 test $ac_write_fail = 0 ||
12134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12135
12136
12137 # configure is writing to config.log, and then calls config.status.
12138 # config.status does its own redirection, appending to config.log.
12139 # Unfortunately, on DOS this fails, as config.log is still kept open
12140 # by configure, so config.status won't be able to write to it; its
12141 # output is simply discarded. So we exec the FD to /dev/null,
12142 # effectively closing config.log, so it can be properly (re)opened and
12143 # appended to by config.status. When coming back to configure, we
12144 # need to make the FD available again.
12145 if test "$no_create" != yes; then
12146 ac_cs_success=:
12147 ac_config_status_args=
12148 test "$silent" = yes &&
12149 ac_config_status_args="$ac_config_status_args --quiet"
12150 exec 5>/dev/null
12151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12152 exec 5>>config.log
12153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12154 # would make configure fail if this is the last instruction.
12155 $ac_cs_success || as_fn_exit 1
12156 fi
12157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12159 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12160 fi
12161
12162