configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xtrans 1.3.4.
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 as_awk_strverscmp='
561 # Use only awk features that work with 7th edition Unix awk (1978).
562 # My, what an old awk you have, Mr. Solaris!
563 END {
564 while (length(v1) && length(v2)) {
565 # Set d1 to be the next thing to compare from v1, and likewise for d2.
566 # Normally this is a single character, but if v1 and v2 contain digits,
567 # compare them as integers and fractions as strverscmp does.
568 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569 # Split v1 and v2 into their leading digit string components d1 and d2,
570 # and advance v1 and v2 past the leading digit strings.
571 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575 if (d1 ~ /^0/) {
576 if (d2 ~ /^0/) {
577 # Compare two fractions.
578 while (d1 ~ /^0/ && d2 ~ /^0/) {
579 d1 = substr(d1, 2); len1--
580 d2 = substr(d2, 2); len2--
581 }
582 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583 # The two components differ in length, and the common prefix
584 # contains only leading zeros. Consider the longer to be less.
585 d1 = -len1
586 d2 = -len2
587 } else {
588 # Otherwise, compare as strings.
589 d1 = "x" d1
590 d2 = "x" d2
591 }
592 } else {
593 # A fraction is less than an integer.
594 exit 1
595 }
596 } else {
597 if (d2 ~ /^0/) {
598 # An integer is greater than a fraction.
599 exit 2
600 } else {
601 # Compare two integers.
602 d1 += 0
603 d2 += 0
604 }
605 }
606 } else {
607 # The normal case, without worrying about digits.
608 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610 }
611 if (d1 < d2) exit 1
612 if (d1 > d2) exit 2
613 }
614 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615 # which mishandles some comparisons of empty strings to integers.
616 if (length(v2)) exit 1
617 if (length(v1)) exit 2
618 }
619 '
620
621 test -n "$DJDIR" || exec 7<&0 </dev/null
622 exec 6>&1
623
624 # Name of the host.
625 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626 # so uname gets run too.
627 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629 #
630 # Initializations.
631 #
632 ac_default_prefix=/usr/local
633 ac_clean_files=
634 ac_config_libobj_dir=.
635 LIBOBJS=
636 cross_compiling=no
637 subdirs=
638 MFLAGS=
639 MAKEFLAGS=
640
641 # Identity of this package.
642 PACKAGE_NAME='xtrans'
643 PACKAGE_TARNAME='xtrans'
644 PACKAGE_VERSION='1.3.4'
645 PACKAGE_STRING='xtrans 1.3.4'
646 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
647 PACKAGE_URL=''
648
649 ac_unique_file="Makefile.am"
650 # Factoring default headers for most tests.
651 ac_includes_default="\
652 #include <stdio.h>
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef STDC_HEADERS
660 # include <stdlib.h>
661 # include <stddef.h>
662 #else
663 # ifdef HAVE_STDLIB_H
664 # include <stdlib.h>
665 # endif
666 #endif
667 #ifdef HAVE_STRING_H
668 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
669 # include <memory.h>
670 # endif
671 # include <string.h>
672 #endif
673 #ifdef HAVE_STRINGS_H
674 # include <strings.h>
675 #endif
676 #ifdef HAVE_INTTYPES_H
677 # include <inttypes.h>
678 #endif
679 #ifdef HAVE_STDINT_H
680 # include <stdint.h>
681 #endif
682 #ifdef HAVE_UNISTD_H
683 # include <unistd.h>
684 #endif"
685
686 ac_subst_vars='am__EXEEXT_FALSE
687 am__EXEEXT_TRUE
688 LTLIBOBJS
689 LIBOBJS
690 sticky_bit_define
691 fchown_define
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
694 XSL_STYLESHEET
695 STYLESHEET_SRCDIR
696 XORG_SGML_PATH
697 HAVE_XSLTPROC_FALSE
698 HAVE_XSLTPROC_TRUE
699 XSLTPROC
700 HAVE_FOP_FALSE
701 HAVE_FOP_TRUE
702 FOP
703 HAVE_XMLTO_FALSE
704 HAVE_XMLTO_TRUE
705 HAVE_XMLTO_TEXT_FALSE
706 HAVE_XMLTO_TEXT_TRUE
707 XMLTO
708 ENABLE_DOCS_FALSE
709 ENABLE_DOCS_TRUE
710 MAN_SUBSTS
711 XORG_MAN_PAGE
712 ADMIN_MAN_DIR
713 DRIVER_MAN_DIR
714 MISC_MAN_DIR
715 FILE_MAN_DIR
716 LIB_MAN_DIR
717 APP_MAN_DIR
718 ADMIN_MAN_SUFFIX
719 DRIVER_MAN_SUFFIX
720 MISC_MAN_SUFFIX
721 FILE_MAN_SUFFIX
722 LIB_MAN_SUFFIX
723 APP_MAN_SUFFIX
724 SED
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 INSTALL_CMD
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 CHANGELOG_CMD
738 STRICT_CFLAGS
739 CWARNFLAGS
740 BASE_CFLAGS
741 EGREP
742 GREP
743 CPP
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__quote
752 am__include
753 DEPDIR
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
770 AWK
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_selective_werror
832 enable_strict_compilation
833 enable_docs
834 with_xmlto
835 with_fop
836 with_xsltproc
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 PKG_CONFIG
848 PKG_CONFIG_PATH
849 PKG_CONFIG_LIBDIR
850 XMLTO
851 FOP
852 XSLTPROC'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures xtrans 1.3.4 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/xtrans]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of xtrans 1.3.4:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483 --enable-docs Enable building the documentation (default: yes)
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-xmlto Use xmlto to regenerate documentation (default:
1489 auto)
1490 --with-fop Use fop to regenerate documentation (default: auto)
1491 --with-xsltproc Use xsltproc for the transformation of XML documents
1492 (default: auto)
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CPP C preprocessor
1503 PKG_CONFIG path to pkg-config utility
1504 PKG_CONFIG_PATH
1505 directories to add to pkg-config's search path
1506 PKG_CONFIG_LIBDIR
1507 path overriding pkg-config's built-in search path
1508 XMLTO Path to xmlto command
1509 FOP Path to fop command
1510 XSLTPROC Path to xsltproc command
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 xtrans configure 1.3.4
1579 generated by GNU Autoconf 2.69
1580
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585 exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_compile
1629
1630 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1631 # ---------------------------------------------
1632 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_decl ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 as_decl_name=`echo $2|sed 's/ *(.*//'`
1638 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1640 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 int
1648 main ()
1649 {
1650 #ifndef $as_decl_name
1651 #ifdef __cplusplus
1652 (void) $as_decl_use;
1653 #else
1654 (void) $as_decl_name;
1655 #endif
1656 #endif
1657
1658 ;
1659 return 0;
1660 }
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_decl
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_header_compile
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1848
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1853
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1859
1860 #undef $2
1861
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1875
1876 int
1877 main ()
1878 {
1879 return $2 ();
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1891 fi
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897 } # ac_fn_c_check_func
1898 cat >config.log <<_ACEOF
1899 This file contains any messages produced by compilers while
1900 running configure, to aid debugging if configure makes a mistake.
1901
1902 It was created by xtrans $as_me 1.3.4, which was
1903 generated by GNU Autoconf 2.69. Invocation command line was
1904
1905 $ $0 $@
1906
1907 _ACEOF
1908 exec 5>>config.log
1909 {
1910 cat <<_ASUNAME
1911 ## --------- ##
1912 ## Platform. ##
1913 ## --------- ##
1914
1915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1920
1921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1923
1924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1931
1932 _ASUNAME
1933
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 $as_echo "PATH: $as_dir"
1940 done
1941 IFS=$as_save_IFS
1942
1943 } >&5
1944
1945 cat >&5 <<_ACEOF
1946
1947
1948 ## ----------- ##
1949 ## Core tests. ##
1950 ## ----------- ##
1951
1952 _ACEOF
1953
1954
1955 # Keep a trace of the command line.
1956 # Strip out --no-create and --no-recursion so they do not pile up.
1957 # Strip out --silent because we don't want to record it for future runs.
1958 # Also quote any args containing shell meta-characters.
1959 # Make two passes to allow for proper duplicate-argument suppression.
1960 ac_configure_args=
1961 ac_configure_args0=
1962 ac_configure_args1=
1963 ac_must_keep_next=false
1964 for ac_pass in 1 2
1965 do
1966 for ac_arg
1967 do
1968 case $ac_arg in
1969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1971 | -silent | --silent | --silen | --sile | --sil)
1972 continue ;;
1973 *\'*)
1974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 esac
1976 case $ac_pass in
1977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1978 2)
1979 as_fn_append ac_configure_args1 " '$ac_arg'"
1980 if test $ac_must_keep_next = true; then
1981 ac_must_keep_next=false # Got value, back to normal.
1982 else
1983 case $ac_arg in
1984 *=* | --config-cache | -C | -disable-* | --disable-* \
1985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1987 | -with-* | --with-* | -without-* | --without-* | --x)
1988 case "$ac_configure_args0 " in
1989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1990 esac
1991 ;;
1992 -* ) ac_must_keep_next=true ;;
1993 esac
1994 fi
1995 as_fn_append ac_configure_args " '$ac_arg'"
1996 ;;
1997 esac
1998 done
1999 done
2000 { ac_configure_args0=; unset ac_configure_args0;}
2001 { ac_configure_args1=; unset ac_configure_args1;}
2002
2003 # When interrupted or exit'd, cleanup temporary files, and complete
2004 # config.log. We remove comments because anyway the quotes in there
2005 # would cause problems or look ugly.
2006 # WARNING: Use '\'' to represent an apostrophe within the trap.
2007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2008 trap 'exit_status=$?
2009 # Save into config.log some information that might help in debugging.
2010 {
2011 echo
2012
2013 $as_echo "## ---------------- ##
2014 ## Cache variables. ##
2015 ## ---------------- ##"
2016 echo
2017 # The following way of writing the cache mishandles newlines in values,
2018 (
2019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2020 eval ac_val=\$$ac_var
2021 case $ac_val in #(
2022 *${as_nl}*)
2023 case $ac_var in #(
2024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2026 esac
2027 case $ac_var in #(
2028 _ | IFS | as_nl) ;; #(
2029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2030 *) { eval $ac_var=; unset $ac_var;} ;;
2031 esac ;;
2032 esac
2033 done
2034 (set) 2>&1 |
2035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2036 *${as_nl}ac_space=\ *)
2037 sed -n \
2038 "s/'\''/'\''\\\\'\'''\''/g;
2039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2040 ;; #(
2041 *)
2042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2043 ;;
2044 esac |
2045 sort
2046 )
2047 echo
2048
2049 $as_echo "## ----------------- ##
2050 ## Output variables. ##
2051 ## ----------------- ##"
2052 echo
2053 for ac_var in $ac_subst_vars
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062
2063 if test -n "$ac_subst_files"; then
2064 $as_echo "## ------------------- ##
2065 ## File substitutions. ##
2066 ## ------------------- ##"
2067 echo
2068 for ac_var in $ac_subst_files
2069 do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in
2072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2073 esac
2074 $as_echo "$ac_var='\''$ac_val'\''"
2075 done | sort
2076 echo
2077 fi
2078
2079 if test -s confdefs.h; then
2080 $as_echo "## ----------- ##
2081 ## confdefs.h. ##
2082 ## ----------- ##"
2083 echo
2084 cat confdefs.h
2085 echo
2086 fi
2087 test "$ac_signal" != 0 &&
2088 $as_echo "$as_me: caught signal $ac_signal"
2089 $as_echo "$as_me: exit $exit_status"
2090 } >&5
2091 rm -f core *.core core.conftest.* &&
2092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093 exit $exit_status
2094 ' 0
2095 for ac_signal in 1 2 13 15; do
2096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2097 done
2098 ac_signal=0
2099
2100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2101 rm -f -r conftest* confdefs.h
2102
2103 $as_echo "/* confdefs.h */" > confdefs.h
2104
2105 # Predefined preprocessor variables.
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_NAME "$PACKAGE_NAME"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_STRING "$PACKAGE_STRING"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_URL "$PACKAGE_URL"
2129 _ACEOF
2130
2131
2132 # Let the site file select an alternate cache file if it wants to.
2133 # Prefer an explicitly selected file to automatically selected ones.
2134 ac_site_file1=NONE
2135 ac_site_file2=NONE
2136 if test -n "$CONFIG_SITE"; then
2137 # We do not want a PATH search for config.site.
2138 case $CONFIG_SITE in #((
2139 -*) ac_site_file1=./$CONFIG_SITE;;
2140 */*) ac_site_file1=$CONFIG_SITE;;
2141 *) ac_site_file1=./$CONFIG_SITE;;
2142 esac
2143 elif test "x$prefix" != xNONE; then
2144 ac_site_file1=$prefix/share/config.site
2145 ac_site_file2=$prefix/etc/config.site
2146 else
2147 ac_site_file1=$ac_default_prefix/share/config.site
2148 ac_site_file2=$ac_default_prefix/etc/config.site
2149 fi
2150 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2151 do
2152 test "x$ac_site_file" = xNONE && continue
2153 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2155 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2156 sed 's/^/| /' "$ac_site_file" >&5
2157 . "$ac_site_file" \
2158 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160 as_fn_error $? "failed to load site script $ac_site_file
2161 See \`config.log' for more details" "$LINENO" 5; }
2162 fi
2163 done
2164
2165 if test -r "$cache_file"; then
2166 # Some versions of bash will fail to source /dev/null (special files
2167 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2168 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2170 $as_echo "$as_me: loading cache $cache_file" >&6;}
2171 case $cache_file in
2172 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2173 *) . "./$cache_file";;
2174 esac
2175 fi
2176 else
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2178 $as_echo "$as_me: creating cache $cache_file" >&6;}
2179 >$cache_file
2180 fi
2181
2182 # Check that the precious variables saved in the cache have kept the same
2183 # value.
2184 ac_cache_corrupted=false
2185 for ac_var in $ac_precious_vars; do
2186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2187 eval ac_new_set=\$ac_env_${ac_var}_set
2188 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2189 eval ac_new_val=\$ac_env_${ac_var}_value
2190 case $ac_old_set,$ac_new_set in
2191 set,)
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2193 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2194 ac_cache_corrupted=: ;;
2195 ,set)
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2198 ac_cache_corrupted=: ;;
2199 ,);;
2200 *)
2201 if test "x$ac_old_val" != "x$ac_new_val"; then
2202 # differences in whitespace do not lead to failure.
2203 ac_old_val_w=`echo x $ac_old_val`
2204 ac_new_val_w=`echo x $ac_new_val`
2205 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2207 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2208 ac_cache_corrupted=:
2209 else
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2211 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2212 eval $ac_var=\$ac_old_val
2213 fi
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2215 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2217 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2218 fi;;
2219 esac
2220 # Pass precious variables to config.status.
2221 if test "$ac_new_set" = set; then
2222 case $ac_new_val in
2223 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2224 *) ac_arg=$ac_var=$ac_new_val ;;
2225 esac
2226 case " $ac_configure_args " in
2227 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2228 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2229 esac
2230 fi
2231 done
2232 if $ac_cache_corrupted; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2236 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2237 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2238 fi
2239 ## -------------------- ##
2240 ## Main body of script. ##
2241 ## -------------------- ##
2242
2243 ac_ext=c
2244 ac_cpp='$CPP $CPPFLAGS'
2245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248
2249
2250
2251
2252 # Initialize Automake
2253 am__api_version='1.14'
2254
2255 ac_aux_dir=
2256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257 if test -f "$ac_dir/install-sh"; then
2258 ac_aux_dir=$ac_dir
2259 ac_install_sh="$ac_aux_dir/install-sh -c"
2260 break
2261 elif test -f "$ac_dir/install.sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install.sh -c"
2264 break
2265 elif test -f "$ac_dir/shtool"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/shtool install -c"
2268 break
2269 fi
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2273 fi
2274
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
2283
2284 # Find a good install program. We prefer a C program (faster),
2285 # so one script is as good as another. But avoid the broken or
2286 # incompatible versions:
2287 # SysV /etc/install, /usr/sbin/install
2288 # SunOS /usr/etc/install
2289 # IRIX /sbin/install
2290 # AIX /bin/install
2291 # AmigaOS /C/install, which installs bootblocks on floppy discs
2292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2295 # OS/2's system install, which has a completely different semantic
2296 # ./install, which can be erroneously created by make from ./install.sh.
2297 # Reject install programs that cannot install multiple files.
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2300 if test -z "$INSTALL"; then
2301 if ${ac_cv_path_install+:} false; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 # Account for people who put trailing slashes in PATH elements.
2310 case $as_dir/ in #((
2311 ./ | .// | /[cC]/* | \
2312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2313 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2314 /usr/ucb/* ) ;;
2315 *)
2316 # OSF1 and SCO ODT 3.0 have their own names for install.
2317 # Don't use installbsd from OSF since it installs stuff as root
2318 # by default.
2319 for ac_prog in ginstall scoinst install; do
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2322 if test $ac_prog = install &&
2323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324 # AIX install. It has an incompatible calling convention.
2325 :
2326 elif test $ac_prog = install &&
2327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2328 # program-specific install script used by HP pwplus--don't use.
2329 :
2330 else
2331 rm -rf conftest.one conftest.two conftest.dir
2332 echo one > conftest.one
2333 echo two > conftest.two
2334 mkdir conftest.dir
2335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2336 test -s conftest.one && test -s conftest.two &&
2337 test -s conftest.dir/conftest.one &&
2338 test -s conftest.dir/conftest.two
2339 then
2340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2341 break 3
2342 fi
2343 fi
2344 fi
2345 done
2346 done
2347 ;;
2348 esac
2349
2350 done
2351 IFS=$as_save_IFS
2352
2353 rm -rf conftest.one conftest.two conftest.dir
2354
2355 fi
2356 if test "${ac_cv_path_install+set}" = set; then
2357 INSTALL=$ac_cv_path_install
2358 else
2359 # As a last resort, use the slow shell script. Don't cache a
2360 # value for INSTALL within a source directory, because that will
2361 # break other packages using the cache if that directory is
2362 # removed, or if the value is a relative name.
2363 INSTALL=$ac_install_sh
2364 fi
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2367 $as_echo "$INSTALL" >&6; }
2368
2369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2370 # It thinks the first close brace ends the variable substitution.
2371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2372
2373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2374
2375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2378 $as_echo_n "checking whether build environment is sane... " >&6; }
2379 # Reject unsafe characters in $srcdir or the absolute working directory
2380 # name. Accept space and tab only in the latter.
2381 am_lf='
2382 '
2383 case `pwd` in
2384 *[\\\"\#\$\&\'\`$am_lf]*)
2385 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2386 esac
2387 case $srcdir in
2388 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2389 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2390 esac
2391
2392 # Do 'set' in a subshell so we don't clobber the current shell's
2393 # arguments. Must try -L first in case configure is actually a
2394 # symlink; some systems play weird games with the mod time of symlinks
2395 # (eg FreeBSD returns the mod time of the symlink's containing
2396 # directory).
2397 if (
2398 am_has_slept=no
2399 for am_try in 1 2; do
2400 echo "timestamp, slept: $am_has_slept" > conftest.file
2401 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2402 if test "$*" = "X"; then
2403 # -L didn't work.
2404 set X `ls -t "$srcdir/configure" conftest.file`
2405 fi
2406 if test "$*" != "X $srcdir/configure conftest.file" \
2407 && test "$*" != "X conftest.file $srcdir/configure"; then
2408
2409 # If neither matched, then we have a broken ls. This can happen
2410 # if, for instance, CONFIG_SHELL is bash and it inherits a
2411 # broken ls alias from the environment. This has actually
2412 # happened. Such a system could not be considered "sane".
2413 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2414 alias in your environment" "$LINENO" 5
2415 fi
2416 if test "$2" = conftest.file || test $am_try -eq 2; then
2417 break
2418 fi
2419 # Just in case.
2420 sleep 1
2421 am_has_slept=yes
2422 done
2423 test "$2" = conftest.file
2424 )
2425 then
2426 # Ok.
2427 :
2428 else
2429 as_fn_error $? "newly created file is older than distributed files!
2430 Check your system clock" "$LINENO" 5
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2433 $as_echo "yes" >&6; }
2434 # If we didn't sleep, we still need to ensure time stamps of config.status and
2435 # generated files are strictly newer.
2436 am_sleep_pid=
2437 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2438 ( sleep 1 ) &
2439 am_sleep_pid=$!
2440 fi
2441
2442 rm -f conftest.file
2443
2444 test "$program_prefix" != NONE &&
2445 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2446 # Use a double $ so make ignores it.
2447 test "$program_suffix" != NONE &&
2448 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2449 # Double any \ or $.
2450 # By default was `s,x,x', remove it if useless.
2451 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2452 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453
2454 # expand $ac_aux_dir to an absolute path
2455 am_aux_dir=`cd $ac_aux_dir && pwd`
2456
2457 if test x"${MISSING+set}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2461 *)
2462 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2463 esac
2464 fi
2465 # Use eval to expand $SHELL
2466 if eval "$MISSING --is-lightweight"; then
2467 am_missing_run="$MISSING "
2468 else
2469 am_missing_run=
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2471 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2472 fi
2473
2474 if test x"${install_sh}" != xset; then
2475 case $am_aux_dir in
2476 *\ * | *\ *)
2477 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2478 *)
2479 install_sh="\${SHELL} $am_aux_dir/install-sh"
2480 esac
2481 fi
2482
2483 # Installed binaries are usually stripped using 'strip' when the user
2484 # run "make install-strip". However 'strip' might not be the right
2485 # tool to use in cross-compilation environments, therefore Automake
2486 # will honor the 'STRIP' environment variable to overrule this program.
2487 if test "$cross_compiling" != no; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}strip; ac_word=$2
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if ${ac_cv_prog_STRIP+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 if test -n "$STRIP"; then
2497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2506 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 STRIP=$ac_cv_prog_STRIP
2517 if test -n "$STRIP"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2519 $as_echo "$STRIP" >&6; }
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522 $as_echo "no" >&6; }
2523 fi
2524
2525
2526 fi
2527 if test -z "$ac_cv_prog_STRIP"; then
2528 ac_ct_STRIP=$STRIP
2529 # Extract the first word of "strip", so it can be a program name with args.
2530 set dummy strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$ac_ct_STRIP"; then
2537 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_ac_ct_STRIP="strip"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2557 if test -n "$ac_ct_STRIP"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2559 $as_echo "$ac_ct_STRIP" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565 if test "x$ac_ct_STRIP" = x; then
2566 STRIP=":"
2567 else
2568 case $cross_compiling:$ac_tool_warned in
2569 yes:)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572 ac_tool_warned=yes ;;
2573 esac
2574 STRIP=$ac_ct_STRIP
2575 fi
2576 else
2577 STRIP="$ac_cv_prog_STRIP"
2578 fi
2579
2580 fi
2581 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2582
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2584 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2585 if test -z "$MKDIR_P"; then
2586 if ${ac_cv_path_mkdir+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_prog in mkdir gmkdir; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2597 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2598 'mkdir (GNU coreutils) '* | \
2599 'mkdir (coreutils) '* | \
2600 'mkdir (fileutils) '4.1*)
2601 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2602 break 3;;
2603 esac
2604 done
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610
2611 test -d ./--version && rmdir ./--version
2612 if test "${ac_cv_path_mkdir+set}" = set; then
2613 MKDIR_P="$ac_cv_path_mkdir -p"
2614 else
2615 # As a last resort, use the slow shell script. Don't cache a
2616 # value for MKDIR_P within a source directory, because that will
2617 # break other packages using the cache if that directory is
2618 # removed, or if the value is a relative name.
2619 MKDIR_P="$ac_install_sh -d"
2620 fi
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2623 $as_echo "$MKDIR_P" >&6; }
2624
2625 for ac_prog in gawk mawk nawk awk
2626 do
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628 set dummy $ac_prog; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if ${ac_cv_prog_AWK+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$AWK"; then
2635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_AWK="$ac_prog"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648 done
2649 done
2650 IFS=$as_save_IFS
2651
2652 fi
2653 fi
2654 AWK=$ac_cv_prog_AWK
2655 if test -n "$AWK"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2657 $as_echo "$AWK" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2661 fi
2662
2663
2664 test -n "$AWK" && break
2665 done
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2668 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2669 set x ${MAKE-make}
2670 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2671 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 cat >conftest.make <<\_ACEOF
2675 SHELL = /bin/sh
2676 all:
2677 @echo '@@@%%%=$(MAKE)=@@@%%%'
2678 _ACEOF
2679 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2680 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2681 *@@@%%%=?*=@@@%%%*)
2682 eval ac_cv_prog_make_${ac_make}_set=yes;;
2683 *)
2684 eval ac_cv_prog_make_${ac_make}_set=no;;
2685 esac
2686 rm -f conftest.make
2687 fi
2688 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2690 $as_echo "yes" >&6; }
2691 SET_MAKE=
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 SET_MAKE="MAKE=${MAKE-make}"
2696 fi
2697
2698 rm -rf .tst 2>/dev/null
2699 mkdir .tst 2>/dev/null
2700 if test -d .tst; then
2701 am__leading_dot=.
2702 else
2703 am__leading_dot=_
2704 fi
2705 rmdir .tst 2>/dev/null
2706
2707 # Check whether --enable-silent-rules was given.
2708 if test "${enable_silent_rules+set}" = set; then :
2709 enableval=$enable_silent_rules;
2710 fi
2711
2712 case $enable_silent_rules in # (((
2713 yes) AM_DEFAULT_VERBOSITY=0;;
2714 no) AM_DEFAULT_VERBOSITY=1;;
2715 *) AM_DEFAULT_VERBOSITY=1;;
2716 esac
2717 am_make=${MAKE-make}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2719 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2720 if ${am_cv_make_support_nested_variables+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if $as_echo 'TRUE=$(BAR$(V))
2724 BAR0=false
2725 BAR1=true
2726 V=1
2727 am__doit:
2728 @$(TRUE)
2729 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2730 am_cv_make_support_nested_variables=yes
2731 else
2732 am_cv_make_support_nested_variables=no
2733 fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2736 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2737 if test $am_cv_make_support_nested_variables = yes; then
2738 AM_V='$(V)'
2739 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2740 else
2741 AM_V=$AM_DEFAULT_VERBOSITY
2742 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2743 fi
2744 AM_BACKSLASH='\'
2745
2746 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2747 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2748 # is not polluted with repeated "-I."
2749 am__isrc=' -I$(srcdir)'
2750 # test to see if srcdir already configured
2751 if test -f $srcdir/config.status; then
2752 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2753 fi
2754 fi
2755
2756 # test whether we have cygpath
2757 if test -z "$CYGPATH_W"; then
2758 if (cygpath --version) >/dev/null 2>/dev/null; then
2759 CYGPATH_W='cygpath -w'
2760 else
2761 CYGPATH_W=echo
2762 fi
2763 fi
2764
2765
2766 # Define the identity of the package.
2767 PACKAGE='xtrans'
2768 VERSION='1.3.4'
2769
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE "$PACKAGE"
2773 _ACEOF
2774
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define VERSION "$VERSION"
2778 _ACEOF
2779
2780 # Some tools Automake needs.
2781
2782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2783
2784
2785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2786
2787
2788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2789
2790
2791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2792
2793
2794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2795
2796 # For better backward compatibility. To be removed once Automake 1.9.x
2797 # dies out for good. For more background, see:
2798 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2799 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2800 mkdir_p='$(MKDIR_P)'
2801
2802 # We need awk for the "check" target. The system "awk" is bad on
2803 # some platforms.
2804 # Always define AMTAR for backward compatibility. Yes, it's still used
2805 # in the wild :-( We should find a proper way to deprecate it ...
2806 AMTAR='$${TAR-tar}'
2807
2808
2809 # We'll loop over all known methods to create a tar archive until one works.
2810 _am_tools='gnutar pax cpio none'
2811
2812 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2813
2814
2815
2816
2817
2818
2819 # POSIX will say in a future version that running "rm -f" with no argument
2820 # is OK; and we want to be able to make that assumption in our Makefile
2821 # recipes. So use an aggressive probe to check that the usage we want is
2822 # actually supported "in the wild" to an acceptable degree.
2823 # See automake bug#10828.
2824 # To make any issue more visible, cause the running configure to be aborted
2825 # by default if the 'rm' program in use doesn't match our expectations; the
2826 # user can still override this though.
2827 if rm -f && rm -fr && rm -rf; then : OK; else
2828 cat >&2 <<'END'
2829 Oops!
2830
2831 Your 'rm' program seems unable to run without file operands specified
2832 on the command line, even when the '-f' option is present. This is contrary
2833 to the behaviour of most rm programs out there, and not conforming with
2834 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2835
2836 Please tell bug-automake@gnu.org about your system, including the value
2837 of your $PATH and any error possibly output before this message. This
2838 can help us improve future automake versions.
2839
2840 END
2841 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2842 echo 'Configuration will proceed anyway, since you have set the' >&2
2843 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2844 echo >&2
2845 else
2846 cat >&2 <<'END'
2847 Aborting the configuration process, to ensure you take notice of the issue.
2848
2849 You can download and install GNU coreutils to get an 'rm' implementation
2850 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2851
2852 If you want to complete the configuration process using your problematic
2853 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2854 to "yes", and re-run configure.
2855
2856 END
2857 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2858 fi
2859 fi
2860
2861 # Require xorg-macros minimum of 1.12 for DocBook external references
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873 DEPDIR="${am__leading_dot}deps"
2874
2875 ac_config_commands="$ac_config_commands depfiles"
2876
2877
2878 am_make=${MAKE-make}
2879 cat > confinc << 'END'
2880 am__doit:
2881 @echo this is the am__doit target
2882 .PHONY: am__doit
2883 END
2884 # If we don't find an include directive, just comment out the code.
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2886 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2887 am__include="#"
2888 am__quote=
2889 _am_result=none
2890 # First try GNU make style include.
2891 echo "include confinc" > confmf
2892 # Ignore all kinds of additional output from 'make'.
2893 case `$am_make -s -f confmf 2> /dev/null` in #(
2894 *the\ am__doit\ target*)
2895 am__include=include
2896 am__quote=
2897 _am_result=GNU
2898 ;;
2899 esac
2900 # Now try BSD make style include.
2901 if test "$am__include" = "#"; then
2902 echo '.include "confinc"' > confmf
2903 case `$am_make -s -f confmf 2> /dev/null` in #(
2904 *the\ am__doit\ target*)
2905 am__include=.include
2906 am__quote="\""
2907 _am_result=BSD
2908 ;;
2909 esac
2910 fi
2911
2912
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2914 $as_echo "$_am_result" >&6; }
2915 rm -f confinc confmf
2916
2917 # Check whether --enable-dependency-tracking was given.
2918 if test "${enable_dependency_tracking+set}" = set; then :
2919 enableval=$enable_dependency_tracking;
2920 fi
2921
2922 if test "x$enable_dependency_tracking" != xno; then
2923 am_depcomp="$ac_aux_dir/depcomp"
2924 AMDEPBACKSLASH='\'
2925 am__nodep='_no'
2926 fi
2927 if test "x$enable_dependency_tracking" != xno; then
2928 AMDEP_TRUE=
2929 AMDEP_FALSE='#'
2930 else
2931 AMDEP_TRUE='#'
2932 AMDEP_FALSE=
2933 fi
2934
2935
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 fi
2980 if test -z "$ac_cv_prog_CC"; then
2981 ac_ct_CC=$CC
2982 # Extract the first word of "gcc", so it can be a program name with args.
2983 set dummy gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC="gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012 $as_echo "$ac_ct_CC" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027 CC=$ac_ct_CC
3028 fi
3029 else
3030 CC="$ac_cv_prog_CC"
3031 fi
3032
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}cc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_CC="${ac_tool_prefix}cc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 CC=$ac_cv_prog_CC
3063 if test -n "$CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 fi
3074 if test -z "$CC"; then
3075 # Extract the first word of "cc", so it can be a program name with args.
3076 set dummy cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 ac_prog_rejected=no
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3094 ac_prog_rejected=yes
3095 continue
3096 fi
3097 ac_cv_prog_CC="cc"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 if test $ac_prog_rejected = yes; then
3106 # We found a bogon in the path, so make sure we never use it.
3107 set dummy $ac_cv_prog_CC
3108 shift
3109 if test $# != 0; then
3110 # We chose a different compiler from the bogus one.
3111 # However, it has the same basename, so the bogon will be chosen
3112 # first if we set CC to just the basename; use the full file name.
3113 shift
3114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3115 fi
3116 fi
3117 fi
3118 fi
3119 CC=$ac_cv_prog_CC
3120 if test -n "$CC"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122 $as_echo "$CC" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129 fi
3130 if test -z "$CC"; then
3131 if test -n "$ac_tool_prefix"; then
3132 for ac_prog in cl.exe
3133 do
3134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 test -n "$CC" && break
3172 done
3173 fi
3174 if test -z "$CC"; then
3175 ac_ct_CC=$CC
3176 for ac_prog in cl.exe
3177 do
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_ac_ct_CC="$ac_prog"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199 done
3200 done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215 test -n "$ac_ct_CC" && break
3216 done
3217
3218 if test "x$ac_ct_CC" = x; then
3219 CC=""
3220 else
3221 case $cross_compiling:$ac_tool_warned in
3222 yes:)
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225 ac_tool_warned=yes ;;
3226 esac
3227 CC=$ac_ct_CC
3228 fi
3229 fi
3230
3231 fi
3232
3233
3234 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details" "$LINENO" 5; }
3238
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3241 set X $ac_compile
3242 ac_compiler=$2
3243 for ac_option in --version -v -V -qversion; do
3244 { { ac_try="$ac_compiler $ac_option >&5"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3252 ac_status=$?
3253 if test -s conftest.err; then
3254 sed '10a\
3255 ... rest of stderr output deleted ...
3256 10q' conftest.err >conftest.er1
3257 cat conftest.er1 >&5
3258 fi
3259 rm -f conftest.er1 conftest.err
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }
3262 done
3263
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 ac_clean_files_save=$ac_clean_files
3276 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3277 # Try to create an executable without -o first, disregard a.out.
3278 # It will help us diagnose broken compilers, and finding out an intuition
3279 # of exeext.
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3281 $as_echo_n "checking whether the C compiler works... " >&6; }
3282 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3283
3284 # The possible output files:
3285 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3286
3287 ac_rmfiles=
3288 for ac_file in $ac_files
3289 do
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3293 esac
3294 done
3295 rm -f $ac_rmfiles
3296
3297 if { { ac_try="$ac_link_default"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link_default") 2>&5
3305 ac_status=$?
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3309 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3310 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3311 # so that the user can short-circuit this test for compilers unknown to
3312 # Autoconf.
3313 for ac_file in $ac_files ''
3314 do
3315 test -f "$ac_file" || continue
3316 case $ac_file in
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3318 ;;
3319 [ab].out )
3320 # We found the default executable, but exeext='' is most
3321 # certainly right.
3322 break;;
3323 *.* )
3324 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3325 then :; else
3326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 fi
3328 # We set ac_cv_exeext here because the later test for it is not
3329 # safe: cross compilers may not add the suffix if given an `-o'
3330 # argument, so we may need to know it at that point already.
3331 # Even if this section looks crufty: it has the advantage of
3332 # actually working.
3333 break;;
3334 * )
3335 break;;
3336 esac
3337 done
3338 test "$ac_cv_exeext" = no && ac_cv_exeext=
3339
3340 else
3341 ac_file=''
3342 fi
3343 if test -z "$ac_file"; then :
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 $as_echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error 77 "C compiler cannot create executables
3352 See \`config.log' for more details" "$LINENO" 5; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3358 $as_echo_n "checking for C compiler default output file name... " >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3360 $as_echo "$ac_file" >&6; }
3361 ac_exeext=$ac_cv_exeext
3362
3363 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3364 ac_clean_files=$ac_clean_files_save
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3366 $as_echo_n "checking for suffix of executables... " >&6; }
3367 if { { ac_try="$ac_link"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_link") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }; then :
3378 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3379 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3380 # work properly (i.e., refer to `conftest.exe'), while it won't with
3381 # `rm'.
3382 for ac_file in conftest.exe conftest conftest.*; do
3383 test -f "$ac_file" || continue
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3386 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 break;;
3388 * ) break;;
3389 esac
3390 done
3391 else
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3395 See \`config.log' for more details" "$LINENO" 5; }
3396 fi
3397 rm -f conftest conftest$ac_cv_exeext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3399 $as_echo "$ac_cv_exeext" >&6; }
3400
3401 rm -f conftest.$ac_ext
3402 EXEEXT=$ac_cv_exeext
3403 ac_exeext=$EXEEXT
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3406 #include <stdio.h>
3407 int
3408 main ()
3409 {
3410 FILE *f = fopen ("conftest.out", "w");
3411 return ferror (f) || fclose (f) != 0;
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 ac_clean_files="$ac_clean_files conftest.out"
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 if test "$cross_compiling" != yes; then
3423 { { ac_try="$ac_link"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_link") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }
3434 if { ac_try='./conftest$ac_cv_exeext'
3435 { { case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_try") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; }; then
3445 cross_compiling=no
3446 else
3447 if test "$cross_compiling" = maybe; then
3448 cross_compiling=yes
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot run C compiled programs.
3453 If you meant to cross compile, use \`--host'.
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 fi
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3459 $as_echo "$cross_compiling" >&6; }
3460
3461 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3462 ac_clean_files=$ac_clean_files_save
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3464 $as_echo_n "checking for suffix of object files... " >&6; }
3465 if ${ac_cv_objext+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.o conftest.obj
3480 if { { ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compile") 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; then :
3491 for ac_file in conftest.o conftest.obj conftest.*; do
3492 test -f "$ac_file" || continue;
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3496 break;;
3497 esac
3498 done
3499 else
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details" "$LINENO" 5; }
3507 fi
3508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3511 $as_echo "$ac_cv_objext" >&6; }
3512 OBJEXT=$ac_cv_objext
3513 ac_objext=$OBJEXT
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3516 if ${ac_cv_c_compiler_gnu+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525 #ifndef __GNUC__
3526 choke me
3527 #endif
3528
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_compiler_gnu=yes
3535 else
3536 ac_compiler_gnu=no
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3544 if test $ac_compiler_gnu = yes; then
3545 GCC=yes
3546 else
3547 GCC=
3548 fi
3549 ac_test_CFLAGS=${CFLAGS+set}
3550 ac_save_CFLAGS=$CFLAGS
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3553 if ${ac_cv_prog_cc_g+:} false; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 ac_save_c_werror_flag=$ac_c_werror_flag
3557 ac_c_werror_flag=yes
3558 ac_cv_prog_cc_g=no
3559 CFLAGS="-g"
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_g=yes
3573 else
3574 CFLAGS=""
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main ()
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587
3588 else
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3590 CFLAGS="-g"
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_prog_cc_g=yes
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613 $as_echo "$ac_cv_prog_cc_g" >&6; }
3614 if test "$ac_test_CFLAGS" = set; then
3615 CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3618 CFLAGS="-g -O2"
3619 else
3620 CFLAGS="-g"
3621 fi
3622 else
3623 if test "$GCC" = yes; then
3624 CFLAGS="-O2"
3625 else
3626 CFLAGS=
3627 fi
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3631 if ${ac_cv_prog_cc_c89+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 ac_cv_prog_cc_c89=no
3635 ac_save_CC=$CC
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 #include <stdarg.h>
3639 #include <stdio.h>
3640 struct stat;
3641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3642 struct buf { int x; };
3643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3644 static char *e (p, i)
3645 char **p;
3646 int i;
3647 {
3648 return p[i];
3649 }
3650 static char *f (char * (*g) (char **, int), char **p, ...)
3651 {
3652 char *s;
3653 va_list v;
3654 va_start (v,p);
3655 s = g (p, va_arg (v,int));
3656 va_end (v);
3657 return s;
3658 }
3659
3660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3661 function prototypes and stuff, but not '\xHH' hex character constants.
3662 These don't provoke an error unfortunately, instead are silently treated
3663 as 'x'. The following induces an error, until -std is added to get
3664 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3665 array size at least. It's necessary to write '\x00'==0 to get something
3666 that's true only with -std. */
3667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3668
3669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3670 inside strings and character constants. */
3671 #define FOO(x) 'x'
3672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3673
3674 int test (int i, double x);
3675 struct s1 {int (*f) (int a);};
3676 struct s2 {int (*f) (double a);};
3677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3678 int argc;
3679 char **argv;
3680 int
3681 main ()
3682 {
3683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3689 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3690 do
3691 CC="$ac_save_CC $ac_arg"
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_c89=$ac_arg
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext
3696 test "x$ac_cv_prog_cc_c89" != "xno" && break
3697 done
3698 rm -f conftest.$ac_ext
3699 CC=$ac_save_CC
3700
3701 fi
3702 # AC_CACHE_VAL
3703 case "x$ac_cv_prog_cc_c89" in
3704 x)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3706 $as_echo "none needed" >&6; } ;;
3707 xno)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3709 $as_echo "unsupported" >&6; } ;;
3710 *)
3711 CC="$CC $ac_cv_prog_cc_c89"
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3714 esac
3715 if test "x$ac_cv_prog_cc_c89" != xno; then :
3716
3717 fi
3718
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3731 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3732 if ${am_cv_prog_cc_c_o+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 int
3739 main ()
3740 {
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 # Make sure it works both with $CC and with simple cc.
3747 # Following AC_PROG_CC_C_O, we do the test twice because some
3748 # compilers refuse to overwrite an existing .o file with -o,
3749 # though they will create one.
3750 am_cv_prog_cc_c_o=yes
3751 for am_i in 1 2; do
3752 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3753 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } \
3757 && test -f conftest2.$ac_objext; then
3758 : OK
3759 else
3760 am_cv_prog_cc_c_o=no
3761 break
3762 fi
3763 done
3764 rm -f core conftest*
3765 unset am_i
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3768 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3769 if test "$am_cv_prog_cc_c_o" != yes; then
3770 # Losing compiler, so override with the script.
3771 # FIXME: It is wrong to rewrite CC.
3772 # But if we don't then we get into trouble of one sort or another.
3773 # A longer-term fix would be to have automake use am__CC in this case,
3774 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3775 CC="$am_aux_dir/compile $CC"
3776 fi
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783
3784 depcc="$CC" am_compiler_list=
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3787 $as_echo_n "checking dependency style of $depcc... " >&6; }
3788 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3792 # We make a subdir and do the tests there. Otherwise we can end up
3793 # making bogus files that we don't know about and never remove. For
3794 # instance it was reported that on HP-UX the gcc test will end up
3795 # making a dummy file named 'D' -- because '-MD' means "put the output
3796 # in D".
3797 rm -rf conftest.dir
3798 mkdir conftest.dir
3799 # Copy depcomp to subdir because otherwise we won't find it if we're
3800 # using a relative directory.
3801 cp "$am_depcomp" conftest.dir
3802 cd conftest.dir
3803 # We will build objects and dependencies in a subdirectory because
3804 # it helps to detect inapplicable dependency modes. For instance
3805 # both Tru64's cc and ICC support -MD to output dependencies as a
3806 # side effect of compilation, but ICC will put the dependencies in
3807 # the current directory while Tru64 will put them in the object
3808 # directory.
3809 mkdir sub
3810
3811 am_cv_CC_dependencies_compiler_type=none
3812 if test "$am_compiler_list" = ""; then
3813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814 fi
3815 am__universal=false
3816 case " $depcc " in #(
3817 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3818 esac
3819
3820 for depmode in $am_compiler_list; do
3821 # Setup a source with many dependencies, because some compilers
3822 # like to wrap large dependency lists on column 80 (with \), and
3823 # we should not choose a depcomp mode which is confused by this.
3824 #
3825 # We need to recreate these files for each test, as the compiler may
3826 # overwrite some of them when testing with obscure command lines.
3827 # This happens at least with the AIX C compiler.
3828 : > sub/conftest.c
3829 for i in 1 2 3 4 5 6; do
3830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3831 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3832 # Solaris 10 /bin/sh.
3833 echo '/* dummy */' > sub/conftst$i.h
3834 done
3835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3836
3837 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3838 # mode. It turns out that the SunPro C++ compiler does not properly
3839 # handle '-M -o', and we need to detect this. Also, some Intel
3840 # versions had trouble with output in subdirs.
3841 am__obj=sub/conftest.${OBJEXT-o}
3842 am__minus_obj="-o $am__obj"
3843 case $depmode in
3844 gcc)
3845 # This depmode causes a compiler race in universal mode.
3846 test "$am__universal" = false || continue
3847 ;;
3848 nosideeffect)
3849 # After this tag, mechanisms are not by side-effect, so they'll
3850 # only be used when explicitly requested.
3851 if test "x$enable_dependency_tracking" = xyes; then
3852 continue
3853 else
3854 break
3855 fi
3856 ;;
3857 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3858 # This compiler won't grok '-c -o', but also, the minuso test has
3859 # not run yet. These depmodes are late enough in the game, and
3860 # so weak that their functioning should not be impacted.
3861 am__obj=conftest.${OBJEXT-o}
3862 am__minus_obj=
3863 ;;
3864 none) break ;;
3865 esac
3866 if depmode=$depmode \
3867 source=sub/conftest.c object=$am__obj \
3868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3870 >/dev/null 2>conftest.err &&
3871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875 # icc doesn't choke on unknown options, it will just issue warnings
3876 # or remarks (even with -Werror). So we grep stderr for any message
3877 # that says an option was ignored or not supported.
3878 # When given -MP, icc 7.0 and 7.1 complain thusly:
3879 # icc: Command line warning: ignoring option '-M'; no argument required
3880 # The diagnosis changed in icc 8.0:
3881 # icc: Command line remark: option '-MP' not supported
3882 if (grep 'ignoring option' conftest.err ||
3883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884 am_cv_CC_dependencies_compiler_type=$depmode
3885 break
3886 fi
3887 fi
3888 done
3889
3890 cd ..
3891 rm -rf conftest.dir
3892 else
3893 am_cv_CC_dependencies_compiler_type=none
3894 fi
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900
3901 if
3902 test "x$enable_dependency_tracking" != xno \
3903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3904 am__fastdepCC_TRUE=
3905 am__fastdepCC_FALSE='#'
3906 else
3907 am__fastdepCC_TRUE='#'
3908 am__fastdepCC_FALSE=
3909 fi
3910
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3913 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3914 if ${ac_cv_prog_cc_c99+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 ac_cv_prog_cc_c99=no
3918 ac_save_CC=$CC
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <stdarg.h>
3922 #include <stdbool.h>
3923 #include <stdlib.h>
3924 #include <wchar.h>
3925 #include <stdio.h>
3926
3927 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3928 #define debug(...) fprintf (stderr, __VA_ARGS__)
3929 #define showlist(...) puts (#__VA_ARGS__)
3930 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3931 static void
3932 test_varargs_macros (void)
3933 {
3934 int x = 1234;
3935 int y = 5678;
3936 debug ("Flag");
3937 debug ("X = %d\n", x);
3938 showlist (The first, second, and third items.);
3939 report (x>y, "x is %d but y is %d", x, y);
3940 }
3941
3942 // Check long long types.
3943 #define BIG64 18446744073709551615ull
3944 #define BIG32 4294967295ul
3945 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3946 #if !BIG_OK
3947 your preprocessor is broken;
3948 #endif
3949 #if BIG_OK
3950 #else
3951 your preprocessor is broken;
3952 #endif
3953 static long long int bignum = -9223372036854775807LL;
3954 static unsigned long long int ubignum = BIG64;
3955
3956 struct incomplete_array
3957 {
3958 int datasize;
3959 double data[];
3960 };
3961
3962 struct named_init {
3963 int number;
3964 const wchar_t *name;
3965 double average;
3966 };
3967
3968 typedef const char *ccp;
3969
3970 static inline int
3971 test_restrict (ccp restrict text)
3972 {
3973 // See if C++-style comments work.
3974 // Iterate through items via the restricted pointer.
3975 // Also check for declarations in for loops.
3976 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3977 continue;
3978 return 0;
3979 }
3980
3981 // Check varargs and va_copy.
3982 static void
3983 test_varargs (const char *format, ...)
3984 {
3985 va_list args;
3986 va_start (args, format);
3987 va_list args_copy;
3988 va_copy (args_copy, args);
3989
3990 const char *str;
3991 int number;
3992 float fnumber;
3993
3994 while (*format)
3995 {
3996 switch (*format++)
3997 {
3998 case 's': // string
3999 str = va_arg (args_copy, const char *);
4000 break;
4001 case 'd': // int
4002 number = va_arg (args_copy, int);
4003 break;
4004 case 'f': // float
4005 fnumber = va_arg (args_copy, double);
4006 break;
4007 default:
4008 break;
4009 }
4010 }
4011 va_end (args_copy);
4012 va_end (args);
4013 }
4014
4015 int
4016 main ()
4017 {
4018
4019 // Check bool.
4020 _Bool success = false;
4021
4022 // Check restrict.
4023 if (test_restrict ("String literal") == 0)
4024 success = true;
4025 char *restrict newvar = "Another string";
4026
4027 // Check varargs.
4028 test_varargs ("s, d' f .", "string", 65, 34.234);
4029 test_varargs_macros ();
4030
4031 // Check flexible array members.
4032 struct incomplete_array *ia =
4033 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4034 ia->datasize = 10;
4035 for (int i = 0; i < ia->datasize; ++i)
4036 ia->data[i] = i * 1.234;
4037
4038 // Check named initializers.
4039 struct named_init ni = {
4040 .number = 34,
4041 .name = L"Test wide string",
4042 .average = 543.34343,
4043 };
4044
4045 ni.number = 58;
4046
4047 int dynamic_array[ni.number];
4048 dynamic_array[ni.number - 1] = 543;
4049
4050 // work around unused variable warnings
4051 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4052 || dynamic_array[ni.number - 1] != 543);
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4059 do
4060 CC="$ac_save_CC $ac_arg"
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_prog_cc_c99=$ac_arg
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext
4065 test "x$ac_cv_prog_cc_c99" != "xno" && break
4066 done
4067 rm -f conftest.$ac_ext
4068 CC=$ac_save_CC
4069
4070 fi
4071 # AC_CACHE_VAL
4072 case "x$ac_cv_prog_cc_c99" in
4073 x)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4076 xno)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4079 *)
4080 CC="$CC $ac_cv_prog_cc_c99"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4082 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4083 esac
4084 if test "x$ac_cv_prog_cc_c99" != xno; then :
4085
4086 fi
4087
4088
4089
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4096 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4097 # On Suns, sometimes $CPP names a directory.
4098 if test -n "$CPP" && test -d "$CPP"; then
4099 CPP=
4100 fi
4101 if test -z "$CPP"; then
4102 if ${ac_cv_prog_CPP+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 # Double quotes because CPP needs to be expanded
4106 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4107 do
4108 ac_preproc_ok=false
4109 for ac_c_preproc_warn_flag in '' yes
4110 do
4111 # Use a header file that comes with gcc, so configuring glibc
4112 # with a fresh cross-compiler works.
4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4114 # <limits.h> exists even on freestanding compilers.
4115 # On the NeXT, cc -E runs the code through the compiler's parser,
4116 # not just through cpp. "Syntax error" is here to catch this case.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #ifdef __STDC__
4120 # include <limits.h>
4121 #else
4122 # include <assert.h>
4123 #endif
4124 Syntax error
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127
4128 else
4129 # Broken: fails on valid input.
4130 continue
4131 fi
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4133
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4139 _ACEOF
4140 if ac_fn_c_try_cpp "$LINENO"; then :
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 # Passes both tests.
4145 ac_preproc_ok=:
4146 break
4147 fi
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4149
4150 done
4151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152 rm -f conftest.i conftest.err conftest.$ac_ext
4153 if $ac_preproc_ok; then :
4154 break
4155 fi
4156
4157 done
4158 ac_cv_prog_CPP=$CPP
4159
4160 fi
4161 CPP=$ac_cv_prog_CPP
4162 else
4163 ac_cv_prog_CPP=$CPP
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4166 $as_echo "$CPP" >&6; }
4167 ac_preproc_ok=false
4168 for ac_c_preproc_warn_flag in '' yes
4169 do
4170 # Use a header file that comes with gcc, so configuring glibc
4171 # with a fresh cross-compiler works.
4172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173 # <limits.h> exists even on freestanding compilers.
4174 # On the NeXT, cc -E runs the code through the compiler's parser,
4175 # not just through cpp. "Syntax error" is here to catch this case.
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #ifdef __STDC__
4179 # include <limits.h>
4180 #else
4181 # include <assert.h>
4182 #endif
4183 Syntax error
4184 _ACEOF
4185 if ac_fn_c_try_cpp "$LINENO"; then :
4186
4187 else
4188 # Broken: fails on valid input.
4189 continue
4190 fi
4191 rm -f conftest.err conftest.i conftest.$ac_ext
4192
4193 # OK, works on sane cases. Now check whether nonexistent headers
4194 # can be detected and how.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <ac_nonexistent.h>
4198 _ACEOF
4199 if ac_fn_c_try_cpp "$LINENO"; then :
4200 # Broken: success on invalid input.
4201 continue
4202 else
4203 # Passes both tests.
4204 ac_preproc_ok=:
4205 break
4206 fi
4207 rm -f conftest.err conftest.i conftest.$ac_ext
4208
4209 done
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.i conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then :
4213
4214 else
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log' for more details" "$LINENO" 5; }
4219 fi
4220
4221 ac_ext=c
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4229 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4230 if ${ac_cv_path_GREP+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -z "$GREP"; then
4234 ac_path_GREP_found=false
4235 # Loop through the user's path and test for each of PROGNAME-LIST
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_prog in grep ggrep; do
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4244 as_fn_executable_p "$ac_path_GREP" || continue
4245 # Check for GNU ac_path_GREP and select it if it is found.
4246 # Check for GNU $ac_path_GREP
4247 case `"$ac_path_GREP" --version 2>&1` in
4248 *GNU*)
4249 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4250 *)
4251 ac_count=0
4252 $as_echo_n 0123456789 >"conftest.in"
4253 while :
4254 do
4255 cat "conftest.in" "conftest.in" >"conftest.tmp"
4256 mv "conftest.tmp" "conftest.in"
4257 cp "conftest.in" "conftest.nl"
4258 $as_echo 'GREP' >> "conftest.nl"
4259 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261 as_fn_arith $ac_count + 1 && ac_count=$as_val
4262 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4263 # Best one so far, save it but keep looking for a better one
4264 ac_cv_path_GREP="$ac_path_GREP"
4265 ac_path_GREP_max=$ac_count
4266 fi
4267 # 10*(2^10) chars as input seems more than enough
4268 test $ac_count -gt 10 && break
4269 done
4270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 esac
4272
4273 $ac_path_GREP_found && break 3
4274 done
4275 done
4276 done
4277 IFS=$as_save_IFS
4278 if test -z "$ac_cv_path_GREP"; then
4279 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280 fi
4281 else
4282 ac_cv_path_GREP=$GREP
4283 fi
4284
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4287 $as_echo "$ac_cv_path_GREP" >&6; }
4288 GREP="$ac_cv_path_GREP"
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4292 $as_echo_n "checking for egrep... " >&6; }
4293 if ${ac_cv_path_EGREP+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4297 then ac_cv_path_EGREP="$GREP -E"
4298 else
4299 if test -z "$EGREP"; then
4300 ac_path_EGREP_found=false
4301 # Loop through the user's path and test for each of PROGNAME-LIST
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_prog in egrep; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4310 as_fn_executable_p "$ac_path_EGREP" || continue
4311 # Check for GNU ac_path_EGREP and select it if it is found.
4312 # Check for GNU $ac_path_EGREP
4313 case `"$ac_path_EGREP" --version 2>&1` in
4314 *GNU*)
4315 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4316 *)
4317 ac_count=0
4318 $as_echo_n 0123456789 >"conftest.in"
4319 while :
4320 do
4321 cat "conftest.in" "conftest.in" >"conftest.tmp"
4322 mv "conftest.tmp" "conftest.in"
4323 cp "conftest.in" "conftest.nl"
4324 $as_echo 'EGREP' >> "conftest.nl"
4325 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327 as_fn_arith $ac_count + 1 && ac_count=$as_val
4328 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4329 # Best one so far, save it but keep looking for a better one
4330 ac_cv_path_EGREP="$ac_path_EGREP"
4331 ac_path_EGREP_max=$ac_count
4332 fi
4333 # 10*(2^10) chars as input seems more than enough
4334 test $ac_count -gt 10 && break
4335 done
4336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337 esac
4338
4339 $ac_path_EGREP_found && break 3
4340 done
4341 done
4342 done
4343 IFS=$as_save_IFS
4344 if test -z "$ac_cv_path_EGREP"; then
4345 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346 fi
4347 else
4348 ac_cv_path_EGREP=$EGREP
4349 fi
4350
4351 fi
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4354 $as_echo "$ac_cv_path_EGREP" >&6; }
4355 EGREP="$ac_cv_path_EGREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4359 $as_echo_n "checking for ANSI C header files... " >&6; }
4360 if ${ac_cv_header_stdc+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365 #include <stdlib.h>
4366 #include <stdarg.h>
4367 #include <string.h>
4368 #include <float.h>
4369
4370 int
4371 main ()
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_header_stdc=yes
4380 else
4381 ac_cv_header_stdc=no
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384
4385 if test $ac_cv_header_stdc = yes; then
4386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <string.h>
4390
4391 _ACEOF
4392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4393 $EGREP "memchr" >/dev/null 2>&1; then :
4394
4395 else
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f conftest*
4399
4400 fi
4401
4402 if test $ac_cv_header_stdc = yes; then
4403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <stdlib.h>
4407
4408 _ACEOF
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "free" >/dev/null 2>&1; then :
4411
4412 else
4413 ac_cv_header_stdc=no
4414 fi
4415 rm -f conftest*
4416
4417 fi
4418
4419 if test $ac_cv_header_stdc = yes; then
4420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4421 if test "$cross_compiling" = yes; then :
4422 :
4423 else
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <ctype.h>
4427 #include <stdlib.h>
4428 #if ((' ' & 0x0FF) == 0x020)
4429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4431 #else
4432 # define ISLOWER(c) \
4433 (('a' <= (c) && (c) <= 'i') \
4434 || ('j' <= (c) && (c) <= 'r') \
4435 || ('s' <= (c) && (c) <= 'z'))
4436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4437 #endif
4438
4439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4440 int
4441 main ()
4442 {
4443 int i;
4444 for (i = 0; i < 256; i++)
4445 if (XOR (islower (i), ISLOWER (i))
4446 || toupper (i) != TOUPPER (i))
4447 return 2;
4448 return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_c_try_run "$LINENO"; then :
4452
4453 else
4454 ac_cv_header_stdc=no
4455 fi
4456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4457 conftest.$ac_objext conftest.beam conftest.$ac_ext
4458 fi
4459
4460 fi
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4463 $as_echo "$ac_cv_header_stdc" >&6; }
4464 if test $ac_cv_header_stdc = yes; then
4465
4466 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4467
4468 fi
4469
4470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4471 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4472 inttypes.h stdint.h unistd.h
4473 do :
4474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4475 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4476 "
4477 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4478 cat >>confdefs.h <<_ACEOF
4479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4480 _ACEOF
4481
4482 fi
4483
4484 done
4485
4486
4487
4488
4489
4490
4491 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4492 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4493 CLANGCC="yes"
4494 else
4495 CLANGCC="no"
4496 fi
4497
4498 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4499 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4500 INTELCC="yes"
4501 else
4502 INTELCC="no"
4503 fi
4504
4505 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4506 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4507 SUNCC="yes"
4508 else
4509 SUNCC="no"
4510 fi
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 case $PKG_CONFIG in
4530 [\\/]* | ?:[\\/]*)
4531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4532 ;;
4533 *)
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 ;;
4550 esac
4551 fi
4552 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4553 if test -n "$PKG_CONFIG"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4555 $as_echo "$PKG_CONFIG" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 fi
4563 if test -z "$ac_cv_path_PKG_CONFIG"; then
4564 ac_pt_PKG_CONFIG=$PKG_CONFIG
4565 # Extract the first word of "pkg-config", so it can be a program name with args.
4566 set dummy pkg-config; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 case $ac_pt_PKG_CONFIG in
4573 [\\/]* | ?:[\\/]*)
4574 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4575 ;;
4576 *)
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 ;;
4593 esac
4594 fi
4595 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4596 if test -n "$ac_pt_PKG_CONFIG"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4598 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4604 if test "x$ac_pt_PKG_CONFIG" = x; then
4605 PKG_CONFIG=""
4606 else
4607 case $cross_compiling:$ac_tool_warned in
4608 yes:)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613 PKG_CONFIG=$ac_pt_PKG_CONFIG
4614 fi
4615 else
4616 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4617 fi
4618
4619 fi
4620 if test -n "$PKG_CONFIG"; then
4621 _pkg_min_version=0.9.0
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4623 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4624 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4626 $as_echo "yes" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 PKG_CONFIG=""
4631 fi
4632 fi
4633 # Make sure we can run config.sub.
4634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4635 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4638 $as_echo_n "checking build system type... " >&6; }
4639 if ${ac_cv_build+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 ac_build_alias=$build_alias
4643 test "x$ac_build_alias" = x &&
4644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4645 test "x$ac_build_alias" = x &&
4646 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4648 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4649
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4652 $as_echo "$ac_cv_build" >&6; }
4653 case $ac_cv_build in
4654 *-*-*) ;;
4655 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4656 esac
4657 build=$ac_cv_build
4658 ac_save_IFS=$IFS; IFS='-'
4659 set x $ac_cv_build
4660 shift
4661 build_cpu=$1
4662 build_vendor=$2
4663 shift; shift
4664 # Remember, the first character of IFS is used to create $*,
4665 # except with old shells:
4666 build_os=$*
4667 IFS=$ac_save_IFS
4668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4669
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4672 $as_echo_n "checking host system type... " >&6; }
4673 if ${ac_cv_host+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test "x$host_alias" = x; then
4677 ac_cv_host=$ac_cv_build
4678 else
4679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4681 fi
4682
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4685 $as_echo "$ac_cv_host" >&6; }
4686 case $ac_cv_host in
4687 *-*-*) ;;
4688 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4689 esac
4690 host=$ac_cv_host
4691 ac_save_IFS=$IFS; IFS='-'
4692 set x $ac_cv_host
4693 shift
4694 host_cpu=$1
4695 host_vendor=$2
4696 shift; shift
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4699 host_os=$*
4700 IFS=$ac_save_IFS
4701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4705 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4706 if ${ac_cv_path_SED+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4710 for ac_i in 1 2 3 4 5 6 7; do
4711 ac_script="$ac_script$as_nl$ac_script"
4712 done
4713 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4714 { ac_script=; unset ac_script;}
4715 if test -z "$SED"; then
4716 ac_path_SED_found=false
4717 # Loop through the user's path and test for each of PROGNAME-LIST
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_prog in sed gsed; do
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4726 as_fn_executable_p "$ac_path_SED" || continue
4727 # Check for GNU ac_path_SED and select it if it is found.
4728 # Check for GNU $ac_path_SED
4729 case `"$ac_path_SED" --version 2>&1` in
4730 *GNU*)
4731 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4732 *)
4733 ac_count=0
4734 $as_echo_n 0123456789 >"conftest.in"
4735 while :
4736 do
4737 cat "conftest.in" "conftest.in" >"conftest.tmp"
4738 mv "conftest.tmp" "conftest.in"
4739 cp "conftest.in" "conftest.nl"
4740 $as_echo '' >> "conftest.nl"
4741 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743 as_fn_arith $ac_count + 1 && ac_count=$as_val
4744 if test $ac_count -gt ${ac_path_SED_max-0}; then
4745 # Best one so far, save it but keep looking for a better one
4746 ac_cv_path_SED="$ac_path_SED"
4747 ac_path_SED_max=$ac_count
4748 fi
4749 # 10*(2^10) chars as input seems more than enough
4750 test $ac_count -gt 10 && break
4751 done
4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753 esac
4754
4755 $ac_path_SED_found && break 3
4756 done
4757 done
4758 done
4759 IFS=$as_save_IFS
4760 if test -z "$ac_cv_path_SED"; then
4761 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4762 fi
4763 else
4764 ac_cv_path_SED=$SED
4765 fi
4766
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4769 $as_echo "$ac_cv_path_SED" >&6; }
4770 SED="$ac_cv_path_SED"
4771 rm -f conftest.sed
4772
4773
4774
4775
4776
4777
4778 # Check whether --enable-selective-werror was given.
4779 if test "${enable_selective_werror+set}" = set; then :
4780 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4781 else
4782 SELECTIVE_WERROR=yes
4783 fi
4784
4785
4786
4787
4788
4789 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4790 if test "x$SUNCC" = "xyes"; then
4791 BASE_CFLAGS="-v"
4792 else
4793 BASE_CFLAGS=""
4794 fi
4795
4796 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810 xorg_testset_save_CFLAGS="$CFLAGS"
4811
4812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4815 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 int i;
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 xorg_cv_cc_flag_unknown_warning_option=yes
4825 else
4826 xorg_cv_cc_flag_unknown_warning_option=no
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4831 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4833 CFLAGS="$xorg_testset_save_CFLAGS"
4834 fi
4835
4836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4839 fi
4840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4842 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4848 int i;
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 xorg_cv_cc_flag_unused_command_line_argument=yes
4852 else
4853 xorg_cv_cc_flag_unused_command_line_argument=no
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4858 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4860 CFLAGS="$xorg_testset_save_CFLAGS"
4861 fi
4862
4863 found="no"
4864
4865 if test $found = "no" ; then
4866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868 fi
4869
4870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4872 fi
4873
4874 CFLAGS="$CFLAGS -Wall"
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4877 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4878 cacheid=xorg_cv_cc_flag__Wall
4879 if eval \${$cacheid+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 int i;
4885 int
4886 main ()
4887 {
4888
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_link "$LINENO"; then :
4894 eval $cacheid=yes
4895 else
4896 eval $cacheid=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext \
4899 conftest$ac_exeext conftest.$ac_ext
4900 fi
4901
4902
4903 CFLAGS="$xorg_testset_save_CFLAGS"
4904
4905 eval supported=\$$cacheid
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4907 $as_echo "$supported" >&6; }
4908 if test "$supported" = "yes" ; then
4909 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4910 found="yes"
4911 fi
4912 fi
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928 xorg_testset_save_CFLAGS="$CFLAGS"
4929
4930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4933 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4934 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 int i;
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942 xorg_cv_cc_flag_unknown_warning_option=yes
4943 else
4944 xorg_cv_cc_flag_unknown_warning_option=no
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4949 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4951 CFLAGS="$xorg_testset_save_CFLAGS"
4952 fi
4953
4954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4957 fi
4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4960 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4961 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4966 int i;
4967 _ACEOF
4968 if ac_fn_c_try_compile "$LINENO"; then :
4969 xorg_cv_cc_flag_unused_command_line_argument=yes
4970 else
4971 xorg_cv_cc_flag_unused_command_line_argument=no
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4976 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4978 CFLAGS="$xorg_testset_save_CFLAGS"
4979 fi
4980
4981 found="no"
4982
4983 if test $found = "no" ; then
4984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4986 fi
4987
4988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4990 fi
4991
4992 CFLAGS="$CFLAGS -Wpointer-arith"
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4995 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4996 cacheid=xorg_cv_cc_flag__Wpointer_arith
4997 if eval \${$cacheid+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 int i;
5003 int
5004 main ()
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_link "$LINENO"; then :
5012 eval $cacheid=yes
5013 else
5014 eval $cacheid=no
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext \
5017 conftest$ac_exeext conftest.$ac_ext
5018 fi
5019
5020
5021 CFLAGS="$xorg_testset_save_CFLAGS"
5022
5023 eval supported=\$$cacheid
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5025 $as_echo "$supported" >&6; }
5026 if test "$supported" = "yes" ; then
5027 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5028 found="yes"
5029 fi
5030 fi
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 xorg_testset_save_CFLAGS="$CFLAGS"
5047
5048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 int i;
5058 _ACEOF
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 xorg_cv_cc_flag_unknown_warning_option=yes
5061 else
5062 xorg_cv_cc_flag_unknown_warning_option=no
5063 fi
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5067 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5069 CFLAGS="$xorg_testset_save_CFLAGS"
5070 fi
5071
5072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075 fi
5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5078 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 int i;
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 xorg_cv_cc_flag_unused_command_line_argument=yes
5088 else
5089 xorg_cv_cc_flag_unused_command_line_argument=no
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5094 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5096 CFLAGS="$xorg_testset_save_CFLAGS"
5097 fi
5098
5099 found="no"
5100
5101 if test $found = "no" ; then
5102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5104 fi
5105
5106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5108 fi
5109
5110 CFLAGS="$CFLAGS -Wmissing-declarations"
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5113 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5114 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5115 if eval \${$cacheid+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 int i;
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_link "$LINENO"; then :
5130 eval $cacheid=yes
5131 else
5132 eval $cacheid=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext \
5135 conftest$ac_exeext conftest.$ac_ext
5136 fi
5137
5138
5139 CFLAGS="$xorg_testset_save_CFLAGS"
5140
5141 eval supported=\$$cacheid
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5143 $as_echo "$supported" >&6; }
5144 if test "$supported" = "yes" ; then
5145 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5146 found="yes"
5147 fi
5148 fi
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 xorg_testset_save_CFLAGS="$CFLAGS"
5165
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5169 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5170 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 int i;
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 xorg_cv_cc_flag_unknown_warning_option=yes
5179 else
5180 xorg_cv_cc_flag_unknown_warning_option=no
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5185 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5187 CFLAGS="$xorg_testset_save_CFLAGS"
5188 fi
5189
5190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5193 fi
5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5196 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5197 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int i;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 xorg_cv_cc_flag_unused_command_line_argument=yes
5206 else
5207 xorg_cv_cc_flag_unused_command_line_argument=no
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5212 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5214 CFLAGS="$xorg_testset_save_CFLAGS"
5215 fi
5216
5217 found="no"
5218
5219 if test $found = "no" ; then
5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222 fi
5223
5224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5226 fi
5227
5228 CFLAGS="$CFLAGS -Wformat=2"
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5231 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5232 cacheid=xorg_cv_cc_flag__Wformat_2
5233 if eval \${$cacheid+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 int i;
5239 int
5240 main ()
5241 {
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_link "$LINENO"; then :
5248 eval $cacheid=yes
5249 else
5250 eval $cacheid=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 fi
5255
5256
5257 CFLAGS="$xorg_testset_save_CFLAGS"
5258
5259 eval supported=\$$cacheid
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5261 $as_echo "$supported" >&6; }
5262 if test "$supported" = "yes" ; then
5263 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5264 found="yes"
5265 fi
5266 fi
5267
5268 if test $found = "no" ; then
5269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271 fi
5272
5273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275 fi
5276
5277 CFLAGS="$CFLAGS -Wformat"
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5280 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5281 cacheid=xorg_cv_cc_flag__Wformat
5282 if eval \${$cacheid+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 int i;
5288 int
5289 main ()
5290 {
5291
5292 ;
5293 return 0;
5294 }
5295 _ACEOF
5296 if ac_fn_c_try_link "$LINENO"; then :
5297 eval $cacheid=yes
5298 else
5299 eval $cacheid=no
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext \
5302 conftest$ac_exeext conftest.$ac_ext
5303 fi
5304
5305
5306 CFLAGS="$xorg_testset_save_CFLAGS"
5307
5308 eval supported=\$$cacheid
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5310 $as_echo "$supported" >&6; }
5311 if test "$supported" = "yes" ; then
5312 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5313 found="yes"
5314 fi
5315 fi
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 xorg_testset_save_CFLAGS="$CFLAGS"
5334
5335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5338 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5339 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 int i;
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 xorg_cv_cc_flag_unknown_warning_option=yes
5348 else
5349 xorg_cv_cc_flag_unknown_warning_option=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5354 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5356 CFLAGS="$xorg_testset_save_CFLAGS"
5357 fi
5358
5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362 fi
5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5365 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5366 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 int i;
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 xorg_cv_cc_flag_unused_command_line_argument=yes
5375 else
5376 xorg_cv_cc_flag_unused_command_line_argument=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5381 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5383 CFLAGS="$xorg_testset_save_CFLAGS"
5384 fi
5385
5386 found="no"
5387
5388 if test $found = "no" ; then
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 fi
5392
5393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5395 fi
5396
5397 CFLAGS="$CFLAGS -Wstrict-prototypes"
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5400 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5401 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5402 if eval \${$cacheid+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 int i;
5408 int
5409 main ()
5410 {
5411
5412 ;
5413 return 0;
5414 }
5415 _ACEOF
5416 if ac_fn_c_try_link "$LINENO"; then :
5417 eval $cacheid=yes
5418 else
5419 eval $cacheid=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext \
5422 conftest$ac_exeext conftest.$ac_ext
5423 fi
5424
5425
5426 CFLAGS="$xorg_testset_save_CFLAGS"
5427
5428 eval supported=\$$cacheid
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5430 $as_echo "$supported" >&6; }
5431 if test "$supported" = "yes" ; then
5432 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5433 found="yes"
5434 fi
5435 fi
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 xorg_testset_save_CFLAGS="$CFLAGS"
5452
5453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5456 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5457 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 int i;
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465 xorg_cv_cc_flag_unknown_warning_option=yes
5466 else
5467 xorg_cv_cc_flag_unknown_warning_option=no
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5472 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5474 CFLAGS="$xorg_testset_save_CFLAGS"
5475 fi
5476
5477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480 fi
5481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5483 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5484 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 int i;
5490 _ACEOF
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 xorg_cv_cc_flag_unused_command_line_argument=yes
5493 else
5494 xorg_cv_cc_flag_unused_command_line_argument=no
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5499 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5501 CFLAGS="$xorg_testset_save_CFLAGS"
5502 fi
5503
5504 found="no"
5505
5506 if test $found = "no" ; then
5507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509 fi
5510
5511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5513 fi
5514
5515 CFLAGS="$CFLAGS -Wmissing-prototypes"
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5518 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5519 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5520 if eval \${$cacheid+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 int i;
5526 int
5527 main ()
5528 {
5529
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 if ac_fn_c_try_link "$LINENO"; then :
5535 eval $cacheid=yes
5536 else
5537 eval $cacheid=no
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541 fi
5542
5543
5544 CFLAGS="$xorg_testset_save_CFLAGS"
5545
5546 eval supported=\$$cacheid
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5548 $as_echo "$supported" >&6; }
5549 if test "$supported" = "yes" ; then
5550 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5551 found="yes"
5552 fi
5553 fi
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 xorg_testset_save_CFLAGS="$CFLAGS"
5570
5571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5574 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5575 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 int i;
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 xorg_cv_cc_flag_unknown_warning_option=yes
5584 else
5585 xorg_cv_cc_flag_unknown_warning_option=no
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5590 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5592 CFLAGS="$xorg_testset_save_CFLAGS"
5593 fi
5594
5595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5598 fi
5599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5601 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5602 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 int i;
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610 xorg_cv_cc_flag_unused_command_line_argument=yes
5611 else
5612 xorg_cv_cc_flag_unused_command_line_argument=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5617 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5619 CFLAGS="$xorg_testset_save_CFLAGS"
5620 fi
5621
5622 found="no"
5623
5624 if test $found = "no" ; then
5625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627 fi
5628
5629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5631 fi
5632
5633 CFLAGS="$CFLAGS -Wnested-externs"
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5636 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5637 cacheid=xorg_cv_cc_flag__Wnested_externs
5638 if eval \${$cacheid+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 int i;
5644 int
5645 main ()
5646 {
5647
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 eval $cacheid=yes
5654 else
5655 eval $cacheid=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659 fi
5660
5661
5662 CFLAGS="$xorg_testset_save_CFLAGS"
5663
5664 eval supported=\$$cacheid
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5666 $as_echo "$supported" >&6; }
5667 if test "$supported" = "yes" ; then
5668 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5669 found="yes"
5670 fi
5671 fi
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687 xorg_testset_save_CFLAGS="$CFLAGS"
5688
5689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5692 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5693 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 int i;
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 xorg_cv_cc_flag_unknown_warning_option=yes
5702 else
5703 xorg_cv_cc_flag_unknown_warning_option=no
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5708 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5710 CFLAGS="$xorg_testset_save_CFLAGS"
5711 fi
5712
5713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5716 fi
5717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5719 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5720 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 int i;
5726 _ACEOF
5727 if ac_fn_c_try_compile "$LINENO"; then :
5728 xorg_cv_cc_flag_unused_command_line_argument=yes
5729 else
5730 xorg_cv_cc_flag_unused_command_line_argument=no
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5735 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5737 CFLAGS="$xorg_testset_save_CFLAGS"
5738 fi
5739
5740 found="no"
5741
5742 if test $found = "no" ; then
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 fi
5746
5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5749 fi
5750
5751 CFLAGS="$CFLAGS -Wbad-function-cast"
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5754 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5755 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5756 if eval \${$cacheid+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 int i;
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_link "$LINENO"; then :
5771 eval $cacheid=yes
5772 else
5773 eval $cacheid=no
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext \
5776 conftest$ac_exeext conftest.$ac_ext
5777 fi
5778
5779
5780 CFLAGS="$xorg_testset_save_CFLAGS"
5781
5782 eval supported=\$$cacheid
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5784 $as_echo "$supported" >&6; }
5785 if test "$supported" = "yes" ; then
5786 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5787 found="yes"
5788 fi
5789 fi
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 xorg_testset_save_CFLAGS="$CFLAGS"
5806
5807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5810 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5811 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 int i;
5817 _ACEOF
5818 if ac_fn_c_try_compile "$LINENO"; then :
5819 xorg_cv_cc_flag_unknown_warning_option=yes
5820 else
5821 xorg_cv_cc_flag_unknown_warning_option=no
5822 fi
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5826 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5828 CFLAGS="$xorg_testset_save_CFLAGS"
5829 fi
5830
5831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5834 fi
5835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5837 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5838 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"; then :
5846 xorg_cv_cc_flag_unused_command_line_argument=yes
5847 else
5848 xorg_cv_cc_flag_unused_command_line_argument=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5853 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5855 CFLAGS="$xorg_testset_save_CFLAGS"
5856 fi
5857
5858 found="no"
5859
5860 if test $found = "no" ; then
5861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863 fi
5864
5865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5867 fi
5868
5869 CFLAGS="$CFLAGS -Wold-style-definition"
5870
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5872 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5873 cacheid=xorg_cv_cc_flag__Wold_style_definition
5874 if eval \${$cacheid+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 int i;
5880 int
5881 main ()
5882 {
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_link "$LINENO"; then :
5889 eval $cacheid=yes
5890 else
5891 eval $cacheid=no
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 fi
5896
5897
5898 CFLAGS="$xorg_testset_save_CFLAGS"
5899
5900 eval supported=\$$cacheid
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5902 $as_echo "$supported" >&6; }
5903 if test "$supported" = "yes" ; then
5904 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5905 found="yes"
5906 fi
5907 fi
5908
5909 if test $found = "no" ; then
5910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5912 fi
5913
5914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5916 fi
5917
5918 CFLAGS="$CFLAGS -fd"
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5921 $as_echo_n "checking if $CC supports -fd... " >&6; }
5922 cacheid=xorg_cv_cc_flag__fd
5923 if eval \${$cacheid+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 int i;
5929 int
5930 main ()
5931 {
5932
5933 ;
5934 return 0;
5935 }
5936 _ACEOF
5937 if ac_fn_c_try_link "$LINENO"; then :
5938 eval $cacheid=yes
5939 else
5940 eval $cacheid=no
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
5944 fi
5945
5946
5947 CFLAGS="$xorg_testset_save_CFLAGS"
5948
5949 eval supported=\$$cacheid
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5951 $as_echo "$supported" >&6; }
5952 if test "$supported" = "yes" ; then
5953 BASE_CFLAGS="$BASE_CFLAGS -fd"
5954 found="yes"
5955 fi
5956 fi
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 xorg_testset_save_CFLAGS="$CFLAGS"
5973
5974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5977 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5978 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 int i;
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 xorg_cv_cc_flag_unknown_warning_option=yes
5987 else
5988 xorg_cv_cc_flag_unknown_warning_option=no
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5993 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5995 CFLAGS="$xorg_testset_save_CFLAGS"
5996 fi
5997
5998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001 fi
6002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6004 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6005 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 int i;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 xorg_cv_cc_flag_unused_command_line_argument=yes
6014 else
6015 xorg_cv_cc_flag_unused_command_line_argument=no
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6020 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6022 CFLAGS="$xorg_testset_save_CFLAGS"
6023 fi
6024
6025 found="no"
6026
6027 if test $found = "no" ; then
6028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030 fi
6031
6032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034 fi
6035
6036 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6039 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6040 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6041 if eval \${$cacheid+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int i;
6047 int
6048 main ()
6049 {
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"; then :
6056 eval $cacheid=yes
6057 else
6058 eval $cacheid=no
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 fi
6063
6064
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6066
6067 eval supported=\$$cacheid
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6069 $as_echo "$supported" >&6; }
6070 if test "$supported" = "yes" ; then
6071 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6072 found="yes"
6073 fi
6074 fi
6075
6076
6077
6078
6079
6080 # This chunk adds additional warnings that could catch undesired effects.
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094 xorg_testset_save_CFLAGS="$CFLAGS"
6095
6096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6099 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6100 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 int i;
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 xorg_cv_cc_flag_unknown_warning_option=yes
6109 else
6110 xorg_cv_cc_flag_unknown_warning_option=no
6111 fi
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6115 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6117 CFLAGS="$xorg_testset_save_CFLAGS"
6118 fi
6119
6120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6123 fi
6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6126 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6127 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"; then :
6135 xorg_cv_cc_flag_unused_command_line_argument=yes
6136 else
6137 xorg_cv_cc_flag_unused_command_line_argument=no
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 fi
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6142 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6144 CFLAGS="$xorg_testset_save_CFLAGS"
6145 fi
6146
6147 found="no"
6148
6149 if test $found = "no" ; then
6150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152 fi
6153
6154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156 fi
6157
6158 CFLAGS="$CFLAGS -Wunused"
6159
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6161 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6162 cacheid=xorg_cv_cc_flag__Wunused
6163 if eval \${$cacheid+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 int i;
6169 int
6170 main ()
6171 {
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"; then :
6178 eval $cacheid=yes
6179 else
6180 eval $cacheid=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 fi
6185
6186
6187 CFLAGS="$xorg_testset_save_CFLAGS"
6188
6189 eval supported=\$$cacheid
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6191 $as_echo "$supported" >&6; }
6192 if test "$supported" = "yes" ; then
6193 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6194 found="yes"
6195 fi
6196 fi
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 xorg_testset_save_CFLAGS="$CFLAGS"
6213
6214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6217 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6218 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 int i;
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6226 xorg_cv_cc_flag_unknown_warning_option=yes
6227 else
6228 xorg_cv_cc_flag_unknown_warning_option=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6233 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6235 CFLAGS="$xorg_testset_save_CFLAGS"
6236 fi
6237
6238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6241 fi
6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6244 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6245 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 int i;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 xorg_cv_cc_flag_unused_command_line_argument=yes
6254 else
6255 xorg_cv_cc_flag_unused_command_line_argument=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6260 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6262 CFLAGS="$xorg_testset_save_CFLAGS"
6263 fi
6264
6265 found="no"
6266
6267 if test $found = "no" ; then
6268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270 fi
6271
6272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6274 fi
6275
6276 CFLAGS="$CFLAGS -Wuninitialized"
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6279 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6280 cacheid=xorg_cv_cc_flag__Wuninitialized
6281 if eval \${$cacheid+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 int i;
6287 int
6288 main ()
6289 {
6290
6291 ;
6292 return 0;
6293 }
6294 _ACEOF
6295 if ac_fn_c_try_link "$LINENO"; then :
6296 eval $cacheid=yes
6297 else
6298 eval $cacheid=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext \
6301 conftest$ac_exeext conftest.$ac_ext
6302 fi
6303
6304
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6306
6307 eval supported=\$$cacheid
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6309 $as_echo "$supported" >&6; }
6310 if test "$supported" = "yes" ; then
6311 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6312 found="yes"
6313 fi
6314 fi
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 xorg_testset_save_CFLAGS="$CFLAGS"
6331
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 int i;
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 xorg_cv_cc_flag_unknown_warning_option=yes
6345 else
6346 xorg_cv_cc_flag_unknown_warning_option=no
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6353 CFLAGS="$xorg_testset_save_CFLAGS"
6354 fi
6355
6356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6359 fi
6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 int i;
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"; then :
6371 xorg_cv_cc_flag_unused_command_line_argument=yes
6372 else
6373 xorg_cv_cc_flag_unused_command_line_argument=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381 fi
6382
6383 found="no"
6384
6385 if test $found = "no" ; then
6386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388 fi
6389
6390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392 fi
6393
6394 CFLAGS="$CFLAGS -Wshadow"
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6397 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6398 cacheid=xorg_cv_cc_flag__Wshadow
6399 if eval \${$cacheid+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 int i;
6405 int
6406 main ()
6407 {
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_link "$LINENO"; then :
6414 eval $cacheid=yes
6415 else
6416 eval $cacheid=no
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6420 fi
6421
6422
6423 CFLAGS="$xorg_testset_save_CFLAGS"
6424
6425 eval supported=\$$cacheid
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6427 $as_echo "$supported" >&6; }
6428 if test "$supported" = "yes" ; then
6429 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6430 found="yes"
6431 fi
6432 fi
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 xorg_testset_save_CFLAGS="$CFLAGS"
6449
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 int i;
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 xorg_cv_cc_flag_unknown_warning_option=yes
6463 else
6464 xorg_cv_cc_flag_unknown_warning_option=no
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6471 CFLAGS="$xorg_testset_save_CFLAGS"
6472 fi
6473
6474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477 fi
6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 int i;
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 xorg_cv_cc_flag_unused_command_line_argument=yes
6490 else
6491 xorg_cv_cc_flag_unused_command_line_argument=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6498 CFLAGS="$xorg_testset_save_CFLAGS"
6499 fi
6500
6501 found="no"
6502
6503 if test $found = "no" ; then
6504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506 fi
6507
6508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6510 fi
6511
6512 CFLAGS="$CFLAGS -Wmissing-noreturn"
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6515 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6516 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6517 if eval \${$cacheid+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 int i;
6523 int
6524 main ()
6525 {
6526
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_c_try_link "$LINENO"; then :
6532 eval $cacheid=yes
6533 else
6534 eval $cacheid=no
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext \
6537 conftest$ac_exeext conftest.$ac_ext
6538 fi
6539
6540
6541 CFLAGS="$xorg_testset_save_CFLAGS"
6542
6543 eval supported=\$$cacheid
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6545 $as_echo "$supported" >&6; }
6546 if test "$supported" = "yes" ; then
6547 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6548 found="yes"
6549 fi
6550 fi
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566 xorg_testset_save_CFLAGS="$CFLAGS"
6567
6568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 int i;
6578 _ACEOF
6579 if ac_fn_c_try_compile "$LINENO"; then :
6580 xorg_cv_cc_flag_unknown_warning_option=yes
6581 else
6582 xorg_cv_cc_flag_unknown_warning_option=no
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6589 CFLAGS="$xorg_testset_save_CFLAGS"
6590 fi
6591
6592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595 fi
6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int i;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"; then :
6607 xorg_cv_cc_flag_unused_command_line_argument=yes
6608 else
6609 xorg_cv_cc_flag_unused_command_line_argument=no
6610 fi
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 fi
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6616 CFLAGS="$xorg_testset_save_CFLAGS"
6617 fi
6618
6619 found="no"
6620
6621 if test $found = "no" ; then
6622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624 fi
6625
6626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6628 fi
6629
6630 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6631
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6633 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6634 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6635 if eval \${$cacheid+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640 int i;
6641 int
6642 main ()
6643 {
6644
6645 ;
6646 return 0;
6647 }
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 eval $cacheid=yes
6651 else
6652 eval $cacheid=no
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 fi
6657
6658
6659 CFLAGS="$xorg_testset_save_CFLAGS"
6660
6661 eval supported=\$$cacheid
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6663 $as_echo "$supported" >&6; }
6664 if test "$supported" = "yes" ; then
6665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6666 found="yes"
6667 fi
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684 xorg_testset_save_CFLAGS="$CFLAGS"
6685
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 int i;
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698 xorg_cv_cc_flag_unknown_warning_option=yes
6699 else
6700 xorg_cv_cc_flag_unknown_warning_option=no
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6707 CFLAGS="$xorg_testset_save_CFLAGS"
6708 fi
6709
6710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713 fi
6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 int i;
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 xorg_cv_cc_flag_unused_command_line_argument=yes
6726 else
6727 xorg_cv_cc_flag_unused_command_line_argument=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6734 CFLAGS="$xorg_testset_save_CFLAGS"
6735 fi
6736
6737 found="no"
6738
6739 if test $found = "no" ; then
6740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6742 fi
6743
6744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6746 fi
6747
6748 CFLAGS="$CFLAGS -Wredundant-decls"
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6751 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6752 cacheid=xorg_cv_cc_flag__Wredundant_decls
6753 if eval \${$cacheid+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 int i;
6759 int
6760 main ()
6761 {
6762
6763 ;
6764 return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_link "$LINENO"; then :
6768 eval $cacheid=yes
6769 else
6770 eval $cacheid=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext \
6773 conftest$ac_exeext conftest.$ac_ext
6774 fi
6775
6776
6777 CFLAGS="$xorg_testset_save_CFLAGS"
6778
6779 eval supported=\$$cacheid
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6781 $as_echo "$supported" >&6; }
6782 if test "$supported" = "yes" ; then
6783 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6784 found="yes"
6785 fi
6786 fi
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802 xorg_testset_save_CFLAGS="$CFLAGS"
6803
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6807 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6808 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 int i;
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 xorg_cv_cc_flag_unknown_warning_option=yes
6817 else
6818 xorg_cv_cc_flag_unknown_warning_option=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6826 fi
6827
6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831 fi
6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 int i;
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 xorg_cv_cc_flag_unused_command_line_argument=yes
6844 else
6845 xorg_cv_cc_flag_unused_command_line_argument=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 fi
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6850 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853 fi
6854
6855 found="no"
6856
6857 if test $found = "no" ; then
6858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860 fi
6861
6862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6864 fi
6865
6866 CFLAGS="$CFLAGS -Wlogical-op"
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6869 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6870 cacheid=xorg_cv_cc_flag__Wlogical_op
6871 if eval \${$cacheid+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 int i;
6877 int
6878 main ()
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886 eval $cacheid=yes
6887 else
6888 eval $cacheid=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 fi
6893
6894
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897 eval supported=\$$cacheid
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899 $as_echo "$supported" >&6; }
6900 if test "$supported" = "yes" ; then
6901 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6902 found="yes"
6903 fi
6904 fi
6905
6906
6907
6908 # These are currently disabled because they are noisy. They will be enabled
6909 # in the future once the codebase is sufficiently modernized to silence
6910 # them. For now, I don't want them to drown out the other warnings.
6911 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6912 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6913 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6914
6915 # Turn some warnings into errors, so we don't accidently get successful builds
6916 # when there are problems that should be fixed.
6917
6918 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 xorg_testset_save_CFLAGS="$CFLAGS"
6933
6934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943 int i;
6944 _ACEOF
6945 if ac_fn_c_try_compile "$LINENO"; then :
6946 xorg_cv_cc_flag_unknown_warning_option=yes
6947 else
6948 xorg_cv_cc_flag_unknown_warning_option=no
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6955 CFLAGS="$xorg_testset_save_CFLAGS"
6956 fi
6957
6958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6961 fi
6962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 int i;
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 xorg_cv_cc_flag_unused_command_line_argument=yes
6974 else
6975 xorg_cv_cc_flag_unused_command_line_argument=no
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 fi
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6982 CFLAGS="$xorg_testset_save_CFLAGS"
6983 fi
6984
6985 found="no"
6986
6987 if test $found = "no" ; then
6988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990 fi
6991
6992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994 fi
6995
6996 CFLAGS="$CFLAGS -Werror=implicit"
6997
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6999 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7000 cacheid=xorg_cv_cc_flag__Werror_implicit
7001 if eval \${$cacheid+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 int i;
7007 int
7008 main ()
7009 {
7010
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 eval $cacheid=yes
7017 else
7018 eval $cacheid=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022 fi
7023
7024
7025 CFLAGS="$xorg_testset_save_CFLAGS"
7026
7027 eval supported=\$$cacheid
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7029 $as_echo "$supported" >&6; }
7030 if test "$supported" = "yes" ; then
7031 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7032 found="yes"
7033 fi
7034 fi
7035
7036 if test $found = "no" ; then
7037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039 fi
7040
7041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043 fi
7044
7045 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7046
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7048 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7049 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7050 if eval \${$cacheid+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 int i;
7056 int
7057 main ()
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_link "$LINENO"; then :
7065 eval $cacheid=yes
7066 else
7067 eval $cacheid=no
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 fi
7072
7073
7074 CFLAGS="$xorg_testset_save_CFLAGS"
7075
7076 eval supported=\$$cacheid
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7078 $as_echo "$supported" >&6; }
7079 if test "$supported" = "yes" ; then
7080 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7081 found="yes"
7082 fi
7083 fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 xorg_testset_save_CFLAGS="$CFLAGS"
7100
7101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7104 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7105 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 int i;
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 xorg_cv_cc_flag_unknown_warning_option=yes
7114 else
7115 xorg_cv_cc_flag_unknown_warning_option=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7120 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7122 CFLAGS="$xorg_testset_save_CFLAGS"
7123 fi
7124
7125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128 fi
7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7131 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7132 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 int i;
7138 _ACEOF
7139 if ac_fn_c_try_compile "$LINENO"; then :
7140 xorg_cv_cc_flag_unused_command_line_argument=yes
7141 else
7142 xorg_cv_cc_flag_unused_command_line_argument=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 fi
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7147 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7149 CFLAGS="$xorg_testset_save_CFLAGS"
7150 fi
7151
7152 found="no"
7153
7154 if test $found = "no" ; then
7155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157 fi
7158
7159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7161 fi
7162
7163 CFLAGS="$CFLAGS -Werror=nonnull"
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7166 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7167 cacheid=xorg_cv_cc_flag__Werror_nonnull
7168 if eval \${$cacheid+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 int i;
7174 int
7175 main ()
7176 {
7177
7178 ;
7179 return 0;
7180 }
7181 _ACEOF
7182 if ac_fn_c_try_link "$LINENO"; then :
7183 eval $cacheid=yes
7184 else
7185 eval $cacheid=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7189 fi
7190
7191
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7193
7194 eval supported=\$$cacheid
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7196 $as_echo "$supported" >&6; }
7197 if test "$supported" = "yes" ; then
7198 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7199 found="yes"
7200 fi
7201 fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217 xorg_testset_save_CFLAGS="$CFLAGS"
7218
7219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7222 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7223 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 int i;
7229 _ACEOF
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 xorg_cv_cc_flag_unknown_warning_option=yes
7232 else
7233 xorg_cv_cc_flag_unknown_warning_option=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7238 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7240 CFLAGS="$xorg_testset_save_CFLAGS"
7241 fi
7242
7243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246 fi
7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7249 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7250 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 int i;
7256 _ACEOF
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 xorg_cv_cc_flag_unused_command_line_argument=yes
7259 else
7260 xorg_cv_cc_flag_unused_command_line_argument=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 fi
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7265 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7267 CFLAGS="$xorg_testset_save_CFLAGS"
7268 fi
7269
7270 found="no"
7271
7272 if test $found = "no" ; then
7273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275 fi
7276
7277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279 fi
7280
7281 CFLAGS="$CFLAGS -Werror=init-self"
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7284 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7285 cacheid=xorg_cv_cc_flag__Werror_init_self
7286 if eval \${$cacheid+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 int i;
7292 int
7293 main ()
7294 {
7295
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 if ac_fn_c_try_link "$LINENO"; then :
7301 eval $cacheid=yes
7302 else
7303 eval $cacheid=no
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7307 fi
7308
7309
7310 CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312 eval supported=\$$cacheid
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314 $as_echo "$supported" >&6; }
7315 if test "$supported" = "yes" ; then
7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7317 found="yes"
7318 fi
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 xorg_testset_save_CFLAGS="$CFLAGS"
7336
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 int i;
7347 _ACEOF
7348 if ac_fn_c_try_compile "$LINENO"; then :
7349 xorg_cv_cc_flag_unknown_warning_option=yes
7350 else
7351 xorg_cv_cc_flag_unknown_warning_option=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 fi
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7356 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7358 CFLAGS="$xorg_testset_save_CFLAGS"
7359 fi
7360
7361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364 fi
7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7367 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7368 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 int i;
7374 _ACEOF
7375 if ac_fn_c_try_compile "$LINENO"; then :
7376 xorg_cv_cc_flag_unused_command_line_argument=yes
7377 else
7378 xorg_cv_cc_flag_unused_command_line_argument=no
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7383 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7385 CFLAGS="$xorg_testset_save_CFLAGS"
7386 fi
7387
7388 found="no"
7389
7390 if test $found = "no" ; then
7391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393 fi
7394
7395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397 fi
7398
7399 CFLAGS="$CFLAGS -Werror=main"
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7402 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7403 cacheid=xorg_cv_cc_flag__Werror_main
7404 if eval \${$cacheid+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7409 int i;
7410 int
7411 main ()
7412 {
7413
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_link "$LINENO"; then :
7419 eval $cacheid=yes
7420 else
7421 eval $cacheid=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 fi
7426
7427
7428 CFLAGS="$xorg_testset_save_CFLAGS"
7429
7430 eval supported=\$$cacheid
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7432 $as_echo "$supported" >&6; }
7433 if test "$supported" = "yes" ; then
7434 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7435 found="yes"
7436 fi
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453 xorg_testset_save_CFLAGS="$CFLAGS"
7454
7455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7458 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7459 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 int i;
7465 _ACEOF
7466 if ac_fn_c_try_compile "$LINENO"; then :
7467 xorg_cv_cc_flag_unknown_warning_option=yes
7468 else
7469 xorg_cv_cc_flag_unknown_warning_option=no
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 fi
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7474 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7476 CFLAGS="$xorg_testset_save_CFLAGS"
7477 fi
7478
7479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482 fi
7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7485 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7486 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 int i;
7492 _ACEOF
7493 if ac_fn_c_try_compile "$LINENO"; then :
7494 xorg_cv_cc_flag_unused_command_line_argument=yes
7495 else
7496 xorg_cv_cc_flag_unused_command_line_argument=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499 fi
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7501 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7503 CFLAGS="$xorg_testset_save_CFLAGS"
7504 fi
7505
7506 found="no"
7507
7508 if test $found = "no" ; then
7509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511 fi
7512
7513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515 fi
7516
7517 CFLAGS="$CFLAGS -Werror=missing-braces"
7518
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7520 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7521 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7522 if eval \${$cacheid+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 int i;
7528 int
7529 main ()
7530 {
7531
7532 ;
7533 return 0;
7534 }
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"; then :
7537 eval $cacheid=yes
7538 else
7539 eval $cacheid=no
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 fi
7544
7545
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547
7548 eval supported=\$$cacheid
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7550 $as_echo "$supported" >&6; }
7551 if test "$supported" = "yes" ; then
7552 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7553 found="yes"
7554 fi
7555 fi
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571 xorg_testset_save_CFLAGS="$CFLAGS"
7572
7573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7576 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7577 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 int i;
7583 _ACEOF
7584 if ac_fn_c_try_compile "$LINENO"; then :
7585 xorg_cv_cc_flag_unknown_warning_option=yes
7586 else
7587 xorg_cv_cc_flag_unknown_warning_option=no
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7592 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7594 CFLAGS="$xorg_testset_save_CFLAGS"
7595 fi
7596
7597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7600 fi
7601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7604 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 int i;
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7612 xorg_cv_cc_flag_unused_command_line_argument=yes
7613 else
7614 xorg_cv_cc_flag_unused_command_line_argument=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 fi
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7619 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7621 CFLAGS="$xorg_testset_save_CFLAGS"
7622 fi
7623
7624 found="no"
7625
7626 if test $found = "no" ; then
7627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629 fi
7630
7631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7633 fi
7634
7635 CFLAGS="$CFLAGS -Werror=sequence-point"
7636
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7638 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7639 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7640 if eval \${$cacheid+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 int i;
7646 int
7647 main ()
7648 {
7649
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 eval $cacheid=yes
7656 else
7657 eval $cacheid=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661 fi
7662
7663
7664 CFLAGS="$xorg_testset_save_CFLAGS"
7665
7666 eval supported=\$$cacheid
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7668 $as_echo "$supported" >&6; }
7669 if test "$supported" = "yes" ; then
7670 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7671 found="yes"
7672 fi
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 xorg_testset_save_CFLAGS="$CFLAGS"
7690
7691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7694 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7695 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 int i;
7701 _ACEOF
7702 if ac_fn_c_try_compile "$LINENO"; then :
7703 xorg_cv_cc_flag_unknown_warning_option=yes
7704 else
7705 xorg_cv_cc_flag_unknown_warning_option=no
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 fi
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7710 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7712 CFLAGS="$xorg_testset_save_CFLAGS"
7713 fi
7714
7715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7718 fi
7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7721 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7722 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 int i;
7728 _ACEOF
7729 if ac_fn_c_try_compile "$LINENO"; then :
7730 xorg_cv_cc_flag_unused_command_line_argument=yes
7731 else
7732 xorg_cv_cc_flag_unused_command_line_argument=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7737 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740 fi
7741
7742 found="no"
7743
7744 if test $found = "no" ; then
7745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747 fi
7748
7749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7751 fi
7752
7753 CFLAGS="$CFLAGS -Werror=return-type"
7754
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7756 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7757 cacheid=xorg_cv_cc_flag__Werror_return_type
7758 if eval \${$cacheid+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 int i;
7764 int
7765 main ()
7766 {
7767
7768 ;
7769 return 0;
7770 }
7771 _ACEOF
7772 if ac_fn_c_try_link "$LINENO"; then :
7773 eval $cacheid=yes
7774 else
7775 eval $cacheid=no
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779 fi
7780
7781
7782 CFLAGS="$xorg_testset_save_CFLAGS"
7783
7784 eval supported=\$$cacheid
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7786 $as_echo "$supported" >&6; }
7787 if test "$supported" = "yes" ; then
7788 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7789 found="yes"
7790 fi
7791 fi
7792
7793 if test $found = "no" ; then
7794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796 fi
7797
7798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800 fi
7801
7802 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7805 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7806 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7807 if eval \${$cacheid+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 int i;
7813 int
7814 main ()
7815 {
7816
7817 ;
7818 return 0;
7819 }
7820 _ACEOF
7821 if ac_fn_c_try_link "$LINENO"; then :
7822 eval $cacheid=yes
7823 else
7824 eval $cacheid=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7828 fi
7829
7830
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833 eval supported=\$$cacheid
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835 $as_echo "$supported" >&6; }
7836 if test "$supported" = "yes" ; then
7837 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7838 found="yes"
7839 fi
7840 fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856 xorg_testset_save_CFLAGS="$CFLAGS"
7857
7858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 int i;
7868 _ACEOF
7869 if ac_fn_c_try_compile "$LINENO"; then :
7870 xorg_cv_cc_flag_unknown_warning_option=yes
7871 else
7872 xorg_cv_cc_flag_unknown_warning_option=no
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7879 CFLAGS="$xorg_testset_save_CFLAGS"
7880 fi
7881
7882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885 fi
7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 int i;
7895 _ACEOF
7896 if ac_fn_c_try_compile "$LINENO"; then :
7897 xorg_cv_cc_flag_unused_command_line_argument=yes
7898 else
7899 xorg_cv_cc_flag_unused_command_line_argument=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 fi
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7906 CFLAGS="$xorg_testset_save_CFLAGS"
7907 fi
7908
7909 found="no"
7910
7911 if test $found = "no" ; then
7912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914 fi
7915
7916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918 fi
7919
7920 CFLAGS="$CFLAGS -Werror=trigraphs"
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7923 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7924 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7925 if eval \${$cacheid+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930 int i;
7931 int
7932 main ()
7933 {
7934
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_link "$LINENO"; then :
7940 eval $cacheid=yes
7941 else
7942 eval $cacheid=no
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext \
7945 conftest$ac_exeext conftest.$ac_ext
7946 fi
7947
7948
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7950
7951 eval supported=\$$cacheid
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953 $as_echo "$supported" >&6; }
7954 if test "$supported" = "yes" ; then
7955 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7956 found="yes"
7957 fi
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974 xorg_testset_save_CFLAGS="$CFLAGS"
7975
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 int i;
7986 _ACEOF
7987 if ac_fn_c_try_compile "$LINENO"; then :
7988 xorg_cv_cc_flag_unknown_warning_option=yes
7989 else
7990 xorg_cv_cc_flag_unknown_warning_option=no
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7997 CFLAGS="$xorg_testset_save_CFLAGS"
7998 fi
7999
8000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8003 fi
8004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 int i;
8013 _ACEOF
8014 if ac_fn_c_try_compile "$LINENO"; then :
8015 xorg_cv_cc_flag_unused_command_line_argument=yes
8016 else
8017 xorg_cv_cc_flag_unused_command_line_argument=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8024 CFLAGS="$xorg_testset_save_CFLAGS"
8025 fi
8026
8027 found="no"
8028
8029 if test $found = "no" ; then
8030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032 fi
8033
8034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036 fi
8037
8038 CFLAGS="$CFLAGS -Werror=array-bounds"
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8041 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8042 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8043 if eval \${$cacheid+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 int i;
8049 int
8050 main ()
8051 {
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_link "$LINENO"; then :
8058 eval $cacheid=yes
8059 else
8060 eval $cacheid=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 fi
8065
8066
8067 CFLAGS="$xorg_testset_save_CFLAGS"
8068
8069 eval supported=\$$cacheid
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8071 $as_echo "$supported" >&6; }
8072 if test "$supported" = "yes" ; then
8073 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8074 found="yes"
8075 fi
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092 xorg_testset_save_CFLAGS="$CFLAGS"
8093
8094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 int i;
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106 xorg_cv_cc_flag_unknown_warning_option=yes
8107 else
8108 xorg_cv_cc_flag_unknown_warning_option=no
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8115 CFLAGS="$xorg_testset_save_CFLAGS"
8116 fi
8117
8118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8121 fi
8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 int i;
8131 _ACEOF
8132 if ac_fn_c_try_compile "$LINENO"; then :
8133 xorg_cv_cc_flag_unused_command_line_argument=yes
8134 else
8135 xorg_cv_cc_flag_unused_command_line_argument=no
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8142 CFLAGS="$xorg_testset_save_CFLAGS"
8143 fi
8144
8145 found="no"
8146
8147 if test $found = "no" ; then
8148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150 fi
8151
8152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8154 fi
8155
8156 CFLAGS="$CFLAGS -Werror=write-strings"
8157
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8159 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8160 cacheid=xorg_cv_cc_flag__Werror_write_strings
8161 if eval \${$cacheid+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 int i;
8167 int
8168 main ()
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176 eval $cacheid=yes
8177 else
8178 eval $cacheid=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8182 fi
8183
8184
8185 CFLAGS="$xorg_testset_save_CFLAGS"
8186
8187 eval supported=\$$cacheid
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8189 $as_echo "$supported" >&6; }
8190 if test "$supported" = "yes" ; then
8191 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8192 found="yes"
8193 fi
8194 fi
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210 xorg_testset_save_CFLAGS="$CFLAGS"
8211
8212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8215 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8216 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 int i;
8222 _ACEOF
8223 if ac_fn_c_try_compile "$LINENO"; then :
8224 xorg_cv_cc_flag_unknown_warning_option=yes
8225 else
8226 xorg_cv_cc_flag_unknown_warning_option=no
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8231 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8233 CFLAGS="$xorg_testset_save_CFLAGS"
8234 fi
8235
8236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8239 fi
8240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8242 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8243 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 int i;
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 xorg_cv_cc_flag_unused_command_line_argument=yes
8252 else
8253 xorg_cv_cc_flag_unused_command_line_argument=no
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8258 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8260 CFLAGS="$xorg_testset_save_CFLAGS"
8261 fi
8262
8263 found="no"
8264
8265 if test $found = "no" ; then
8266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268 fi
8269
8270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8272 fi
8273
8274 CFLAGS="$CFLAGS -Werror=address"
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8277 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8278 cacheid=xorg_cv_cc_flag__Werror_address
8279 if eval \${$cacheid+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284 int i;
8285 int
8286 main ()
8287 {
8288
8289 ;
8290 return 0;
8291 }
8292 _ACEOF
8293 if ac_fn_c_try_link "$LINENO"; then :
8294 eval $cacheid=yes
8295 else
8296 eval $cacheid=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300 fi
8301
8302
8303 CFLAGS="$xorg_testset_save_CFLAGS"
8304
8305 eval supported=\$$cacheid
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8307 $as_echo "$supported" >&6; }
8308 if test "$supported" = "yes" ; then
8309 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8310 found="yes"
8311 fi
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328 xorg_testset_save_CFLAGS="$CFLAGS"
8329
8330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8333 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8334 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 int i;
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 xorg_cv_cc_flag_unknown_warning_option=yes
8343 else
8344 xorg_cv_cc_flag_unknown_warning_option=no
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8349 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8351 CFLAGS="$xorg_testset_save_CFLAGS"
8352 fi
8353
8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8357 fi
8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8360 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8361 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 int i;
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 xorg_cv_cc_flag_unused_command_line_argument=yes
8370 else
8371 xorg_cv_cc_flag_unused_command_line_argument=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8376 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8379 fi
8380
8381 found="no"
8382
8383 if test $found = "no" ; then
8384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 fi
8387
8388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8390 fi
8391
8392 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8395 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8396 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8397 if eval \${$cacheid+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 int i;
8403 int
8404 main ()
8405 {
8406
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412 eval $cacheid=yes
8413 else
8414 eval $cacheid=no
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 fi
8419
8420
8421 CFLAGS="$xorg_testset_save_CFLAGS"
8422
8423 eval supported=\$$cacheid
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8425 $as_echo "$supported" >&6; }
8426 if test "$supported" = "yes" ; then
8427 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8428 found="yes"
8429 fi
8430 fi
8431
8432 if test $found = "no" ; then
8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435 fi
8436
8437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8439 fi
8440
8441 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8444 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8445 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8446 if eval \${$cacheid+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 int i;
8452 int
8453 main ()
8454 {
8455
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 if ac_fn_c_try_link "$LINENO"; then :
8461 eval $cacheid=yes
8462 else
8463 eval $cacheid=no
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 fi
8468
8469
8470 CFLAGS="$xorg_testset_save_CFLAGS"
8471
8472 eval supported=\$$cacheid
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8474 $as_echo "$supported" >&6; }
8475 if test "$supported" = "yes" ; then
8476 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8477 found="yes"
8478 fi
8479 fi
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495 xorg_testset_save_CFLAGS="$CFLAGS"
8496
8497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8500 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8501 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int i;
8507 _ACEOF
8508 if ac_fn_c_try_compile "$LINENO"; then :
8509 xorg_cv_cc_flag_unknown_warning_option=yes
8510 else
8511 xorg_cv_cc_flag_unknown_warning_option=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8516 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8518 CFLAGS="$xorg_testset_save_CFLAGS"
8519 fi
8520
8521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524 fi
8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8527 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8528 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 xorg_cv_cc_flag_unused_command_line_argument=yes
8537 else
8538 xorg_cv_cc_flag_unused_command_line_argument=no
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8543 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8545 CFLAGS="$xorg_testset_save_CFLAGS"
8546 fi
8547
8548 found="no"
8549
8550 if test $found = "no" ; then
8551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553 fi
8554
8555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8557 fi
8558
8559 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8560
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8562 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8563 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8564 if eval \${$cacheid+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 int i;
8570 int
8571 main ()
8572 {
8573
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 if ac_fn_c_try_link "$LINENO"; then :
8579 eval $cacheid=yes
8580 else
8581 eval $cacheid=no
8582 fi
8583 rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8585 fi
8586
8587
8588 CFLAGS="$xorg_testset_save_CFLAGS"
8589
8590 eval supported=\$$cacheid
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8592 $as_echo "$supported" >&6; }
8593 if test "$supported" = "yes" ; then
8594 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8595 found="yes"
8596 fi
8597 fi
8598
8599 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8600 else
8601 { $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
8602 $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;}
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 xorg_testset_save_CFLAGS="$CFLAGS"
8617
8618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 int i;
8628 _ACEOF
8629 if ac_fn_c_try_compile "$LINENO"; then :
8630 xorg_cv_cc_flag_unknown_warning_option=yes
8631 else
8632 xorg_cv_cc_flag_unknown_warning_option=no
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8637 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8639 CFLAGS="$xorg_testset_save_CFLAGS"
8640 fi
8641
8642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645 fi
8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8648 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8649 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 int i;
8655 _ACEOF
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657 xorg_cv_cc_flag_unused_command_line_argument=yes
8658 else
8659 xorg_cv_cc_flag_unused_command_line_argument=no
8660 fi
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8666 CFLAGS="$xorg_testset_save_CFLAGS"
8667 fi
8668
8669 found="no"
8670
8671 if test $found = "no" ; then
8672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674 fi
8675
8676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678 fi
8679
8680 CFLAGS="$CFLAGS -Wimplicit"
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8683 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8684 cacheid=xorg_cv_cc_flag__Wimplicit
8685 if eval \${$cacheid+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 int i;
8691 int
8692 main ()
8693 {
8694
8695 ;
8696 return 0;
8697 }
8698 _ACEOF
8699 if ac_fn_c_try_link "$LINENO"; then :
8700 eval $cacheid=yes
8701 else
8702 eval $cacheid=no
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 fi
8707
8708
8709 CFLAGS="$xorg_testset_save_CFLAGS"
8710
8711 eval supported=\$$cacheid
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8713 $as_echo "$supported" >&6; }
8714 if test "$supported" = "yes" ; then
8715 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8716 found="yes"
8717 fi
8718 fi
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 xorg_testset_save_CFLAGS="$CFLAGS"
8735
8736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8739 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8740 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 int i;
8746 _ACEOF
8747 if ac_fn_c_try_compile "$LINENO"; then :
8748 xorg_cv_cc_flag_unknown_warning_option=yes
8749 else
8750 xorg_cv_cc_flag_unknown_warning_option=no
8751 fi
8752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8755 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8757 CFLAGS="$xorg_testset_save_CFLAGS"
8758 fi
8759
8760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763 fi
8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8766 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8767 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772 int i;
8773 _ACEOF
8774 if ac_fn_c_try_compile "$LINENO"; then :
8775 xorg_cv_cc_flag_unused_command_line_argument=yes
8776 else
8777 xorg_cv_cc_flag_unused_command_line_argument=no
8778 fi
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8782 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8784 CFLAGS="$xorg_testset_save_CFLAGS"
8785 fi
8786
8787 found="no"
8788
8789 if test $found = "no" ; then
8790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792 fi
8793
8794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796 fi
8797
8798 CFLAGS="$CFLAGS -Wnonnull"
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8801 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8802 cacheid=xorg_cv_cc_flag__Wnonnull
8803 if eval \${$cacheid+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 int i;
8809 int
8810 main ()
8811 {
8812
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 eval $cacheid=yes
8819 else
8820 eval $cacheid=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 fi
8825
8826
8827 CFLAGS="$xorg_testset_save_CFLAGS"
8828
8829 eval supported=\$$cacheid
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8831 $as_echo "$supported" >&6; }
8832 if test "$supported" = "yes" ; then
8833 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8834 found="yes"
8835 fi
8836 fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852 xorg_testset_save_CFLAGS="$CFLAGS"
8853
8854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 int i;
8864 _ACEOF
8865 if ac_fn_c_try_compile "$LINENO"; then :
8866 xorg_cv_cc_flag_unknown_warning_option=yes
8867 else
8868 xorg_cv_cc_flag_unknown_warning_option=no
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8875 CFLAGS="$xorg_testset_save_CFLAGS"
8876 fi
8877
8878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881 fi
8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 int i;
8891 _ACEOF
8892 if ac_fn_c_try_compile "$LINENO"; then :
8893 xorg_cv_cc_flag_unused_command_line_argument=yes
8894 else
8895 xorg_cv_cc_flag_unused_command_line_argument=no
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8902 CFLAGS="$xorg_testset_save_CFLAGS"
8903 fi
8904
8905 found="no"
8906
8907 if test $found = "no" ; then
8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910 fi
8911
8912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914 fi
8915
8916 CFLAGS="$CFLAGS -Winit-self"
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8919 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8920 cacheid=xorg_cv_cc_flag__Winit_self
8921 if eval \${$cacheid+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 int i;
8927 int
8928 main ()
8929 {
8930
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 if ac_fn_c_try_link "$LINENO"; then :
8936 eval $cacheid=yes
8937 else
8938 eval $cacheid=no
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942 fi
8943
8944
8945 CFLAGS="$xorg_testset_save_CFLAGS"
8946
8947 eval supported=\$$cacheid
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8949 $as_echo "$supported" >&6; }
8950 if test "$supported" = "yes" ; then
8951 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8952 found="yes"
8953 fi
8954 fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970 xorg_testset_save_CFLAGS="$CFLAGS"
8971
8972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8975 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8976 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 int i;
8982 _ACEOF
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 xorg_cv_cc_flag_unknown_warning_option=yes
8985 else
8986 xorg_cv_cc_flag_unknown_warning_option=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 fi
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8993 CFLAGS="$xorg_testset_save_CFLAGS"
8994 fi
8995
8996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999 fi
9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 int i;
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011 xorg_cv_cc_flag_unused_command_line_argument=yes
9012 else
9013 xorg_cv_cc_flag_unused_command_line_argument=no
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9018 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9020 CFLAGS="$xorg_testset_save_CFLAGS"
9021 fi
9022
9023 found="no"
9024
9025 if test $found = "no" ; then
9026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028 fi
9029
9030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032 fi
9033
9034 CFLAGS="$CFLAGS -Wmain"
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9037 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9038 cacheid=xorg_cv_cc_flag__Wmain
9039 if eval \${$cacheid+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 int i;
9045 int
9046 main ()
9047 {
9048
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054 eval $cacheid=yes
9055 else
9056 eval $cacheid=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060 fi
9061
9062
9063 CFLAGS="$xorg_testset_save_CFLAGS"
9064
9065 eval supported=\$$cacheid
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067 $as_echo "$supported" >&6; }
9068 if test "$supported" = "yes" ; then
9069 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9070 found="yes"
9071 fi
9072 fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088 xorg_testset_save_CFLAGS="$CFLAGS"
9089
9090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9093 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9094 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"; then :
9102 xorg_cv_cc_flag_unknown_warning_option=yes
9103 else
9104 xorg_cv_cc_flag_unknown_warning_option=no
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9109 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9111 CFLAGS="$xorg_testset_save_CFLAGS"
9112 fi
9113
9114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117 fi
9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9120 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9121 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 int i;
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129 xorg_cv_cc_flag_unused_command_line_argument=yes
9130 else
9131 xorg_cv_cc_flag_unused_command_line_argument=no
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9136 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9138 CFLAGS="$xorg_testset_save_CFLAGS"
9139 fi
9140
9141 found="no"
9142
9143 if test $found = "no" ; then
9144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146 fi
9147
9148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9150 fi
9151
9152 CFLAGS="$CFLAGS -Wmissing-braces"
9153
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9155 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9156 cacheid=xorg_cv_cc_flag__Wmissing_braces
9157 if eval \${$cacheid+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 int i;
9163 int
9164 main ()
9165 {
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"; then :
9172 eval $cacheid=yes
9173 else
9174 eval $cacheid=no
9175 fi
9176 rm -f core conftest.err conftest.$ac_objext \
9177 conftest$ac_exeext conftest.$ac_ext
9178 fi
9179
9180
9181 CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183 eval supported=\$$cacheid
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185 $as_echo "$supported" >&6; }
9186 if test "$supported" = "yes" ; then
9187 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9188 found="yes"
9189 fi
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206 xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 int i;
9218 _ACEOF
9219 if ac_fn_c_try_compile "$LINENO"; then :
9220 xorg_cv_cc_flag_unknown_warning_option=yes
9221 else
9222 xorg_cv_cc_flag_unknown_warning_option=no
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9227 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9229 CFLAGS="$xorg_testset_save_CFLAGS"
9230 fi
9231
9232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235 fi
9236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9238 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9239 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 int i;
9245 _ACEOF
9246 if ac_fn_c_try_compile "$LINENO"; then :
9247 xorg_cv_cc_flag_unused_command_line_argument=yes
9248 else
9249 xorg_cv_cc_flag_unused_command_line_argument=no
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 fi
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9254 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9256 CFLAGS="$xorg_testset_save_CFLAGS"
9257 fi
9258
9259 found="no"
9260
9261 if test $found = "no" ; then
9262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264 fi
9265
9266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9268 fi
9269
9270 CFLAGS="$CFLAGS -Wsequence-point"
9271
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9273 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9274 cacheid=xorg_cv_cc_flag__Wsequence_point
9275 if eval \${$cacheid+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 int i;
9281 int
9282 main ()
9283 {
9284
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 eval $cacheid=yes
9291 else
9292 eval $cacheid=no
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296 fi
9297
9298
9299 CFLAGS="$xorg_testset_save_CFLAGS"
9300
9301 eval supported=\$$cacheid
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9303 $as_echo "$supported" >&6; }
9304 if test "$supported" = "yes" ; then
9305 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9306 found="yes"
9307 fi
9308 fi
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 int i;
9336 _ACEOF
9337 if ac_fn_c_try_compile "$LINENO"; then :
9338 xorg_cv_cc_flag_unknown_warning_option=yes
9339 else
9340 xorg_cv_cc_flag_unknown_warning_option=no
9341 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9347 CFLAGS="$xorg_testset_save_CFLAGS"
9348 fi
9349
9350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353 fi
9354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 int i;
9363 _ACEOF
9364 if ac_fn_c_try_compile "$LINENO"; then :
9365 xorg_cv_cc_flag_unused_command_line_argument=yes
9366 else
9367 xorg_cv_cc_flag_unused_command_line_argument=no
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375 fi
9376
9377 found="no"
9378
9379 if test $found = "no" ; then
9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382 fi
9383
9384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386 fi
9387
9388 CFLAGS="$CFLAGS -Wreturn-type"
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9391 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9392 cacheid=xorg_cv_cc_flag__Wreturn_type
9393 if eval \${$cacheid+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9398 int i;
9399 int
9400 main ()
9401 {
9402
9403 ;
9404 return 0;
9405 }
9406 _ACEOF
9407 if ac_fn_c_try_link "$LINENO"; then :
9408 eval $cacheid=yes
9409 else
9410 eval $cacheid=no
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 fi
9415
9416
9417 CFLAGS="$xorg_testset_save_CFLAGS"
9418
9419 eval supported=\$$cacheid
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421 $as_echo "$supported" >&6; }
9422 if test "$supported" = "yes" ; then
9423 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9424 found="yes"
9425 fi
9426 fi
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442 xorg_testset_save_CFLAGS="$CFLAGS"
9443
9444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 int i;
9454 _ACEOF
9455 if ac_fn_c_try_compile "$LINENO"; then :
9456 xorg_cv_cc_flag_unknown_warning_option=yes
9457 else
9458 xorg_cv_cc_flag_unknown_warning_option=no
9459 fi
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9465 CFLAGS="$xorg_testset_save_CFLAGS"
9466 fi
9467
9468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9471 fi
9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 int i;
9481 _ACEOF
9482 if ac_fn_c_try_compile "$LINENO"; then :
9483 xorg_cv_cc_flag_unused_command_line_argument=yes
9484 else
9485 xorg_cv_cc_flag_unused_command_line_argument=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9492 CFLAGS="$xorg_testset_save_CFLAGS"
9493 fi
9494
9495 found="no"
9496
9497 if test $found = "no" ; then
9498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500 fi
9501
9502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504 fi
9505
9506 CFLAGS="$CFLAGS -Wtrigraphs"
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9509 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9510 cacheid=xorg_cv_cc_flag__Wtrigraphs
9511 if eval \${$cacheid+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 int i;
9517 int
9518 main ()
9519 {
9520
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 if ac_fn_c_try_link "$LINENO"; then :
9526 eval $cacheid=yes
9527 else
9528 eval $cacheid=no
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 fi
9533
9534
9535 CFLAGS="$xorg_testset_save_CFLAGS"
9536
9537 eval supported=\$$cacheid
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9539 $as_echo "$supported" >&6; }
9540 if test "$supported" = "yes" ; then
9541 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9542 found="yes"
9543 fi
9544 fi
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560 xorg_testset_save_CFLAGS="$CFLAGS"
9561
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int i;
9572 _ACEOF
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574 xorg_cv_cc_flag_unknown_warning_option=yes
9575 else
9576 xorg_cv_cc_flag_unknown_warning_option=no
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9583 CFLAGS="$xorg_testset_save_CFLAGS"
9584 fi
9585
9586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589 fi
9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 int i;
9599 _ACEOF
9600 if ac_fn_c_try_compile "$LINENO"; then :
9601 xorg_cv_cc_flag_unused_command_line_argument=yes
9602 else
9603 xorg_cv_cc_flag_unused_command_line_argument=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9610 CFLAGS="$xorg_testset_save_CFLAGS"
9611 fi
9612
9613 found="no"
9614
9615 if test $found = "no" ; then
9616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618 fi
9619
9620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9622 fi
9623
9624 CFLAGS="$CFLAGS -Warray-bounds"
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9627 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9628 cacheid=xorg_cv_cc_flag__Warray_bounds
9629 if eval \${$cacheid+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 int i;
9635 int
9636 main ()
9637 {
9638
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 if ac_fn_c_try_link "$LINENO"; then :
9644 eval $cacheid=yes
9645 else
9646 eval $cacheid=no
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 fi
9651
9652
9653 CFLAGS="$xorg_testset_save_CFLAGS"
9654
9655 eval supported=\$$cacheid
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9657 $as_echo "$supported" >&6; }
9658 if test "$supported" = "yes" ; then
9659 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9660 found="yes"
9661 fi
9662 fi
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678 xorg_testset_save_CFLAGS="$CFLAGS"
9679
9680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 _ACEOF
9691 if ac_fn_c_try_compile "$LINENO"; then :
9692 xorg_cv_cc_flag_unknown_warning_option=yes
9693 else
9694 xorg_cv_cc_flag_unknown_warning_option=no
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9701 CFLAGS="$xorg_testset_save_CFLAGS"
9702 fi
9703
9704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707 fi
9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 int i;
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719 xorg_cv_cc_flag_unused_command_line_argument=yes
9720 else
9721 xorg_cv_cc_flag_unused_command_line_argument=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9729 fi
9730
9731 found="no"
9732
9733 if test $found = "no" ; then
9734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736 fi
9737
9738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740 fi
9741
9742 CFLAGS="$CFLAGS -Wwrite-strings"
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9745 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9746 cacheid=xorg_cv_cc_flag__Wwrite_strings
9747 if eval \${$cacheid+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 int i;
9753 int
9754 main ()
9755 {
9756
9757 ;
9758 return 0;
9759 }
9760 _ACEOF
9761 if ac_fn_c_try_link "$LINENO"; then :
9762 eval $cacheid=yes
9763 else
9764 eval $cacheid=no
9765 fi
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 fi
9769
9770
9771 CFLAGS="$xorg_testset_save_CFLAGS"
9772
9773 eval supported=\$$cacheid
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9775 $as_echo "$supported" >&6; }
9776 if test "$supported" = "yes" ; then
9777 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9778 found="yes"
9779 fi
9780 fi
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796 xorg_testset_save_CFLAGS="$CFLAGS"
9797
9798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 int i;
9808 _ACEOF
9809 if ac_fn_c_try_compile "$LINENO"; then :
9810 xorg_cv_cc_flag_unknown_warning_option=yes
9811 else
9812 xorg_cv_cc_flag_unknown_warning_option=no
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9819 CFLAGS="$xorg_testset_save_CFLAGS"
9820 fi
9821
9822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825 fi
9826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 int i;
9835 _ACEOF
9836 if ac_fn_c_try_compile "$LINENO"; then :
9837 xorg_cv_cc_flag_unused_command_line_argument=yes
9838 else
9839 xorg_cv_cc_flag_unused_command_line_argument=no
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847 fi
9848
9849 found="no"
9850
9851 if test $found = "no" ; then
9852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854 fi
9855
9856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858 fi
9859
9860 CFLAGS="$CFLAGS -Waddress"
9861
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9863 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9864 cacheid=xorg_cv_cc_flag__Waddress
9865 if eval \${$cacheid+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 int i;
9871 int
9872 main ()
9873 {
9874
9875 ;
9876 return 0;
9877 }
9878 _ACEOF
9879 if ac_fn_c_try_link "$LINENO"; then :
9880 eval $cacheid=yes
9881 else
9882 eval $cacheid=no
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9886 fi
9887
9888
9889 CFLAGS="$xorg_testset_save_CFLAGS"
9890
9891 eval supported=\$$cacheid
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9893 $as_echo "$supported" >&6; }
9894 if test "$supported" = "yes" ; then
9895 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9896 found="yes"
9897 fi
9898 fi
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914 xorg_testset_save_CFLAGS="$CFLAGS"
9915
9916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 int i;
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"; then :
9928 xorg_cv_cc_flag_unknown_warning_option=yes
9929 else
9930 xorg_cv_cc_flag_unknown_warning_option=no
9931 fi
9932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9937 CFLAGS="$xorg_testset_save_CFLAGS"
9938 fi
9939
9940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943 fi
9944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9948 $as_echo_n "(cached) " >&6
9949 else
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 int i;
9953 _ACEOF
9954 if ac_fn_c_try_compile "$LINENO"; then :
9955 xorg_cv_cc_flag_unused_command_line_argument=yes
9956 else
9957 xorg_cv_cc_flag_unused_command_line_argument=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960 fi
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965 fi
9966
9967 found="no"
9968
9969 if test $found = "no" ; then
9970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972 fi
9973
9974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9976 fi
9977
9978 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9979
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9981 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9982 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9983 if eval \${$cacheid+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 int i;
9989 int
9990 main ()
9991 {
9992
9993 ;
9994 return 0;
9995 }
9996 _ACEOF
9997 if ac_fn_c_try_link "$LINENO"; then :
9998 eval $cacheid=yes
9999 else
10000 eval $cacheid=no
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 fi
10005
10006
10007 CFLAGS="$xorg_testset_save_CFLAGS"
10008
10009 eval supported=\$$cacheid
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10011 $as_echo "$supported" >&6; }
10012 if test "$supported" = "yes" ; then
10013 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10014 found="yes"
10015 fi
10016 fi
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032 xorg_testset_save_CFLAGS="$CFLAGS"
10033
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 int i;
10044 _ACEOF
10045 if ac_fn_c_try_compile "$LINENO"; then :
10046 xorg_cv_cc_flag_unknown_warning_option=yes
10047 else
10048 xorg_cv_cc_flag_unknown_warning_option=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 fi
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10055 CFLAGS="$xorg_testset_save_CFLAGS"
10056 fi
10057
10058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10061 fi
10062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 int i;
10071 _ACEOF
10072 if ac_fn_c_try_compile "$LINENO"; then :
10073 xorg_cv_cc_flag_unused_command_line_argument=yes
10074 else
10075 xorg_cv_cc_flag_unused_command_line_argument=no
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078 fi
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10082 CFLAGS="$xorg_testset_save_CFLAGS"
10083 fi
10084
10085 found="no"
10086
10087 if test $found = "no" ; then
10088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090 fi
10091
10092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10094 fi
10095
10096 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10097
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10099 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10100 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10101 if eval \${$cacheid+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 int i;
10107 int
10108 main ()
10109 {
10110
10111 ;
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_c_try_link "$LINENO"; then :
10116 eval $cacheid=yes
10117 else
10118 eval $cacheid=no
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 fi
10123
10124
10125 CFLAGS="$xorg_testset_save_CFLAGS"
10126
10127 eval supported=\$$cacheid
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10129 $as_echo "$supported" >&6; }
10130 if test "$supported" = "yes" ; then
10131 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10132 found="yes"
10133 fi
10134 fi
10135
10136
10137 fi
10138
10139
10140
10141
10142
10143
10144
10145 CWARNFLAGS="$BASE_CFLAGS"
10146 if test "x$GCC" = xyes ; then
10147 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10148 fi
10149
10150
10151
10152
10153
10154
10155
10156
10157 # Check whether --enable-strict-compilation was given.
10158 if test "${enable_strict_compilation+set}" = set; then :
10159 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10160 else
10161 STRICT_COMPILE=no
10162 fi
10163
10164
10165
10166
10167
10168
10169 STRICT_CFLAGS=""
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 xorg_testset_save_CFLAGS="$CFLAGS"
10184
10185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194 int i;
10195 _ACEOF
10196 if ac_fn_c_try_compile "$LINENO"; then :
10197 xorg_cv_cc_flag_unknown_warning_option=yes
10198 else
10199 xorg_cv_cc_flag_unknown_warning_option=no
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10206 CFLAGS="$xorg_testset_save_CFLAGS"
10207 fi
10208
10209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212 fi
10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 int i;
10222 _ACEOF
10223 if ac_fn_c_try_compile "$LINENO"; then :
10224 xorg_cv_cc_flag_unused_command_line_argument=yes
10225 else
10226 xorg_cv_cc_flag_unused_command_line_argument=no
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10233 CFLAGS="$xorg_testset_save_CFLAGS"
10234 fi
10235
10236 found="no"
10237
10238 if test $found = "no" ; then
10239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241 fi
10242
10243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245 fi
10246
10247 CFLAGS="$CFLAGS -pedantic"
10248
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10250 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10251 cacheid=xorg_cv_cc_flag__pedantic
10252 if eval \${$cacheid+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10257 int i;
10258 int
10259 main ()
10260 {
10261
10262 ;
10263 return 0;
10264 }
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267 eval $cacheid=yes
10268 else
10269 eval $cacheid=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 fi
10274
10275
10276 CFLAGS="$xorg_testset_save_CFLAGS"
10277
10278 eval supported=\$$cacheid
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10280 $as_echo "$supported" >&6; }
10281 if test "$supported" = "yes" ; then
10282 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10283 found="yes"
10284 fi
10285 fi
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301 xorg_testset_save_CFLAGS="$CFLAGS"
10302
10303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10306 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10307 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312 int i;
10313 _ACEOF
10314 if ac_fn_c_try_compile "$LINENO"; then :
10315 xorg_cv_cc_flag_unknown_warning_option=yes
10316 else
10317 xorg_cv_cc_flag_unknown_warning_option=no
10318 fi
10319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320 fi
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10322 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10324 CFLAGS="$xorg_testset_save_CFLAGS"
10325 fi
10326
10327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330 fi
10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10333 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10334 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339 int i;
10340 _ACEOF
10341 if ac_fn_c_try_compile "$LINENO"; then :
10342 xorg_cv_cc_flag_unused_command_line_argument=yes
10343 else
10344 xorg_cv_cc_flag_unused_command_line_argument=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 fi
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10349 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10351 CFLAGS="$xorg_testset_save_CFLAGS"
10352 fi
10353
10354 found="no"
10355
10356 if test $found = "no" ; then
10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359 fi
10360
10361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10363 fi
10364
10365 CFLAGS="$CFLAGS -Werror"
10366
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10368 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10369 cacheid=xorg_cv_cc_flag__Werror
10370 if eval \${$cacheid+:} false; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 int i;
10376 int
10377 main ()
10378 {
10379
10380 ;
10381 return 0;
10382 }
10383 _ACEOF
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 eval $cacheid=yes
10386 else
10387 eval $cacheid=no
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391 fi
10392
10393
10394 CFLAGS="$xorg_testset_save_CFLAGS"
10395
10396 eval supported=\$$cacheid
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10398 $as_echo "$supported" >&6; }
10399 if test "$supported" = "yes" ; then
10400 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10401 found="yes"
10402 fi
10403 fi
10404
10405 if test $found = "no" ; then
10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408 fi
10409
10410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412 fi
10413
10414 CFLAGS="$CFLAGS -errwarn"
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10417 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10418 cacheid=xorg_cv_cc_flag__errwarn
10419 if eval \${$cacheid+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 int i;
10425 int
10426 main ()
10427 {
10428
10429 ;
10430 return 0;
10431 }
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 eval $cacheid=yes
10435 else
10436 eval $cacheid=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 fi
10441
10442
10443 CFLAGS="$xorg_testset_save_CFLAGS"
10444
10445 eval supported=\$$cacheid
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10447 $as_echo "$supported" >&6; }
10448 if test "$supported" = "yes" ; then
10449 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10450 found="yes"
10451 fi
10452 fi
10453
10454
10455
10456 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10457 # activate it with -Werror, so we add it here explicitly.
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471 xorg_testset_save_CFLAGS="$CFLAGS"
10472
10473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10476 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10477 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 int i;
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"; then :
10485 xorg_cv_cc_flag_unknown_warning_option=yes
10486 else
10487 xorg_cv_cc_flag_unknown_warning_option=no
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10492 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10494 CFLAGS="$xorg_testset_save_CFLAGS"
10495 fi
10496
10497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10500 fi
10501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10503 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10504 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10505 $as_echo_n "(cached) " >&6
10506 else
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 int i;
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 xorg_cv_cc_flag_unused_command_line_argument=yes
10513 else
10514 xorg_cv_cc_flag_unused_command_line_argument=no
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10519 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10521 CFLAGS="$xorg_testset_save_CFLAGS"
10522 fi
10523
10524 found="no"
10525
10526 if test $found = "no" ; then
10527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10529 fi
10530
10531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10533 fi
10534
10535 CFLAGS="$CFLAGS -Werror=attributes"
10536
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10538 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10539 cacheid=xorg_cv_cc_flag__Werror_attributes
10540 if eval \${$cacheid+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 int i;
10546 int
10547 main ()
10548 {
10549
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555 eval $cacheid=yes
10556 else
10557 eval $cacheid=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 fi
10562
10563
10564 CFLAGS="$xorg_testset_save_CFLAGS"
10565
10566 eval supported=\$$cacheid
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10568 $as_echo "$supported" >&6; }
10569 if test "$supported" = "yes" ; then
10570 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10571 found="yes"
10572 fi
10573 fi
10574
10575
10576
10577 if test "x$STRICT_COMPILE" = "xyes"; then
10578 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10579 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10580 fi
10581
10582
10583
10584
10585
10586
10587 cat >>confdefs.h <<_ACEOF
10588 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10589 _ACEOF
10590
10591 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10592 if test "x$PVM" = "x"; then
10593 PVM="0"
10594 fi
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define PACKAGE_VERSION_MINOR $PVM
10598 _ACEOF
10599
10600 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10601 if test "x$PVP" = "x"; then
10602 PVP="0"
10603 fi
10604
10605 cat >>confdefs.h <<_ACEOF
10606 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10607 _ACEOF
10608
10609
10610
10611 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10612 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10613 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10614 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10615
10616
10617
10618
10619 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10620 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10621 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10622 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10623 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10624
10625
10626
10627
10628
10629
10630 if test x$APP_MAN_SUFFIX = x ; then
10631 APP_MAN_SUFFIX=1
10632 fi
10633 if test x$APP_MAN_DIR = x ; then
10634 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10635 fi
10636
10637 if test x$LIB_MAN_SUFFIX = x ; then
10638 LIB_MAN_SUFFIX=3
10639 fi
10640 if test x$LIB_MAN_DIR = x ; then
10641 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10642 fi
10643
10644 if test x$FILE_MAN_SUFFIX = x ; then
10645 case $host_os in
10646 solaris*) FILE_MAN_SUFFIX=4 ;;
10647 *) FILE_MAN_SUFFIX=5 ;;
10648 esac
10649 fi
10650 if test x$FILE_MAN_DIR = x ; then
10651 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10652 fi
10653
10654 if test x$MISC_MAN_SUFFIX = x ; then
10655 case $host_os in
10656 solaris*) MISC_MAN_SUFFIX=5 ;;
10657 *) MISC_MAN_SUFFIX=7 ;;
10658 esac
10659 fi
10660 if test x$MISC_MAN_DIR = x ; then
10661 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10662 fi
10663
10664 if test x$DRIVER_MAN_SUFFIX = x ; then
10665 case $host_os in
10666 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10667 *) DRIVER_MAN_SUFFIX=4 ;;
10668 esac
10669 fi
10670 if test x$DRIVER_MAN_DIR = x ; then
10671 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10672 fi
10673
10674 if test x$ADMIN_MAN_SUFFIX = x ; then
10675 case $host_os in
10676 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10677 *) ADMIN_MAN_SUFFIX=8 ;;
10678 esac
10679 fi
10680 if test x$ADMIN_MAN_DIR = x ; then
10681 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10682 fi
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698 XORG_MAN_PAGE="X Version 11"
10699
10700 MAN_SUBSTS="\
10701 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10702 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10703 -e 's|__xservername__|Xorg|g' \
10704 -e 's|__xconfigfile__|xorg.conf|g' \
10705 -e 's|__projectroot__|\$(prefix)|g' \
10706 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10707 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10708 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10709 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10710 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10711 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10712 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10713
10714
10715
10716 # Check whether --enable-silent-rules was given.
10717 if test "${enable_silent_rules+set}" = set; then :
10718 enableval=$enable_silent_rules;
10719 fi
10720
10721 case $enable_silent_rules in # (((
10722 yes) AM_DEFAULT_VERBOSITY=0;;
10723 no) AM_DEFAULT_VERBOSITY=1;;
10724 *) AM_DEFAULT_VERBOSITY=0;;
10725 esac
10726 am_make=${MAKE-make}
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10728 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10729 if ${am_cv_make_support_nested_variables+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 if $as_echo 'TRUE=$(BAR$(V))
10733 BAR0=false
10734 BAR1=true
10735 V=1
10736 am__doit:
10737 @$(TRUE)
10738 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10739 am_cv_make_support_nested_variables=yes
10740 else
10741 am_cv_make_support_nested_variables=no
10742 fi
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10745 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10746 if test $am_cv_make_support_nested_variables = yes; then
10747 AM_V='$(V)'
10748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10749 else
10750 AM_V=$AM_DEFAULT_VERBOSITY
10751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10752 fi
10753 AM_BACKSLASH='\'
10754
10755
10756
10757
10758 # Check whether --enable-docs was given.
10759 if test "${enable_docs+set}" = set; then :
10760 enableval=$enable_docs; build_docs=$enableval
10761 else
10762 build_docs=yes
10763 fi
10764
10765
10766 if test x$build_docs = xyes; then
10767 ENABLE_DOCS_TRUE=
10768 ENABLE_DOCS_FALSE='#'
10769 else
10770 ENABLE_DOCS_TRUE='#'
10771 ENABLE_DOCS_FALSE=
10772 fi
10773
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
10775 $as_echo_n "checking whether to build documentation... " >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
10777 $as_echo "$build_docs" >&6; }
10778
10779
10780
10781
10782
10783 # Check whether --with-xmlto was given.
10784 if test "${with_xmlto+set}" = set; then :
10785 withval=$with_xmlto; use_xmlto=$withval
10786 else
10787 use_xmlto=auto
10788 fi
10789
10790
10791
10792 if test "x$use_xmlto" = x"auto"; then
10793 # Extract the first word of "xmlto", so it can be a program name with args.
10794 set dummy xmlto; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_path_XMLTO+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 case $XMLTO in
10801 [\\/]* | ?:[\\/]*)
10802 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10803 ;;
10804 *)
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10807 do
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10812 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10815 fi
10816 done
10817 done
10818 IFS=$as_save_IFS
10819
10820 ;;
10821 esac
10822 fi
10823 XMLTO=$ac_cv_path_XMLTO
10824 if test -n "$XMLTO"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10826 $as_echo "$XMLTO" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 fi
10831
10832
10833 if test "x$XMLTO" = "x"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
10835 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
10836 have_xmlto=no
10837 else
10838 have_xmlto=yes
10839 fi
10840 elif test "x$use_xmlto" = x"yes" ; then
10841 # Extract the first word of "xmlto", so it can be a program name with args.
10842 set dummy xmlto; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_path_XMLTO+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 case $XMLTO in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
10851 ;;
10852 *)
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10855 do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10860 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864 done
10865 done
10866 IFS=$as_save_IFS
10867
10868 ;;
10869 esac
10870 fi
10871 XMLTO=$ac_cv_path_XMLTO
10872 if test -n "$XMLTO"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
10874 $as_echo "$XMLTO" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10878 fi
10879
10880
10881 if test "x$XMLTO" = "x"; then
10882 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
10883 fi
10884 have_xmlto=yes
10885 elif test "x$use_xmlto" = x"no" ; then
10886 if test "x$XMLTO" != "x"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
10888 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
10889 fi
10890 have_xmlto=no
10891 else
10892 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
10893 fi
10894
10895 # Test for a minimum version of xmlto, if provided.
10896 if test "$have_xmlto" = yes; then
10897 # scrape the xmlto version
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
10899 $as_echo_n "checking the xmlto version... " >&6; }
10900 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
10902 $as_echo "$xmlto_version" >&6; }
10903 as_arg_v1=$xmlto_version
10904 as_arg_v2=0.0.22
10905 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10906 case $? in #(
10907 1) :
10908 if test "x$use_xmlto" = xauto; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
10910 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
10911 have_xmlto=no
10912 else
10913 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
10914 fi ;; #(
10915 0) :
10916 ;; #(
10917 2) :
10918 ;; #(
10919 *) :
10920 ;;
10921 esac
10922 fi
10923
10924 # Test for the ability of xmlto to generate a text target
10925 have_xmlto_text=no
10926 cat > conftest.xml << "EOF"
10927 EOF
10928 if test "$have_xmlto" = yes; then :
10929 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
10930 have_xmlto_text=yes
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
10933 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
10934 fi
10935 fi
10936 rm -f conftest.xml
10937 if test $have_xmlto_text = yes; then
10938 HAVE_XMLTO_TEXT_TRUE=
10939 HAVE_XMLTO_TEXT_FALSE='#'
10940 else
10941 HAVE_XMLTO_TEXT_TRUE='#'
10942 HAVE_XMLTO_TEXT_FALSE=
10943 fi
10944
10945 if test "$have_xmlto" = yes; then
10946 HAVE_XMLTO_TRUE=
10947 HAVE_XMLTO_FALSE='#'
10948 else
10949 HAVE_XMLTO_TRUE='#'
10950 HAVE_XMLTO_FALSE=
10951 fi
10952
10953
10954
10955
10956
10957
10958 # Check whether --with-fop was given.
10959 if test "${with_fop+set}" = set; then :
10960 withval=$with_fop; use_fop=$withval
10961 else
10962 use_fop=auto
10963 fi
10964
10965
10966
10967 if test "x$use_fop" = x"auto"; then
10968 # Extract the first word of "fop", so it can be a program name with args.
10969 set dummy fop; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_path_FOP+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 case $FOP in
10976 [\\/]* | ?:[\\/]*)
10977 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
10978 ;;
10979 *)
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991 done
10992 done
10993 IFS=$as_save_IFS
10994
10995 ;;
10996 esac
10997 fi
10998 FOP=$ac_cv_path_FOP
10999 if test -n "$FOP"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11001 $as_echo "$FOP" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006
11007
11008 if test "x$FOP" = "x"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
11010 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
11011 have_fop=no
11012 else
11013 have_fop=yes
11014 fi
11015 elif test "x$use_fop" = x"yes" ; then
11016 # Extract the first word of "fop", so it can be a program name with args.
11017 set dummy fop; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_path_FOP+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 case $FOP in
11024 [\\/]* | ?:[\\/]*)
11025 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
11026 ;;
11027 *)
11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11030 do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 break 2
11038 fi
11039 done
11040 done
11041 IFS=$as_save_IFS
11042
11043 ;;
11044 esac
11045 fi
11046 FOP=$ac_cv_path_FOP
11047 if test -n "$FOP"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
11049 $as_echo "$FOP" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055
11056 if test "x$FOP" = "x"; then
11057 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
11058 fi
11059 have_fop=yes
11060 elif test "x$use_fop" = x"no" ; then
11061 if test "x$FOP" != "x"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
11063 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
11064 fi
11065 have_fop=no
11066 else
11067 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
11068 fi
11069
11070 # Test for a minimum version of fop, if provided.
11071
11072 if test "$have_fop" = yes; then
11073 HAVE_FOP_TRUE=
11074 HAVE_FOP_FALSE='#'
11075 else
11076 HAVE_FOP_TRUE='#'
11077 HAVE_FOP_FALSE=
11078 fi
11079
11080
11081
11082
11083 # Preserves the interface, should it be implemented later
11084
11085
11086
11087 # Check whether --with-xsltproc was given.
11088 if test "${with_xsltproc+set}" = set; then :
11089 withval=$with_xsltproc; use_xsltproc=$withval
11090 else
11091 use_xsltproc=auto
11092 fi
11093
11094
11095
11096 if test "x$use_xsltproc" = x"auto"; then
11097 # Extract the first word of "xsltproc", so it can be a program name with args.
11098 set dummy xsltproc; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_path_XSLTPROC+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 case $XSLTPROC in
11105 [\\/]* | ?:[\\/]*)
11106 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11107 ;;
11108 *)
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11119 fi
11120 done
11121 done
11122 IFS=$as_save_IFS
11123
11124 ;;
11125 esac
11126 fi
11127 XSLTPROC=$ac_cv_path_XSLTPROC
11128 if test -n "$XSLTPROC"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11130 $as_echo "$XSLTPROC" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135
11136
11137 if test "x$XSLTPROC" = "x"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
11139 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
11140 have_xsltproc=no
11141 else
11142 have_xsltproc=yes
11143 fi
11144 elif test "x$use_xsltproc" = x"yes" ; then
11145 # Extract the first word of "xsltproc", so it can be a program name with args.
11146 set dummy xsltproc; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if ${ac_cv_path_XSLTPROC+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 case $XSLTPROC in
11153 [\\/]* | ?:[\\/]*)
11154 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
11155 ;;
11156 *)
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11159 do
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11164 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11167 fi
11168 done
11169 done
11170 IFS=$as_save_IFS
11171
11172 ;;
11173 esac
11174 fi
11175 XSLTPROC=$ac_cv_path_XSLTPROC
11176 if test -n "$XSLTPROC"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
11178 $as_echo "$XSLTPROC" >&6; }
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 fi
11183
11184
11185 if test "x$XSLTPROC" = "x"; then
11186 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
11187 fi
11188 have_xsltproc=yes
11189 elif test "x$use_xsltproc" = x"no" ; then
11190 if test "x$XSLTPROC" != "x"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
11192 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
11193 fi
11194 have_xsltproc=no
11195 else
11196 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
11197 fi
11198
11199 if test "$have_xsltproc" = yes; then
11200 HAVE_XSLTPROC_TRUE=
11201 HAVE_XSLTPROC_FALSE='#'
11202 else
11203 HAVE_XSLTPROC_TRUE='#'
11204 HAVE_XSLTPROC_FALSE=
11205 fi
11206
11207
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
11210 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
11211 XORG_SGML_PATH=
11212 if test -n "$PKG_CONFIG" && \
11213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
11214 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
11215 ac_status=$?
11216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11217 test $ac_status = 0; }; then
11218 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
11219 else
11220 :
11221
11222 fi
11223
11224 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
11225 # the path and the name of the doc stylesheet
11226 if test "x$XORG_SGML_PATH" != "x" ; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
11228 $as_echo "$XORG_SGML_PATH" >&6; }
11229 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
11230 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11234 fi
11235
11236
11237
11238
11239 if test "x$XSL_STYLESHEET" != "x"; then
11240 HAVE_STYLESHEETS_TRUE=
11241 HAVE_STYLESHEETS_FALSE='#'
11242 else
11243 HAVE_STYLESHEETS_TRUE='#'
11244 HAVE_STYLESHEETS_FALSE=
11245 fi
11246
11247
11248
11249 # Because xtrans is included into other modules rather than being linked
11250 # with, these defines have to be added to the cflags line
11251
11252 # fchown()
11253
11254 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
11255 if test "x$ac_cv_func_fchown" = xyes; then :
11256 fchown_define="-DHAS_FCHOWN"
11257 else
11258 fchown_define=""
11259 fi
11260
11261
11262
11263
11264 # sticky bit
11265 #
11266 # if any system exists without sticky dir bits this
11267 # needs to be redone with a real autoconf test
11268
11269 sticky_bit_define="-DHAS_STICKY_DIR_BIT"
11270
11271
11272
11273 ac_config_files="$ac_config_files Makefile doc/Makefile xtrans.pc"
11274
11275 cat >confcache <<\_ACEOF
11276 # This file is a shell script that caches the results of configure
11277 # tests run on this system so they can be shared between configure
11278 # scripts and configure runs, see configure's option --config-cache.
11279 # It is not useful on other systems. If it contains results you don't
11280 # want to keep, you may remove or edit it.
11281 #
11282 # config.status only pays attention to the cache file if you give it
11283 # the --recheck option to rerun configure.
11284 #
11285 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11286 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11287 # following values.
11288
11289 _ACEOF
11290
11291 # The following way of writing the cache mishandles newlines in values,
11292 # but we know of no workaround that is simple, portable, and efficient.
11293 # So, we kill variables containing newlines.
11294 # Ultrix sh set writes to stderr and can't be redirected directly,
11295 # and sets the high bit in the cache file unless we assign to the vars.
11296 (
11297 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11298 eval ac_val=\$$ac_var
11299 case $ac_val in #(
11300 *${as_nl}*)
11301 case $ac_var in #(
11302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11304 esac
11305 case $ac_var in #(
11306 _ | IFS | as_nl) ;; #(
11307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11308 *) { eval $ac_var=; unset $ac_var;} ;;
11309 esac ;;
11310 esac
11311 done
11312
11313 (set) 2>&1 |
11314 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11315 *${as_nl}ac_space=\ *)
11316 # `set' does not quote correctly, so add quotes: double-quote
11317 # substitution turns \\\\ into \\, and sed turns \\ into \.
11318 sed -n \
11319 "s/'/'\\\\''/g;
11320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11321 ;; #(
11322 *)
11323 # `set' quotes correctly as required by POSIX, so do not add quotes.
11324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11325 ;;
11326 esac |
11327 sort
11328 ) |
11329 sed '
11330 /^ac_cv_env_/b end
11331 t clear
11332 :clear
11333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11334 t end
11335 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11336 :end' >>confcache
11337 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11338 if test -w "$cache_file"; then
11339 if test "x$cache_file" != "x/dev/null"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11341 $as_echo "$as_me: updating cache $cache_file" >&6;}
11342 if test ! -f "$cache_file" || test -h "$cache_file"; then
11343 cat confcache >"$cache_file"
11344 else
11345 case $cache_file in #(
11346 */* | ?:*)
11347 mv -f confcache "$cache_file"$$ &&
11348 mv -f "$cache_file"$$ "$cache_file" ;; #(
11349 *)
11350 mv -f confcache "$cache_file" ;;
11351 esac
11352 fi
11353 fi
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11356 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11357 fi
11358 fi
11359 rm -f confcache
11360
11361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11362 # Let make expand exec_prefix.
11363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11364
11365 # Transform confdefs.h into DEFS.
11366 # Protect against shell expansion while executing Makefile rules.
11367 # Protect against Makefile macro expansion.
11368 #
11369 # If the first sed substitution is executed (which looks for macros that
11370 # take arguments), then branch to the quote section. Otherwise,
11371 # look for a macro that doesn't take arguments.
11372 ac_script='
11373 :mline
11374 /\\$/{
11375 N
11376 s,\\\n,,
11377 b mline
11378 }
11379 t clear
11380 :clear
11381 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11382 t quote
11383 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11384 t quote
11385 b any
11386 :quote
11387 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11388 s/\[/\\&/g
11389 s/\]/\\&/g
11390 s/\$/$$/g
11391 H
11392 :any
11393 ${
11394 g
11395 s/^\n//
11396 s/\n/ /g
11397 p
11398 }
11399 '
11400 DEFS=`sed -n "$ac_script" confdefs.h`
11401
11402
11403 ac_libobjs=
11404 ac_ltlibobjs=
11405 U=
11406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11407 # 1. Remove the extension, and $U if already installed.
11408 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11409 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11410 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11411 # will be set to the directory where LIBOBJS objects are built.
11412 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11413 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11414 done
11415 LIBOBJS=$ac_libobjs
11416
11417 LTLIBOBJS=$ac_ltlibobjs
11418
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11421 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11422 if test -n "$am_sleep_pid"; then
11423 # Hide warnings about reused PIDs.
11424 wait $am_sleep_pid 2>/dev/null
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11427 $as_echo "done" >&6; }
11428 if test -n "$EXEEXT"; then
11429 am__EXEEXT_TRUE=
11430 am__EXEEXT_FALSE='#'
11431 else
11432 am__EXEEXT_TRUE='#'
11433 am__EXEEXT_FALSE=
11434 fi
11435
11436 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11437 as_fn_error $? "conditional \"AMDEP\" was never defined.
11438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11439 fi
11440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11441 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11443 fi
11444 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
11445 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
11446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11447 fi
11448 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11449 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11451 fi
11452 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11453 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11455 fi
11456 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11457 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
11458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11459 fi
11460 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
11461 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
11462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11463 fi
11464 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
11465 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
11466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11467 fi
11468
11469 : "${CONFIG_STATUS=./config.status}"
11470 ac_write_fail=0
11471 ac_clean_files_save=$ac_clean_files
11472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11474 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11475 as_write_fail=0
11476 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11477 #! $SHELL
11478 # Generated by $as_me.
11479 # Run this file to recreate the current configuration.
11480 # Compiler output produced by configure, useful for debugging
11481 # configure, is in config.log if it exists.
11482
11483 debug=false
11484 ac_cs_recheck=false
11485 ac_cs_silent=false
11486
11487 SHELL=\${CONFIG_SHELL-$SHELL}
11488 export SHELL
11489 _ASEOF
11490 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11491 ## -------------------- ##
11492 ## M4sh Initialization. ##
11493 ## -------------------- ##
11494
11495 # Be more Bourne compatible
11496 DUALCASE=1; export DUALCASE # for MKS sh
11497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11498 emulate sh
11499 NULLCMD=:
11500 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11501 # is contrary to our usage. Disable this feature.
11502 alias -g '${1+"$@"}'='"$@"'
11503 setopt NO_GLOB_SUBST
11504 else
11505 case `(set -o) 2>/dev/null` in #(
11506 *posix*) :
11507 set -o posix ;; #(
11508 *) :
11509 ;;
11510 esac
11511 fi
11512
11513
11514 as_nl='
11515 '
11516 export as_nl
11517 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11518 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11521 # Prefer a ksh shell builtin over an external printf program on Solaris,
11522 # but without wasting forks for bash or zsh.
11523 if test -z "$BASH_VERSION$ZSH_VERSION" \
11524 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11525 as_echo='print -r --'
11526 as_echo_n='print -rn --'
11527 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11528 as_echo='printf %s\n'
11529 as_echo_n='printf %s'
11530 else
11531 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11532 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11533 as_echo_n='/usr/ucb/echo -n'
11534 else
11535 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11536 as_echo_n_body='eval
11537 arg=$1;
11538 case $arg in #(
11539 *"$as_nl"*)
11540 expr "X$arg" : "X\\(.*\\)$as_nl";
11541 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11542 esac;
11543 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11544 '
11545 export as_echo_n_body
11546 as_echo_n='sh -c $as_echo_n_body as_echo'
11547 fi
11548 export as_echo_body
11549 as_echo='sh -c $as_echo_body as_echo'
11550 fi
11551
11552 # The user is always right.
11553 if test "${PATH_SEPARATOR+set}" != set; then
11554 PATH_SEPARATOR=:
11555 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11556 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11557 PATH_SEPARATOR=';'
11558 }
11559 fi
11560
11561
11562 # IFS
11563 # We need space, tab and new line, in precisely that order. Quoting is
11564 # there to prevent editors from complaining about space-tab.
11565 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11566 # splitting by setting IFS to empty value.)
11567 IFS=" "" $as_nl"
11568
11569 # Find who we are. Look in the path if we contain no directory separator.
11570 as_myself=
11571 case $0 in #((
11572 *[\\/]* ) as_myself=$0 ;;
11573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11575 do
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11579 done
11580 IFS=$as_save_IFS
11581
11582 ;;
11583 esac
11584 # We did not find ourselves, most probably we were run as `sh COMMAND'
11585 # in which case we are not to be found in the path.
11586 if test "x$as_myself" = x; then
11587 as_myself=$0
11588 fi
11589 if test ! -f "$as_myself"; then
11590 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11591 exit 1
11592 fi
11593
11594 # Unset variables that we do not need and which cause bugs (e.g. in
11595 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11596 # suppresses any "Segmentation fault" message there. '((' could
11597 # trigger a bug in pdksh 5.2.14.
11598 for as_var in BASH_ENV ENV MAIL MAILPATH
11599 do eval test x\${$as_var+set} = xset \
11600 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11601 done
11602 PS1='$ '
11603 PS2='> '
11604 PS4='+ '
11605
11606 # NLS nuisances.
11607 LC_ALL=C
11608 export LC_ALL
11609 LANGUAGE=C
11610 export LANGUAGE
11611
11612 # CDPATH.
11613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11614
11615
11616 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11617 # ----------------------------------------
11618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11620 # script with STATUS, using 1 if that was 0.
11621 as_fn_error ()
11622 {
11623 as_status=$1; test $as_status -eq 0 && as_status=1
11624 if test "$4"; then
11625 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11626 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11627 fi
11628 $as_echo "$as_me: error: $2" >&2
11629 as_fn_exit $as_status
11630 } # as_fn_error
11631
11632
11633 # as_fn_set_status STATUS
11634 # -----------------------
11635 # Set $? to STATUS, without forking.
11636 as_fn_set_status ()
11637 {
11638 return $1
11639 } # as_fn_set_status
11640
11641 # as_fn_exit STATUS
11642 # -----------------
11643 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11644 as_fn_exit ()
11645 {
11646 set +e
11647 as_fn_set_status $1
11648 exit $1
11649 } # as_fn_exit
11650
11651 # as_fn_unset VAR
11652 # ---------------
11653 # Portably unset VAR.
11654 as_fn_unset ()
11655 {
11656 { eval $1=; unset $1;}
11657 }
11658 as_unset=as_fn_unset
11659 # as_fn_append VAR VALUE
11660 # ----------------------
11661 # Append the text in VALUE to the end of the definition contained in VAR. Take
11662 # advantage of any shell optimizations that allow amortized linear growth over
11663 # repeated appends, instead of the typical quadratic growth present in naive
11664 # implementations.
11665 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11666 eval 'as_fn_append ()
11667 {
11668 eval $1+=\$2
11669 }'
11670 else
11671 as_fn_append ()
11672 {
11673 eval $1=\$$1\$2
11674 }
11675 fi # as_fn_append
11676
11677 # as_fn_arith ARG...
11678 # ------------------
11679 # Perform arithmetic evaluation on the ARGs, and store the result in the
11680 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11681 # must be portable across $(()) and expr.
11682 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11683 eval 'as_fn_arith ()
11684 {
11685 as_val=$(( $* ))
11686 }'
11687 else
11688 as_fn_arith ()
11689 {
11690 as_val=`expr "$@" || test $? -eq 1`
11691 }
11692 fi # as_fn_arith
11693
11694
11695 if expr a : '\(a\)' >/dev/null 2>&1 &&
11696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11697 as_expr=expr
11698 else
11699 as_expr=false
11700 fi
11701
11702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11703 as_basename=basename
11704 else
11705 as_basename=false
11706 fi
11707
11708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11709 as_dirname=dirname
11710 else
11711 as_dirname=false
11712 fi
11713
11714 as_me=`$as_basename -- "$0" ||
11715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11716 X"$0" : 'X\(//\)$' \| \
11717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11718 $as_echo X/"$0" |
11719 sed '/^.*\/\([^/][^/]*\)\/*$/{
11720 s//\1/
11721 q
11722 }
11723 /^X\/\(\/\/\)$/{
11724 s//\1/
11725 q
11726 }
11727 /^X\/\(\/\).*/{
11728 s//\1/
11729 q
11730 }
11731 s/.*/./; q'`
11732
11733 # Avoid depending upon Character Ranges.
11734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11737 as_cr_digits='0123456789'
11738 as_cr_alnum=$as_cr_Letters$as_cr_digits
11739
11740 ECHO_C= ECHO_N= ECHO_T=
11741 case `echo -n x` in #(((((
11742 -n*)
11743 case `echo 'xy\c'` in
11744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11745 xy) ECHO_C='\c';;
11746 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11747 ECHO_T=' ';;
11748 esac;;
11749 *)
11750 ECHO_N='-n';;
11751 esac
11752
11753 rm -f conf$$ conf$$.exe conf$$.file
11754 if test -d conf$$.dir; then
11755 rm -f conf$$.dir/conf$$.file
11756 else
11757 rm -f conf$$.dir
11758 mkdir conf$$.dir 2>/dev/null
11759 fi
11760 if (echo >conf$$.file) 2>/dev/null; then
11761 if ln -s conf$$.file conf$$ 2>/dev/null; then
11762 as_ln_s='ln -s'
11763 # ... but there are two gotchas:
11764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11766 # In both cases, we have to default to `cp -pR'.
11767 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11768 as_ln_s='cp -pR'
11769 elif ln conf$$.file conf$$ 2>/dev/null; then
11770 as_ln_s=ln
11771 else
11772 as_ln_s='cp -pR'
11773 fi
11774 else
11775 as_ln_s='cp -pR'
11776 fi
11777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11778 rmdir conf$$.dir 2>/dev/null
11779
11780
11781 # as_fn_mkdir_p
11782 # -------------
11783 # Create "$as_dir" as a directory, including parents if necessary.
11784 as_fn_mkdir_p ()
11785 {
11786
11787 case $as_dir in #(
11788 -*) as_dir=./$as_dir;;
11789 esac
11790 test -d "$as_dir" || eval $as_mkdir_p || {
11791 as_dirs=
11792 while :; do
11793 case $as_dir in #(
11794 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11795 *) as_qdir=$as_dir;;
11796 esac
11797 as_dirs="'$as_qdir' $as_dirs"
11798 as_dir=`$as_dirname -- "$as_dir" ||
11799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11800 X"$as_dir" : 'X\(//\)[^/]' \| \
11801 X"$as_dir" : 'X\(//\)$' \| \
11802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11803 $as_echo X"$as_dir" |
11804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11805 s//\1/
11806 q
11807 }
11808 /^X\(\/\/\)[^/].*/{
11809 s//\1/
11810 q
11811 }
11812 /^X\(\/\/\)$/{
11813 s//\1/
11814 q
11815 }
11816 /^X\(\/\).*/{
11817 s//\1/
11818 q
11819 }
11820 s/.*/./; q'`
11821 test -d "$as_dir" && break
11822 done
11823 test -z "$as_dirs" || eval "mkdir $as_dirs"
11824 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11825
11826
11827 } # as_fn_mkdir_p
11828 if mkdir -p . 2>/dev/null; then
11829 as_mkdir_p='mkdir -p "$as_dir"'
11830 else
11831 test -d ./-p && rmdir ./-p
11832 as_mkdir_p=false
11833 fi
11834
11835
11836 # as_fn_executable_p FILE
11837 # -----------------------
11838 # Test if FILE is an executable regular file.
11839 as_fn_executable_p ()
11840 {
11841 test -f "$1" && test -x "$1"
11842 } # as_fn_executable_p
11843 as_test_x='test -x'
11844 as_executable_p=as_fn_executable_p
11845
11846 # Sed expression to map a string onto a valid CPP name.
11847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11848
11849 # Sed expression to map a string onto a valid variable name.
11850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11851
11852
11853 exec 6>&1
11854 ## ----------------------------------- ##
11855 ## Main body of $CONFIG_STATUS script. ##
11856 ## ----------------------------------- ##
11857 _ASEOF
11858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11859
11860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11861 # Save the log message, to keep $0 and so on meaningful, and to
11862 # report actual input values of CONFIG_FILES etc. instead of their
11863 # values after options handling.
11864 ac_log="
11865 This file was extended by xtrans $as_me 1.3.4, which was
11866 generated by GNU Autoconf 2.69. Invocation command line was
11867
11868 CONFIG_FILES = $CONFIG_FILES
11869 CONFIG_HEADERS = $CONFIG_HEADERS
11870 CONFIG_LINKS = $CONFIG_LINKS
11871 CONFIG_COMMANDS = $CONFIG_COMMANDS
11872 $ $0 $@
11873
11874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11875 "
11876
11877 _ACEOF
11878
11879 case $ac_config_files in *"
11880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11881 esac
11882
11883
11884
11885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11886 # Files that config.status was made for.
11887 config_files="$ac_config_files"
11888 config_commands="$ac_config_commands"
11889
11890 _ACEOF
11891
11892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11893 ac_cs_usage="\
11894 \`$as_me' instantiates files and other configuration actions
11895 from templates according to the current configuration. Unless the files
11896 and actions are specified as TAGs, all are instantiated by default.
11897
11898 Usage: $0 [OPTION]... [TAG]...
11899
11900 -h, --help print this help, then exit
11901 -V, --version print version number and configuration settings, then exit
11902 --config print configuration, then exit
11903 -q, --quiet, --silent
11904 do not print progress messages
11905 -d, --debug don't remove temporary files
11906 --recheck update $as_me by reconfiguring in the same conditions
11907 --file=FILE[:TEMPLATE]
11908 instantiate the configuration file FILE
11909
11910 Configuration files:
11911 $config_files
11912
11913 Configuration commands:
11914 $config_commands
11915
11916 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11917
11918 _ACEOF
11919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11920 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11921 ac_cs_version="\\
11922 xtrans config.status 1.3.4
11923 configured by $0, generated by GNU Autoconf 2.69,
11924 with options \\"\$ac_cs_config\\"
11925
11926 Copyright (C) 2012 Free Software Foundation, Inc.
11927 This config.status script is free software; the Free Software Foundation
11928 gives unlimited permission to copy, distribute and modify it."
11929
11930 ac_pwd='$ac_pwd'
11931 srcdir='$srcdir'
11932 INSTALL='$INSTALL'
11933 MKDIR_P='$MKDIR_P'
11934 AWK='$AWK'
11935 test -n "\$AWK" || AWK=awk
11936 _ACEOF
11937
11938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11939 # The default lists apply if the user does not specify any file.
11940 ac_need_defaults=:
11941 while test $# != 0
11942 do
11943 case $1 in
11944 --*=?*)
11945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11947 ac_shift=:
11948 ;;
11949 --*=)
11950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11951 ac_optarg=
11952 ac_shift=:
11953 ;;
11954 *)
11955 ac_option=$1
11956 ac_optarg=$2
11957 ac_shift=shift
11958 ;;
11959 esac
11960
11961 case $ac_option in
11962 # Handling of the options.
11963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11964 ac_cs_recheck=: ;;
11965 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11966 $as_echo "$ac_cs_version"; exit ;;
11967 --config | --confi | --conf | --con | --co | --c )
11968 $as_echo "$ac_cs_config"; exit ;;
11969 --debug | --debu | --deb | --de | --d | -d )
11970 debug=: ;;
11971 --file | --fil | --fi | --f )
11972 $ac_shift
11973 case $ac_optarg in
11974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11975 '') as_fn_error $? "missing file argument" ;;
11976 esac
11977 as_fn_append CONFIG_FILES " '$ac_optarg'"
11978 ac_need_defaults=false;;
11979 --he | --h | --help | --hel | -h )
11980 $as_echo "$ac_cs_usage"; exit ;;
11981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11983 ac_cs_silent=: ;;
11984
11985 # This is an error.
11986 -*) as_fn_error $? "unrecognized option: \`$1'
11987 Try \`$0 --help' for more information." ;;
11988
11989 *) as_fn_append ac_config_targets " $1"
11990 ac_need_defaults=false ;;
11991
11992 esac
11993 shift
11994 done
11995
11996 ac_configure_extra_args=
11997
11998 if $ac_cs_silent; then
11999 exec 6>/dev/null
12000 ac_configure_extra_args="$ac_configure_extra_args --silent"
12001 fi
12002
12003 _ACEOF
12004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005 if \$ac_cs_recheck; then
12006 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12007 shift
12008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12009 CONFIG_SHELL='$SHELL'
12010 export CONFIG_SHELL
12011 exec "\$@"
12012 fi
12013
12014 _ACEOF
12015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12016 exec 5>>config.log
12017 {
12018 echo
12019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12020 ## Running $as_me. ##
12021 _ASBOX
12022 $as_echo "$ac_log"
12023 } >&5
12024
12025 _ACEOF
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 #
12028 # INIT-COMMANDS
12029 #
12030 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12031
12032 _ACEOF
12033
12034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12035
12036 # Handling of arguments.
12037 for ac_config_target in $ac_config_targets
12038 do
12039 case $ac_config_target in
12040 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12042 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12043 "xtrans.pc") CONFIG_FILES="$CONFIG_FILES xtrans.pc" ;;
12044
12045 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12046 esac
12047 done
12048
12049
12050 # If the user did not use the arguments to specify the items to instantiate,
12051 # then the envvar interface is used. Set only those that are not.
12052 # We use the long form for the default assignment because of an extremely
12053 # bizarre bug on SunOS 4.1.3.
12054 if $ac_need_defaults; then
12055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12057 fi
12058
12059 # Have a temporary directory for convenience. Make it in the build tree
12060 # simply because there is no reason against having it here, and in addition,
12061 # creating and moving files from /tmp can sometimes cause problems.
12062 # Hook for its removal unless debugging.
12063 # Note that there is a small window in which the directory will not be cleaned:
12064 # after its creation but before its name has been assigned to `$tmp'.
12065 $debug ||
12066 {
12067 tmp= ac_tmp=
12068 trap 'exit_status=$?
12069 : "${ac_tmp:=$tmp}"
12070 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12071 ' 0
12072 trap 'as_fn_exit 1' 1 2 13 15
12073 }
12074 # Create a (secure) tmp directory for tmp files.
12075
12076 {
12077 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12078 test -d "$tmp"
12079 } ||
12080 {
12081 tmp=./conf$$-$RANDOM
12082 (umask 077 && mkdir "$tmp")
12083 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12084 ac_tmp=$tmp
12085
12086 # Set up the scripts for CONFIG_FILES section.
12087 # No need to generate them if there are no CONFIG_FILES.
12088 # This happens for instance with `./config.status config.h'.
12089 if test -n "$CONFIG_FILES"; then
12090
12091
12092 ac_cr=`echo X | tr X '\015'`
12093 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12094 # But we know of no other shell where ac_cr would be empty at this
12095 # point, so we can use a bashism as a fallback.
12096 if test "x$ac_cr" = x; then
12097 eval ac_cr=\$\'\\r\'
12098 fi
12099 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12100 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12101 ac_cs_awk_cr='\\r'
12102 else
12103 ac_cs_awk_cr=$ac_cr
12104 fi
12105
12106 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12107 _ACEOF
12108
12109
12110 {
12111 echo "cat >conf$$subs.awk <<_ACEOF" &&
12112 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12113 echo "_ACEOF"
12114 } >conf$$subs.sh ||
12115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12116 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12117 ac_delim='%!_!# '
12118 for ac_last_try in false false false false false :; do
12119 . ./conf$$subs.sh ||
12120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12121
12122 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12123 if test $ac_delim_n = $ac_delim_num; then
12124 break
12125 elif $ac_last_try; then
12126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12127 else
12128 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12129 fi
12130 done
12131 rm -f conf$$subs.sh
12132
12133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12134 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12135 _ACEOF
12136 sed -n '
12137 h
12138 s/^/S["/; s/!.*/"]=/
12139 p
12140 g
12141 s/^[^!]*!//
12142 :repl
12143 t repl
12144 s/'"$ac_delim"'$//
12145 t delim
12146 :nl
12147 h
12148 s/\(.\{148\}\)..*/\1/
12149 t more1
12150 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12151 p
12152 n
12153 b repl
12154 :more1
12155 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12156 p
12157 g
12158 s/.\{148\}//
12159 t nl
12160 :delim
12161 h
12162 s/\(.\{148\}\)..*/\1/
12163 t more2
12164 s/["\\]/\\&/g; s/^/"/; s/$/"/
12165 p
12166 b
12167 :more2
12168 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12169 p
12170 g
12171 s/.\{148\}//
12172 t delim
12173 ' <conf$$subs.awk | sed '
12174 /^[^""]/{
12175 N
12176 s/\n//
12177 }
12178 ' >>$CONFIG_STATUS || ac_write_fail=1
12179 rm -f conf$$subs.awk
12180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181 _ACAWK
12182 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12183 for (key in S) S_is_set[key] = 1
12184 FS = ""
12185
12186 }
12187 {
12188 line = $ 0
12189 nfields = split(line, field, "@")
12190 substed = 0
12191 len = length(field[1])
12192 for (i = 2; i < nfields; i++) {
12193 key = field[i]
12194 keylen = length(key)
12195 if (S_is_set[key]) {
12196 value = S[key]
12197 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12198 len += length(value) + length(field[++i])
12199 substed = 1
12200 } else
12201 len += 1 + keylen
12202 }
12203
12204 print line
12205 }
12206
12207 _ACAWK
12208 _ACEOF
12209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12210 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12211 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12212 else
12213 cat
12214 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12215 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12216 _ACEOF
12217
12218 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12219 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12220 # trailing colons and then remove the whole line if VPATH becomes empty
12221 # (actually we leave an empty line to preserve line numbers).
12222 if test "x$srcdir" = x.; then
12223 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12224 h
12225 s///
12226 s/^/:/
12227 s/[ ]*$/:/
12228 s/:\$(srcdir):/:/g
12229 s/:\${srcdir}:/:/g
12230 s/:@srcdir@:/:/g
12231 s/^:*//
12232 s/:*$//
12233 x
12234 s/\(=[ ]*\).*/\1/
12235 G
12236 s/\n//
12237 s/^[^=]*=[ ]*$//
12238 }'
12239 fi
12240
12241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12242 fi # test -n "$CONFIG_FILES"
12243
12244
12245 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12246 shift
12247 for ac_tag
12248 do
12249 case $ac_tag in
12250 :[FHLC]) ac_mode=$ac_tag; continue;;
12251 esac
12252 case $ac_mode$ac_tag in
12253 :[FHL]*:*);;
12254 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12255 :[FH]-) ac_tag=-:-;;
12256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12257 esac
12258 ac_save_IFS=$IFS
12259 IFS=:
12260 set x $ac_tag
12261 IFS=$ac_save_IFS
12262 shift
12263 ac_file=$1
12264 shift
12265
12266 case $ac_mode in
12267 :L) ac_source=$1;;
12268 :[FH])
12269 ac_file_inputs=
12270 for ac_f
12271 do
12272 case $ac_f in
12273 -) ac_f="$ac_tmp/stdin";;
12274 *) # Look for the file first in the build tree, then in the source tree
12275 # (if the path is not absolute). The absolute path cannot be DOS-style,
12276 # because $ac_f cannot contain `:'.
12277 test -f "$ac_f" ||
12278 case $ac_f in
12279 [\\/$]*) false;;
12280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12281 esac ||
12282 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12283 esac
12284 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12285 as_fn_append ac_file_inputs " '$ac_f'"
12286 done
12287
12288 # Let's still pretend it is `configure' which instantiates (i.e., don't
12289 # use $as_me), people would be surprised to read:
12290 # /* config.h. Generated by config.status. */
12291 configure_input='Generated from '`
12292 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12293 `' by configure.'
12294 if test x"$ac_file" != x-; then
12295 configure_input="$ac_file. $configure_input"
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12297 $as_echo "$as_me: creating $ac_file" >&6;}
12298 fi
12299 # Neutralize special characters interpreted by sed in replacement strings.
12300 case $configure_input in #(
12301 *\&* | *\|* | *\\* )
12302 ac_sed_conf_input=`$as_echo "$configure_input" |
12303 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12304 *) ac_sed_conf_input=$configure_input;;
12305 esac
12306
12307 case $ac_tag in
12308 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12310 esac
12311 ;;
12312 esac
12313
12314 ac_dir=`$as_dirname -- "$ac_file" ||
12315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12316 X"$ac_file" : 'X\(//\)[^/]' \| \
12317 X"$ac_file" : 'X\(//\)$' \| \
12318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12319 $as_echo X"$ac_file" |
12320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12321 s//\1/
12322 q
12323 }
12324 /^X\(\/\/\)[^/].*/{
12325 s//\1/
12326 q
12327 }
12328 /^X\(\/\/\)$/{
12329 s//\1/
12330 q
12331 }
12332 /^X\(\/\).*/{
12333 s//\1/
12334 q
12335 }
12336 s/.*/./; q'`
12337 as_dir="$ac_dir"; as_fn_mkdir_p
12338 ac_builddir=.
12339
12340 case "$ac_dir" in
12341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12342 *)
12343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12344 # A ".." for each directory in $ac_dir_suffix.
12345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12346 case $ac_top_builddir_sub in
12347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12349 esac ;;
12350 esac
12351 ac_abs_top_builddir=$ac_pwd
12352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12353 # for backward compatibility:
12354 ac_top_builddir=$ac_top_build_prefix
12355
12356 case $srcdir in
12357 .) # We are building in place.
12358 ac_srcdir=.
12359 ac_top_srcdir=$ac_top_builddir_sub
12360 ac_abs_top_srcdir=$ac_pwd ;;
12361 [\\/]* | ?:[\\/]* ) # Absolute name.
12362 ac_srcdir=$srcdir$ac_dir_suffix;
12363 ac_top_srcdir=$srcdir
12364 ac_abs_top_srcdir=$srcdir ;;
12365 *) # Relative name.
12366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12367 ac_top_srcdir=$ac_top_build_prefix$srcdir
12368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12369 esac
12370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12371
12372
12373 case $ac_mode in
12374 :F)
12375 #
12376 # CONFIG_FILE
12377 #
12378
12379 case $INSTALL in
12380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12382 esac
12383 ac_MKDIR_P=$MKDIR_P
12384 case $MKDIR_P in
12385 [\\/$]* | ?:[\\/]* ) ;;
12386 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12387 esac
12388 _ACEOF
12389
12390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391 # If the template does not know about datarootdir, expand it.
12392 # FIXME: This hack should be removed a few years after 2.60.
12393 ac_datarootdir_hack=; ac_datarootdir_seen=
12394 ac_sed_dataroot='
12395 /datarootdir/ {
12396 p
12397 q
12398 }
12399 /@datadir@/p
12400 /@docdir@/p
12401 /@infodir@/p
12402 /@localedir@/p
12403 /@mandir@/p'
12404 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12405 *datarootdir*) ac_datarootdir_seen=yes;;
12406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12408 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12409 _ACEOF
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 ac_datarootdir_hack='
12412 s&@datadir@&$datadir&g
12413 s&@docdir@&$docdir&g
12414 s&@infodir@&$infodir&g
12415 s&@localedir@&$localedir&g
12416 s&@mandir@&$mandir&g
12417 s&\\\${datarootdir}&$datarootdir&g' ;;
12418 esac
12419 _ACEOF
12420
12421 # Neutralize VPATH when `$srcdir' = `.'.
12422 # Shell code in configure.ac might set extrasub.
12423 # FIXME: do we really want to maintain this feature?
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12425 ac_sed_extra="$ac_vpsub
12426 $extrasub
12427 _ACEOF
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429 :t
12430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12431 s|@configure_input@|$ac_sed_conf_input|;t t
12432 s&@top_builddir@&$ac_top_builddir_sub&;t t
12433 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12434 s&@srcdir@&$ac_srcdir&;t t
12435 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12436 s&@top_srcdir@&$ac_top_srcdir&;t t
12437 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12438 s&@builddir@&$ac_builddir&;t t
12439 s&@abs_builddir@&$ac_abs_builddir&;t t
12440 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12441 s&@INSTALL@&$ac_INSTALL&;t t
12442 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12443 $ac_datarootdir_hack
12444 "
12445 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12446 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12447
12448 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12449 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12450 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12451 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12453 which seems to be undefined. Please make sure it is defined" >&5
12454 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12455 which seems to be undefined. Please make sure it is defined" >&2;}
12456
12457 rm -f "$ac_tmp/stdin"
12458 case $ac_file in
12459 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12460 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12461 esac \
12462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12463 ;;
12464
12465
12466 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12467 $as_echo "$as_me: executing $ac_file commands" >&6;}
12468 ;;
12469 esac
12470
12471
12472 case $ac_file$ac_mode in
12473 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12474 # Older Autoconf quotes --file arguments for eval, but not when files
12475 # are listed without --file. Let's play safe and only enable the eval
12476 # if we detect the quoting.
12477 case $CONFIG_FILES in
12478 *\'*) eval set x "$CONFIG_FILES" ;;
12479 *) set x $CONFIG_FILES ;;
12480 esac
12481 shift
12482 for mf
12483 do
12484 # Strip MF so we end up with the name of the file.
12485 mf=`echo "$mf" | sed -e 's/:.*$//'`
12486 # Check whether this is an Automake generated Makefile or not.
12487 # We used to match only the files named 'Makefile.in', but
12488 # some people rename them; so instead we look at the file content.
12489 # Grep'ing the first line is not enough: some people post-process
12490 # each Makefile.in and add a new line on top of each file to say so.
12491 # Grep'ing the whole file is not good either: AIX grep has a line
12492 # limit of 2048, but all sed's we know have understand at least 4000.
12493 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12494 dirpart=`$as_dirname -- "$mf" ||
12495 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12496 X"$mf" : 'X\(//\)[^/]' \| \
12497 X"$mf" : 'X\(//\)$' \| \
12498 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12499 $as_echo X"$mf" |
12500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\/\)[^/].*/{
12505 s//\1/
12506 q
12507 }
12508 /^X\(\/\/\)$/{
12509 s//\1/
12510 q
12511 }
12512 /^X\(\/\).*/{
12513 s//\1/
12514 q
12515 }
12516 s/.*/./; q'`
12517 else
12518 continue
12519 fi
12520 # Extract the definition of DEPDIR, am__include, and am__quote
12521 # from the Makefile without running 'make'.
12522 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12523 test -z "$DEPDIR" && continue
12524 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12525 test -z "$am__include" && continue
12526 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12527 # Find all dependency output files, they are included files with
12528 # $(DEPDIR) in their names. We invoke sed twice because it is the
12529 # simplest approach to changing $(DEPDIR) to its actual value in the
12530 # expansion.
12531 for file in `sed -n "
12532 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12534 # Make sure the directory exists.
12535 test -f "$dirpart/$file" && continue
12536 fdir=`$as_dirname -- "$file" ||
12537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12538 X"$file" : 'X\(//\)[^/]' \| \
12539 X"$file" : 'X\(//\)$' \| \
12540 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12541 $as_echo X"$file" |
12542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12543 s//\1/
12544 q
12545 }
12546 /^X\(\/\/\)[^/].*/{
12547 s//\1/
12548 q
12549 }
12550 /^X\(\/\/\)$/{
12551 s//\1/
12552 q
12553 }
12554 /^X\(\/\).*/{
12555 s//\1/
12556 q
12557 }
12558 s/.*/./; q'`
12559 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12560 # echo "creating $dirpart/$file"
12561 echo '# dummy' > "$dirpart/$file"
12562 done
12563 done
12564 }
12565 ;;
12566
12567 esac
12568 done # for ac_tag
12569
12570
12571 as_fn_exit 0
12572 _ACEOF
12573 ac_clean_files=$ac_clean_files_save
12574
12575 test $ac_write_fail = 0 ||
12576 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12577
12578
12579 # configure is writing to config.log, and then calls config.status.
12580 # config.status does its own redirection, appending to config.log.
12581 # Unfortunately, on DOS this fails, as config.log is still kept open
12582 # by configure, so config.status won't be able to write to it; its
12583 # output is simply discarded. So we exec the FD to /dev/null,
12584 # effectively closing config.log, so it can be properly (re)opened and
12585 # appended to by config.status. When coming back to configure, we
12586 # need to make the FD available again.
12587 if test "$no_create" != yes; then
12588 ac_cs_success=:
12589 ac_config_status_args=
12590 test "$silent" = yes &&
12591 ac_config_status_args="$ac_config_status_args --quiet"
12592 exec 5>/dev/null
12593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12594 exec 5>>config.log
12595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12596 # would make configure fail if this is the last instruction.
12597 $ac_cs_success || as_fn_exit 1
12598 fi
12599 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12601 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12602 fi
12603
12604