configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xfd 1.1.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xfd/-/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xfd'
614 PACKAGE_TARNAME='xfd'
615 PACKAGE_VERSION='1.1.4'
616 PACKAGE_STRING='xfd 1.1.4'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfd/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 appdefaultdir
658 APPDEFS_LIBS
659 APPDEFS_CFLAGS
660 XFD_LIBS
661 XFD_CFLAGS
662 USE_GETTEXT_FALSE
663 USE_GETTEXT_TRUE
664 LOCALEDIR
665 MAN_SUBSTS
666 XORG_MAN_PAGE
667 ADMIN_MAN_DIR
668 DRIVER_MAN_DIR
669 MISC_MAN_DIR
670 FILE_MAN_DIR
671 LIB_MAN_DIR
672 APP_MAN_DIR
673 ADMIN_MAN_SUFFIX
674 DRIVER_MAN_SUFFIX
675 MISC_MAN_SUFFIX
676 FILE_MAN_SUFFIX
677 LIB_MAN_SUFFIX
678 APP_MAN_SUFFIX
679 SED
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 INSTALL_CMD
689 PKG_CONFIG_LIBDIR
690 PKG_CONFIG_PATH
691 PKG_CONFIG
692 CHANGELOG_CMD
693 STRICT_CFLAGS
694 CWARNFLAGS
695 BASE_CFLAGS
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 CSCOPE
717 ETAGS
718 CTAGS
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 runstatedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL
781 am__quote'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 enable_silent_rules
786 enable_dependency_tracking
787 enable_selective_werror
788 enable_strict_compilation
789 with_localedir
790 with_xkb
791 with_appdefaultdir
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 PKG_CONFIG
802 PKG_CONFIG_PATH
803 PKG_CONFIG_LIBDIR
804 XFD_CFLAGS
805 XFD_LIBS
806 APPDEFS_CFLAGS
807 APPDEFS_LIBS'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 runstatedir='${localstatedir}/run'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: \`$ac_useropt'"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: \`$ac_useropt'"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -runstatedir | --runstatedir | --runstatedi | --runstated \
1098 | --runstate | --runstat | --runsta | --runst | --runs \
1099 | --run | --ru | --r)
1100 ac_prev=runstatedir ;;
1101 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1102 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1103 | --run=* | --ru=* | --r=*)
1104 runstatedir=$ac_optarg ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: \`$ac_useropt'"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: \`$ac_useropt'"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir runstatedir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 printf "%s\n" X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures xfd 1.1.4 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/xfd]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1410 _ACEOF
1411
1412 cat <<\_ACEOF
1413
1414 Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of xfd 1.1.4:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-silent-rules less verbose build output (undo: "make V=1")
1436 --disable-silent-rules verbose build output (undo: "make V=0")
1437 --enable-dependency-tracking
1438 do not reject slow dependency extractors
1439 --disable-dependency-tracking
1440 speeds up one-time build
1441 --disable-selective-werror
1442 Turn off selective compiler errors. (default:
1443 enabled)
1444 --enable-strict-compilation
1445 Enable all warnings from compiler and make them
1446 errors (default: disabled)
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-localedir=<path> Path to install message files in (default:
1452 datadir/locale)
1453 --without-xkb Disable use of XKB to sound bells (Default is
1454 with-xkb)
1455 --with-appdefaultdir=<pathname>
1456 specify directory for app-defaults files (default is
1457 autodetected)
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 PKG_CONFIG path to pkg-config utility
1468 PKG_CONFIG_PATH
1469 directories to add to pkg-config's search path
1470 PKG_CONFIG_LIBDIR
1471 path overriding pkg-config's built-in search path
1472 XFD_CFLAGS C compiler flags for XFD, overriding pkg-config
1473 XFD_LIBS linker flags for XFD, overriding pkg-config
1474 APPDEFS_CFLAGS
1475 C compiler flags for APPDEFS, overriding pkg-config
1476 APPDEFS_LIBS
1477 linker flags for APPDEFS, overriding pkg-config
1478
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1481
1482 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/-/issues>.
1483 _ACEOF
1484 ac_status=$?
1485 fi
1486
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 continue
1493 ac_builddir=.
1494
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *)
1498 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1510
1511 case $srcdir in
1512 .) # We are building in place.
1513 ac_srcdir=.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for configure.gnu first; this name is used for a wrapper for
1529 # Metaconfig's "Configure" on case-insensitive file systems.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 xfd configure 1.1.4
1547 generated by GNU Autoconf 2.71
1548
1549 Copyright (C) 2021 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1554 fi
1555
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1559
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext conftest.beam
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 printf "%s\n" "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext
1586 then :
1587 ac_retval=0
1588 else $as_nop
1589 printf "%s\n" "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1600 # ------------------------------------------------------------------
1601 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1602 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1603 ac_fn_check_decl ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 as_decl_name=`echo $2|sed 's/ *(.*//'`
1607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1608 printf %s "checking whether $as_decl_name is declared... " >&6; }
1609 if eval test \${$3+y}
1610 then :
1611 printf %s "(cached) " >&6
1612 else $as_nop
1613 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1614 eval ac_save_FLAGS=\$$6
1615 as_fn_append $6 " $5"
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618 $4
1619 int
1620 main (void)
1621 {
1622 #ifndef $as_decl_name
1623 #ifdef __cplusplus
1624 (void) $as_decl_use;
1625 #else
1626 (void) $as_decl_name;
1627 #endif
1628 #endif
1629
1630 ;
1631 return 0;
1632 }
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"
1635 then :
1636 eval "$3=yes"
1637 else $as_nop
1638 eval "$3=no"
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1641 eval $6=\$ac_save_FLAGS
1642
1643 fi
1644 eval ac_res=\$$3
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 printf "%s\n" "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_check_decl
1650
1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists and can be compiled using the include files in
1654 # INCLUDES, setting the cache variable VAR accordingly.
1655 ac_fn_c_check_header_compile ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 printf %s "checking for $2... " >&6; }
1660 if eval test \${$3+y}
1661 then :
1662 printf %s "(cached) " >&6
1663 else $as_nop
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 $4
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"
1670 then :
1671 eval "$3=yes"
1672 else $as_nop
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 printf "%s\n" "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest$ac_exeext && {
1710 test "$cross_compiling" = yes ||
1711 test -x conftest$ac_exeext
1712 }
1713 then :
1714 ac_retval=0
1715 else $as_nop
1716 printf "%s\n" "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_link
1730 ac_configure_args_raw=
1731 for ac_arg
1732 do
1733 case $ac_arg in
1734 *\'*)
1735 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 esac
1737 as_fn_append ac_configure_args_raw " '$ac_arg'"
1738 done
1739
1740 case $ac_configure_args_raw in
1741 *$as_nl*)
1742 ac_safe_unquote= ;;
1743 *)
1744 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1745 ac_unsafe_a="$ac_unsafe_z#~"
1746 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1747 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1748 esac
1749
1750 cat >config.log <<_ACEOF
1751 This file contains any messages produced by compilers while
1752 running configure, to aid debugging if configure makes a mistake.
1753
1754 It was created by xfd $as_me 1.1.4, which was
1755 generated by GNU Autoconf 2.71. Invocation command line was
1756
1757 $ $0$ac_configure_args_raw
1758
1759 _ACEOF
1760 exec 5>>config.log
1761 {
1762 cat <<_ASUNAME
1763 ## --------- ##
1764 ## Platform. ##
1765 ## --------- ##
1766
1767 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1768 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1769 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1770 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1771 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1772
1773 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1774 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1775
1776 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1777 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1778 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1779 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1780 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1781 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1782 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1783
1784 _ASUNAME
1785
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789 IFS=$as_save_IFS
1790 case $as_dir in #(((
1791 '') as_dir=./ ;;
1792 */) ;;
1793 *) as_dir=$as_dir/ ;;
1794 esac
1795 printf "%s\n" "PATH: $as_dir"
1796 done
1797 IFS=$as_save_IFS
1798
1799 } >&5
1800
1801 cat >&5 <<_ACEOF
1802
1803
1804 ## ----------- ##
1805 ## Core tests. ##
1806 ## ----------- ##
1807
1808 _ACEOF
1809
1810
1811 # Keep a trace of the command line.
1812 # Strip out --no-create and --no-recursion so they do not pile up.
1813 # Strip out --silent because we don't want to record it for future runs.
1814 # Also quote any args containing shell meta-characters.
1815 # Make two passes to allow for proper duplicate-argument suppression.
1816 ac_configure_args=
1817 ac_configure_args0=
1818 ac_configure_args1=
1819 ac_must_keep_next=false
1820 for ac_pass in 1 2
1821 do
1822 for ac_arg
1823 do
1824 case $ac_arg in
1825 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1827 | -silent | --silent | --silen | --sile | --sil)
1828 continue ;;
1829 *\'*)
1830 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1831 esac
1832 case $ac_pass in
1833 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1834 2)
1835 as_fn_append ac_configure_args1 " '$ac_arg'"
1836 if test $ac_must_keep_next = true; then
1837 ac_must_keep_next=false # Got value, back to normal.
1838 else
1839 case $ac_arg in
1840 *=* | --config-cache | -C | -disable-* | --disable-* \
1841 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1842 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1843 | -with-* | --with-* | -without-* | --without-* | --x)
1844 case "$ac_configure_args0 " in
1845 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1846 esac
1847 ;;
1848 -* ) ac_must_keep_next=true ;;
1849 esac
1850 fi
1851 as_fn_append ac_configure_args " '$ac_arg'"
1852 ;;
1853 esac
1854 done
1855 done
1856 { ac_configure_args0=; unset ac_configure_args0;}
1857 { ac_configure_args1=; unset ac_configure_args1;}
1858
1859 # When interrupted or exit'd, cleanup temporary files, and complete
1860 # config.log. We remove comments because anyway the quotes in there
1861 # would cause problems or look ugly.
1862 # WARNING: Use '\'' to represent an apostrophe within the trap.
1863 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1864 trap 'exit_status=$?
1865 # Sanitize IFS.
1866 IFS=" "" $as_nl"
1867 # Save into config.log some information that might help in debugging.
1868 {
1869 echo
1870
1871 printf "%s\n" "## ---------------- ##
1872 ## Cache variables. ##
1873 ## ---------------- ##"
1874 echo
1875 # The following way of writing the cache mishandles newlines in values,
1876 (
1877 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1878 eval ac_val=\$$ac_var
1879 case $ac_val in #(
1880 *${as_nl}*)
1881 case $ac_var in #(
1882 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1883 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1884 esac
1885 case $ac_var in #(
1886 _ | IFS | as_nl) ;; #(
1887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1888 *) { eval $ac_var=; unset $ac_var;} ;;
1889 esac ;;
1890 esac
1891 done
1892 (set) 2>&1 |
1893 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1894 *${as_nl}ac_space=\ *)
1895 sed -n \
1896 "s/'\''/'\''\\\\'\'''\''/g;
1897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1898 ;; #(
1899 *)
1900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1901 ;;
1902 esac |
1903 sort
1904 )
1905 echo
1906
1907 printf "%s\n" "## ----------------- ##
1908 ## Output variables. ##
1909 ## ----------------- ##"
1910 echo
1911 for ac_var in $ac_subst_vars
1912 do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 printf "%s\n" "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1920
1921 if test -n "$ac_subst_files"; then
1922 printf "%s\n" "## ------------------- ##
1923 ## File substitutions. ##
1924 ## ------------------- ##"
1925 echo
1926 for ac_var in $ac_subst_files
1927 do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in
1930 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931 esac
1932 printf "%s\n" "$ac_var='\''$ac_val'\''"
1933 done | sort
1934 echo
1935 fi
1936
1937 if test -s confdefs.h; then
1938 printf "%s\n" "## ----------- ##
1939 ## confdefs.h. ##
1940 ## ----------- ##"
1941 echo
1942 cat confdefs.h
1943 echo
1944 fi
1945 test "$ac_signal" != 0 &&
1946 printf "%s\n" "$as_me: caught signal $ac_signal"
1947 printf "%s\n" "$as_me: exit $exit_status"
1948 } >&5
1949 rm -f core *.core core.conftest.* &&
1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1951 exit $exit_status
1952 ' 0
1953 for ac_signal in 1 2 13 15; do
1954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1955 done
1956 ac_signal=0
1957
1958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1959 rm -f -r conftest* confdefs.h
1960
1961 printf "%s\n" "/* confdefs.h */" > confdefs.h
1962
1963 # Predefined preprocessor variables.
1964
1965 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1966
1967 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1968
1969 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1970
1971 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1972
1973 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1974
1975 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1976
1977
1978 # Let the site file select an alternate cache file if it wants to.
1979 # Prefer an explicitly selected file to automatically selected ones.
1980 if test -n "$CONFIG_SITE"; then
1981 ac_site_files="$CONFIG_SITE"
1982 elif test "x$prefix" != xNONE; then
1983 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1984 else
1985 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1986 fi
1987
1988 for ac_site_file in $ac_site_files
1989 do
1990 case $ac_site_file in #(
1991 */*) :
1992 ;; #(
1993 *) :
1994 ac_site_file=./$ac_site_file ;;
1995 esac
1996 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1998 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1999 sed 's/^/| /' "$ac_site_file" >&5
2000 . "$ac_site_file" \
2001 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2003 as_fn_error $? "failed to load site script $ac_site_file
2004 See \`config.log' for more details" "$LINENO" 5; }
2005 fi
2006 done
2007
2008 if test -r "$cache_file"; then
2009 # Some versions of bash will fail to source /dev/null (special files
2010 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2013 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2014 case $cache_file in
2015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2016 *) . "./$cache_file";;
2017 esac
2018 fi
2019 else
2020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2021 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2022 >$cache_file
2023 fi
2024
2025 # Test code for whether the C compiler supports C89 (global declarations)
2026 ac_c_conftest_c89_globals='
2027 /* Does the compiler advertise C89 conformance?
2028 Do not test the value of __STDC__, because some compilers set it to 0
2029 while being otherwise adequately conformant. */
2030 #if !defined __STDC__
2031 # error "Compiler does not advertise C89 conformance"
2032 #endif
2033
2034 #include <stddef.h>
2035 #include <stdarg.h>
2036 struct stat;
2037 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2038 struct buf { int x; };
2039 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2040 static char *e (p, i)
2041 char **p;
2042 int i;
2043 {
2044 return p[i];
2045 }
2046 static char *f (char * (*g) (char **, int), char **p, ...)
2047 {
2048 char *s;
2049 va_list v;
2050 va_start (v,p);
2051 s = g (p, va_arg (v,int));
2052 va_end (v);
2053 return s;
2054 }
2055
2056 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2057 function prototypes and stuff, but not \xHH hex character constants.
2058 These do not provoke an error unfortunately, instead are silently treated
2059 as an "x". The following induces an error, until -std is added to get
2060 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2061 array size at least. It is necessary to write \x00 == 0 to get something
2062 that is true only with -std. */
2063 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2064
2065 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2066 inside strings and character constants. */
2067 #define FOO(x) '\''x'\''
2068 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2069
2070 int test (int i, double x);
2071 struct s1 {int (*f) (int a);};
2072 struct s2 {int (*f) (double a);};
2073 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2074 int, int);'
2075
2076 # Test code for whether the C compiler supports C89 (body of main).
2077 ac_c_conftest_c89_main='
2078 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2079 '
2080
2081 # Test code for whether the C compiler supports C99 (global declarations)
2082 ac_c_conftest_c99_globals='
2083 // Does the compiler advertise C99 conformance?
2084 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2085 # error "Compiler does not advertise C99 conformance"
2086 #endif
2087
2088 #include <stdbool.h>
2089 extern int puts (const char *);
2090 extern int printf (const char *, ...);
2091 extern int dprintf (int, const char *, ...);
2092 extern void *malloc (size_t);
2093
2094 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2095 // dprintf is used instead of fprintf to avoid needing to declare
2096 // FILE and stderr.
2097 #define debug(...) dprintf (2, __VA_ARGS__)
2098 #define showlist(...) puts (#__VA_ARGS__)
2099 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2100 static void
2101 test_varargs_macros (void)
2102 {
2103 int x = 1234;
2104 int y = 5678;
2105 debug ("Flag");
2106 debug ("X = %d\n", x);
2107 showlist (The first, second, and third items.);
2108 report (x>y, "x is %d but y is %d", x, y);
2109 }
2110
2111 // Check long long types.
2112 #define BIG64 18446744073709551615ull
2113 #define BIG32 4294967295ul
2114 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2115 #if !BIG_OK
2116 #error "your preprocessor is broken"
2117 #endif
2118 #if BIG_OK
2119 #else
2120 #error "your preprocessor is broken"
2121 #endif
2122 static long long int bignum = -9223372036854775807LL;
2123 static unsigned long long int ubignum = BIG64;
2124
2125 struct incomplete_array
2126 {
2127 int datasize;
2128 double data[];
2129 };
2130
2131 struct named_init {
2132 int number;
2133 const wchar_t *name;
2134 double average;
2135 };
2136
2137 typedef const char *ccp;
2138
2139 static inline int
2140 test_restrict (ccp restrict text)
2141 {
2142 // See if C++-style comments work.
2143 // Iterate through items via the restricted pointer.
2144 // Also check for declarations in for loops.
2145 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2146 continue;
2147 return 0;
2148 }
2149
2150 // Check varargs and va_copy.
2151 static bool
2152 test_varargs (const char *format, ...)
2153 {
2154 va_list args;
2155 va_start (args, format);
2156 va_list args_copy;
2157 va_copy (args_copy, args);
2158
2159 const char *str = "";
2160 int number = 0;
2161 float fnumber = 0;
2162
2163 while (*format)
2164 {
2165 switch (*format++)
2166 {
2167 case '\''s'\'': // string
2168 str = va_arg (args_copy, const char *);
2169 break;
2170 case '\''d'\'': // int
2171 number = va_arg (args_copy, int);
2172 break;
2173 case '\''f'\'': // float
2174 fnumber = va_arg (args_copy, double);
2175 break;
2176 default:
2177 break;
2178 }
2179 }
2180 va_end (args_copy);
2181 va_end (args);
2182
2183 return *str && number && fnumber;
2184 }
2185 '
2186
2187 # Test code for whether the C compiler supports C99 (body of main).
2188 ac_c_conftest_c99_main='
2189 // Check bool.
2190 _Bool success = false;
2191 success |= (argc != 0);
2192
2193 // Check restrict.
2194 if (test_restrict ("String literal") == 0)
2195 success = true;
2196 char *restrict newvar = "Another string";
2197
2198 // Check varargs.
2199 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2200 test_varargs_macros ();
2201
2202 // Check flexible array members.
2203 struct incomplete_array *ia =
2204 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2205 ia->datasize = 10;
2206 for (int i = 0; i < ia->datasize; ++i)
2207 ia->data[i] = i * 1.234;
2208
2209 // Check named initializers.
2210 struct named_init ni = {
2211 .number = 34,
2212 .name = L"Test wide string",
2213 .average = 543.34343,
2214 };
2215
2216 ni.number = 58;
2217
2218 int dynamic_array[ni.number];
2219 dynamic_array[0] = argv[0][0];
2220 dynamic_array[ni.number - 1] = 543;
2221
2222 // work around unused variable warnings
2223 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2224 || dynamic_array[ni.number - 1] != 543);
2225 '
2226
2227 # Test code for whether the C compiler supports C11 (global declarations)
2228 ac_c_conftest_c11_globals='
2229 // Does the compiler advertise C11 conformance?
2230 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2231 # error "Compiler does not advertise C11 conformance"
2232 #endif
2233
2234 // Check _Alignas.
2235 char _Alignas (double) aligned_as_double;
2236 char _Alignas (0) no_special_alignment;
2237 extern char aligned_as_int;
2238 char _Alignas (0) _Alignas (int) aligned_as_int;
2239
2240 // Check _Alignof.
2241 enum
2242 {
2243 int_alignment = _Alignof (int),
2244 int_array_alignment = _Alignof (int[100]),
2245 char_alignment = _Alignof (char)
2246 };
2247 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2248
2249 // Check _Noreturn.
2250 int _Noreturn does_not_return (void) { for (;;) continue; }
2251
2252 // Check _Static_assert.
2253 struct test_static_assert
2254 {
2255 int x;
2256 _Static_assert (sizeof (int) <= sizeof (long int),
2257 "_Static_assert does not work in struct");
2258 long int y;
2259 };
2260
2261 // Check UTF-8 literals.
2262 #define u8 syntax error!
2263 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2264
2265 // Check duplicate typedefs.
2266 typedef long *long_ptr;
2267 typedef long int *long_ptr;
2268 typedef long_ptr long_ptr;
2269
2270 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2271 struct anonymous
2272 {
2273 union {
2274 struct { int i; int j; };
2275 struct { int k; long int l; } w;
2276 };
2277 int m;
2278 } v1;
2279 '
2280
2281 # Test code for whether the C compiler supports C11 (body of main).
2282 ac_c_conftest_c11_main='
2283 _Static_assert ((offsetof (struct anonymous, i)
2284 == offsetof (struct anonymous, w.k)),
2285 "Anonymous union alignment botch");
2286 v1.i = 2;
2287 v1.w.k = 5;
2288 ok |= v1.i != 5;
2289 '
2290
2291 # Test code for whether the C compiler supports C11 (complete).
2292 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2293 ${ac_c_conftest_c99_globals}
2294 ${ac_c_conftest_c11_globals}
2295
2296 int
2297 main (int argc, char **argv)
2298 {
2299 int ok = 0;
2300 ${ac_c_conftest_c89_main}
2301 ${ac_c_conftest_c99_main}
2302 ${ac_c_conftest_c11_main}
2303 return ok;
2304 }
2305 "
2306
2307 # Test code for whether the C compiler supports C99 (complete).
2308 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2309 ${ac_c_conftest_c99_globals}
2310
2311 int
2312 main (int argc, char **argv)
2313 {
2314 int ok = 0;
2315 ${ac_c_conftest_c89_main}
2316 ${ac_c_conftest_c99_main}
2317 return ok;
2318 }
2319 "
2320
2321 # Test code for whether the C compiler supports C89 (complete).
2322 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2323
2324 int
2325 main (int argc, char **argv)
2326 {
2327 int ok = 0;
2328 ${ac_c_conftest_c89_main}
2329 return ok;
2330 }
2331 "
2332
2333 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2334 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2335 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2336 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2337 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2338 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2339 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2340 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2341 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2342
2343 # Auxiliary files required by this configure script.
2344 ac_aux_files="config.guess config.sub compile missing install-sh"
2345
2346 # Locations in which to look for auxiliary files.
2347 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2348
2349 # Search for a directory containing all of the required auxiliary files,
2350 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2351 # If we don't find one directory that contains all the files we need,
2352 # we report the set of missing files from the *first* directory in
2353 # $ac_aux_dir_candidates and give up.
2354 ac_missing_aux_files=""
2355 ac_first_candidate=:
2356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 as_found=false
2359 for as_dir in $ac_aux_dir_candidates
2360 do
2361 IFS=$as_save_IFS
2362 case $as_dir in #(((
2363 '') as_dir=./ ;;
2364 */) ;;
2365 *) as_dir=$as_dir/ ;;
2366 esac
2367 as_found=:
2368
2369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2370 ac_aux_dir_found=yes
2371 ac_install_sh=
2372 for ac_aux in $ac_aux_files
2373 do
2374 # As a special case, if "install-sh" is required, that requirement
2375 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2376 # and $ac_install_sh is set appropriately for whichever one is found.
2377 if test x"$ac_aux" = x"install-sh"
2378 then
2379 if test -f "${as_dir}install-sh"; then
2380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2381 ac_install_sh="${as_dir}install-sh -c"
2382 elif test -f "${as_dir}install.sh"; then
2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2384 ac_install_sh="${as_dir}install.sh -c"
2385 elif test -f "${as_dir}shtool"; then
2386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2387 ac_install_sh="${as_dir}shtool install -c"
2388 else
2389 ac_aux_dir_found=no
2390 if $ac_first_candidate; then
2391 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2392 else
2393 break
2394 fi
2395 fi
2396 else
2397 if test -f "${as_dir}${ac_aux}"; then
2398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2399 else
2400 ac_aux_dir_found=no
2401 if $ac_first_candidate; then
2402 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2403 else
2404 break
2405 fi
2406 fi
2407 fi
2408 done
2409 if test "$ac_aux_dir_found" = yes; then
2410 ac_aux_dir="$as_dir"
2411 break
2412 fi
2413 ac_first_candidate=false
2414
2415 as_found=false
2416 done
2417 IFS=$as_save_IFS
2418 if $as_found
2419 then :
2420
2421 else $as_nop
2422 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2423 fi
2424
2425
2426 # These three variables are undocumented and unsupported,
2427 # and are intended to be withdrawn in a future Autoconf release.
2428 # They can cause serious problems if a builder's source tree is in a directory
2429 # whose full name contains unusual characters.
2430 if test -f "${ac_aux_dir}config.guess"; then
2431 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2432 fi
2433 if test -f "${ac_aux_dir}config.sub"; then
2434 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2435 fi
2436 if test -f "$ac_aux_dir/configure"; then
2437 ac_configure="$SHELL ${ac_aux_dir}configure"
2438 fi
2439
2440 # Check that the precious variables saved in the cache have kept the same
2441 # value.
2442 ac_cache_corrupted=false
2443 for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2458 *)
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2471 fi
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 esac
2488 fi
2489 done
2490 if $ac_cache_corrupted; then
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2496 and start over" "$LINENO" 5
2497 fi
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2501
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507
2508
2509
2510 ac_config_headers="$ac_config_headers config.h"
2511
2512
2513 # Initialize Automake
2514 am__api_version='1.16'
2515
2516
2517
2518 # Find a good install program. We prefer a C program (faster),
2519 # so one script is as good as another. But avoid the broken or
2520 # incompatible versions:
2521 # SysV /etc/install, /usr/sbin/install
2522 # SunOS /usr/etc/install
2523 # IRIX /sbin/install
2524 # AIX /bin/install
2525 # AmigaOS /C/install, which installs bootblocks on floppy discs
2526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2529 # OS/2's system install, which has a completely different semantic
2530 # ./install, which can be erroneously created by make from ./install.sh.
2531 # Reject install programs that cannot install multiple files.
2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2533 printf %s "checking for a BSD-compatible install... " >&6; }
2534 if test -z "$INSTALL"; then
2535 if test ${ac_cv_path_install+y}
2536 then :
2537 printf %s "(cached) " >&6
2538 else $as_nop
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 case $as_dir in #(((
2544 '') as_dir=./ ;;
2545 */) ;;
2546 *) as_dir=$as_dir/ ;;
2547 esac
2548 # Account for fact that we put trailing slashes in our PATH walk.
2549 case $as_dir in #((
2550 ./ | /[cC]/* | \
2551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2553 /usr/ucb/* ) ;;
2554 *)
2555 # OSF1 and SCO ODT 3.0 have their own names for install.
2556 # Don't use installbsd from OSF since it installs stuff as root
2557 # by default.
2558 for ac_prog in ginstall scoinst install; do
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2561 if test $ac_prog = install &&
2562 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # AIX install. It has an incompatible calling convention.
2564 :
2565 elif test $ac_prog = install &&
2566 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # program-specific install script used by HP pwplus--don't use.
2568 :
2569 else
2570 rm -rf conftest.one conftest.two conftest.dir
2571 echo one > conftest.one
2572 echo two > conftest.two
2573 mkdir conftest.dir
2574 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2575 test -s conftest.one && test -s conftest.two &&
2576 test -s conftest.dir/conftest.one &&
2577 test -s conftest.dir/conftest.two
2578 then
2579 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2580 break 3
2581 fi
2582 fi
2583 fi
2584 done
2585 done
2586 ;;
2587 esac
2588
2589 done
2590 IFS=$as_save_IFS
2591
2592 rm -rf conftest.one conftest.two conftest.dir
2593
2594 fi
2595 if test ${ac_cv_path_install+y}; then
2596 INSTALL=$ac_cv_path_install
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for INSTALL within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 INSTALL=$ac_install_sh
2603 fi
2604 fi
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2606 printf "%s\n" "$INSTALL" >&6; }
2607
2608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2609 # It thinks the first close brace ends the variable substitution.
2610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611
2612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613
2614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2617 printf %s "checking whether build environment is sane... " >&6; }
2618 # Reject unsafe characters in $srcdir or the absolute working directory
2619 # name. Accept space and tab only in the latter.
2620 am_lf='
2621 '
2622 case `pwd` in
2623 *[\\\"\#\$\&\'\`$am_lf]*)
2624 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2625 esac
2626 case $srcdir in
2627 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2628 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2629 esac
2630
2631 # Do 'set' in a subshell so we don't clobber the current shell's
2632 # arguments. Must try -L first in case configure is actually a
2633 # symlink; some systems play weird games with the mod time of symlinks
2634 # (eg FreeBSD returns the mod time of the symlink's containing
2635 # directory).
2636 if (
2637 am_has_slept=no
2638 for am_try in 1 2; do
2639 echo "timestamp, slept: $am_has_slept" > conftest.file
2640 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2641 if test "$*" = "X"; then
2642 # -L didn't work.
2643 set X `ls -t "$srcdir/configure" conftest.file`
2644 fi
2645 if test "$*" != "X $srcdir/configure conftest.file" \
2646 && test "$*" != "X conftest.file $srcdir/configure"; then
2647
2648 # If neither matched, then we have a broken ls. This can happen
2649 # if, for instance, CONFIG_SHELL is bash and it inherits a
2650 # broken ls alias from the environment. This has actually
2651 # happened. Such a system could not be considered "sane".
2652 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2653 alias in your environment" "$LINENO" 5
2654 fi
2655 if test "$2" = conftest.file || test $am_try -eq 2; then
2656 break
2657 fi
2658 # Just in case.
2659 sleep 1
2660 am_has_slept=yes
2661 done
2662 test "$2" = conftest.file
2663 )
2664 then
2665 # Ok.
2666 :
2667 else
2668 as_fn_error $? "newly created file is older than distributed files!
2669 Check your system clock" "$LINENO" 5
2670 fi
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 printf "%s\n" "yes" >&6; }
2673 # If we didn't sleep, we still need to ensure time stamps of config.status and
2674 # generated files are strictly newer.
2675 am_sleep_pid=
2676 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2677 ( sleep 1 ) &
2678 am_sleep_pid=$!
2679 fi
2680
2681 rm -f conftest.file
2682
2683 test "$program_prefix" != NONE &&
2684 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2685 # Use a double $ so make ignores it.
2686 test "$program_suffix" != NONE &&
2687 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2688 # Double any \ or $.
2689 # By default was `s,x,x', remove it if useless.
2690 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2691 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2692
2693
2694 # Expand $ac_aux_dir to an absolute path.
2695 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2696
2697
2698 if test x"${MISSING+set}" != xset; then
2699 MISSING="\${SHELL} '$am_aux_dir/missing'"
2700 fi
2701 # Use eval to expand $SHELL
2702 if eval "$MISSING --is-lightweight"; then
2703 am_missing_run="$MISSING "
2704 else
2705 am_missing_run=
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2707 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2708 fi
2709
2710 if test x"${install_sh+set}" != xset; then
2711 case $am_aux_dir in
2712 *\ * | *\ *)
2713 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2714 *)
2715 install_sh="\${SHELL} $am_aux_dir/install-sh"
2716 esac
2717 fi
2718
2719 # Installed binaries are usually stripped using 'strip' when the user
2720 # run "make install-strip". However 'strip' might not be the right
2721 # tool to use in cross-compilation environments, therefore Automake
2722 # will honor the 'STRIP' environment variable to overrule this program.
2723 if test "$cross_compiling" != no; then
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}strip; ac_word=$2
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 printf %s "checking for $ac_word... " >&6; }
2729 if test ${ac_cv_prog_STRIP+y}
2730 then :
2731 printf %s "(cached) " >&6
2732 else $as_nop
2733 if test -n "$STRIP"; then
2734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 case $as_dir in #(((
2741 '') as_dir=./ ;;
2742 */) ;;
2743 *) as_dir=$as_dir/ ;;
2744 esac
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 STRIP=$ac_cv_prog_STRIP
2758 if test -n "$STRIP"; then
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2760 printf "%s\n" "$STRIP" >&6; }
2761 else
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 printf "%s\n" "no" >&6; }
2764 fi
2765
2766
2767 fi
2768 if test -z "$ac_cv_prog_STRIP"; then
2769 ac_ct_STRIP=$STRIP
2770 # Extract the first word of "strip", so it can be a program name with args.
2771 set dummy strip; ac_word=$2
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 printf %s "checking for $ac_word... " >&6; }
2774 if test ${ac_cv_prog_ac_ct_STRIP+y}
2775 then :
2776 printf %s "(cached) " >&6
2777 else $as_nop
2778 if test -n "$ac_ct_STRIP"; then
2779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 case $as_dir in #(((
2786 '') as_dir=./ ;;
2787 */) ;;
2788 *) as_dir=$as_dir/ ;;
2789 esac
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_ac_ct_STRIP="strip"
2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2803 if test -n "$ac_ct_STRIP"; then
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2805 printf "%s\n" "$ac_ct_STRIP" >&6; }
2806 else
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 printf "%s\n" "no" >&6; }
2809 fi
2810
2811 if test "x$ac_ct_STRIP" = x; then
2812 STRIP=":"
2813 else
2814 case $cross_compiling:$ac_tool_warned in
2815 yes:)
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2818 ac_tool_warned=yes ;;
2819 esac
2820 STRIP=$ac_ct_STRIP
2821 fi
2822 else
2823 STRIP="$ac_cv_prog_STRIP"
2824 fi
2825
2826 fi
2827 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2828
2829
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2831 printf %s "checking for a race-free mkdir -p... " >&6; }
2832 if test -z "$MKDIR_P"; then
2833 if test ${ac_cv_path_mkdir+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else $as_nop
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2839 do
2840 IFS=$as_save_IFS
2841 case $as_dir in #(((
2842 '') as_dir=./ ;;
2843 */) ;;
2844 *) as_dir=$as_dir/ ;;
2845 esac
2846 for ac_prog in mkdir gmkdir; do
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2849 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2850 'mkdir ('*'coreutils) '* | \
2851 'BusyBox '* | \
2852 'mkdir (fileutils) '4.1*)
2853 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2854 break 3;;
2855 esac
2856 done
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862
2863 test -d ./--version && rmdir ./--version
2864 if test ${ac_cv_path_mkdir+y}; then
2865 MKDIR_P="$ac_cv_path_mkdir -p"
2866 else
2867 # As a last resort, use the slow shell script. Don't cache a
2868 # value for MKDIR_P within a source directory, because that will
2869 # break other packages using the cache if that directory is
2870 # removed, or if the value is a relative name.
2871 MKDIR_P="$ac_install_sh -d"
2872 fi
2873 fi
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2875 printf "%s\n" "$MKDIR_P" >&6; }
2876
2877 for ac_prog in gawk mawk nawk awk
2878 do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 printf %s "checking for $ac_word... " >&6; }
2883 if test ${ac_cv_prog_AWK+y}
2884 then :
2885 printf %s "(cached) " >&6
2886 else $as_nop
2887 if test -n "$AWK"; then
2888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 case $as_dir in #(((
2895 '') as_dir=./ ;;
2896 */) ;;
2897 *) as_dir=$as_dir/ ;;
2898 esac
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_AWK="$ac_prog"
2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 AWK=$ac_cv_prog_AWK
2912 if test -n "$AWK"; then
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2914 printf "%s\n" "$AWK" >&6; }
2915 else
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 printf "%s\n" "no" >&6; }
2918 fi
2919
2920
2921 test -n "$AWK" && break
2922 done
2923
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2925 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2926 set x ${MAKE-make}
2927 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2928 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2929 then :
2930 printf %s "(cached) " >&6
2931 else $as_nop
2932 cat >conftest.make <<\_ACEOF
2933 SHELL = /bin/sh
2934 all:
2935 @echo '@@@%%%=$(MAKE)=@@@%%%'
2936 _ACEOF
2937 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2938 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2939 *@@@%%%=?*=@@@%%%*)
2940 eval ac_cv_prog_make_${ac_make}_set=yes;;
2941 *)
2942 eval ac_cv_prog_make_${ac_make}_set=no;;
2943 esac
2944 rm -f conftest.make
2945 fi
2946 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 printf "%s\n" "yes" >&6; }
2949 SET_MAKE=
2950 else
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2953 SET_MAKE="MAKE=${MAKE-make}"
2954 fi
2955
2956 rm -rf .tst 2>/dev/null
2957 mkdir .tst 2>/dev/null
2958 if test -d .tst; then
2959 am__leading_dot=.
2960 else
2961 am__leading_dot=_
2962 fi
2963 rmdir .tst 2>/dev/null
2964
2965 # Check whether --enable-silent-rules was given.
2966 if test ${enable_silent_rules+y}
2967 then :
2968 enableval=$enable_silent_rules;
2969 fi
2970
2971 case $enable_silent_rules in # (((
2972 yes) AM_DEFAULT_VERBOSITY=0;;
2973 no) AM_DEFAULT_VERBOSITY=1;;
2974 *) AM_DEFAULT_VERBOSITY=1;;
2975 esac
2976 am_make=${MAKE-make}
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2978 printf %s "checking whether $am_make supports nested variables... " >&6; }
2979 if test ${am_cv_make_support_nested_variables+y}
2980 then :
2981 printf %s "(cached) " >&6
2982 else $as_nop
2983 if printf "%s\n" 'TRUE=$(BAR$(V))
2984 BAR0=false
2985 BAR1=true
2986 V=1
2987 am__doit:
2988 @$(TRUE)
2989 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2990 am_cv_make_support_nested_variables=yes
2991 else
2992 am_cv_make_support_nested_variables=no
2993 fi
2994 fi
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2996 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2997 if test $am_cv_make_support_nested_variables = yes; then
2998 AM_V='$(V)'
2999 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3000 else
3001 AM_V=$AM_DEFAULT_VERBOSITY
3002 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3003 fi
3004 AM_BACKSLASH='\'
3005
3006 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3007 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3008 # is not polluted with repeated "-I."
3009 am__isrc=' -I$(srcdir)'
3010 # test to see if srcdir already configured
3011 if test -f $srcdir/config.status; then
3012 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3013 fi
3014 fi
3015
3016 # test whether we have cygpath
3017 if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3020 else
3021 CYGPATH_W=echo
3022 fi
3023 fi
3024
3025
3026 # Define the identity of the package.
3027 PACKAGE='xfd'
3028 VERSION='1.1.4'
3029
3030
3031 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3032
3033
3034 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3035
3036 # Some tools Automake needs.
3037
3038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3039
3040
3041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3042
3043
3044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3045
3046
3047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3048
3049
3050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051
3052 # For better backward compatibility. To be removed once Automake 1.9.x
3053 # dies out for good. For more background, see:
3054 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3055 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3056 mkdir_p='$(MKDIR_P)'
3057
3058 # We need awk for the "check" target (and possibly the TAP driver). The
3059 # system "awk" is bad on some platforms.
3060 # Always define AMTAR for backward compatibility. Yes, it's still used
3061 # in the wild :-( We should find a proper way to deprecate it ...
3062 AMTAR='$${TAR-tar}'
3063
3064
3065 # We'll loop over all known methods to create a tar archive until one works.
3066 _am_tools='gnutar pax cpio none'
3067
3068 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3069
3070
3071
3072
3073
3074 # Variables for tags utilities; see am/tags.am
3075 if test -z "$CTAGS"; then
3076 CTAGS=ctags
3077 fi
3078
3079 if test -z "$ETAGS"; then
3080 ETAGS=etags
3081 fi
3082
3083 if test -z "$CSCOPE"; then
3084 CSCOPE=cscope
3085 fi
3086
3087
3088
3089 # POSIX will say in a future version that running "rm -f" with no argument
3090 # is OK; and we want to be able to make that assumption in our Makefile
3091 # recipes. So use an aggressive probe to check that the usage we want is
3092 # actually supported "in the wild" to an acceptable degree.
3093 # See automake bug#10828.
3094 # To make any issue more visible, cause the running configure to be aborted
3095 # by default if the 'rm' program in use doesn't match our expectations; the
3096 # user can still override this though.
3097 if rm -f && rm -fr && rm -rf; then : OK; else
3098 cat >&2 <<'END'
3099 Oops!
3100
3101 Your 'rm' program seems unable to run without file operands specified
3102 on the command line, even when the '-f' option is present. This is contrary
3103 to the behaviour of most rm programs out there, and not conforming with
3104 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3105
3106 Please tell bug-automake@gnu.org about your system, including the value
3107 of your $PATH and any error possibly output before this message. This
3108 can help us improve future automake versions.
3109
3110 END
3111 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3112 echo 'Configuration will proceed anyway, since you have set the' >&2
3113 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3114 echo >&2
3115 else
3116 cat >&2 <<'END'
3117 Aborting the configuration process, to ensure you take notice of the issue.
3118
3119 You can download and install GNU coreutils to get an 'rm' implementation
3120 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3121
3122 If you want to complete the configuration process using your problematic
3123 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3124 to "yes", and re-run configure.
3125
3126 END
3127 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3128 fi
3129 fi
3130
3131
3132 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153 DEPDIR="${am__leading_dot}deps"
3154
3155 ac_config_commands="$ac_config_commands depfiles"
3156
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3158 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3159 cat > confinc.mk << 'END'
3160 am__doit:
3161 @echo this is the am__doit target >confinc.out
3162 .PHONY: am__doit
3163 END
3164 am__include="#"
3165 am__quote=
3166 # BSD make does it like this.
3167 echo '.include "confinc.mk" # ignored' > confmf.BSD
3168 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3169 echo 'include confinc.mk # ignored' > confmf.GNU
3170 _am_result=no
3171 for s in GNU BSD; do
3172 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3173 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }
3177 case $?:`cat confinc.out 2>/dev/null` in #(
3178 '0:this is the am__doit target') :
3179 case $s in #(
3180 BSD) :
3181 am__include='.include' am__quote='"' ;; #(
3182 *) :
3183 am__include='include' am__quote='' ;;
3184 esac ;; #(
3185 *) :
3186 ;;
3187 esac
3188 if test "$am__include" != "#"; then
3189 _am_result="yes ($s style)"
3190 break
3191 fi
3192 done
3193 rm -f confinc.* confmf.*
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3195 printf "%s\n" "${_am_result}" >&6; }
3196
3197 # Check whether --enable-dependency-tracking was given.
3198 if test ${enable_dependency_tracking+y}
3199 then :
3200 enableval=$enable_dependency_tracking;
3201 fi
3202
3203 if test "x$enable_dependency_tracking" != xno; then
3204 am_depcomp="$ac_aux_dir/depcomp"
3205 AMDEPBACKSLASH='\'
3206 am__nodep='_no'
3207 fi
3208 if test "x$enable_dependency_tracking" != xno; then
3209 AMDEP_TRUE=
3210 AMDEP_FALSE='#'
3211 else
3212 AMDEP_TRUE='#'
3213 AMDEP_FALSE=
3214 fi
3215
3216
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 printf %s "checking for $ac_word... " >&6; }
3227 if test ${ac_cv_prog_CC+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else $as_nop
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 case $as_dir in #(((
3239 '') as_dir=./ ;;
3240 */) ;;
3241 *) as_dir=$as_dir/ ;;
3242 esac
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254 fi
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 printf "%s\n" "$CC" >&6; }
3259 else
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 printf "%s\n" "no" >&6; }
3262 fi
3263
3264
3265 fi
3266 if test -z "$ac_cv_prog_CC"; then
3267 ac_ct_CC=$CC
3268 # Extract the first word of "gcc", so it can be a program name with args.
3269 set dummy gcc; ac_word=$2
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 printf %s "checking for $ac_word... " >&6; }
3272 if test ${ac_cv_prog_ac_ct_CC+y}
3273 then :
3274 printf %s "(cached) " >&6
3275 else $as_nop
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 case $as_dir in #(((
3284 '') as_dir=./ ;;
3285 */) ;;
3286 *) as_dir=$as_dir/ ;;
3287 esac
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CC="gcc"
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 printf "%s\n" "$ac_ct_CC" >&6; }
3304 else
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 printf "%s\n" "no" >&6; }
3307 fi
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 else
3321 CC="$ac_cv_prog_CC"
3322 fi
3323
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 printf %s "checking for $ac_word... " >&6; }
3330 if test ${ac_cv_prog_CC+y}
3331 then :
3332 printf %s "(cached) " >&6
3333 else $as_nop
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 case $as_dir in #(((
3342 '') as_dir=./ ;;
3343 */) ;;
3344 *) as_dir=$as_dir/ ;;
3345 esac
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="${ac_tool_prefix}cc"
3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 printf "%s\n" "$CC" >&6; }
3362 else
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 printf "%s\n" "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 fi
3370 if test -z "$CC"; then
3371 # Extract the first word of "cc", so it can be a program name with args.
3372 set dummy cc; ac_word=$2
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_CC+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else $as_nop
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 ac_prog_rejected=no
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386 IFS=$as_save_IFS
3387 case $as_dir in #(((
3388 '') as_dir=./ ;;
3389 */) ;;
3390 *) as_dir=$as_dir/ ;;
3391 esac
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3394 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395 ac_prog_rejected=yes
3396 continue
3397 fi
3398 ac_cv_prog_CC="cc"
3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 if test $ac_prog_rejected = yes; then
3407 # We found a bogon in the path, so make sure we never use it.
3408 set dummy $ac_cv_prog_CC
3409 shift
3410 if test $# != 0; then
3411 # We chose a different compiler from the bogus one.
3412 # However, it has the same basename, so the bogon will be chosen
3413 # first if we set CC to just the basename; use the full file name.
3414 shift
3415 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3416 fi
3417 fi
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 printf "%s\n" "$CC" >&6; }
3424 else
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 printf "%s\n" "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$CC"; then
3432 if test -n "$ac_tool_prefix"; then
3433 for ac_prog in cl.exe
3434 do
3435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 printf %s "checking for $ac_word... " >&6; }
3439 if test ${ac_cv_prog_CC+y}
3440 then :
3441 printf %s "(cached) " >&6
3442 else $as_nop
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449 IFS=$as_save_IFS
3450 case $as_dir in #(((
3451 '') as_dir=./ ;;
3452 */) ;;
3453 *) as_dir=$as_dir/ ;;
3454 esac
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 printf "%s\n" "$CC" >&6; }
3471 else
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 printf "%s\n" "no" >&6; }
3474 fi
3475
3476
3477 test -n "$CC" && break
3478 done
3479 fi
3480 if test -z "$CC"; then
3481 ac_ct_CC=$CC
3482 for ac_prog in cl.exe
3483 do
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 printf %s "checking for $ac_word... " >&6; }
3488 if test ${ac_cv_prog_ac_ct_CC+y}
3489 then :
3490 printf %s "(cached) " >&6
3491 else $as_nop
3492 if test -n "$ac_ct_CC"; then
3493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498 IFS=$as_save_IFS
3499 case $as_dir in #(((
3500 '') as_dir=./ ;;
3501 */) ;;
3502 *) as_dir=$as_dir/ ;;
3503 esac
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_ac_ct_CC="$ac_prog"
3507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510 done
3511 done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3517 if test -n "$ac_ct_CC"; then
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3519 printf "%s\n" "$ac_ct_CC" >&6; }
3520 else
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 printf "%s\n" "no" >&6; }
3523 fi
3524
3525
3526 test -n "$ac_ct_CC" && break
3527 done
3528
3529 if test "x$ac_ct_CC" = x; then
3530 CC=""
3531 else
3532 case $cross_compiling:$ac_tool_warned in
3533 yes:)
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3536 ac_tool_warned=yes ;;
3537 esac
3538 CC=$ac_ct_CC
3539 fi
3540 fi
3541
3542 fi
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}clang; ac_word=$2
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 printf %s "checking for $ac_word... " >&6; }
3549 if test ${ac_cv_prog_CC+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else $as_nop
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 case $as_dir in #(((
3561 '') as_dir=./ ;;
3562 */) ;;
3563 *) as_dir=$as_dir/ ;;
3564 esac
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_CC="${ac_tool_prefix}clang"
3568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 printf "%s\n" "$CC" >&6; }
3581 else
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 printf "%s\n" "no" >&6; }
3584 fi
3585
3586
3587 fi
3588 if test -z "$ac_cv_prog_CC"; then
3589 ac_ct_CC=$CC
3590 # Extract the first word of "clang", so it can be a program name with args.
3591 set dummy clang; ac_word=$2
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 printf %s "checking for $ac_word... " >&6; }
3594 if test ${ac_cv_prog_ac_ct_CC+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else $as_nop
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 case $as_dir in #(((
3606 '') as_dir=./ ;;
3607 */) ;;
3608 *) as_dir=$as_dir/ ;;
3609 esac
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_ac_ct_CC="clang"
3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623 if test -n "$ac_ct_CC"; then
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3625 printf "%s\n" "$ac_ct_CC" >&6; }
3626 else
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 printf "%s\n" "no" >&6; }
3629 fi
3630
3631 if test "x$ac_ct_CC" = x; then
3632 CC=""
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635 yes:)
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned=yes ;;
3639 esac
3640 CC=$ac_ct_CC
3641 fi
3642 else
3643 CC="$ac_cv_prog_CC"
3644 fi
3645
3646 fi
3647
3648
3649 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "no acceptable C compiler found in \$PATH
3652 See \`config.log' for more details" "$LINENO" 5; }
3653
3654 # Provide some information about the compiler.
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3656 set X $ac_compile
3657 ac_compiler=$2
3658 for ac_option in --version -v -V -qversion -version; do
3659 { { ac_try="$ac_compiler $ac_option >&5"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 printf "%s\n" "$ac_try_echo"; } >&5
3666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3667 ac_status=$?
3668 if test -s conftest.err; then
3669 sed '10a\
3670 ... rest of stderr output deleted ...
3671 10q' conftest.err >conftest.er1
3672 cat conftest.er1 >&5
3673 fi
3674 rm -f conftest.er1 conftest.err
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }
3677 done
3678
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main (void)
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 ac_clean_files_save=$ac_clean_files
3691 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3692 # Try to create an executable without -o first, disregard a.out.
3693 # It will help us diagnose broken compilers, and finding out an intuition
3694 # of exeext.
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3696 printf %s "checking whether the C compiler works... " >&6; }
3697 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3698
3699 # The possible output files:
3700 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3701
3702 ac_rmfiles=
3703 for ac_file in $ac_files
3704 do
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3708 esac
3709 done
3710 rm -f $ac_rmfiles
3711
3712 if { { ac_try="$ac_link_default"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 printf "%s\n" "$ac_try_echo"; } >&5
3719 (eval "$ac_link_default") 2>&5
3720 ac_status=$?
3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }
3723 then :
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3728 # Autoconf.
3729 for ac_file in $ac_files ''
3730 do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753 done
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756 else $as_nop
3757 ac_file=''
3758 fi
3759 if test -z "$ac_file"
3760 then :
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 printf "%s\n" "no" >&6; }
3763 printf "%s\n" "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error 77 "C compiler cannot create executables
3769 See \`config.log' for more details" "$LINENO" 5; }
3770 else $as_nop
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 printf "%s\n" "yes" >&6; }
3773 fi
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3775 printf %s "checking for C compiler default output file name... " >&6; }
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3777 printf "%s\n" "$ac_file" >&6; }
3778 ac_exeext=$ac_cv_exeext
3779
3780 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3781 ac_clean_files=$ac_clean_files_save
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3783 printf %s "checking for suffix of executables... " >&6; }
3784 if { { ac_try="$ac_link"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 printf "%s\n" "$ac_try_echo"; } >&5
3791 (eval "$ac_link") 2>&5
3792 ac_status=$?
3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 then :
3796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3798 # work properly (i.e., refer to `conftest.exe'), while it won't with
3799 # `rm'.
3800 for ac_file in conftest.exe conftest conftest.*; do
3801 test -f "$ac_file" || continue
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 break;;
3806 * ) break;;
3807 esac
3808 done
3809 else $as_nop
3810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3813 See \`config.log' for more details" "$LINENO" 5; }
3814 fi
3815 rm -f conftest conftest$ac_cv_exeext
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3817 printf "%s\n" "$ac_cv_exeext" >&6; }
3818
3819 rm -f conftest.$ac_ext
3820 EXEEXT=$ac_cv_exeext
3821 ac_exeext=$EXEEXT
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdio.h>
3825 int
3826 main (void)
3827 {
3828 FILE *f = fopen ("conftest.out", "w");
3829 return ferror (f) || fclose (f) != 0;
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 ac_clean_files="$ac_clean_files conftest.out"
3836 # Check that the compiler produces executables we can run. If not, either
3837 # the compiler is broken, or we cross compile.
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3839 printf %s "checking whether we are cross compiling... " >&6; }
3840 if test "$cross_compiling" != yes; then
3841 { { ac_try="$ac_link"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 printf "%s\n" "$ac_try_echo"; } >&5
3848 (eval "$ac_link") 2>&5
3849 ac_status=$?
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }
3852 if { ac_try='./conftest$ac_cv_exeext'
3853 { { case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 printf "%s\n" "$ac_try_echo"; } >&5
3859 (eval "$ac_try") 2>&5
3860 ac_status=$?
3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; }; then
3863 cross_compiling=no
3864 else
3865 if test "$cross_compiling" = maybe; then
3866 cross_compiling=yes
3867 else
3868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error 77 "cannot run C compiled programs.
3871 If you meant to cross compile, use \`--host'.
3872 See \`config.log' for more details" "$LINENO" 5; }
3873 fi
3874 fi
3875 fi
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3877 printf "%s\n" "$cross_compiling" >&6; }
3878
3879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3880 ac_clean_files=$ac_clean_files_save
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3882 printf %s "checking for suffix of object files... " >&6; }
3883 if test ${ac_cv_objext+y}
3884 then :
3885 printf %s "(cached) " >&6
3886 else $as_nop
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889
3890 int
3891 main (void)
3892 {
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.o conftest.obj
3899 if { { ac_try="$ac_compile"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 printf "%s\n" "$ac_try_echo"; } >&5
3906 (eval "$ac_compile") 2>&5
3907 ac_status=$?
3908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }
3910 then :
3911 for ac_file in conftest.o conftest.obj conftest.*; do
3912 test -f "$ac_file" || continue;
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916 break;;
3917 esac
3918 done
3919 else $as_nop
3920 printf "%s\n" "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of object files: cannot compile
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 fi
3928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3929 fi
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931 printf "%s\n" "$ac_cv_objext" >&6; }
3932 OBJEXT=$ac_cv_objext
3933 ac_objext=$OBJEXT
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3935 printf %s "checking whether the compiler supports GNU C... " >&6; }
3936 if test ${ac_cv_c_compiler_gnu+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else $as_nop
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942
3943 int
3944 main (void)
3945 {
3946 #ifndef __GNUC__
3947 choke me
3948 #endif
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 if ac_fn_c_try_compile "$LINENO"
3955 then :
3956 ac_compiler_gnu=yes
3957 else $as_nop
3958 ac_compiler_gnu=no
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3962
3963 fi
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3965 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 if test $ac_compiler_gnu = yes; then
3969 GCC=yes
3970 else
3971 GCC=
3972 fi
3973 ac_test_CFLAGS=${CFLAGS+y}
3974 ac_save_CFLAGS=$CFLAGS
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976 printf %s "checking whether $CC accepts -g... " >&6; }
3977 if test ${ac_cv_prog_cc_g+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else $as_nop
3981 ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3983 ac_cv_prog_cc_g=no
3984 CFLAGS="-g"
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987
3988 int
3989 main (void)
3990 {
3991
3992 ;
3993 return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"
3997 then :
3998 ac_cv_prog_cc_g=yes
3999 else $as_nop
4000 CFLAGS=""
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003
4004 int
4005 main (void)
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"
4013 then :
4014
4015 else $as_nop
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4017 CFLAGS="-g"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main (void)
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"
4030 then :
4031 ac_cv_prog_cc_g=yes
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4039 fi
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4041 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4042 if test $ac_test_CFLAGS; then
4043 CFLAGS=$ac_save_CFLAGS
4044 elif test $ac_cv_prog_cc_g = yes; then
4045 if test "$GCC" = yes; then
4046 CFLAGS="-g -O2"
4047 else
4048 CFLAGS="-g"
4049 fi
4050 else
4051 if test "$GCC" = yes; then
4052 CFLAGS="-O2"
4053 else
4054 CFLAGS=
4055 fi
4056 fi
4057 ac_prog_cc_stdc=no
4058 if test x$ac_prog_cc_stdc = xno
4059 then :
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4061 printf %s "checking for $CC option to enable C11 features... " >&6; }
4062 if test ${ac_cv_prog_cc_c11+y}
4063 then :
4064 printf %s "(cached) " >&6
4065 else $as_nop
4066 ac_cv_prog_cc_c11=no
4067 ac_save_CC=$CC
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070 $ac_c_conftest_c11_program
4071 _ACEOF
4072 for ac_arg in '' -std=gnu11
4073 do
4074 CC="$ac_save_CC $ac_arg"
4075 if ac_fn_c_try_compile "$LINENO"
4076 then :
4077 ac_cv_prog_cc_c11=$ac_arg
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.beam
4080 test "x$ac_cv_prog_cc_c11" != "xno" && break
4081 done
4082 rm -f conftest.$ac_ext
4083 CC=$ac_save_CC
4084 fi
4085
4086 if test "x$ac_cv_prog_cc_c11" = xno
4087 then :
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089 printf "%s\n" "unsupported" >&6; }
4090 else $as_nop
4091 if test "x$ac_cv_prog_cc_c11" = x
4092 then :
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4094 printf "%s\n" "none needed" >&6; }
4095 else $as_nop
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4097 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4098 CC="$CC $ac_cv_prog_cc_c11"
4099 fi
4100 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4101 ac_prog_cc_stdc=c11
4102 fi
4103 fi
4104 if test x$ac_prog_cc_stdc = xno
4105 then :
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4107 printf %s "checking for $CC option to enable C99 features... " >&6; }
4108 if test ${ac_cv_prog_cc_c99+y}
4109 then :
4110 printf %s "(cached) " >&6
4111 else $as_nop
4112 ac_cv_prog_cc_c99=no
4113 ac_save_CC=$CC
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 $ac_c_conftest_c99_program
4117 _ACEOF
4118 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4119 do
4120 CC="$ac_save_CC $ac_arg"
4121 if ac_fn_c_try_compile "$LINENO"
4122 then :
4123 ac_cv_prog_cc_c99=$ac_arg
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.beam
4126 test "x$ac_cv_prog_cc_c99" != "xno" && break
4127 done
4128 rm -f conftest.$ac_ext
4129 CC=$ac_save_CC
4130 fi
4131
4132 if test "x$ac_cv_prog_cc_c99" = xno
4133 then :
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 printf "%s\n" "unsupported" >&6; }
4136 else $as_nop
4137 if test "x$ac_cv_prog_cc_c99" = x
4138 then :
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4140 printf "%s\n" "none needed" >&6; }
4141 else $as_nop
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4143 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4144 CC="$CC $ac_cv_prog_cc_c99"
4145 fi
4146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4147 ac_prog_cc_stdc=c99
4148 fi
4149 fi
4150 if test x$ac_prog_cc_stdc = xno
4151 then :
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4153 printf %s "checking for $CC option to enable C89 features... " >&6; }
4154 if test ${ac_cv_prog_cc_c89+y}
4155 then :
4156 printf %s "(cached) " >&6
4157 else $as_nop
4158 ac_cv_prog_cc_c89=no
4159 ac_save_CC=$CC
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 $ac_c_conftest_c89_program
4163 _ACEOF
4164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4165 do
4166 CC="$ac_save_CC $ac_arg"
4167 if ac_fn_c_try_compile "$LINENO"
4168 then :
4169 ac_cv_prog_cc_c89=$ac_arg
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam
4172 test "x$ac_cv_prog_cc_c89" != "xno" && break
4173 done
4174 rm -f conftest.$ac_ext
4175 CC=$ac_save_CC
4176 fi
4177
4178 if test "x$ac_cv_prog_cc_c89" = xno
4179 then :
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4181 printf "%s\n" "unsupported" >&6; }
4182 else $as_nop
4183 if test "x$ac_cv_prog_cc_c89" = x
4184 then :
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4186 printf "%s\n" "none needed" >&6; }
4187 else $as_nop
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4189 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4190 CC="$CC $ac_cv_prog_cc_c89"
4191 fi
4192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4193 ac_prog_cc_stdc=c89
4194 fi
4195 fi
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4210 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4211 if test ${am_cv_prog_cc_c_o+y}
4212 then :
4213 printf %s "(cached) " >&6
4214 else $as_nop
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217
4218 int
4219 main (void)
4220 {
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 # Make sure it works both with $CC and with simple cc.
4227 # Following AC_PROG_CC_C_O, we do the test twice because some
4228 # compilers refuse to overwrite an existing .o file with -o,
4229 # though they will create one.
4230 am_cv_prog_cc_c_o=yes
4231 for am_i in 1 2; do
4232 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4233 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } \
4237 && test -f conftest2.$ac_objext; then
4238 : OK
4239 else
4240 am_cv_prog_cc_c_o=no
4241 break
4242 fi
4243 done
4244 rm -f core conftest*
4245 unset am_i
4246 fi
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4248 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4249 if test "$am_cv_prog_cc_c_o" != yes; then
4250 # Losing compiler, so override with the script.
4251 # FIXME: It is wrong to rewrite CC.
4252 # But if we don't then we get into trouble of one sort or another.
4253 # A longer-term fix would be to have automake use am__CC in this case,
4254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4255 CC="$am_aux_dir/compile $CC"
4256 fi
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263
4264 depcc="$CC" am_compiler_list=
4265
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4267 printf %s "checking dependency style of $depcc... " >&6; }
4268 if test ${am_cv_CC_dependencies_compiler_type+y}
4269 then :
4270 printf %s "(cached) " >&6
4271 else $as_nop
4272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4273 # We make a subdir and do the tests there. Otherwise we can end up
4274 # making bogus files that we don't know about and never remove. For
4275 # instance it was reported that on HP-UX the gcc test will end up
4276 # making a dummy file named 'D' -- because '-MD' means "put the output
4277 # in D".
4278 rm -rf conftest.dir
4279 mkdir conftest.dir
4280 # Copy depcomp to subdir because otherwise we won't find it if we're
4281 # using a relative directory.
4282 cp "$am_depcomp" conftest.dir
4283 cd conftest.dir
4284 # We will build objects and dependencies in a subdirectory because
4285 # it helps to detect inapplicable dependency modes. For instance
4286 # both Tru64's cc and ICC support -MD to output dependencies as a
4287 # side effect of compilation, but ICC will put the dependencies in
4288 # the current directory while Tru64 will put them in the object
4289 # directory.
4290 mkdir sub
4291
4292 am_cv_CC_dependencies_compiler_type=none
4293 if test "$am_compiler_list" = ""; then
4294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4295 fi
4296 am__universal=false
4297 case " $depcc " in #(
4298 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4299 esac
4300
4301 for depmode in $am_compiler_list; do
4302 # Setup a source with many dependencies, because some compilers
4303 # like to wrap large dependency lists on column 80 (with \), and
4304 # we should not choose a depcomp mode which is confused by this.
4305 #
4306 # We need to recreate these files for each test, as the compiler may
4307 # overwrite some of them when testing with obscure command lines.
4308 # This happens at least with the AIX C compiler.
4309 : > sub/conftest.c
4310 for i in 1 2 3 4 5 6; do
4311 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4312 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4313 # Solaris 10 /bin/sh.
4314 echo '/* dummy */' > sub/conftst$i.h
4315 done
4316 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4317
4318 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4319 # mode. It turns out that the SunPro C++ compiler does not properly
4320 # handle '-M -o', and we need to detect this. Also, some Intel
4321 # versions had trouble with output in subdirs.
4322 am__obj=sub/conftest.${OBJEXT-o}
4323 am__minus_obj="-o $am__obj"
4324 case $depmode in
4325 gcc)
4326 # This depmode causes a compiler race in universal mode.
4327 test "$am__universal" = false || continue
4328 ;;
4329 nosideeffect)
4330 # After this tag, mechanisms are not by side-effect, so they'll
4331 # only be used when explicitly requested.
4332 if test "x$enable_dependency_tracking" = xyes; then
4333 continue
4334 else
4335 break
4336 fi
4337 ;;
4338 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4339 # This compiler won't grok '-c -o', but also, the minuso test has
4340 # not run yet. These depmodes are late enough in the game, and
4341 # so weak that their functioning should not be impacted.
4342 am__obj=conftest.${OBJEXT-o}
4343 am__minus_obj=
4344 ;;
4345 none) break ;;
4346 esac
4347 if depmode=$depmode \
4348 source=sub/conftest.c object=$am__obj \
4349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4350 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4351 >/dev/null 2>conftest.err &&
4352 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4353 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4354 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4355 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4356 # icc doesn't choke on unknown options, it will just issue warnings
4357 # or remarks (even with -Werror). So we grep stderr for any message
4358 # that says an option was ignored or not supported.
4359 # When given -MP, icc 7.0 and 7.1 complain thusly:
4360 # icc: Command line warning: ignoring option '-M'; no argument required
4361 # The diagnosis changed in icc 8.0:
4362 # icc: Command line remark: option '-MP' not supported
4363 if (grep 'ignoring option' conftest.err ||
4364 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4365 am_cv_CC_dependencies_compiler_type=$depmode
4366 break
4367 fi
4368 fi
4369 done
4370
4371 cd ..
4372 rm -rf conftest.dir
4373 else
4374 am_cv_CC_dependencies_compiler_type=none
4375 fi
4376
4377 fi
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4379 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4380 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4381
4382 if
4383 test "x$enable_dependency_tracking" != xno \
4384 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4385 am__fastdepCC_TRUE=
4386 am__fastdepCC_FALSE='#'
4387 else
4388 am__fastdepCC_TRUE='#'
4389 am__fastdepCC_FALSE=
4390 fi
4391
4392
4393
4394
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4396 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4397 if test ${ac_cv_c_undeclared_builtin_options+y}
4398 then :
4399 printf %s "(cached) " >&6
4400 else $as_nop
4401 ac_save_CFLAGS=$CFLAGS
4402 ac_cv_c_undeclared_builtin_options='cannot detect'
4403 for ac_arg in '' -fno-builtin; do
4404 CFLAGS="$ac_save_CFLAGS $ac_arg"
4405 # This test program should *not* compile successfully.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main (void)
4411 {
4412 (void) strchr;
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_c_try_compile "$LINENO"
4418 then :
4419
4420 else $as_nop
4421 # This test program should compile successfully.
4422 # No library function is consistently available on
4423 # freestanding implementations, so test against a dummy
4424 # declaration. Include always-available headers on the
4425 # off chance that they somehow elicit warnings.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <float.h>
4429 #include <limits.h>
4430 #include <stdarg.h>
4431 #include <stddef.h>
4432 extern void ac_decl (int, char *);
4433
4434 int
4435 main (void)
4436 {
4437 (void) ac_decl (0, (char *) 0);
4438 (void) ac_decl;
4439
4440 ;
4441 return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"
4445 then :
4446 if test x"$ac_arg" = x
4447 then :
4448 ac_cv_c_undeclared_builtin_options='none needed'
4449 else $as_nop
4450 ac_cv_c_undeclared_builtin_options=$ac_arg
4451 fi
4452 break
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4457 done
4458 CFLAGS=$ac_save_CFLAGS
4459
4460 fi
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4462 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4463 case $ac_cv_c_undeclared_builtin_options in #(
4464 'cannot detect') :
4465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error $? "cannot make $CC report undeclared builtins
4468 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4469 'none needed') :
4470 ac_c_undeclared_builtin_options='' ;; #(
4471 *) :
4472 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4473 esac
4474
4475 ac_header= ac_cache=
4476 for ac_item in $ac_header_c_list
4477 do
4478 if test $ac_cache; then
4479 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4480 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4481 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4482 fi
4483 ac_header= ac_cache=
4484 elif test $ac_header; then
4485 ac_cache=$ac_item
4486 else
4487 ac_header=$ac_item
4488 fi
4489 done
4490
4491
4492
4493
4494
4495
4496
4497
4498 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4499 then :
4500
4501 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4502
4503 fi
4504
4505
4506
4507
4508 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4509 if test "x$ac_cv_have_decl___clang__" = xyes
4510 then :
4511 CLANGCC="yes"
4512 else $as_nop
4513 CLANGCC="no"
4514 fi
4515 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4516 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4517 then :
4518 INTELCC="yes"
4519 else $as_nop
4520 INTELCC="no"
4521 fi
4522 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4523 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4524 then :
4525 SUNCC="yes"
4526 else $as_nop
4527 SUNCC="no"
4528 fi
4529
4530
4531
4532
4533
4534
4535
4536
4537 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4538 if test -n "$ac_tool_prefix"; then
4539 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4540 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 printf %s "checking for $ac_word... " >&6; }
4543 if test ${ac_cv_path_PKG_CONFIG+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else $as_nop
4547 case $PKG_CONFIG in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 case $as_dir in #(((
4557 '') as_dir=./ ;;
4558 */) ;;
4559 *) as_dir=$as_dir/ ;;
4560 esac
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4563 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 ;;
4572 esac
4573 fi
4574 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4575 if test -n "$PKG_CONFIG"; then
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4577 printf "%s\n" "$PKG_CONFIG" >&6; }
4578 else
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 printf "%s\n" "no" >&6; }
4581 fi
4582
4583
4584 fi
4585 if test -z "$ac_cv_path_PKG_CONFIG"; then
4586 ac_pt_PKG_CONFIG=$PKG_CONFIG
4587 # Extract the first word of "pkg-config", so it can be a program name with args.
4588 set dummy pkg-config; ac_word=$2
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 printf %s "checking for $ac_word... " >&6; }
4591 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else $as_nop
4595 case $ac_pt_PKG_CONFIG in
4596 [\\/]* | ?:[\\/]*)
4597 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4598 ;;
4599 *)
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 case $as_dir in #(((
4605 '') as_dir=./ ;;
4606 */) ;;
4607 *) as_dir=$as_dir/ ;;
4608 esac
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4611 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 ;;
4620 esac
4621 fi
4622 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4623 if test -n "$ac_pt_PKG_CONFIG"; then
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4625 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4626 else
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 printf "%s\n" "no" >&6; }
4629 fi
4630
4631 if test "x$ac_pt_PKG_CONFIG" = x; then
4632 PKG_CONFIG=""
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 PKG_CONFIG=$ac_pt_PKG_CONFIG
4641 fi
4642 else
4643 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4644 fi
4645
4646 fi
4647 if test -n "$PKG_CONFIG"; then
4648 _pkg_min_version=0.9.0
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4650 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4651 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653 printf "%s\n" "yes" >&6; }
4654 else
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 printf "%s\n" "no" >&6; }
4657 PKG_CONFIG=""
4658 fi
4659 fi
4660
4661
4662 # Make sure we can run config.sub.
4663 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4664 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4665
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4667 printf %s "checking build system type... " >&6; }
4668 if test ${ac_cv_build+y}
4669 then :
4670 printf %s "(cached) " >&6
4671 else $as_nop
4672 ac_build_alias=$build_alias
4673 test "x$ac_build_alias" = x &&
4674 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4675 test "x$ac_build_alias" = x &&
4676 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4677 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4678 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4679
4680 fi
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4682 printf "%s\n" "$ac_cv_build" >&6; }
4683 case $ac_cv_build in
4684 *-*-*) ;;
4685 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4686 esac
4687 build=$ac_cv_build
4688 ac_save_IFS=$IFS; IFS='-'
4689 set x $ac_cv_build
4690 shift
4691 build_cpu=$1
4692 build_vendor=$2
4693 shift; shift
4694 # Remember, the first character of IFS is used to create $*,
4695 # except with old shells:
4696 build_os=$*
4697 IFS=$ac_save_IFS
4698 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4699
4700
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4702 printf %s "checking host system type... " >&6; }
4703 if test ${ac_cv_host+y}
4704 then :
4705 printf %s "(cached) " >&6
4706 else $as_nop
4707 if test "x$host_alias" = x; then
4708 ac_cv_host=$ac_cv_build
4709 else
4710 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4711 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4712 fi
4713
4714 fi
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4716 printf "%s\n" "$ac_cv_host" >&6; }
4717 case $ac_cv_host in
4718 *-*-*) ;;
4719 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4720 esac
4721 host=$ac_cv_host
4722 ac_save_IFS=$IFS; IFS='-'
4723 set x $ac_cv_host
4724 shift
4725 host_cpu=$1
4726 host_vendor=$2
4727 shift; shift
4728 # Remember, the first character of IFS is used to create $*,
4729 # except with old shells:
4730 host_os=$*
4731 IFS=$ac_save_IFS
4732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4733
4734
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 printf %s "checking for a sed that does not truncate output... " >&6; }
4737 if test ${ac_cv_path_SED+y}
4738 then :
4739 printf %s "(cached) " >&6
4740 else $as_nop
4741 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4742 for ac_i in 1 2 3 4 5 6 7; do
4743 ac_script="$ac_script$as_nl$ac_script"
4744 done
4745 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4746 { ac_script=; unset ac_script;}
4747 if test -z "$SED"; then
4748 ac_path_SED_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 case $as_dir in #(((
4755 '') as_dir=./ ;;
4756 */) ;;
4757 *) as_dir=$as_dir/ ;;
4758 esac
4759 for ac_prog in sed gsed
4760 do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4763 as_fn_executable_p "$ac_path_SED" || continue
4764 # Check for GNU ac_path_SED and select it if it is found.
4765 # Check for GNU $ac_path_SED
4766 case `"$ac_path_SED" --version 2>&1` in
4767 *GNU*)
4768 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4769 *)
4770 ac_count=0
4771 printf %s 0123456789 >"conftest.in"
4772 while :
4773 do
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 printf "%s\n" '' >> "conftest.nl"
4778 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780 as_fn_arith $ac_count + 1 && ac_count=$as_val
4781 if test $ac_count -gt ${ac_path_SED_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_SED="$ac_path_SED"
4784 ac_path_SED_max=$ac_count
4785 fi
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4788 done
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790 esac
4791
4792 $ac_path_SED_found && break 3
4793 done
4794 done
4795 done
4796 IFS=$as_save_IFS
4797 if test -z "$ac_cv_path_SED"; then
4798 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4799 fi
4800 else
4801 ac_cv_path_SED=$SED
4802 fi
4803
4804 fi
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4806 printf "%s\n" "$ac_cv_path_SED" >&6; }
4807 SED="$ac_cv_path_SED"
4808 rm -f conftest.sed
4809
4810
4811
4812
4813
4814
4815 # Check whether --enable-selective-werror was given.
4816 if test ${enable_selective_werror+y}
4817 then :
4818 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4819 else $as_nop
4820 SELECTIVE_WERROR=yes
4821 fi
4822
4823
4824
4825
4826
4827 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4828 if test "x$SUNCC" = "xyes"; then
4829 BASE_CFLAGS="-v"
4830 else
4831 BASE_CFLAGS=""
4832 fi
4833
4834 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848 xorg_testset_save_CFLAGS="$CFLAGS"
4849
4850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4853 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4854 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4855 then :
4856 printf %s "(cached) " >&6
4857 else $as_nop
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 int i;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"
4863 then :
4864 xorg_cv_cc_flag_unknown_warning_option=yes
4865 else $as_nop
4866 xorg_cv_cc_flag_unknown_warning_option=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4869 fi
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4871 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4873 CFLAGS="$xorg_testset_save_CFLAGS"
4874 fi
4875
4876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4879 fi
4880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4884 then :
4885 printf %s "(cached) " >&6
4886 else $as_nop
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 int i;
4890 _ACEOF
4891 if ac_fn_c_try_compile "$LINENO"
4892 then :
4893 xorg_cv_cc_flag_unused_command_line_argument=yes
4894 else $as_nop
4895 xorg_cv_cc_flag_unused_command_line_argument=no
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4898 fi
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4902 CFLAGS="$xorg_testset_save_CFLAGS"
4903 fi
4904
4905 found="no"
4906
4907 if test $found = "no" ; then
4908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910 fi
4911
4912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4914 fi
4915
4916 CFLAGS="$CFLAGS -Wall"
4917
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4919 printf %s "checking if $CC supports -Wall... " >&6; }
4920 cacheid=xorg_cv_cc_flag__Wall
4921 if eval test \${$cacheid+y}
4922 then :
4923 printf %s "(cached) " >&6
4924 else $as_nop
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 int i;
4928 int
4929 main (void)
4930 {
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_link "$LINENO"
4937 then :
4938 eval $cacheid=yes
4939 else $as_nop
4940 eval $cacheid=no
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4943 conftest$ac_exeext conftest.$ac_ext
4944 fi
4945
4946
4947 CFLAGS="$xorg_testset_save_CFLAGS"
4948
4949 eval supported=\$$cacheid
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4951 printf "%s\n" "$supported" >&6; }
4952 if test "$supported" = "yes" ; then
4953 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4954 found="yes"
4955 fi
4956 fi
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 xorg_testset_save_CFLAGS="$CFLAGS"
4973
4974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4978 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else $as_nop
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 int i;
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"
4987 then :
4988 xorg_cv_cc_flag_unknown_warning_option=yes
4989 else $as_nop
4990 xorg_cv_cc_flag_unknown_warning_option=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4993 fi
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4995 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4998 fi
4999
5000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5003 fi
5004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5006 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5007 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5008 then :
5009 printf %s "(cached) " >&6
5010 else $as_nop
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 int i;
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"
5016 then :
5017 xorg_cv_cc_flag_unused_command_line_argument=yes
5018 else $as_nop
5019 xorg_cv_cc_flag_unused_command_line_argument=no
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5022 fi
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5026 CFLAGS="$xorg_testset_save_CFLAGS"
5027 fi
5028
5029 found="no"
5030
5031 if test $found = "no" ; then
5032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5034 fi
5035
5036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5038 fi
5039
5040 CFLAGS="$CFLAGS -Wpointer-arith"
5041
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5043 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5044 cacheid=xorg_cv_cc_flag__Wpointer_arith
5045 if eval test \${$cacheid+y}
5046 then :
5047 printf %s "(cached) " >&6
5048 else $as_nop
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 int i;
5052 int
5053 main (void)
5054 {
5055
5056 ;
5057 return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_link "$LINENO"
5061 then :
5062 eval $cacheid=yes
5063 else $as_nop
5064 eval $cacheid=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5067 conftest$ac_exeext conftest.$ac_ext
5068 fi
5069
5070
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072
5073 eval supported=\$$cacheid
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5075 printf "%s\n" "$supported" >&6; }
5076 if test "$supported" = "yes" ; then
5077 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5078 found="yes"
5079 fi
5080 fi
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 xorg_testset_save_CFLAGS="$CFLAGS"
5097
5098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5102 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5103 then :
5104 printf %s "(cached) " >&6
5105 else $as_nop
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 int i;
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"
5111 then :
5112 xorg_cv_cc_flag_unknown_warning_option=yes
5113 else $as_nop
5114 xorg_cv_cc_flag_unknown_warning_option=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5117 fi
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5121 CFLAGS="$xorg_testset_save_CFLAGS"
5122 fi
5123
5124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5127 fi
5128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else $as_nop
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 int i;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"
5140 then :
5141 xorg_cv_cc_flag_unused_command_line_argument=yes
5142 else $as_nop
5143 xorg_cv_cc_flag_unused_command_line_argument=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5146 fi
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151 fi
5152
5153 found="no"
5154
5155 if test $found = "no" ; then
5156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 fi
5159
5160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162 fi
5163
5164 CFLAGS="$CFLAGS -Wmissing-declarations"
5165
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5167 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5168 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5169 if eval test \${$cacheid+y}
5170 then :
5171 printf %s "(cached) " >&6
5172 else $as_nop
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 int i;
5176 int
5177 main (void)
5178 {
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_c_try_link "$LINENO"
5185 then :
5186 eval $cacheid=yes
5187 else $as_nop
5188 eval $cacheid=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5191 conftest$ac_exeext conftest.$ac_ext
5192 fi
5193
5194
5195 CFLAGS="$xorg_testset_save_CFLAGS"
5196
5197 eval supported=\$$cacheid
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5199 printf "%s\n" "$supported" >&6; }
5200 if test "$supported" = "yes" ; then
5201 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5202 found="yes"
5203 fi
5204 fi
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220 xorg_testset_save_CFLAGS="$CFLAGS"
5221
5222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5226 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else $as_nop
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 int i;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"
5235 then :
5236 xorg_cv_cc_flag_unknown_warning_option=yes
5237 else $as_nop
5238 xorg_cv_cc_flag_unknown_warning_option=no
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5241 fi
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5245 CFLAGS="$xorg_testset_save_CFLAGS"
5246 fi
5247
5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251 fi
5252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else $as_nop
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 int i;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"
5264 then :
5265 xorg_cv_cc_flag_unused_command_line_argument=yes
5266 else $as_nop
5267 xorg_cv_cc_flag_unused_command_line_argument=no
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5270 fi
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5274 CFLAGS="$xorg_testset_save_CFLAGS"
5275 fi
5276
5277 found="no"
5278
5279 if test $found = "no" ; then
5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282 fi
5283
5284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286 fi
5287
5288 CFLAGS="$CFLAGS -Wformat=2"
5289
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5291 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5292 cacheid=xorg_cv_cc_flag__Wformat_2
5293 if eval test \${$cacheid+y}
5294 then :
5295 printf %s "(cached) " >&6
5296 else $as_nop
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 int i;
5300 int
5301 main (void)
5302 {
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_link "$LINENO"
5309 then :
5310 eval $cacheid=yes
5311 else $as_nop
5312 eval $cacheid=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5315 conftest$ac_exeext conftest.$ac_ext
5316 fi
5317
5318
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320
5321 eval supported=\$$cacheid
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5323 printf "%s\n" "$supported" >&6; }
5324 if test "$supported" = "yes" ; then
5325 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5326 found="yes"
5327 fi
5328 fi
5329
5330 if test $found = "no" ; then
5331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333 fi
5334
5335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5337 fi
5338
5339 CFLAGS="$CFLAGS -Wformat"
5340
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5342 printf %s "checking if $CC supports -Wformat... " >&6; }
5343 cacheid=xorg_cv_cc_flag__Wformat
5344 if eval test \${$cacheid+y}
5345 then :
5346 printf %s "(cached) " >&6
5347 else $as_nop
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 int i;
5351 int
5352 main (void)
5353 {
5354
5355 ;
5356 return 0;
5357 }
5358 _ACEOF
5359 if ac_fn_c_try_link "$LINENO"
5360 then :
5361 eval $cacheid=yes
5362 else $as_nop
5363 eval $cacheid=no
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5366 conftest$ac_exeext conftest.$ac_ext
5367 fi
5368
5369
5370 CFLAGS="$xorg_testset_save_CFLAGS"
5371
5372 eval supported=\$$cacheid
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5374 printf "%s\n" "$supported" >&6; }
5375 if test "$supported" = "yes" ; then
5376 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5377 found="yes"
5378 fi
5379 fi
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397 xorg_testset_save_CFLAGS="$CFLAGS"
5398
5399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5403 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5404 then :
5405 printf %s "(cached) " >&6
5406 else $as_nop
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 int i;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"
5412 then :
5413 xorg_cv_cc_flag_unknown_warning_option=yes
5414 else $as_nop
5415 xorg_cv_cc_flag_unknown_warning_option=no
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5418 fi
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5422 CFLAGS="$xorg_testset_save_CFLAGS"
5423 fi
5424
5425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428 fi
5429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5433 then :
5434 printf %s "(cached) " >&6
5435 else $as_nop
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"
5441 then :
5442 xorg_cv_cc_flag_unused_command_line_argument=yes
5443 else $as_nop
5444 xorg_cv_cc_flag_unused_command_line_argument=no
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5447 fi
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5451 CFLAGS="$xorg_testset_save_CFLAGS"
5452 fi
5453
5454 found="no"
5455
5456 if test $found = "no" ; then
5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459 fi
5460
5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5463 fi
5464
5465 CFLAGS="$CFLAGS -Wstrict-prototypes"
5466
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5468 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5469 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5470 if eval test \${$cacheid+y}
5471 then :
5472 printf %s "(cached) " >&6
5473 else $as_nop
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 int i;
5477 int
5478 main (void)
5479 {
5480
5481 ;
5482 return 0;
5483 }
5484 _ACEOF
5485 if ac_fn_c_try_link "$LINENO"
5486 then :
5487 eval $cacheid=yes
5488 else $as_nop
5489 eval $cacheid=no
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5492 conftest$ac_exeext conftest.$ac_ext
5493 fi
5494
5495
5496 CFLAGS="$xorg_testset_save_CFLAGS"
5497
5498 eval supported=\$$cacheid
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5500 printf "%s\n" "$supported" >&6; }
5501 if test "$supported" = "yes" ; then
5502 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5503 found="yes"
5504 fi
5505 fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521 xorg_testset_save_CFLAGS="$CFLAGS"
5522
5523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5527 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5528 then :
5529 printf %s "(cached) " >&6
5530 else $as_nop
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 int i;
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"
5536 then :
5537 xorg_cv_cc_flag_unknown_warning_option=yes
5538 else $as_nop
5539 xorg_cv_cc_flag_unknown_warning_option=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5542 fi
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5546 CFLAGS="$xorg_testset_save_CFLAGS"
5547 fi
5548
5549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552 fi
5553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5557 then :
5558 printf %s "(cached) " >&6
5559 else $as_nop
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"
5565 then :
5566 xorg_cv_cc_flag_unused_command_line_argument=yes
5567 else $as_nop
5568 xorg_cv_cc_flag_unused_command_line_argument=no
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5571 fi
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5575 CFLAGS="$xorg_testset_save_CFLAGS"
5576 fi
5577
5578 found="no"
5579
5580 if test $found = "no" ; then
5581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5583 fi
5584
5585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5587 fi
5588
5589 CFLAGS="$CFLAGS -Wmissing-prototypes"
5590
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5592 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5593 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5594 if eval test \${$cacheid+y}
5595 then :
5596 printf %s "(cached) " >&6
5597 else $as_nop
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 int i;
5601 int
5602 main (void)
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_link "$LINENO"
5610 then :
5611 eval $cacheid=yes
5612 else $as_nop
5613 eval $cacheid=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5616 conftest$ac_exeext conftest.$ac_ext
5617 fi
5618
5619
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621
5622 eval supported=\$$cacheid
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5624 printf "%s\n" "$supported" >&6; }
5625 if test "$supported" = "yes" ; then
5626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5627 found="yes"
5628 fi
5629 fi
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 xorg_testset_save_CFLAGS="$CFLAGS"
5646
5647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5652 then :
5653 printf %s "(cached) " >&6
5654 else $as_nop
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 int i;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"
5660 then :
5661 xorg_cv_cc_flag_unknown_warning_option=yes
5662 else $as_nop
5663 xorg_cv_cc_flag_unknown_warning_option=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5666 fi
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5670 CFLAGS="$xorg_testset_save_CFLAGS"
5671 fi
5672
5673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676 fi
5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5681 then :
5682 printf %s "(cached) " >&6
5683 else $as_nop
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 int i;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"
5689 then :
5690 xorg_cv_cc_flag_unused_command_line_argument=yes
5691 else $as_nop
5692 xorg_cv_cc_flag_unused_command_line_argument=no
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5699 CFLAGS="$xorg_testset_save_CFLAGS"
5700 fi
5701
5702 found="no"
5703
5704 if test $found = "no" ; then
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 fi
5708
5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 fi
5712
5713 CFLAGS="$CFLAGS -Wnested-externs"
5714
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5716 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5717 cacheid=xorg_cv_cc_flag__Wnested_externs
5718 if eval test \${$cacheid+y}
5719 then :
5720 printf %s "(cached) " >&6
5721 else $as_nop
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 int i;
5725 int
5726 main (void)
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"
5734 then :
5735 eval $cacheid=yes
5736 else $as_nop
5737 eval $cacheid=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5740 conftest$ac_exeext conftest.$ac_ext
5741 fi
5742
5743
5744 CFLAGS="$xorg_testset_save_CFLAGS"
5745
5746 eval supported=\$$cacheid
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5748 printf "%s\n" "$supported" >&6; }
5749 if test "$supported" = "yes" ; then
5750 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5751 found="yes"
5752 fi
5753 fi
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 xorg_testset_save_CFLAGS="$CFLAGS"
5770
5771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else $as_nop
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 int i;
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"
5784 then :
5785 xorg_cv_cc_flag_unknown_warning_option=yes
5786 else $as_nop
5787 xorg_cv_cc_flag_unknown_warning_option=no
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5790 fi
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5794 CFLAGS="$xorg_testset_save_CFLAGS"
5795 fi
5796
5797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800 fi
5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5805 then :
5806 printf %s "(cached) " >&6
5807 else $as_nop
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 int i;
5811 _ACEOF
5812 if ac_fn_c_try_compile "$LINENO"
5813 then :
5814 xorg_cv_cc_flag_unused_command_line_argument=yes
5815 else $as_nop
5816 xorg_cv_cc_flag_unused_command_line_argument=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5819 fi
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5823 CFLAGS="$xorg_testset_save_CFLAGS"
5824 fi
5825
5826 found="no"
5827
5828 if test $found = "no" ; then
5829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831 fi
5832
5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 fi
5836
5837 CFLAGS="$CFLAGS -Wbad-function-cast"
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5840 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5841 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5842 if eval test \${$cacheid+y}
5843 then :
5844 printf %s "(cached) " >&6
5845 else $as_nop
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int i;
5849 int
5850 main (void)
5851 {
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_link "$LINENO"
5858 then :
5859 eval $cacheid=yes
5860 else $as_nop
5861 eval $cacheid=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5864 conftest$ac_exeext conftest.$ac_ext
5865 fi
5866
5867
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869
5870 eval supported=\$$cacheid
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5872 printf "%s\n" "$supported" >&6; }
5873 if test "$supported" = "yes" ; then
5874 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5875 found="yes"
5876 fi
5877 fi
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 xorg_testset_save_CFLAGS="$CFLAGS"
5894
5895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else $as_nop
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 _ACEOF
5907 if ac_fn_c_try_compile "$LINENO"
5908 then :
5909 xorg_cv_cc_flag_unknown_warning_option=yes
5910 else $as_nop
5911 xorg_cv_cc_flag_unknown_warning_option=no
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5914 fi
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5918 CFLAGS="$xorg_testset_save_CFLAGS"
5919 fi
5920
5921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5924 fi
5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5929 then :
5930 printf %s "(cached) " >&6
5931 else $as_nop
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 int i;
5935 _ACEOF
5936 if ac_fn_c_try_compile "$LINENO"
5937 then :
5938 xorg_cv_cc_flag_unused_command_line_argument=yes
5939 else $as_nop
5940 xorg_cv_cc_flag_unused_command_line_argument=no
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5943 fi
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5947 CFLAGS="$xorg_testset_save_CFLAGS"
5948 fi
5949
5950 found="no"
5951
5952 if test $found = "no" ; then
5953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955 fi
5956
5957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5959 fi
5960
5961 CFLAGS="$CFLAGS -Wold-style-definition"
5962
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5964 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5965 cacheid=xorg_cv_cc_flag__Wold_style_definition
5966 if eval test \${$cacheid+y}
5967 then :
5968 printf %s "(cached) " >&6
5969 else $as_nop
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 int i;
5973 int
5974 main (void)
5975 {
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_c_try_link "$LINENO"
5982 then :
5983 eval $cacheid=yes
5984 else $as_nop
5985 eval $cacheid=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5988 conftest$ac_exeext conftest.$ac_ext
5989 fi
5990
5991
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993
5994 eval supported=\$$cacheid
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5996 printf "%s\n" "$supported" >&6; }
5997 if test "$supported" = "yes" ; then
5998 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5999 found="yes"
6000 fi
6001 fi
6002
6003 if test $found = "no" ; then
6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006 fi
6007
6008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6010 fi
6011
6012 CFLAGS="$CFLAGS -fd"
6013
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6015 printf %s "checking if $CC supports -fd... " >&6; }
6016 cacheid=xorg_cv_cc_flag__fd
6017 if eval test \${$cacheid+y}
6018 then :
6019 printf %s "(cached) " >&6
6020 else $as_nop
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 int i;
6024 int
6025 main (void)
6026 {
6027
6028 ;
6029 return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_link "$LINENO"
6033 then :
6034 eval $cacheid=yes
6035 else $as_nop
6036 eval $cacheid=no
6037 fi
6038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6039 conftest$ac_exeext conftest.$ac_ext
6040 fi
6041
6042
6043 CFLAGS="$xorg_testset_save_CFLAGS"
6044
6045 eval supported=\$$cacheid
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6047 printf "%s\n" "$supported" >&6; }
6048 if test "$supported" = "yes" ; then
6049 BASE_CFLAGS="$BASE_CFLAGS -fd"
6050 found="yes"
6051 fi
6052 fi
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 xorg_testset_save_CFLAGS="$CFLAGS"
6069
6070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6075 then :
6076 printf %s "(cached) " >&6
6077 else $as_nop
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 int i;
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 xorg_cv_cc_flag_unknown_warning_option=yes
6085 else $as_nop
6086 xorg_cv_cc_flag_unknown_warning_option=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099 fi
6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else $as_nop
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int i;
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"
6112 then :
6113 xorg_cv_cc_flag_unused_command_line_argument=yes
6114 else $as_nop
6115 xorg_cv_cc_flag_unused_command_line_argument=no
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6118 fi
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6122 CFLAGS="$xorg_testset_save_CFLAGS"
6123 fi
6124
6125 found="no"
6126
6127 if test $found = "no" ; then
6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130 fi
6131
6132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6134 fi
6135
6136 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6137
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6139 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6140 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6141 if eval test \${$cacheid+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else $as_nop
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 int i;
6148 int
6149 main (void)
6150 {
6151
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 if ac_fn_c_try_link "$LINENO"
6157 then :
6158 eval $cacheid=yes
6159 else $as_nop
6160 eval $cacheid=no
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6163 conftest$ac_exeext conftest.$ac_ext
6164 fi
6165
6166
6167 CFLAGS="$xorg_testset_save_CFLAGS"
6168
6169 eval supported=\$$cacheid
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6171 printf "%s\n" "$supported" >&6; }
6172 if test "$supported" = "yes" ; then
6173 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6174 found="yes"
6175 fi
6176 fi
6177
6178
6179
6180
6181
6182 # This chunk adds additional warnings that could catch undesired effects.
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else $as_nop
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 int i;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"
6211 then :
6212 xorg_cv_cc_flag_unknown_warning_option=yes
6213 else $as_nop
6214 xorg_cv_cc_flag_unknown_warning_option=no
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6217 fi
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221 CFLAGS="$xorg_testset_save_CFLAGS"
6222 fi
6223
6224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227 fi
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else $as_nop
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 int i;
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"
6240 then :
6241 xorg_cv_cc_flag_unused_command_line_argument=yes
6242 else $as_nop
6243 xorg_cv_cc_flag_unused_command_line_argument=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6246 fi
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6248 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251 fi
6252
6253 found="no"
6254
6255 if test $found = "no" ; then
6256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6258 fi
6259
6260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6262 fi
6263
6264 CFLAGS="$CFLAGS -Wunused"
6265
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6267 printf %s "checking if $CC supports -Wunused... " >&6; }
6268 cacheid=xorg_cv_cc_flag__Wunused
6269 if eval test \${$cacheid+y}
6270 then :
6271 printf %s "(cached) " >&6
6272 else $as_nop
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 int i;
6276 int
6277 main (void)
6278 {
6279
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_link "$LINENO"
6285 then :
6286 eval $cacheid=yes
6287 else $as_nop
6288 eval $cacheid=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6291 conftest$ac_exeext conftest.$ac_ext
6292 fi
6293
6294
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296
6297 eval supported=\$$cacheid
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6299 printf "%s\n" "$supported" >&6; }
6300 if test "$supported" = "yes" ; then
6301 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6302 found="yes"
6303 fi
6304 fi
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 xorg_testset_save_CFLAGS="$CFLAGS"
6321
6322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6326 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else $as_nop
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 int i;
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"
6335 then :
6336 xorg_cv_cc_flag_unknown_warning_option=yes
6337 else $as_nop
6338 xorg_cv_cc_flag_unknown_warning_option=no
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6341 fi
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6345 CFLAGS="$xorg_testset_save_CFLAGS"
6346 fi
6347
6348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351 fi
6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6356 then :
6357 printf %s "(cached) " >&6
6358 else $as_nop
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 int i;
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"
6364 then :
6365 xorg_cv_cc_flag_unused_command_line_argument=yes
6366 else $as_nop
6367 xorg_cv_cc_flag_unused_command_line_argument=no
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6370 fi
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6374 CFLAGS="$xorg_testset_save_CFLAGS"
6375 fi
6376
6377 found="no"
6378
6379 if test $found = "no" ; then
6380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382 fi
6383
6384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386 fi
6387
6388 CFLAGS="$CFLAGS -Wuninitialized"
6389
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6391 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6392 cacheid=xorg_cv_cc_flag__Wuninitialized
6393 if eval test \${$cacheid+y}
6394 then :
6395 printf %s "(cached) " >&6
6396 else $as_nop
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 int i;
6400 int
6401 main (void)
6402 {
6403
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_link "$LINENO"
6409 then :
6410 eval $cacheid=yes
6411 else $as_nop
6412 eval $cacheid=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6415 conftest$ac_exeext conftest.$ac_ext
6416 fi
6417
6418
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6420
6421 eval supported=\$$cacheid
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6423 printf "%s\n" "$supported" >&6; }
6424 if test "$supported" = "yes" ; then
6425 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6426 found="yes"
6427 fi
6428 fi
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 xorg_testset_save_CFLAGS="$CFLAGS"
6445
6446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6450 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6451 then :
6452 printf %s "(cached) " >&6
6453 else $as_nop
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 int i;
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"
6459 then :
6460 xorg_cv_cc_flag_unknown_warning_option=yes
6461 else $as_nop
6462 xorg_cv_cc_flag_unknown_warning_option=no
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6465 fi
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6467 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6469 CFLAGS="$xorg_testset_save_CFLAGS"
6470 fi
6471
6472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6475 fi
6476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6478 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6479 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else $as_nop
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 int i;
6486 _ACEOF
6487 if ac_fn_c_try_compile "$LINENO"
6488 then :
6489 xorg_cv_cc_flag_unused_command_line_argument=yes
6490 else $as_nop
6491 xorg_cv_cc_flag_unused_command_line_argument=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6494 fi
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6496 printf "%s\n" "$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 -Wshadow"
6513
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6515 printf %s "checking if $CC supports -Wshadow... " >&6; }
6516 cacheid=xorg_cv_cc_flag__Wshadow
6517 if eval test \${$cacheid+y}
6518 then :
6519 printf %s "(cached) " >&6
6520 else $as_nop
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 int i;
6524 int
6525 main (void)
6526 {
6527
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_link "$LINENO"
6533 then :
6534 eval $cacheid=yes
6535 else $as_nop
6536 eval $cacheid=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6539 conftest$ac_exeext conftest.$ac_ext
6540 fi
6541
6542
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544
6545 eval supported=\$$cacheid
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6547 printf "%s\n" "$supported" >&6; }
6548 if test "$supported" = "yes" ; then
6549 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6550 found="yes"
6551 fi
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 xorg_testset_save_CFLAGS="$CFLAGS"
6569
6570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6574 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6575 then :
6576 printf %s "(cached) " >&6
6577 else $as_nop
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int i;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"
6583 then :
6584 xorg_cv_cc_flag_unknown_warning_option=yes
6585 else $as_nop
6586 xorg_cv_cc_flag_unknown_warning_option=no
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6589 fi
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6593 CFLAGS="$xorg_testset_save_CFLAGS"
6594 fi
6595
6596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599 fi
6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else $as_nop
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 int i;
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"
6612 then :
6613 xorg_cv_cc_flag_unused_command_line_argument=yes
6614 else $as_nop
6615 xorg_cv_cc_flag_unused_command_line_argument=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 fi
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6622 CFLAGS="$xorg_testset_save_CFLAGS"
6623 fi
6624
6625 found="no"
6626
6627 if test $found = "no" ; then
6628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 fi
6631
6632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634 fi
6635
6636 CFLAGS="$CFLAGS -Wmissing-noreturn"
6637
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6639 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6640 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6641 if eval test \${$cacheid+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else $as_nop
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 int i;
6648 int
6649 main (void)
6650 {
6651
6652 ;
6653 return 0;
6654 }
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"
6657 then :
6658 eval $cacheid=yes
6659 else $as_nop
6660 eval $cacheid=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6663 conftest$ac_exeext conftest.$ac_ext
6664 fi
6665
6666
6667 CFLAGS="$xorg_testset_save_CFLAGS"
6668
6669 eval supported=\$$cacheid
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6671 printf "%s\n" "$supported" >&6; }
6672 if test "$supported" = "yes" ; then
6673 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6674 found="yes"
6675 fi
6676 fi
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692 xorg_testset_save_CFLAGS="$CFLAGS"
6693
6694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else $as_nop
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"
6707 then :
6708 xorg_cv_cc_flag_unknown_warning_option=yes
6709 else $as_nop
6710 xorg_cv_cc_flag_unknown_warning_option=no
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6713 fi
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6717 CFLAGS="$xorg_testset_save_CFLAGS"
6718 fi
6719
6720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6723 fi
6724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6728 then :
6729 printf %s "(cached) " >&6
6730 else $as_nop
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733 int i;
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"
6736 then :
6737 xorg_cv_cc_flag_unused_command_line_argument=yes
6738 else $as_nop
6739 xorg_cv_cc_flag_unused_command_line_argument=no
6740 fi
6741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6742 fi
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6744 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6746 CFLAGS="$xorg_testset_save_CFLAGS"
6747 fi
6748
6749 found="no"
6750
6751 if test $found = "no" ; then
6752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6754 fi
6755
6756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6758 fi
6759
6760 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6761
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6763 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6764 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6765 if eval test \${$cacheid+y}
6766 then :
6767 printf %s "(cached) " >&6
6768 else $as_nop
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 int i;
6772 int
6773 main (void)
6774 {
6775
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"
6781 then :
6782 eval $cacheid=yes
6783 else $as_nop
6784 eval $cacheid=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6787 conftest$ac_exeext conftest.$ac_ext
6788 fi
6789
6790
6791 CFLAGS="$xorg_testset_save_CFLAGS"
6792
6793 eval supported=\$$cacheid
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6795 printf "%s\n" "$supported" >&6; }
6796 if test "$supported" = "yes" ; then
6797 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6798 found="yes"
6799 fi
6800 fi
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816 xorg_testset_save_CFLAGS="$CFLAGS"
6817
6818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6823 then :
6824 printf %s "(cached) " >&6
6825 else $as_nop
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 int i;
6829 _ACEOF
6830 if ac_fn_c_try_compile "$LINENO"
6831 then :
6832 xorg_cv_cc_flag_unknown_warning_option=yes
6833 else $as_nop
6834 xorg_cv_cc_flag_unknown_warning_option=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6837 fi
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6839 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842 fi
6843
6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6847 fi
6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6852 then :
6853 printf %s "(cached) " >&6
6854 else $as_nop
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"
6860 then :
6861 xorg_cv_cc_flag_unused_command_line_argument=yes
6862 else $as_nop
6863 xorg_cv_cc_flag_unused_command_line_argument=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6866 fi
6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6870 CFLAGS="$xorg_testset_save_CFLAGS"
6871 fi
6872
6873 found="no"
6874
6875 if test $found = "no" ; then
6876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878 fi
6879
6880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6882 fi
6883
6884 CFLAGS="$CFLAGS -Wredundant-decls"
6885
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6887 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6888 cacheid=xorg_cv_cc_flag__Wredundant_decls
6889 if eval test \${$cacheid+y}
6890 then :
6891 printf %s "(cached) " >&6
6892 else $as_nop
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 int i;
6896 int
6897 main (void)
6898 {
6899
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"
6905 then :
6906 eval $cacheid=yes
6907 else $as_nop
6908 eval $cacheid=no
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6911 conftest$ac_exeext conftest.$ac_ext
6912 fi
6913
6914
6915 CFLAGS="$xorg_testset_save_CFLAGS"
6916
6917 eval supported=\$$cacheid
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6919 printf "%s\n" "$supported" >&6; }
6920 if test "$supported" = "yes" ; then
6921 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6922 found="yes"
6923 fi
6924 fi
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 xorg_testset_save_CFLAGS="$CFLAGS"
6941
6942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6946 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6947 then :
6948 printf %s "(cached) " >&6
6949 else $as_nop
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952 int i;
6953 _ACEOF
6954 if ac_fn_c_try_compile "$LINENO"
6955 then :
6956 xorg_cv_cc_flag_unknown_warning_option=yes
6957 else $as_nop
6958 xorg_cv_cc_flag_unknown_warning_option=no
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6961 fi
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6963 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6965 CFLAGS="$xorg_testset_save_CFLAGS"
6966 fi
6967
6968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971 fi
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6974 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6975 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6976 then :
6977 printf %s "(cached) " >&6
6978 else $as_nop
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981 int i;
6982 _ACEOF
6983 if ac_fn_c_try_compile "$LINENO"
6984 then :
6985 xorg_cv_cc_flag_unused_command_line_argument=yes
6986 else $as_nop
6987 xorg_cv_cc_flag_unused_command_line_argument=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6990 fi
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6994 CFLAGS="$xorg_testset_save_CFLAGS"
6995 fi
6996
6997 found="no"
6998
6999 if test $found = "no" ; then
7000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002 fi
7003
7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006 fi
7007
7008 CFLAGS="$CFLAGS -Wlogical-op"
7009
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7011 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7012 cacheid=xorg_cv_cc_flag__Wlogical_op
7013 if eval test \${$cacheid+y}
7014 then :
7015 printf %s "(cached) " >&6
7016 else $as_nop
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 int i;
7020 int
7021 main (void)
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"
7029 then :
7030 eval $cacheid=yes
7031 else $as_nop
7032 eval $cacheid=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7035 conftest$ac_exeext conftest.$ac_ext
7036 fi
7037
7038
7039 CFLAGS="$xorg_testset_save_CFLAGS"
7040
7041 eval supported=\$$cacheid
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7043 printf "%s\n" "$supported" >&6; }
7044 if test "$supported" = "yes" ; then
7045 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7046 found="yes"
7047 fi
7048 fi
7049
7050
7051
7052 # These are currently disabled because they are noisy. They will be enabled
7053 # in the future once the codebase is sufficiently modernized to silence
7054 # them. For now, I don't want them to drown out the other warnings.
7055 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7056 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7057 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7058
7059 # Turn some warnings into errors, so we don't accidently get successful builds
7060 # when there are problems that should be fixed.
7061
7062 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076 xorg_testset_save_CFLAGS="$CFLAGS"
7077
7078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7083 then :
7084 printf %s "(cached) " >&6
7085 else $as_nop
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 int i;
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"
7091 then :
7092 xorg_cv_cc_flag_unknown_warning_option=yes
7093 else $as_nop
7094 xorg_cv_cc_flag_unknown_warning_option=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 fi
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102 fi
7103
7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 fi
7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else $as_nop
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"
7120 then :
7121 xorg_cv_cc_flag_unused_command_line_argument=yes
7122 else $as_nop
7123 xorg_cv_cc_flag_unused_command_line_argument=no
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7126 fi
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7130 CFLAGS="$xorg_testset_save_CFLAGS"
7131 fi
7132
7133 found="no"
7134
7135 if test $found = "no" ; then
7136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138 fi
7139
7140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142 fi
7143
7144 CFLAGS="$CFLAGS -Werror=implicit"
7145
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7147 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7148 cacheid=xorg_cv_cc_flag__Werror_implicit
7149 if eval test \${$cacheid+y}
7150 then :
7151 printf %s "(cached) " >&6
7152 else $as_nop
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 int i;
7156 int
7157 main (void)
7158 {
7159
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_link "$LINENO"
7165 then :
7166 eval $cacheid=yes
7167 else $as_nop
7168 eval $cacheid=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7171 conftest$ac_exeext conftest.$ac_ext
7172 fi
7173
7174
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177 eval supported=\$$cacheid
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179 printf "%s\n" "$supported" >&6; }
7180 if test "$supported" = "yes" ; then
7181 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7182 found="yes"
7183 fi
7184 fi
7185
7186 if test $found = "no" ; then
7187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189 fi
7190
7191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193 fi
7194
7195 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7196
7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7198 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7199 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7200 if eval test \${$cacheid+y}
7201 then :
7202 printf %s "(cached) " >&6
7203 else $as_nop
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int i;
7207 int
7208 main (void)
7209 {
7210
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 if ac_fn_c_try_link "$LINENO"
7216 then :
7217 eval $cacheid=yes
7218 else $as_nop
7219 eval $cacheid=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7222 conftest$ac_exeext conftest.$ac_ext
7223 fi
7224
7225
7226 CFLAGS="$xorg_testset_save_CFLAGS"
7227
7228 eval supported=\$$cacheid
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7230 printf "%s\n" "$supported" >&6; }
7231 if test "$supported" = "yes" ; then
7232 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7233 found="yes"
7234 fi
7235 fi
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251 xorg_testset_save_CFLAGS="$CFLAGS"
7252
7253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7258 then :
7259 printf %s "(cached) " >&6
7260 else $as_nop
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 int i;
7264 _ACEOF
7265 if ac_fn_c_try_compile "$LINENO"
7266 then :
7267 xorg_cv_cc_flag_unknown_warning_option=yes
7268 else $as_nop
7269 xorg_cv_cc_flag_unknown_warning_option=no
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7272 fi
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7276 CFLAGS="$xorg_testset_save_CFLAGS"
7277 fi
7278
7279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7282 fi
7283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7287 then :
7288 printf %s "(cached) " >&6
7289 else $as_nop
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"
7295 then :
7296 xorg_cv_cc_flag_unused_command_line_argument=yes
7297 else $as_nop
7298 xorg_cv_cc_flag_unused_command_line_argument=no
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7301 fi
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7305 CFLAGS="$xorg_testset_save_CFLAGS"
7306 fi
7307
7308 found="no"
7309
7310 if test $found = "no" ; then
7311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313 fi
7314
7315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7317 fi
7318
7319 CFLAGS="$CFLAGS -Werror=nonnull"
7320
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7322 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7323 cacheid=xorg_cv_cc_flag__Werror_nonnull
7324 if eval test \${$cacheid+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else $as_nop
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 int
7332 main (void)
7333 {
7334
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_link "$LINENO"
7340 then :
7341 eval $cacheid=yes
7342 else $as_nop
7343 eval $cacheid=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7346 conftest$ac_exeext conftest.$ac_ext
7347 fi
7348
7349
7350 CFLAGS="$xorg_testset_save_CFLAGS"
7351
7352 eval supported=\$$cacheid
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7354 printf "%s\n" "$supported" >&6; }
7355 if test "$supported" = "yes" ; then
7356 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7357 found="yes"
7358 fi
7359 fi
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375 xorg_testset_save_CFLAGS="$CFLAGS"
7376
7377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7381 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7382 then :
7383 printf %s "(cached) " >&6
7384 else $as_nop
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 int i;
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"
7390 then :
7391 xorg_cv_cc_flag_unknown_warning_option=yes
7392 else $as_nop
7393 xorg_cv_cc_flag_unknown_warning_option=no
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7396 fi
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7398 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7400 CFLAGS="$xorg_testset_save_CFLAGS"
7401 fi
7402
7403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 fi
7407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7411 then :
7412 printf %s "(cached) " >&6
7413 else $as_nop
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 int i;
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"
7419 then :
7420 xorg_cv_cc_flag_unused_command_line_argument=yes
7421 else $as_nop
7422 xorg_cv_cc_flag_unused_command_line_argument=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7425 fi
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7429 CFLAGS="$xorg_testset_save_CFLAGS"
7430 fi
7431
7432 found="no"
7433
7434 if test $found = "no" ; then
7435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437 fi
7438
7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441 fi
7442
7443 CFLAGS="$CFLAGS -Werror=init-self"
7444
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7446 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7447 cacheid=xorg_cv_cc_flag__Werror_init_self
7448 if eval test \${$cacheid+y}
7449 then :
7450 printf %s "(cached) " >&6
7451 else $as_nop
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 int
7456 main (void)
7457 {
7458
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"
7464 then :
7465 eval $cacheid=yes
7466 else $as_nop
7467 eval $cacheid=no
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7470 conftest$ac_exeext conftest.$ac_ext
7471 fi
7472
7473
7474 CFLAGS="$xorg_testset_save_CFLAGS"
7475
7476 eval supported=\$$cacheid
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7478 printf "%s\n" "$supported" >&6; }
7479 if test "$supported" = "yes" ; then
7480 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7481 found="yes"
7482 fi
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 xorg_testset_save_CFLAGS="$CFLAGS"
7500
7501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else $as_nop
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 int i;
7512 _ACEOF
7513 if ac_fn_c_try_compile "$LINENO"
7514 then :
7515 xorg_cv_cc_flag_unknown_warning_option=yes
7516 else $as_nop
7517 xorg_cv_cc_flag_unknown_warning_option=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7520 fi
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7524 CFLAGS="$xorg_testset_save_CFLAGS"
7525 fi
7526
7527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7530 fi
7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7535 then :
7536 printf %s "(cached) " >&6
7537 else $as_nop
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 int i;
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"
7543 then :
7544 xorg_cv_cc_flag_unused_command_line_argument=yes
7545 else $as_nop
7546 xorg_cv_cc_flag_unused_command_line_argument=no
7547 fi
7548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7549 fi
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7553 CFLAGS="$xorg_testset_save_CFLAGS"
7554 fi
7555
7556 found="no"
7557
7558 if test $found = "no" ; then
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 fi
7562
7563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565 fi
7566
7567 CFLAGS="$CFLAGS -Werror=main"
7568
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7570 printf %s "checking if $CC supports -Werror=main... " >&6; }
7571 cacheid=xorg_cv_cc_flag__Werror_main
7572 if eval test \${$cacheid+y}
7573 then :
7574 printf %s "(cached) " >&6
7575 else $as_nop
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 int i;
7579 int
7580 main (void)
7581 {
7582
7583 ;
7584 return 0;
7585 }
7586 _ACEOF
7587 if ac_fn_c_try_link "$LINENO"
7588 then :
7589 eval $cacheid=yes
7590 else $as_nop
7591 eval $cacheid=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7594 conftest$ac_exeext conftest.$ac_ext
7595 fi
7596
7597
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599
7600 eval supported=\$$cacheid
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7602 printf "%s\n" "$supported" >&6; }
7603 if test "$supported" = "yes" ; then
7604 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7605 found="yes"
7606 fi
7607 fi
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 xorg_testset_save_CFLAGS="$CFLAGS"
7624
7625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else $as_nop
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 int i;
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"
7638 then :
7639 xorg_cv_cc_flag_unknown_warning_option=yes
7640 else $as_nop
7641 xorg_cv_cc_flag_unknown_warning_option=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7644 fi
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7649 fi
7650
7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654 fi
7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else $as_nop
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"
7667 then :
7668 xorg_cv_cc_flag_unused_command_line_argument=yes
7669 else $as_nop
7670 xorg_cv_cc_flag_unused_command_line_argument=no
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7673 fi
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7677 CFLAGS="$xorg_testset_save_CFLAGS"
7678 fi
7679
7680 found="no"
7681
7682 if test $found = "no" ; then
7683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 fi
7686
7687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689 fi
7690
7691 CFLAGS="$CFLAGS -Werror=missing-braces"
7692
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7694 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7695 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7696 if eval test \${$cacheid+y}
7697 then :
7698 printf %s "(cached) " >&6
7699 else $as_nop
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 int i;
7703 int
7704 main (void)
7705 {
7706
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_link "$LINENO"
7712 then :
7713 eval $cacheid=yes
7714 else $as_nop
7715 eval $cacheid=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718 conftest$ac_exeext conftest.$ac_ext
7719 fi
7720
7721
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723
7724 eval supported=\$$cacheid
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7726 printf "%s\n" "$supported" >&6; }
7727 if test "$supported" = "yes" ; then
7728 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7729 found="yes"
7730 fi
7731 fi
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 xorg_testset_save_CFLAGS="$CFLAGS"
7748
7749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7753 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7754 then :
7755 printf %s "(cached) " >&6
7756 else $as_nop
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 int i;
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"
7762 then :
7763 xorg_cv_cc_flag_unknown_warning_option=yes
7764 else $as_nop
7765 xorg_cv_cc_flag_unknown_warning_option=no
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7768 fi
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7773 fi
7774
7775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7778 fi
7779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7783 then :
7784 printf %s "(cached) " >&6
7785 else $as_nop
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 int i;
7789 _ACEOF
7790 if ac_fn_c_try_compile "$LINENO"
7791 then :
7792 xorg_cv_cc_flag_unused_command_line_argument=yes
7793 else $as_nop
7794 xorg_cv_cc_flag_unused_command_line_argument=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7797 fi
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7801 CFLAGS="$xorg_testset_save_CFLAGS"
7802 fi
7803
7804 found="no"
7805
7806 if test $found = "no" ; then
7807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809 fi
7810
7811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7813 fi
7814
7815 CFLAGS="$CFLAGS -Werror=sequence-point"
7816
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7818 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7819 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7820 if eval test \${$cacheid+y}
7821 then :
7822 printf %s "(cached) " >&6
7823 else $as_nop
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 int i;
7827 int
7828 main (void)
7829 {
7830
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 if ac_fn_c_try_link "$LINENO"
7836 then :
7837 eval $cacheid=yes
7838 else $as_nop
7839 eval $cacheid=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7842 conftest$ac_exeext conftest.$ac_ext
7843 fi
7844
7845
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847
7848 eval supported=\$$cacheid
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850 printf "%s\n" "$supported" >&6; }
7851 if test "$supported" = "yes" ; then
7852 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7853 found="yes"
7854 fi
7855 fi
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 xorg_testset_save_CFLAGS="$CFLAGS"
7872
7873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7877 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else $as_nop
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 int i;
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"
7886 then :
7887 xorg_cv_cc_flag_unknown_warning_option=yes
7888 else $as_nop
7889 xorg_cv_cc_flag_unknown_warning_option=no
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7892 fi
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7896 CFLAGS="$xorg_testset_save_CFLAGS"
7897 fi
7898
7899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7902 fi
7903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7907 then :
7908 printf %s "(cached) " >&6
7909 else $as_nop
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 int i;
7913 _ACEOF
7914 if ac_fn_c_try_compile "$LINENO"
7915 then :
7916 xorg_cv_cc_flag_unused_command_line_argument=yes
7917 else $as_nop
7918 xorg_cv_cc_flag_unused_command_line_argument=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7921 fi
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7925 CFLAGS="$xorg_testset_save_CFLAGS"
7926 fi
7927
7928 found="no"
7929
7930 if test $found = "no" ; then
7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933 fi
7934
7935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937 fi
7938
7939 CFLAGS="$CFLAGS -Werror=return-type"
7940
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7942 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7943 cacheid=xorg_cv_cc_flag__Werror_return_type
7944 if eval test \${$cacheid+y}
7945 then :
7946 printf %s "(cached) " >&6
7947 else $as_nop
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 int i;
7951 int
7952 main (void)
7953 {
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 if ac_fn_c_try_link "$LINENO"
7960 then :
7961 eval $cacheid=yes
7962 else $as_nop
7963 eval $cacheid=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7966 conftest$ac_exeext conftest.$ac_ext
7967 fi
7968
7969
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971
7972 eval supported=\$$cacheid
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7974 printf "%s\n" "$supported" >&6; }
7975 if test "$supported" = "yes" ; then
7976 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7977 found="yes"
7978 fi
7979 fi
7980
7981 if test $found = "no" ; then
7982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7984 fi
7985
7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988 fi
7989
7990 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7991
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7993 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7994 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7995 if eval test \${$cacheid+y}
7996 then :
7997 printf %s "(cached) " >&6
7998 else $as_nop
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int i;
8002 int
8003 main (void)
8004 {
8005
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"
8011 then :
8012 eval $cacheid=yes
8013 else $as_nop
8014 eval $cacheid=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8017 conftest$ac_exeext conftest.$ac_ext
8018 fi
8019
8020
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8022
8023 eval supported=\$$cacheid
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8025 printf "%s\n" "$supported" >&6; }
8026 if test "$supported" = "yes" ; then
8027 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8028 found="yes"
8029 fi
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046 xorg_testset_save_CFLAGS="$CFLAGS"
8047
8048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8051 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8052 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8053 then :
8054 printf %s "(cached) " >&6
8055 else $as_nop
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 int i;
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"
8061 then :
8062 xorg_cv_cc_flag_unknown_warning_option=yes
8063 else $as_nop
8064 xorg_cv_cc_flag_unknown_warning_option=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067 fi
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8069 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8071 CFLAGS="$xorg_testset_save_CFLAGS"
8072 fi
8073
8074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077 fi
8078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8080 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8081 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8082 then :
8083 printf %s "(cached) " >&6
8084 else $as_nop
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"
8090 then :
8091 xorg_cv_cc_flag_unused_command_line_argument=yes
8092 else $as_nop
8093 xorg_cv_cc_flag_unused_command_line_argument=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8096 fi
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8098 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8101 fi
8102
8103 found="no"
8104
8105 if test $found = "no" ; then
8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8108 fi
8109
8110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112 fi
8113
8114 CFLAGS="$CFLAGS -Werror=trigraphs"
8115
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8117 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8118 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8119 if eval test \${$cacheid+y}
8120 then :
8121 printf %s "(cached) " >&6
8122 else $as_nop
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 int i;
8126 int
8127 main (void)
8128 {
8129
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"
8135 then :
8136 eval $cacheid=yes
8137 else $as_nop
8138 eval $cacheid=no
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8141 conftest$ac_exeext conftest.$ac_ext
8142 fi
8143
8144
8145 CFLAGS="$xorg_testset_save_CFLAGS"
8146
8147 eval supported=\$$cacheid
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8149 printf "%s\n" "$supported" >&6; }
8150 if test "$supported" = "yes" ; then
8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8152 found="yes"
8153 fi
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170 xorg_testset_save_CFLAGS="$CFLAGS"
8171
8172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else $as_nop
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 int i;
8183 _ACEOF
8184 if ac_fn_c_try_compile "$LINENO"
8185 then :
8186 xorg_cv_cc_flag_unknown_warning_option=yes
8187 else $as_nop
8188 xorg_cv_cc_flag_unknown_warning_option=no
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191 fi
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8195 CFLAGS="$xorg_testset_save_CFLAGS"
8196 fi
8197
8198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 fi
8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8206 then :
8207 printf %s "(cached) " >&6
8208 else $as_nop
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 _ACEOF
8213 if ac_fn_c_try_compile "$LINENO"
8214 then :
8215 xorg_cv_cc_flag_unused_command_line_argument=yes
8216 else $as_nop
8217 xorg_cv_cc_flag_unused_command_line_argument=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8220 fi
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225 fi
8226
8227 found="no"
8228
8229 if test $found = "no" ; then
8230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232 fi
8233
8234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8236 fi
8237
8238 CFLAGS="$CFLAGS -Werror=array-bounds"
8239
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8241 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8242 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8243 if eval test \${$cacheid+y}
8244 then :
8245 printf %s "(cached) " >&6
8246 else $as_nop
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 int i;
8250 int
8251 main (void)
8252 {
8253
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"
8259 then :
8260 eval $cacheid=yes
8261 else $as_nop
8262 eval $cacheid=no
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8265 conftest$ac_exeext conftest.$ac_ext
8266 fi
8267
8268
8269 CFLAGS="$xorg_testset_save_CFLAGS"
8270
8271 eval supported=\$$cacheid
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8273 printf "%s\n" "$supported" >&6; }
8274 if test "$supported" = "yes" ; then
8275 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8276 found="yes"
8277 fi
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 xorg_testset_save_CFLAGS="$CFLAGS"
8295
8296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8300 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8301 then :
8302 printf %s "(cached) " >&6
8303 else $as_nop
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 int i;
8307 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"
8309 then :
8310 xorg_cv_cc_flag_unknown_warning_option=yes
8311 else $as_nop
8312 xorg_cv_cc_flag_unknown_warning_option=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8315 fi
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8319 CFLAGS="$xorg_testset_save_CFLAGS"
8320 fi
8321
8322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325 fi
8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8330 then :
8331 printf %s "(cached) " >&6
8332 else $as_nop
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 int i;
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"
8338 then :
8339 xorg_cv_cc_flag_unused_command_line_argument=yes
8340 else $as_nop
8341 xorg_cv_cc_flag_unused_command_line_argument=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8344 fi
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349 fi
8350
8351 found="no"
8352
8353 if test $found = "no" ; then
8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 fi
8357
8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 fi
8361
8362 CFLAGS="$CFLAGS -Werror=write-strings"
8363
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8365 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8366 cacheid=xorg_cv_cc_flag__Werror_write_strings
8367 if eval test \${$cacheid+y}
8368 then :
8369 printf %s "(cached) " >&6
8370 else $as_nop
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 int i;
8374 int
8375 main (void)
8376 {
8377
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 if ac_fn_c_try_link "$LINENO"
8383 then :
8384 eval $cacheid=yes
8385 else $as_nop
8386 eval $cacheid=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8389 conftest$ac_exeext conftest.$ac_ext
8390 fi
8391
8392
8393 CFLAGS="$xorg_testset_save_CFLAGS"
8394
8395 eval supported=\$$cacheid
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8397 printf "%s\n" "$supported" >&6; }
8398 if test "$supported" = "yes" ; then
8399 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8400 found="yes"
8401 fi
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418 xorg_testset_save_CFLAGS="$CFLAGS"
8419
8420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8424 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8425 then :
8426 printf %s "(cached) " >&6
8427 else $as_nop
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"
8433 then :
8434 xorg_cv_cc_flag_unknown_warning_option=yes
8435 else $as_nop
8436 xorg_cv_cc_flag_unknown_warning_option=no
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8439 fi
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8443 CFLAGS="$xorg_testset_save_CFLAGS"
8444 fi
8445
8446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449 fi
8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8454 then :
8455 printf %s "(cached) " >&6
8456 else $as_nop
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 int i;
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"
8462 then :
8463 xorg_cv_cc_flag_unused_command_line_argument=yes
8464 else $as_nop
8465 xorg_cv_cc_flag_unused_command_line_argument=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8468 fi
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8470 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8472 CFLAGS="$xorg_testset_save_CFLAGS"
8473 fi
8474
8475 found="no"
8476
8477 if test $found = "no" ; then
8478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 fi
8481
8482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8484 fi
8485
8486 CFLAGS="$CFLAGS -Werror=address"
8487
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8489 printf %s "checking if $CC supports -Werror=address... " >&6; }
8490 cacheid=xorg_cv_cc_flag__Werror_address
8491 if eval test \${$cacheid+y}
8492 then :
8493 printf %s "(cached) " >&6
8494 else $as_nop
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 int i;
8498 int
8499 main (void)
8500 {
8501
8502 ;
8503 return 0;
8504 }
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"
8507 then :
8508 eval $cacheid=yes
8509 else $as_nop
8510 eval $cacheid=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8513 conftest$ac_exeext conftest.$ac_ext
8514 fi
8515
8516
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518
8519 eval supported=\$$cacheid
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8521 printf "%s\n" "$supported" >&6; }
8522 if test "$supported" = "yes" ; then
8523 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8524 found="yes"
8525 fi
8526 fi
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542 xorg_testset_save_CFLAGS="$CFLAGS"
8543
8544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8547 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8548 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8549 then :
8550 printf %s "(cached) " >&6
8551 else $as_nop
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"
8557 then :
8558 xorg_cv_cc_flag_unknown_warning_option=yes
8559 else $as_nop
8560 xorg_cv_cc_flag_unknown_warning_option=no
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8563 fi
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8565 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8567 CFLAGS="$xorg_testset_save_CFLAGS"
8568 fi
8569
8570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8573 fi
8574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8576 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8577 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else $as_nop
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 int i;
8584 _ACEOF
8585 if ac_fn_c_try_compile "$LINENO"
8586 then :
8587 xorg_cv_cc_flag_unused_command_line_argument=yes
8588 else $as_nop
8589 xorg_cv_cc_flag_unused_command_line_argument=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8592 fi
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8594 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8596 CFLAGS="$xorg_testset_save_CFLAGS"
8597 fi
8598
8599 found="no"
8600
8601 if test $found = "no" ; then
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 fi
8605
8606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608 fi
8609
8610 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8611
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8613 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8614 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8615 if eval test \${$cacheid+y}
8616 then :
8617 printf %s "(cached) " >&6
8618 else $as_nop
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 int i;
8622 int
8623 main (void)
8624 {
8625
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_link "$LINENO"
8631 then :
8632 eval $cacheid=yes
8633 else $as_nop
8634 eval $cacheid=no
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8637 conftest$ac_exeext conftest.$ac_ext
8638 fi
8639
8640
8641 CFLAGS="$xorg_testset_save_CFLAGS"
8642
8643 eval supported=\$$cacheid
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8645 printf "%s\n" "$supported" >&6; }
8646 if test "$supported" = "yes" ; then
8647 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8648 found="yes"
8649 fi
8650 fi
8651
8652 if test $found = "no" ; then
8653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8655 fi
8656
8657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8659 fi
8660
8661 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8662
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8664 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8665 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8666 if eval test \${$cacheid+y}
8667 then :
8668 printf %s "(cached) " >&6
8669 else $as_nop
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 int
8674 main (void)
8675 {
8676
8677 ;
8678 return 0;
8679 }
8680 _ACEOF
8681 if ac_fn_c_try_link "$LINENO"
8682 then :
8683 eval $cacheid=yes
8684 else $as_nop
8685 eval $cacheid=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8688 conftest$ac_exeext conftest.$ac_ext
8689 fi
8690
8691
8692 CFLAGS="$xorg_testset_save_CFLAGS"
8693
8694 eval supported=\$$cacheid
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8696 printf "%s\n" "$supported" >&6; }
8697 if test "$supported" = "yes" ; then
8698 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8699 found="yes"
8700 fi
8701 fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 xorg_testset_save_CFLAGS="$CFLAGS"
8718
8719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8723 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else $as_nop
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"
8732 then :
8733 xorg_cv_cc_flag_unknown_warning_option=yes
8734 else $as_nop
8735 xorg_cv_cc_flag_unknown_warning_option=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8740 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8748 fi
8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8751 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8752 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8753 then :
8754 printf %s "(cached) " >&6
8755 else $as_nop
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 int i;
8759 _ACEOF
8760 if ac_fn_c_try_compile "$LINENO"
8761 then :
8762 xorg_cv_cc_flag_unused_command_line_argument=yes
8763 else $as_nop
8764 xorg_cv_cc_flag_unused_command_line_argument=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8767 fi
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8769 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8771 CFLAGS="$xorg_testset_save_CFLAGS"
8772 fi
8773
8774 found="no"
8775
8776 if test $found = "no" ; then
8777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8779 fi
8780
8781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8783 fi
8784
8785 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8786
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8788 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8789 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8790 if eval test \${$cacheid+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else $as_nop
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 int i;
8797 int
8798 main (void)
8799 {
8800
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"
8806 then :
8807 eval $cacheid=yes
8808 else $as_nop
8809 eval $cacheid=no
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8812 conftest$ac_exeext conftest.$ac_ext
8813 fi
8814
8815
8816 CFLAGS="$xorg_testset_save_CFLAGS"
8817
8818 eval supported=\$$cacheid
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8820 printf "%s\n" "$supported" >&6; }
8821 if test "$supported" = "yes" ; then
8822 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8823 found="yes"
8824 fi
8825 fi
8826
8827 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8828 else
8829 { printf "%s\n" "$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
8830 printf "%s\n" "$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;}
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 xorg_testset_save_CFLAGS="$CFLAGS"
8845
8846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8850 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8851 then :
8852 printf %s "(cached) " >&6
8853 else $as_nop
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 int i;
8857 _ACEOF
8858 if ac_fn_c_try_compile "$LINENO"
8859 then :
8860 xorg_cv_cc_flag_unknown_warning_option=yes
8861 else $as_nop
8862 xorg_cv_cc_flag_unknown_warning_option=no
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8865 fi
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8869 CFLAGS="$xorg_testset_save_CFLAGS"
8870 fi
8871
8872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875 fi
8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else $as_nop
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 int i;
8886 _ACEOF
8887 if ac_fn_c_try_compile "$LINENO"
8888 then :
8889 xorg_cv_cc_flag_unused_command_line_argument=yes
8890 else $as_nop
8891 xorg_cv_cc_flag_unused_command_line_argument=no
8892 fi
8893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8894 fi
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8896 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8898 CFLAGS="$xorg_testset_save_CFLAGS"
8899 fi
8900
8901 found="no"
8902
8903 if test $found = "no" ; then
8904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906 fi
8907
8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8910 fi
8911
8912 CFLAGS="$CFLAGS -Wimplicit"
8913
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8915 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8916 cacheid=xorg_cv_cc_flag__Wimplicit
8917 if eval test \${$cacheid+y}
8918 then :
8919 printf %s "(cached) " >&6
8920 else $as_nop
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 int i;
8924 int
8925 main (void)
8926 {
8927
8928 ;
8929 return 0;
8930 }
8931 _ACEOF
8932 if ac_fn_c_try_link "$LINENO"
8933 then :
8934 eval $cacheid=yes
8935 else $as_nop
8936 eval $cacheid=no
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8939 conftest$ac_exeext conftest.$ac_ext
8940 fi
8941
8942
8943 CFLAGS="$xorg_testset_save_CFLAGS"
8944
8945 eval supported=\$$cacheid
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8947 printf "%s\n" "$supported" >&6; }
8948 if test "$supported" = "yes" ; then
8949 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8950 found="yes"
8951 fi
8952 fi
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968 xorg_testset_save_CFLAGS="$CFLAGS"
8969
8970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8974 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8975 then :
8976 printf %s "(cached) " >&6
8977 else $as_nop
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 int i;
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"
8983 then :
8984 xorg_cv_cc_flag_unknown_warning_option=yes
8985 else $as_nop
8986 xorg_cv_cc_flag_unknown_warning_option=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8989 fi
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9004 then :
9005 printf %s "(cached) " >&6
9006 else $as_nop
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 int i;
9010 _ACEOF
9011 if ac_fn_c_try_compile "$LINENO"
9012 then :
9013 xorg_cv_cc_flag_unused_command_line_argument=yes
9014 else $as_nop
9015 xorg_cv_cc_flag_unused_command_line_argument=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9018 fi
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9022 CFLAGS="$xorg_testset_save_CFLAGS"
9023 fi
9024
9025 found="no"
9026
9027 if test $found = "no" ; then
9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 fi
9031
9032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9034 fi
9035
9036 CFLAGS="$CFLAGS -Wnonnull"
9037
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9039 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9040 cacheid=xorg_cv_cc_flag__Wnonnull
9041 if eval test \${$cacheid+y}
9042 then :
9043 printf %s "(cached) " >&6
9044 else $as_nop
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 int i;
9048 int
9049 main (void)
9050 {
9051
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_c_try_link "$LINENO"
9057 then :
9058 eval $cacheid=yes
9059 else $as_nop
9060 eval $cacheid=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi
9065
9066
9067 CFLAGS="$xorg_testset_save_CFLAGS"
9068
9069 eval supported=\$$cacheid
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9071 printf "%s\n" "$supported" >&6; }
9072 if test "$supported" = "yes" ; then
9073 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9074 found="yes"
9075 fi
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 xorg_testset_save_CFLAGS="$CFLAGS"
9093
9094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9098 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9099 then :
9100 printf %s "(cached) " >&6
9101 else $as_nop
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 int i;
9105 _ACEOF
9106 if ac_fn_c_try_compile "$LINENO"
9107 then :
9108 xorg_cv_cc_flag_unknown_warning_option=yes
9109 else $as_nop
9110 xorg_cv_cc_flag_unknown_warning_option=no
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9113 fi
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9117 CFLAGS="$xorg_testset_save_CFLAGS"
9118 fi
9119
9120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123 fi
9124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9128 then :
9129 printf %s "(cached) " >&6
9130 else $as_nop
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133 int i;
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"
9136 then :
9137 xorg_cv_cc_flag_unused_command_line_argument=yes
9138 else $as_nop
9139 xorg_cv_cc_flag_unused_command_line_argument=no
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9142 fi
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9144 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9146 CFLAGS="$xorg_testset_save_CFLAGS"
9147 fi
9148
9149 found="no"
9150
9151 if test $found = "no" ; then
9152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154 fi
9155
9156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9158 fi
9159
9160 CFLAGS="$CFLAGS -Winit-self"
9161
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9163 printf %s "checking if $CC supports -Winit-self... " >&6; }
9164 cacheid=xorg_cv_cc_flag__Winit_self
9165 if eval test \${$cacheid+y}
9166 then :
9167 printf %s "(cached) " >&6
9168 else $as_nop
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 int i;
9172 int
9173 main (void)
9174 {
9175
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_c_try_link "$LINENO"
9181 then :
9182 eval $cacheid=yes
9183 else $as_nop
9184 eval $cacheid=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9187 conftest$ac_exeext conftest.$ac_ext
9188 fi
9189
9190
9191 CFLAGS="$xorg_testset_save_CFLAGS"
9192
9193 eval supported=\$$cacheid
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9195 printf "%s\n" "$supported" >&6; }
9196 if test "$supported" = "yes" ; then
9197 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9198 found="yes"
9199 fi
9200 fi
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216 xorg_testset_save_CFLAGS="$CFLAGS"
9217
9218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9222 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9223 then :
9224 printf %s "(cached) " >&6
9225 else $as_nop
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 int i;
9229 _ACEOF
9230 if ac_fn_c_try_compile "$LINENO"
9231 then :
9232 xorg_cv_cc_flag_unknown_warning_option=yes
9233 else $as_nop
9234 xorg_cv_cc_flag_unknown_warning_option=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9237 fi
9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242 fi
9243
9244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9252 then :
9253 printf %s "(cached) " >&6
9254 else $as_nop
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 int i;
9258 _ACEOF
9259 if ac_fn_c_try_compile "$LINENO"
9260 then :
9261 xorg_cv_cc_flag_unused_command_line_argument=yes
9262 else $as_nop
9263 xorg_cv_cc_flag_unused_command_line_argument=no
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9266 fi
9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9270 CFLAGS="$xorg_testset_save_CFLAGS"
9271 fi
9272
9273 found="no"
9274
9275 if test $found = "no" ; then
9276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278 fi
9279
9280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282 fi
9283
9284 CFLAGS="$CFLAGS -Wmain"
9285
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9287 printf %s "checking if $CC supports -Wmain... " >&6; }
9288 cacheid=xorg_cv_cc_flag__Wmain
9289 if eval test \${$cacheid+y}
9290 then :
9291 printf %s "(cached) " >&6
9292 else $as_nop
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 int i;
9296 int
9297 main (void)
9298 {
9299
9300 ;
9301 return 0;
9302 }
9303 _ACEOF
9304 if ac_fn_c_try_link "$LINENO"
9305 then :
9306 eval $cacheid=yes
9307 else $as_nop
9308 eval $cacheid=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9311 conftest$ac_exeext conftest.$ac_ext
9312 fi
9313
9314
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9316
9317 eval supported=\$$cacheid
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9319 printf "%s\n" "$supported" >&6; }
9320 if test "$supported" = "yes" ; then
9321 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9322 found="yes"
9323 fi
9324 fi
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340 xorg_testset_save_CFLAGS="$CFLAGS"
9341
9342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9345 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9346 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9347 then :
9348 printf %s "(cached) " >&6
9349 else $as_nop
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 int i;
9353 _ACEOF
9354 if ac_fn_c_try_compile "$LINENO"
9355 then :
9356 xorg_cv_cc_flag_unknown_warning_option=yes
9357 else $as_nop
9358 xorg_cv_cc_flag_unknown_warning_option=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9361 fi
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9363 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9365 CFLAGS="$xorg_testset_save_CFLAGS"
9366 fi
9367
9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371 fi
9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9374 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9375 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9376 then :
9377 printf %s "(cached) " >&6
9378 else $as_nop
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int i;
9382 _ACEOF
9383 if ac_fn_c_try_compile "$LINENO"
9384 then :
9385 xorg_cv_cc_flag_unused_command_line_argument=yes
9386 else $as_nop
9387 xorg_cv_cc_flag_unused_command_line_argument=no
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9390 fi
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9394 CFLAGS="$xorg_testset_save_CFLAGS"
9395 fi
9396
9397 found="no"
9398
9399 if test $found = "no" ; then
9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402 fi
9403
9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406 fi
9407
9408 CFLAGS="$CFLAGS -Wmissing-braces"
9409
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9411 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9412 cacheid=xorg_cv_cc_flag__Wmissing_braces
9413 if eval test \${$cacheid+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else $as_nop
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 int i;
9420 int
9421 main (void)
9422 {
9423
9424 ;
9425 return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"
9429 then :
9430 eval $cacheid=yes
9431 else $as_nop
9432 eval $cacheid=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9435 conftest$ac_exeext conftest.$ac_ext
9436 fi
9437
9438
9439 CFLAGS="$xorg_testset_save_CFLAGS"
9440
9441 eval supported=\$$cacheid
9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9443 printf "%s\n" "$supported" >&6; }
9444 if test "$supported" = "yes" ; then
9445 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9446 found="yes"
9447 fi
9448 fi
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464 xorg_testset_save_CFLAGS="$CFLAGS"
9465
9466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9471 then :
9472 printf %s "(cached) " >&6
9473 else $as_nop
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 int i;
9477 _ACEOF
9478 if ac_fn_c_try_compile "$LINENO"
9479 then :
9480 xorg_cv_cc_flag_unknown_warning_option=yes
9481 else $as_nop
9482 xorg_cv_cc_flag_unknown_warning_option=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9485 fi
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489 CFLAGS="$xorg_testset_save_CFLAGS"
9490 fi
9491
9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495 fi
9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9500 then :
9501 printf %s "(cached) " >&6
9502 else $as_nop
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 int i;
9506 _ACEOF
9507 if ac_fn_c_try_compile "$LINENO"
9508 then :
9509 xorg_cv_cc_flag_unused_command_line_argument=yes
9510 else $as_nop
9511 xorg_cv_cc_flag_unused_command_line_argument=no
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9514 fi
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9518 CFLAGS="$xorg_testset_save_CFLAGS"
9519 fi
9520
9521 found="no"
9522
9523 if test $found = "no" ; then
9524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 fi
9527
9528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9530 fi
9531
9532 CFLAGS="$CFLAGS -Wsequence-point"
9533
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9535 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9536 cacheid=xorg_cv_cc_flag__Wsequence_point
9537 if eval test \${$cacheid+y}
9538 then :
9539 printf %s "(cached) " >&6
9540 else $as_nop
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 int i;
9544 int
9545 main (void)
9546 {
9547
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"
9553 then :
9554 eval $cacheid=yes
9555 else $as_nop
9556 eval $cacheid=no
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9559 conftest$ac_exeext conftest.$ac_ext
9560 fi
9561
9562
9563 CFLAGS="$xorg_testset_save_CFLAGS"
9564
9565 eval supported=\$$cacheid
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9567 printf "%s\n" "$supported" >&6; }
9568 if test "$supported" = "yes" ; then
9569 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9570 found="yes"
9571 fi
9572 fi
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588 xorg_testset_save_CFLAGS="$CFLAGS"
9589
9590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9594 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9595 then :
9596 printf %s "(cached) " >&6
9597 else $as_nop
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 int i;
9601 _ACEOF
9602 if ac_fn_c_try_compile "$LINENO"
9603 then :
9604 xorg_cv_cc_flag_unknown_warning_option=yes
9605 else $as_nop
9606 xorg_cv_cc_flag_unknown_warning_option=no
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9609 fi
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9613 CFLAGS="$xorg_testset_save_CFLAGS"
9614 fi
9615
9616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619 fi
9620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9624 then :
9625 printf %s "(cached) " >&6
9626 else $as_nop
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 int i;
9630 _ACEOF
9631 if ac_fn_c_try_compile "$LINENO"
9632 then :
9633 xorg_cv_cc_flag_unused_command_line_argument=yes
9634 else $as_nop
9635 xorg_cv_cc_flag_unused_command_line_argument=no
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9638 fi
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9642 CFLAGS="$xorg_testset_save_CFLAGS"
9643 fi
9644
9645 found="no"
9646
9647 if test $found = "no" ; then
9648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650 fi
9651
9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 fi
9655
9656 CFLAGS="$CFLAGS -Wreturn-type"
9657
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9659 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9660 cacheid=xorg_cv_cc_flag__Wreturn_type
9661 if eval test \${$cacheid+y}
9662 then :
9663 printf %s "(cached) " >&6
9664 else $as_nop
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 int i;
9668 int
9669 main (void)
9670 {
9671
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"
9677 then :
9678 eval $cacheid=yes
9679 else $as_nop
9680 eval $cacheid=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9683 conftest$ac_exeext conftest.$ac_ext
9684 fi
9685
9686
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688
9689 eval supported=\$$cacheid
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9691 printf "%s\n" "$supported" >&6; }
9692 if test "$supported" = "yes" ; then
9693 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9694 found="yes"
9695 fi
9696 fi
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712 xorg_testset_save_CFLAGS="$CFLAGS"
9713
9714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9718 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else $as_nop
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 int i;
9725 _ACEOF
9726 if ac_fn_c_try_compile "$LINENO"
9727 then :
9728 xorg_cv_cc_flag_unknown_warning_option=yes
9729 else $as_nop
9730 xorg_cv_cc_flag_unknown_warning_option=no
9731 fi
9732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9733 fi
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9735 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9737 CFLAGS="$xorg_testset_save_CFLAGS"
9738 fi
9739
9740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743 fi
9744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9746 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9747 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9748 then :
9749 printf %s "(cached) " >&6
9750 else $as_nop
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"
9756 then :
9757 xorg_cv_cc_flag_unused_command_line_argument=yes
9758 else $as_nop
9759 xorg_cv_cc_flag_unused_command_line_argument=no
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9762 fi
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9766 CFLAGS="$xorg_testset_save_CFLAGS"
9767 fi
9768
9769 found="no"
9770
9771 if test $found = "no" ; then
9772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774 fi
9775
9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9778 fi
9779
9780 CFLAGS="$CFLAGS -Wtrigraphs"
9781
9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9783 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9784 cacheid=xorg_cv_cc_flag__Wtrigraphs
9785 if eval test \${$cacheid+y}
9786 then :
9787 printf %s "(cached) " >&6
9788 else $as_nop
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int i;
9792 int
9793 main (void)
9794 {
9795
9796 ;
9797 return 0;
9798 }
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"
9801 then :
9802 eval $cacheid=yes
9803 else $as_nop
9804 eval $cacheid=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9807 conftest$ac_exeext conftest.$ac_ext
9808 fi
9809
9810
9811 CFLAGS="$xorg_testset_save_CFLAGS"
9812
9813 eval supported=\$$cacheid
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9815 printf "%s\n" "$supported" >&6; }
9816 if test "$supported" = "yes" ; then
9817 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9818 found="yes"
9819 fi
9820 fi
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836 xorg_testset_save_CFLAGS="$CFLAGS"
9837
9838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9842 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9843 then :
9844 printf %s "(cached) " >&6
9845 else $as_nop
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 int i;
9849 _ACEOF
9850 if ac_fn_c_try_compile "$LINENO"
9851 then :
9852 xorg_cv_cc_flag_unknown_warning_option=yes
9853 else $as_nop
9854 xorg_cv_cc_flag_unknown_warning_option=no
9855 fi
9856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9857 fi
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9861 CFLAGS="$xorg_testset_save_CFLAGS"
9862 fi
9863
9864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867 fi
9868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9872 then :
9873 printf %s "(cached) " >&6
9874 else $as_nop
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 int i;
9878 _ACEOF
9879 if ac_fn_c_try_compile "$LINENO"
9880 then :
9881 xorg_cv_cc_flag_unused_command_line_argument=yes
9882 else $as_nop
9883 xorg_cv_cc_flag_unused_command_line_argument=no
9884 fi
9885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9886 fi
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9888 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9890 CFLAGS="$xorg_testset_save_CFLAGS"
9891 fi
9892
9893 found="no"
9894
9895 if test $found = "no" ; then
9896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9898 fi
9899
9900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902 fi
9903
9904 CFLAGS="$CFLAGS -Warray-bounds"
9905
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9907 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9908 cacheid=xorg_cv_cc_flag__Warray_bounds
9909 if eval test \${$cacheid+y}
9910 then :
9911 printf %s "(cached) " >&6
9912 else $as_nop
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 int
9917 main (void)
9918 {
9919
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"
9925 then :
9926 eval $cacheid=yes
9927 else $as_nop
9928 eval $cacheid=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9931 conftest$ac_exeext conftest.$ac_ext
9932 fi
9933
9934
9935 CFLAGS="$xorg_testset_save_CFLAGS"
9936
9937 eval supported=\$$cacheid
9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9939 printf "%s\n" "$supported" >&6; }
9940 if test "$supported" = "yes" ; then
9941 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9942 found="yes"
9943 fi
9944 fi
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 xorg_testset_save_CFLAGS="$CFLAGS"
9961
9962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9966 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9967 then :
9968 printf %s "(cached) " >&6
9969 else $as_nop
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 int i;
9973 _ACEOF
9974 if ac_fn_c_try_compile "$LINENO"
9975 then :
9976 xorg_cv_cc_flag_unknown_warning_option=yes
9977 else $as_nop
9978 xorg_cv_cc_flag_unknown_warning_option=no
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9981 fi
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9985 CFLAGS="$xorg_testset_save_CFLAGS"
9986 fi
9987
9988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9991 fi
9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9996 then :
9997 printf %s "(cached) " >&6
9998 else $as_nop
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 int i;
10002 _ACEOF
10003 if ac_fn_c_try_compile "$LINENO"
10004 then :
10005 xorg_cv_cc_flag_unused_command_line_argument=yes
10006 else $as_nop
10007 xorg_cv_cc_flag_unused_command_line_argument=no
10008 fi
10009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10010 fi
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10014 CFLAGS="$xorg_testset_save_CFLAGS"
10015 fi
10016
10017 found="no"
10018
10019 if test $found = "no" ; then
10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10022 fi
10023
10024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026 fi
10027
10028 CFLAGS="$CFLAGS -Wwrite-strings"
10029
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10031 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10032 cacheid=xorg_cv_cc_flag__Wwrite_strings
10033 if eval test \${$cacheid+y}
10034 then :
10035 printf %s "(cached) " >&6
10036 else $as_nop
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 int i;
10040 int
10041 main (void)
10042 {
10043
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"
10049 then :
10050 eval $cacheid=yes
10051 else $as_nop
10052 eval $cacheid=no
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10055 conftest$ac_exeext conftest.$ac_ext
10056 fi
10057
10058
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060
10061 eval supported=\$$cacheid
10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10063 printf "%s\n" "$supported" >&6; }
10064 if test "$supported" = "yes" ; then
10065 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10066 found="yes"
10067 fi
10068 fi
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084 xorg_testset_save_CFLAGS="$CFLAGS"
10085
10086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10090 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10091 then :
10092 printf %s "(cached) " >&6
10093 else $as_nop
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096 int i;
10097 _ACEOF
10098 if ac_fn_c_try_compile "$LINENO"
10099 then :
10100 xorg_cv_cc_flag_unknown_warning_option=yes
10101 else $as_nop
10102 xorg_cv_cc_flag_unknown_warning_option=no
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10105 fi
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10109 CFLAGS="$xorg_testset_save_CFLAGS"
10110 fi
10111
10112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115 fi
10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10120 then :
10121 printf %s "(cached) " >&6
10122 else $as_nop
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 _ACEOF
10127 if ac_fn_c_try_compile "$LINENO"
10128 then :
10129 xorg_cv_cc_flag_unused_command_line_argument=yes
10130 else $as_nop
10131 xorg_cv_cc_flag_unused_command_line_argument=no
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10134 fi
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10136 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10138 CFLAGS="$xorg_testset_save_CFLAGS"
10139 fi
10140
10141 found="no"
10142
10143 if test $found = "no" ; then
10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146 fi
10147
10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10150 fi
10151
10152 CFLAGS="$CFLAGS -Waddress"
10153
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10155 printf %s "checking if $CC supports -Waddress... " >&6; }
10156 cacheid=xorg_cv_cc_flag__Waddress
10157 if eval test \${$cacheid+y}
10158 then :
10159 printf %s "(cached) " >&6
10160 else $as_nop
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 int
10165 main (void)
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"
10173 then :
10174 eval $cacheid=yes
10175 else $as_nop
10176 eval $cacheid=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10179 conftest$ac_exeext conftest.$ac_ext
10180 fi
10181
10182
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184
10185 eval supported=\$$cacheid
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10187 printf "%s\n" "$supported" >&6; }
10188 if test "$supported" = "yes" ; then
10189 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10190 found="yes"
10191 fi
10192 fi
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208 xorg_testset_save_CFLAGS="$CFLAGS"
10209
10210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10213 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10214 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10215 then :
10216 printf %s "(cached) " >&6
10217 else $as_nop
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 int i;
10221 _ACEOF
10222 if ac_fn_c_try_compile "$LINENO"
10223 then :
10224 xorg_cv_cc_flag_unknown_warning_option=yes
10225 else $as_nop
10226 xorg_cv_cc_flag_unknown_warning_option=no
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10229 fi
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10233 CFLAGS="$xorg_testset_save_CFLAGS"
10234 fi
10235
10236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10239 fi
10240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10244 then :
10245 printf %s "(cached) " >&6
10246 else $as_nop
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249 int i;
10250 _ACEOF
10251 if ac_fn_c_try_compile "$LINENO"
10252 then :
10253 xorg_cv_cc_flag_unused_command_line_argument=yes
10254 else $as_nop
10255 xorg_cv_cc_flag_unused_command_line_argument=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10258 fi
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10260 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10262 CFLAGS="$xorg_testset_save_CFLAGS"
10263 fi
10264
10265 found="no"
10266
10267 if test $found = "no" ; then
10268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270 fi
10271
10272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274 fi
10275
10276 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10277
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10279 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10280 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10281 if eval test \${$cacheid+y}
10282 then :
10283 printf %s "(cached) " >&6
10284 else $as_nop
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10287 int i;
10288 int
10289 main (void)
10290 {
10291
10292 ;
10293 return 0;
10294 }
10295 _ACEOF
10296 if ac_fn_c_try_link "$LINENO"
10297 then :
10298 eval $cacheid=yes
10299 else $as_nop
10300 eval $cacheid=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10303 conftest$ac_exeext conftest.$ac_ext
10304 fi
10305
10306
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308
10309 eval supported=\$$cacheid
10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10311 printf "%s\n" "$supported" >&6; }
10312 if test "$supported" = "yes" ; then
10313 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10314 found="yes"
10315 fi
10316 fi
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332 xorg_testset_save_CFLAGS="$CFLAGS"
10333
10334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10339 then :
10340 printf %s "(cached) " >&6
10341 else $as_nop
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 int i;
10345 _ACEOF
10346 if ac_fn_c_try_compile "$LINENO"
10347 then :
10348 xorg_cv_cc_flag_unknown_warning_option=yes
10349 else $as_nop
10350 xorg_cv_cc_flag_unknown_warning_option=no
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10353 fi
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10357 CFLAGS="$xorg_testset_save_CFLAGS"
10358 fi
10359
10360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10363 fi
10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10368 then :
10369 printf %s "(cached) " >&6
10370 else $as_nop
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10373 int i;
10374 _ACEOF
10375 if ac_fn_c_try_compile "$LINENO"
10376 then :
10377 xorg_cv_cc_flag_unused_command_line_argument=yes
10378 else $as_nop
10379 xorg_cv_cc_flag_unused_command_line_argument=no
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10382 fi
10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10386 CFLAGS="$xorg_testset_save_CFLAGS"
10387 fi
10388
10389 found="no"
10390
10391 if test $found = "no" ; then
10392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394 fi
10395
10396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10398 fi
10399
10400 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10401
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10403 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10404 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10405 if eval test \${$cacheid+y}
10406 then :
10407 printf %s "(cached) " >&6
10408 else $as_nop
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 int i;
10412 int
10413 main (void)
10414 {
10415
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"
10421 then :
10422 eval $cacheid=yes
10423 else $as_nop
10424 eval $cacheid=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10427 conftest$ac_exeext conftest.$ac_ext
10428 fi
10429
10430
10431 CFLAGS="$xorg_testset_save_CFLAGS"
10432
10433 eval supported=\$$cacheid
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10435 printf "%s\n" "$supported" >&6; }
10436 if test "$supported" = "yes" ; then
10437 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10438 found="yes"
10439 fi
10440 fi
10441
10442
10443 fi
10444
10445
10446
10447
10448
10449
10450
10451 CWARNFLAGS="$BASE_CFLAGS"
10452 if test "x$GCC" = xyes ; then
10453 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10454 fi
10455
10456
10457
10458
10459
10460
10461
10462
10463 # Check whether --enable-strict-compilation was given.
10464 if test ${enable_strict_compilation+y}
10465 then :
10466 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10467 else $as_nop
10468 STRICT_COMPILE=no
10469 fi
10470
10471
10472
10473
10474
10475
10476 STRICT_CFLAGS=""
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490 xorg_testset_save_CFLAGS="$CFLAGS"
10491
10492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10496 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10497 then :
10498 printf %s "(cached) " >&6
10499 else $as_nop
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502 int i;
10503 _ACEOF
10504 if ac_fn_c_try_compile "$LINENO"
10505 then :
10506 xorg_cv_cc_flag_unknown_warning_option=yes
10507 else $as_nop
10508 xorg_cv_cc_flag_unknown_warning_option=no
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10511 fi
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10515 CFLAGS="$xorg_testset_save_CFLAGS"
10516 fi
10517
10518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10521 fi
10522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10526 then :
10527 printf %s "(cached) " >&6
10528 else $as_nop
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 int i;
10532 _ACEOF
10533 if ac_fn_c_try_compile "$LINENO"
10534 then :
10535 xorg_cv_cc_flag_unused_command_line_argument=yes
10536 else $as_nop
10537 xorg_cv_cc_flag_unused_command_line_argument=no
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10540 fi
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10544 CFLAGS="$xorg_testset_save_CFLAGS"
10545 fi
10546
10547 found="no"
10548
10549 if test $found = "no" ; then
10550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10552 fi
10553
10554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556 fi
10557
10558 CFLAGS="$CFLAGS -pedantic"
10559
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10561 printf %s "checking if $CC supports -pedantic... " >&6; }
10562 cacheid=xorg_cv_cc_flag__pedantic
10563 if eval test \${$cacheid+y}
10564 then :
10565 printf %s "(cached) " >&6
10566 else $as_nop
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569 int i;
10570 int
10571 main (void)
10572 {
10573
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 if ac_fn_c_try_link "$LINENO"
10579 then :
10580 eval $cacheid=yes
10581 else $as_nop
10582 eval $cacheid=no
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10585 conftest$ac_exeext conftest.$ac_ext
10586 fi
10587
10588
10589 CFLAGS="$xorg_testset_save_CFLAGS"
10590
10591 eval supported=\$$cacheid
10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10593 printf "%s\n" "$supported" >&6; }
10594 if test "$supported" = "yes" ; then
10595 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10596 found="yes"
10597 fi
10598 fi
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 xorg_testset_save_CFLAGS="$CFLAGS"
10615
10616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10620 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10621 then :
10622 printf %s "(cached) " >&6
10623 else $as_nop
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 int i;
10627 _ACEOF
10628 if ac_fn_c_try_compile "$LINENO"
10629 then :
10630 xorg_cv_cc_flag_unknown_warning_option=yes
10631 else $as_nop
10632 xorg_cv_cc_flag_unknown_warning_option=no
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10635 fi
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10639 CFLAGS="$xorg_testset_save_CFLAGS"
10640 fi
10641
10642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10645 fi
10646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10650 then :
10651 printf %s "(cached) " >&6
10652 else $as_nop
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 int i;
10656 _ACEOF
10657 if ac_fn_c_try_compile "$LINENO"
10658 then :
10659 xorg_cv_cc_flag_unused_command_line_argument=yes
10660 else $as_nop
10661 xorg_cv_cc_flag_unused_command_line_argument=no
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10664 fi
10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10668 CFLAGS="$xorg_testset_save_CFLAGS"
10669 fi
10670
10671 found="no"
10672
10673 if test $found = "no" ; then
10674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10676 fi
10677
10678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10680 fi
10681
10682 CFLAGS="$CFLAGS -Werror"
10683
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10685 printf %s "checking if $CC supports -Werror... " >&6; }
10686 cacheid=xorg_cv_cc_flag__Werror
10687 if eval test \${$cacheid+y}
10688 then :
10689 printf %s "(cached) " >&6
10690 else $as_nop
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 int i;
10694 int
10695 main (void)
10696 {
10697
10698 ;
10699 return 0;
10700 }
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"
10703 then :
10704 eval $cacheid=yes
10705 else $as_nop
10706 eval $cacheid=no
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10709 conftest$ac_exeext conftest.$ac_ext
10710 fi
10711
10712
10713 CFLAGS="$xorg_testset_save_CFLAGS"
10714
10715 eval supported=\$$cacheid
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10717 printf "%s\n" "$supported" >&6; }
10718 if test "$supported" = "yes" ; then
10719 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10720 found="yes"
10721 fi
10722 fi
10723
10724 if test $found = "no" ; then
10725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10727 fi
10728
10729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10731 fi
10732
10733 CFLAGS="$CFLAGS -errwarn"
10734
10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10736 printf %s "checking if $CC supports -errwarn... " >&6; }
10737 cacheid=xorg_cv_cc_flag__errwarn
10738 if eval test \${$cacheid+y}
10739 then :
10740 printf %s "(cached) " >&6
10741 else $as_nop
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 int i;
10745 int
10746 main (void)
10747 {
10748
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"
10754 then :
10755 eval $cacheid=yes
10756 else $as_nop
10757 eval $cacheid=no
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10760 conftest$ac_exeext conftest.$ac_ext
10761 fi
10762
10763
10764 CFLAGS="$xorg_testset_save_CFLAGS"
10765
10766 eval supported=\$$cacheid
10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10768 printf "%s\n" "$supported" >&6; }
10769 if test "$supported" = "yes" ; then
10770 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10771 found="yes"
10772 fi
10773 fi
10774
10775
10776
10777 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10778 # activate it with -Werror, so we add it here explicitly.
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792 xorg_testset_save_CFLAGS="$CFLAGS"
10793
10794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10799 then :
10800 printf %s "(cached) " >&6
10801 else $as_nop
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 int i;
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"
10807 then :
10808 xorg_cv_cc_flag_unknown_warning_option=yes
10809 else $as_nop
10810 xorg_cv_cc_flag_unknown_warning_option=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10813 fi
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10817 CFLAGS="$xorg_testset_save_CFLAGS"
10818 fi
10819
10820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10823 fi
10824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10828 then :
10829 printf %s "(cached) " >&6
10830 else $as_nop
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 int i;
10834 _ACEOF
10835 if ac_fn_c_try_compile "$LINENO"
10836 then :
10837 xorg_cv_cc_flag_unused_command_line_argument=yes
10838 else $as_nop
10839 xorg_cv_cc_flag_unused_command_line_argument=no
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10842 fi
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10846 CFLAGS="$xorg_testset_save_CFLAGS"
10847 fi
10848
10849 found="no"
10850
10851 if test $found = "no" ; then
10852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10854 fi
10855
10856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10858 fi
10859
10860 CFLAGS="$CFLAGS -Werror=attributes"
10861
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10863 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10864 cacheid=xorg_cv_cc_flag__Werror_attributes
10865 if eval test \${$cacheid+y}
10866 then :
10867 printf %s "(cached) " >&6
10868 else $as_nop
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10871 int i;
10872 int
10873 main (void)
10874 {
10875
10876 ;
10877 return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_link "$LINENO"
10881 then :
10882 eval $cacheid=yes
10883 else $as_nop
10884 eval $cacheid=no
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10887 conftest$ac_exeext conftest.$ac_ext
10888 fi
10889
10890
10891 CFLAGS="$xorg_testset_save_CFLAGS"
10892
10893 eval supported=\$$cacheid
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10895 printf "%s\n" "$supported" >&6; }
10896 if test "$supported" = "yes" ; then
10897 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10898 found="yes"
10899 fi
10900 fi
10901
10902
10903
10904 if test "x$STRICT_COMPILE" = "xyes"; then
10905 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10906 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10907 fi
10908
10909
10910
10911
10912
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10916 _ACEOF
10917
10918 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10919 if test "x$PVM" = "x"; then
10920 PVM="0"
10921 fi
10922
10923 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10924
10925 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10926 if test "x$PVP" = "x"; then
10927 PVP="0"
10928 fi
10929
10930 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10931
10932
10933
10934 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10935 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10936 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10937 touch \$(top_srcdir)/ChangeLog; \
10938 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10939
10940
10941
10942
10943 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10944 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10945 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10946 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10947 touch \$(top_srcdir)/INSTALL; \
10948 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10949
10950
10951
10952
10953
10954
10955 case $host_os in
10956 solaris*)
10957 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10958 # check for a man page file found in later versions that use
10959 # traditional section numbers instead
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10961 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10962 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10963 then :
10964 printf %s "(cached) " >&6
10965 else $as_nop
10966 test "$cross_compiling" = yes &&
10967 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10968 if test -r "/usr/share/man/man7/attributes.7"; then
10969 ac_cv_file__usr_share_man_man7_attributes_7=yes
10970 else
10971 ac_cv_file__usr_share_man_man7_attributes_7=no
10972 fi
10973 fi
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10975 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10976 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10977 then :
10978 SYSV_MAN_SECTIONS=false
10979 else $as_nop
10980 SYSV_MAN_SECTIONS=true
10981 fi
10982
10983 ;;
10984 *) SYSV_MAN_SECTIONS=false ;;
10985 esac
10986
10987 if test x$APP_MAN_SUFFIX = x ; then
10988 APP_MAN_SUFFIX=1
10989 fi
10990 if test x$APP_MAN_DIR = x ; then
10991 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10992 fi
10993
10994 if test x$LIB_MAN_SUFFIX = x ; then
10995 LIB_MAN_SUFFIX=3
10996 fi
10997 if test x$LIB_MAN_DIR = x ; then
10998 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10999 fi
11000
11001 if test x$FILE_MAN_SUFFIX = x ; then
11002 case $SYSV_MAN_SECTIONS in
11003 true) FILE_MAN_SUFFIX=4 ;;
11004 *) FILE_MAN_SUFFIX=5 ;;
11005 esac
11006 fi
11007 if test x$FILE_MAN_DIR = x ; then
11008 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11009 fi
11010
11011 if test x$MISC_MAN_SUFFIX = x ; then
11012 case $SYSV_MAN_SECTIONS in
11013 true) MISC_MAN_SUFFIX=5 ;;
11014 *) MISC_MAN_SUFFIX=7 ;;
11015 esac
11016 fi
11017 if test x$MISC_MAN_DIR = x ; then
11018 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11019 fi
11020
11021 if test x$DRIVER_MAN_SUFFIX = x ; then
11022 case $SYSV_MAN_SECTIONS in
11023 true) DRIVER_MAN_SUFFIX=7 ;;
11024 *) DRIVER_MAN_SUFFIX=4 ;;
11025 esac
11026 fi
11027 if test x$DRIVER_MAN_DIR = x ; then
11028 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11029 fi
11030
11031 if test x$ADMIN_MAN_SUFFIX = x ; then
11032 case $SYSV_MAN_SECTIONS in
11033 true) ADMIN_MAN_SUFFIX=1m ;;
11034 *) ADMIN_MAN_SUFFIX=8 ;;
11035 esac
11036 fi
11037 if test x$ADMIN_MAN_DIR = x ; then
11038 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11039 fi
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055 XORG_MAN_PAGE="X Version 11"
11056
11057 MAN_SUBSTS="\
11058 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11059 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11060 -e 's|__xservername__|Xorg|g' \
11061 -e 's|__xconfigfile__|xorg.conf|g' \
11062 -e 's|__projectroot__|\$(prefix)|g' \
11063 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11064 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11065 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11066 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11067 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11068 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11069 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11070
11071
11072
11073 # Check whether --enable-silent-rules was given.
11074 if test ${enable_silent_rules+y}
11075 then :
11076 enableval=$enable_silent_rules;
11077 fi
11078
11079 case $enable_silent_rules in # (((
11080 yes) AM_DEFAULT_VERBOSITY=0;;
11081 no) AM_DEFAULT_VERBOSITY=1;;
11082 *) AM_DEFAULT_VERBOSITY=0;;
11083 esac
11084 am_make=${MAKE-make}
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11086 printf %s "checking whether $am_make supports nested variables... " >&6; }
11087 if test ${am_cv_make_support_nested_variables+y}
11088 then :
11089 printf %s "(cached) " >&6
11090 else $as_nop
11091 if printf "%s\n" 'TRUE=$(BAR$(V))
11092 BAR0=false
11093 BAR1=true
11094 V=1
11095 am__doit:
11096 @$(TRUE)
11097 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11098 am_cv_make_support_nested_variables=yes
11099 else
11100 am_cv_make_support_nested_variables=no
11101 fi
11102 fi
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11104 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11105 if test $am_cv_make_support_nested_variables = yes; then
11106 AM_V='$(V)'
11107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11108 else
11109 AM_V=$AM_DEFAULT_VERBOSITY
11110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11111 fi
11112 AM_BACKSLASH='\'
11113
11114
11115
11116 # Internationalization & localization support
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
11118 printf %s "checking for library containing gettext... " >&6; }
11119 if test ${ac_cv_search_gettext+y}
11120 then :
11121 printf %s "(cached) " >&6
11122 else $as_nop
11123 ac_func_search_save_LIBS=$LIBS
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130 char gettext ();
11131 int
11132 main (void)
11133 {
11134 return gettext ();
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 for ac_lib in '' intl
11140 do
11141 if test -z "$ac_lib"; then
11142 ac_res="none required"
11143 else
11144 ac_res=-l$ac_lib
11145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11146 fi
11147 if ac_fn_c_try_link "$LINENO"
11148 then :
11149 ac_cv_search_gettext=$ac_res
11150 fi
11151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11152 conftest$ac_exeext
11153 if test ${ac_cv_search_gettext+y}
11154 then :
11155 break
11156 fi
11157 done
11158 if test ${ac_cv_search_gettext+y}
11159 then :
11160
11161 else $as_nop
11162 ac_cv_search_gettext=no
11163 fi
11164 rm conftest.$ac_ext
11165 LIBS=$ac_func_search_save_LIBS
11166 fi
11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
11168 printf "%s\n" "$ac_cv_search_gettext" >&6; }
11169 ac_res=$ac_cv_search_gettext
11170 if test "$ac_res" != no
11171 then :
11172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11173 USE_GETTEXT="yes"
11174 else $as_nop
11175 USE_GETTEXT="no"
11176 fi
11177
11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
11179 printf %s "checking where to install localized messages... " >&6; }
11180
11181 # Check whether --with-localedir was given.
11182 if test ${with_localedir+y}
11183 then :
11184 withval=$with_localedir; LOCALEDIR=${withval}
11185 else $as_nop
11186 LOCALEDIR=${datadir}/locale
11187 fi
11188
11189
11190 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
11192 printf "%s\n" "nowhere" >&6; }
11193 USE_GETTEXT="no"
11194 else
11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
11196 printf "%s\n" "$LOCALEDIR" >&6; }
11197 fi
11198
11199 if test "x$USE_GETTEXT" = "xyes" ; then
11200
11201 printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
11202
11203 fi
11204 if test "x$USE_GETTEXT" = "xyes"; then
11205 USE_GETTEXT_TRUE=
11206 USE_GETTEXT_FALSE='#'
11207 else
11208 USE_GETTEXT_TRUE='#'
11209 USE_GETTEXT_FALSE=
11210 fi
11211
11212
11213 # Optional dependencies
11214
11215 # Check whether --with-xkb was given.
11216 if test ${with_xkb+y}
11217 then :
11218 withval=$with_xkb; use_xkb="$withval"
11219 else $as_nop
11220 use_xkb="yes"
11221 fi
11222
11223 if test x$use_xkb != xno ; then
11224 XKBMODULE="xkbfile"
11225
11226 printf "%s\n" "#define XKB 1" >>confdefs.h
11227
11228 fi
11229
11230 # Checks for pkg-config packages
11231
11232 pkg_failed=no
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
11234 printf %s "checking for XFD... " >&6; }
11235
11236 if test -n "$XFD_CFLAGS"; then
11237 pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
11238 elif test -n "$PKG_CONFIG"; then
11239 if test -n "$PKG_CONFIG" && \
11240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 \${XKBMODULE}\""; } >&5
11241 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}") 2>&5
11242 ac_status=$?
11243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11244 test $ac_status = 0; }; then
11245 pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null`
11246 test "x$?" != "x0" && pkg_failed=yes
11247 else
11248 pkg_failed=yes
11249 fi
11250 else
11251 pkg_failed=untried
11252 fi
11253 if test -n "$XFD_LIBS"; then
11254 pkg_cv_XFD_LIBS="$XFD_LIBS"
11255 elif test -n "$PKG_CONFIG"; then
11256 if test -n "$PKG_CONFIG" && \
11257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 \${XKBMODULE}\""; } >&5
11258 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}") 2>&5
11259 ac_status=$?
11260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11261 test $ac_status = 0; }; then
11262 pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null`
11263 test "x$?" != "x0" && pkg_failed=yes
11264 else
11265 pkg_failed=yes
11266 fi
11267 else
11268 pkg_failed=untried
11269 fi
11270
11271
11272
11273 if test $pkg_failed = yes; then
11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 printf "%s\n" "no" >&6; }
11276
11277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11278 _pkg_short_errors_supported=yes
11279 else
11280 _pkg_short_errors_supported=no
11281 fi
11282 if test $_pkg_short_errors_supported = yes; then
11283 XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>&1`
11284 else
11285 XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>&1`
11286 fi
11287 # Put the nasty error message in config.log where it belongs
11288 echo "$XFD_PKG_ERRORS" >&5
11289
11290 as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}) were not met:
11291
11292 $XFD_PKG_ERRORS
11293
11294 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11295 installed software in a non-standard prefix.
11296
11297 Alternatively, you may set the environment variables XFD_CFLAGS
11298 and XFD_LIBS to avoid the need to call pkg-config.
11299 See the pkg-config man page for more details." "$LINENO" 5
11300 elif test $pkg_failed = untried; then
11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 printf "%s\n" "no" >&6; }
11303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11304 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11305 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11306 is in your PATH or set the PKG_CONFIG environment variable to the full
11307 path to pkg-config.
11308
11309 Alternatively, you may set the environment variables XFD_CFLAGS
11310 and XFD_LIBS to avoid the need to call pkg-config.
11311 See the pkg-config man page for more details.
11312
11313 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11314 See \`config.log' for more details" "$LINENO" 5; }
11315 else
11316 XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
11317 XFD_LIBS=$pkg_cv_XFD_LIBS
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11319 printf "%s\n" "yes" >&6; }
11320
11321 fi
11322
11323
11324 pkg_failed=no
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11326 printf %s "checking for APPDEFS... " >&6; }
11327
11328 if test -n "$APPDEFS_CFLAGS"; then
11329 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11330 elif test -n "$PKG_CONFIG"; then
11331 if test -n "$PKG_CONFIG" && \
11332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11333 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11334 ac_status=$?
11335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336 test $ac_status = 0; }; then
11337 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11338 test "x$?" != "x0" && pkg_failed=yes
11339 else
11340 pkg_failed=yes
11341 fi
11342 else
11343 pkg_failed=untried
11344 fi
11345 if test -n "$APPDEFS_LIBS"; then
11346 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11347 elif test -n "$PKG_CONFIG"; then
11348 if test -n "$PKG_CONFIG" && \
11349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11350 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11351 ac_status=$?
11352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11353 test $ac_status = 0; }; then
11354 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11355 test "x$?" != "x0" && pkg_failed=yes
11356 else
11357 pkg_failed=yes
11358 fi
11359 else
11360 pkg_failed=untried
11361 fi
11362
11363
11364
11365 if test $pkg_failed = yes; then
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 printf "%s\n" "no" >&6; }
11368
11369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11370 _pkg_short_errors_supported=yes
11371 else
11372 _pkg_short_errors_supported=no
11373 fi
11374 if test $_pkg_short_errors_supported = yes; then
11375 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11376 else
11377 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11378 fi
11379 # Put the nasty error message in config.log where it belongs
11380 echo "$APPDEFS_PKG_ERRORS" >&5
11381
11382 as_fn_error $? "Package requirements (xt) were not met:
11383
11384 $APPDEFS_PKG_ERRORS
11385
11386 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11387 installed software in a non-standard prefix.
11388
11389 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11390 and APPDEFS_LIBS to avoid the need to call pkg-config.
11391 See the pkg-config man page for more details." "$LINENO" 5
11392 elif test $pkg_failed = untried; then
11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 printf "%s\n" "no" >&6; }
11395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11397 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11398 is in your PATH or set the PKG_CONFIG environment variable to the full
11399 path to pkg-config.
11400
11401 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11402 and APPDEFS_LIBS to avoid the need to call pkg-config.
11403 See the pkg-config man page for more details.
11404
11405 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11406 See \`config.log' for more details" "$LINENO" 5; }
11407 else
11408 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11409 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 printf "%s\n" "yes" >&6; }
11412
11413 fi
11414 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11415
11416 # Check whether --with-appdefaultdir was given.
11417 if test ${with_appdefaultdir+y}
11418 then :
11419 withval=$with_appdefaultdir; appdefaultdir="$withval"
11420 else $as_nop
11421 appdefaultdir="${xt_appdefaultdir}"
11422 fi
11423
11424
11425
11426
11427 ac_config_files="$ac_config_files Makefile man/Makefile"
11428
11429 cat >confcache <<\_ACEOF
11430 # This file is a shell script that caches the results of configure
11431 # tests run on this system so they can be shared between configure
11432 # scripts and configure runs, see configure's option --config-cache.
11433 # It is not useful on other systems. If it contains results you don't
11434 # want to keep, you may remove or edit it.
11435 #
11436 # config.status only pays attention to the cache file if you give it
11437 # the --recheck option to rerun configure.
11438 #
11439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11441 # following values.
11442
11443 _ACEOF
11444
11445 # The following way of writing the cache mishandles newlines in values,
11446 # but we know of no workaround that is simple, portable, and efficient.
11447 # So, we kill variables containing newlines.
11448 # Ultrix sh set writes to stderr and can't be redirected directly,
11449 # and sets the high bit in the cache file unless we assign to the vars.
11450 (
11451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11452 eval ac_val=\$$ac_var
11453 case $ac_val in #(
11454 *${as_nl}*)
11455 case $ac_var in #(
11456 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11457 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11458 esac
11459 case $ac_var in #(
11460 _ | IFS | as_nl) ;; #(
11461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11462 *) { eval $ac_var=; unset $ac_var;} ;;
11463 esac ;;
11464 esac
11465 done
11466
11467 (set) 2>&1 |
11468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11469 *${as_nl}ac_space=\ *)
11470 # `set' does not quote correctly, so add quotes: double-quote
11471 # substitution turns \\\\ into \\, and sed turns \\ into \.
11472 sed -n \
11473 "s/'/'\\\\''/g;
11474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11475 ;; #(
11476 *)
11477 # `set' quotes correctly as required by POSIX, so do not add quotes.
11478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11479 ;;
11480 esac |
11481 sort
11482 ) |
11483 sed '
11484 /^ac_cv_env_/b end
11485 t clear
11486 :clear
11487 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11488 t end
11489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11490 :end' >>confcache
11491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11492 if test -w "$cache_file"; then
11493 if test "x$cache_file" != "x/dev/null"; then
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11495 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11496 if test ! -f "$cache_file" || test -h "$cache_file"; then
11497 cat confcache >"$cache_file"
11498 else
11499 case $cache_file in #(
11500 */* | ?:*)
11501 mv -f confcache "$cache_file"$$ &&
11502 mv -f "$cache_file"$$ "$cache_file" ;; #(
11503 *)
11504 mv -f confcache "$cache_file" ;;
11505 esac
11506 fi
11507 fi
11508 else
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11510 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11511 fi
11512 fi
11513 rm -f confcache
11514
11515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11516 # Let make expand exec_prefix.
11517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11518
11519 DEFS=-DHAVE_CONFIG_H
11520
11521 ac_libobjs=
11522 ac_ltlibobjs=
11523 U=
11524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11525 # 1. Remove the extension, and $U if already installed.
11526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11527 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11529 # will be set to the directory where LIBOBJS objects are built.
11530 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11531 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11532 done
11533 LIBOBJS=$ac_libobjs
11534
11535 LTLIBOBJS=$ac_ltlibobjs
11536
11537
11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11539 printf %s "checking that generated files are newer than configure... " >&6; }
11540 if test -n "$am_sleep_pid"; then
11541 # Hide warnings about reused PIDs.
11542 wait $am_sleep_pid 2>/dev/null
11543 fi
11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11545 printf "%s\n" "done" >&6; }
11546 if test -n "$EXEEXT"; then
11547 am__EXEEXT_TRUE=
11548 am__EXEEXT_FALSE='#'
11549 else
11550 am__EXEEXT_TRUE='#'
11551 am__EXEEXT_FALSE=
11552 fi
11553
11554 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11555 as_fn_error $? "conditional \"AMDEP\" was never defined.
11556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11557 fi
11558 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11559 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11561 fi
11562 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11563 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11565 fi
11566
11567 : "${CONFIG_STATUS=./config.status}"
11568 ac_write_fail=0
11569 ac_clean_files_save=$ac_clean_files
11570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11572 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11573 as_write_fail=0
11574 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11575 #! $SHELL
11576 # Generated by $as_me.
11577 # Run this file to recreate the current configuration.
11578 # Compiler output produced by configure, useful for debugging
11579 # configure, is in config.log if it exists.
11580
11581 debug=false
11582 ac_cs_recheck=false
11583 ac_cs_silent=false
11584
11585 SHELL=\${CONFIG_SHELL-$SHELL}
11586 export SHELL
11587 _ASEOF
11588 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11589 ## -------------------- ##
11590 ## M4sh Initialization. ##
11591 ## -------------------- ##
11592
11593 # Be more Bourne compatible
11594 DUALCASE=1; export DUALCASE # for MKS sh
11595 as_nop=:
11596 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11597 then :
11598 emulate sh
11599 NULLCMD=:
11600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11601 # is contrary to our usage. Disable this feature.
11602 alias -g '${1+"$@"}'='"$@"'
11603 setopt NO_GLOB_SUBST
11604 else $as_nop
11605 case `(set -o) 2>/dev/null` in #(
11606 *posix*) :
11607 set -o posix ;; #(
11608 *) :
11609 ;;
11610 esac
11611 fi
11612
11613
11614
11615 # Reset variables that may have inherited troublesome values from
11616 # the environment.
11617
11618 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11619 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11620 # side effect of setting IFS to empty, thus disabling word splitting.)
11621 # Quoting is to prevent editors from complaining about space-tab.
11622 as_nl='
11623 '
11624 export as_nl
11625 IFS=" "" $as_nl"
11626
11627 PS1='$ '
11628 PS2='> '
11629 PS4='+ '
11630
11631 # Ensure predictable behavior from utilities with locale-dependent output.
11632 LC_ALL=C
11633 export LC_ALL
11634 LANGUAGE=C
11635 export LANGUAGE
11636
11637 # We cannot yet rely on "unset" to work, but we need these variables
11638 # to be unset--not just set to an empty or harmless value--now, to
11639 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11640 # also avoids known problems related to "unset" and subshell syntax
11641 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11642 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11643 do eval test \${$as_var+y} \
11644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11645 done
11646
11647 # Ensure that fds 0, 1, and 2 are open.
11648 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11649 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11650 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11651
11652 # The user is always right.
11653 if ${PATH_SEPARATOR+false} :; then
11654 PATH_SEPARATOR=:
11655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11657 PATH_SEPARATOR=';'
11658 }
11659 fi
11660
11661
11662 # Find who we are. Look in the path if we contain no directory separator.
11663 as_myself=
11664 case $0 in #((
11665 *[\\/]* ) as_myself=$0 ;;
11666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669 IFS=$as_save_IFS
11670 case $as_dir in #(((
11671 '') as_dir=./ ;;
11672 */) ;;
11673 *) as_dir=$as_dir/ ;;
11674 esac
11675 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11676 done
11677 IFS=$as_save_IFS
11678
11679 ;;
11680 esac
11681 # We did not find ourselves, most probably we were run as `sh COMMAND'
11682 # in which case we are not to be found in the path.
11683 if test "x$as_myself" = x; then
11684 as_myself=$0
11685 fi
11686 if test ! -f "$as_myself"; then
11687 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11688 exit 1
11689 fi
11690
11691
11692
11693 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11694 # ----------------------------------------
11695 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11696 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11697 # script with STATUS, using 1 if that was 0.
11698 as_fn_error ()
11699 {
11700 as_status=$1; test $as_status -eq 0 && as_status=1
11701 if test "$4"; then
11702 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11704 fi
11705 printf "%s\n" "$as_me: error: $2" >&2
11706 as_fn_exit $as_status
11707 } # as_fn_error
11708
11709
11710
11711 # as_fn_set_status STATUS
11712 # -----------------------
11713 # Set $? to STATUS, without forking.
11714 as_fn_set_status ()
11715 {
11716 return $1
11717 } # as_fn_set_status
11718
11719 # as_fn_exit STATUS
11720 # -----------------
11721 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11722 as_fn_exit ()
11723 {
11724 set +e
11725 as_fn_set_status $1
11726 exit $1
11727 } # as_fn_exit
11728
11729 # as_fn_unset VAR
11730 # ---------------
11731 # Portably unset VAR.
11732 as_fn_unset ()
11733 {
11734 { eval $1=; unset $1;}
11735 }
11736 as_unset=as_fn_unset
11737
11738 # as_fn_append VAR VALUE
11739 # ----------------------
11740 # Append the text in VALUE to the end of the definition contained in VAR. Take
11741 # advantage of any shell optimizations that allow amortized linear growth over
11742 # repeated appends, instead of the typical quadratic growth present in naive
11743 # implementations.
11744 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11745 then :
11746 eval 'as_fn_append ()
11747 {
11748 eval $1+=\$2
11749 }'
11750 else $as_nop
11751 as_fn_append ()
11752 {
11753 eval $1=\$$1\$2
11754 }
11755 fi # as_fn_append
11756
11757 # as_fn_arith ARG...
11758 # ------------------
11759 # Perform arithmetic evaluation on the ARGs, and store the result in the
11760 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11761 # must be portable across $(()) and expr.
11762 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11763 then :
11764 eval 'as_fn_arith ()
11765 {
11766 as_val=$(( $* ))
11767 }'
11768 else $as_nop
11769 as_fn_arith ()
11770 {
11771 as_val=`expr "$@" || test $? -eq 1`
11772 }
11773 fi # as_fn_arith
11774
11775
11776 if expr a : '\(a\)' >/dev/null 2>&1 &&
11777 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11778 as_expr=expr
11779 else
11780 as_expr=false
11781 fi
11782
11783 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11784 as_basename=basename
11785 else
11786 as_basename=false
11787 fi
11788
11789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11790 as_dirname=dirname
11791 else
11792 as_dirname=false
11793 fi
11794
11795 as_me=`$as_basename -- "$0" ||
11796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11797 X"$0" : 'X\(//\)$' \| \
11798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11799 printf "%s\n" X/"$0" |
11800 sed '/^.*\/\([^/][^/]*\)\/*$/{
11801 s//\1/
11802 q
11803 }
11804 /^X\/\(\/\/\)$/{
11805 s//\1/
11806 q
11807 }
11808 /^X\/\(\/\).*/{
11809 s//\1/
11810 q
11811 }
11812 s/.*/./; q'`
11813
11814 # Avoid depending upon Character Ranges.
11815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11818 as_cr_digits='0123456789'
11819 as_cr_alnum=$as_cr_Letters$as_cr_digits
11820
11821
11822 # Determine whether it's possible to make 'echo' print without a newline.
11823 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11824 # for compatibility with existing Makefiles.
11825 ECHO_C= ECHO_N= ECHO_T=
11826 case `echo -n x` in #(((((
11827 -n*)
11828 case `echo 'xy\c'` in
11829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11830 xy) ECHO_C='\c';;
11831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11832 ECHO_T=' ';;
11833 esac;;
11834 *)
11835 ECHO_N='-n';;
11836 esac
11837
11838 # For backward compatibility with old third-party macros, we provide
11839 # the shell variables $as_echo and $as_echo_n. New code should use
11840 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11841 as_echo='printf %s\n'
11842 as_echo_n='printf %s'
11843
11844 rm -f conf$$ conf$$.exe conf$$.file
11845 if test -d conf$$.dir; then
11846 rm -f conf$$.dir/conf$$.file
11847 else
11848 rm -f conf$$.dir
11849 mkdir conf$$.dir 2>/dev/null
11850 fi
11851 if (echo >conf$$.file) 2>/dev/null; then
11852 if ln -s conf$$.file conf$$ 2>/dev/null; then
11853 as_ln_s='ln -s'
11854 # ... but there are two gotchas:
11855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11857 # In both cases, we have to default to `cp -pR'.
11858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11859 as_ln_s='cp -pR'
11860 elif ln conf$$.file conf$$ 2>/dev/null; then
11861 as_ln_s=ln
11862 else
11863 as_ln_s='cp -pR'
11864 fi
11865 else
11866 as_ln_s='cp -pR'
11867 fi
11868 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11869 rmdir conf$$.dir 2>/dev/null
11870
11871
11872 # as_fn_mkdir_p
11873 # -------------
11874 # Create "$as_dir" as a directory, including parents if necessary.
11875 as_fn_mkdir_p ()
11876 {
11877
11878 case $as_dir in #(
11879 -*) as_dir=./$as_dir;;
11880 esac
11881 test -d "$as_dir" || eval $as_mkdir_p || {
11882 as_dirs=
11883 while :; do
11884 case $as_dir in #(
11885 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11886 *) as_qdir=$as_dir;;
11887 esac
11888 as_dirs="'$as_qdir' $as_dirs"
11889 as_dir=`$as_dirname -- "$as_dir" ||
11890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11891 X"$as_dir" : 'X\(//\)[^/]' \| \
11892 X"$as_dir" : 'X\(//\)$' \| \
11893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11894 printf "%s\n" X"$as_dir" |
11895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11896 s//\1/
11897 q
11898 }
11899 /^X\(\/\/\)[^/].*/{
11900 s//\1/
11901 q
11902 }
11903 /^X\(\/\/\)$/{
11904 s//\1/
11905 q
11906 }
11907 /^X\(\/\).*/{
11908 s//\1/
11909 q
11910 }
11911 s/.*/./; q'`
11912 test -d "$as_dir" && break
11913 done
11914 test -z "$as_dirs" || eval "mkdir $as_dirs"
11915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11916
11917
11918 } # as_fn_mkdir_p
11919 if mkdir -p . 2>/dev/null; then
11920 as_mkdir_p='mkdir -p "$as_dir"'
11921 else
11922 test -d ./-p && rmdir ./-p
11923 as_mkdir_p=false
11924 fi
11925
11926
11927 # as_fn_executable_p FILE
11928 # -----------------------
11929 # Test if FILE is an executable regular file.
11930 as_fn_executable_p ()
11931 {
11932 test -f "$1" && test -x "$1"
11933 } # as_fn_executable_p
11934 as_test_x='test -x'
11935 as_executable_p=as_fn_executable_p
11936
11937 # Sed expression to map a string onto a valid CPP name.
11938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11939
11940 # Sed expression to map a string onto a valid variable name.
11941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11942
11943
11944 exec 6>&1
11945 ## ----------------------------------- ##
11946 ## Main body of $CONFIG_STATUS script. ##
11947 ## ----------------------------------- ##
11948 _ASEOF
11949 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11950
11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952 # Save the log message, to keep $0 and so on meaningful, and to
11953 # report actual input values of CONFIG_FILES etc. instead of their
11954 # values after options handling.
11955 ac_log="
11956 This file was extended by xfd $as_me 1.1.4, which was
11957 generated by GNU Autoconf 2.71. Invocation command line was
11958
11959 CONFIG_FILES = $CONFIG_FILES
11960 CONFIG_HEADERS = $CONFIG_HEADERS
11961 CONFIG_LINKS = $CONFIG_LINKS
11962 CONFIG_COMMANDS = $CONFIG_COMMANDS
11963 $ $0 $@
11964
11965 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11966 "
11967
11968 _ACEOF
11969
11970 case $ac_config_files in *"
11971 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11972 esac
11973
11974 case $ac_config_headers in *"
11975 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11976 esac
11977
11978
11979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11980 # Files that config.status was made for.
11981 config_files="$ac_config_files"
11982 config_headers="$ac_config_headers"
11983 config_commands="$ac_config_commands"
11984
11985 _ACEOF
11986
11987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988 ac_cs_usage="\
11989 \`$as_me' instantiates files and other configuration actions
11990 from templates according to the current configuration. Unless the files
11991 and actions are specified as TAGs, all are instantiated by default.
11992
11993 Usage: $0 [OPTION]... [TAG]...
11994
11995 -h, --help print this help, then exit
11996 -V, --version print version number and configuration settings, then exit
11997 --config print configuration, then exit
11998 -q, --quiet, --silent
11999 do not print progress messages
12000 -d, --debug don't remove temporary files
12001 --recheck update $as_me by reconfiguring in the same conditions
12002 --file=FILE[:TEMPLATE]
12003 instantiate the configuration file FILE
12004 --header=FILE[:TEMPLATE]
12005 instantiate the configuration header FILE
12006
12007 Configuration files:
12008 $config_files
12009
12010 Configuration headers:
12011 $config_headers
12012
12013 Configuration commands:
12014 $config_commands
12015
12016 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/-/issues>."
12017
12018 _ACEOF
12019 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12020 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12022 ac_cs_config='$ac_cs_config_escaped'
12023 ac_cs_version="\\
12024 xfd config.status 1.1.4
12025 configured by $0, generated by GNU Autoconf 2.71,
12026 with options \\"\$ac_cs_config\\"
12027
12028 Copyright (C) 2021 Free Software Foundation, Inc.
12029 This config.status script is free software; the Free Software Foundation
12030 gives unlimited permission to copy, distribute and modify it."
12031
12032 ac_pwd='$ac_pwd'
12033 srcdir='$srcdir'
12034 INSTALL='$INSTALL'
12035 MKDIR_P='$MKDIR_P'
12036 AWK='$AWK'
12037 test -n "\$AWK" || AWK=awk
12038 _ACEOF
12039
12040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041 # The default lists apply if the user does not specify any file.
12042 ac_need_defaults=:
12043 while test $# != 0
12044 do
12045 case $1 in
12046 --*=?*)
12047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12049 ac_shift=:
12050 ;;
12051 --*=)
12052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12053 ac_optarg=
12054 ac_shift=:
12055 ;;
12056 *)
12057 ac_option=$1
12058 ac_optarg=$2
12059 ac_shift=shift
12060 ;;
12061 esac
12062
12063 case $ac_option in
12064 # Handling of the options.
12065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12066 ac_cs_recheck=: ;;
12067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12068 printf "%s\n" "$ac_cs_version"; exit ;;
12069 --config | --confi | --conf | --con | --co | --c )
12070 printf "%s\n" "$ac_cs_config"; exit ;;
12071 --debug | --debu | --deb | --de | --d | -d )
12072 debug=: ;;
12073 --file | --fil | --fi | --f )
12074 $ac_shift
12075 case $ac_optarg in
12076 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12077 '') as_fn_error $? "missing file argument" ;;
12078 esac
12079 as_fn_append CONFIG_FILES " '$ac_optarg'"
12080 ac_need_defaults=false;;
12081 --header | --heade | --head | --hea )
12082 $ac_shift
12083 case $ac_optarg in
12084 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12085 esac
12086 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12087 ac_need_defaults=false;;
12088 --he | --h)
12089 # Conflict between --help and --header
12090 as_fn_error $? "ambiguous option: \`$1'
12091 Try \`$0 --help' for more information.";;
12092 --help | --hel | -h )
12093 printf "%s\n" "$ac_cs_usage"; exit ;;
12094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12096 ac_cs_silent=: ;;
12097
12098 # This is an error.
12099 -*) as_fn_error $? "unrecognized option: \`$1'
12100 Try \`$0 --help' for more information." ;;
12101
12102 *) as_fn_append ac_config_targets " $1"
12103 ac_need_defaults=false ;;
12104
12105 esac
12106 shift
12107 done
12108
12109 ac_configure_extra_args=
12110
12111 if $ac_cs_silent; then
12112 exec 6>/dev/null
12113 ac_configure_extra_args="$ac_configure_extra_args --silent"
12114 fi
12115
12116 _ACEOF
12117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12118 if \$ac_cs_recheck; then
12119 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12120 shift
12121 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12122 CONFIG_SHELL='$SHELL'
12123 export CONFIG_SHELL
12124 exec "\$@"
12125 fi
12126
12127 _ACEOF
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129 exec 5>>config.log
12130 {
12131 echo
12132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12133 ## Running $as_me. ##
12134 _ASBOX
12135 printf "%s\n" "$ac_log"
12136 } >&5
12137
12138 _ACEOF
12139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12140 #
12141 # INIT-COMMANDS
12142 #
12143 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12144
12145 _ACEOF
12146
12147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12148
12149 # Handling of arguments.
12150 for ac_config_target in $ac_config_targets
12151 do
12152 case $ac_config_target in
12153 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12154 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12155 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12156 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12157
12158 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12159 esac
12160 done
12161
12162
12163 # If the user did not use the arguments to specify the items to instantiate,
12164 # then the envvar interface is used. Set only those that are not.
12165 # We use the long form for the default assignment because of an extremely
12166 # bizarre bug on SunOS 4.1.3.
12167 if $ac_need_defaults; then
12168 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12169 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12170 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12171 fi
12172
12173 # Have a temporary directory for convenience. Make it in the build tree
12174 # simply because there is no reason against having it here, and in addition,
12175 # creating and moving files from /tmp can sometimes cause problems.
12176 # Hook for its removal unless debugging.
12177 # Note that there is a small window in which the directory will not be cleaned:
12178 # after its creation but before its name has been assigned to `$tmp'.
12179 $debug ||
12180 {
12181 tmp= ac_tmp=
12182 trap 'exit_status=$?
12183 : "${ac_tmp:=$tmp}"
12184 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12185 ' 0
12186 trap 'as_fn_exit 1' 1 2 13 15
12187 }
12188 # Create a (secure) tmp directory for tmp files.
12189
12190 {
12191 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12192 test -d "$tmp"
12193 } ||
12194 {
12195 tmp=./conf$$-$RANDOM
12196 (umask 077 && mkdir "$tmp")
12197 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12198 ac_tmp=$tmp
12199
12200 # Set up the scripts for CONFIG_FILES section.
12201 # No need to generate them if there are no CONFIG_FILES.
12202 # This happens for instance with `./config.status config.h'.
12203 if test -n "$CONFIG_FILES"; then
12204
12205
12206 ac_cr=`echo X | tr X '\015'`
12207 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12208 # But we know of no other shell where ac_cr would be empty at this
12209 # point, so we can use a bashism as a fallback.
12210 if test "x$ac_cr" = x; then
12211 eval ac_cr=\$\'\\r\'
12212 fi
12213 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12215 ac_cs_awk_cr='\\r'
12216 else
12217 ac_cs_awk_cr=$ac_cr
12218 fi
12219
12220 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12221 _ACEOF
12222
12223
12224 {
12225 echo "cat >conf$$subs.awk <<_ACEOF" &&
12226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12227 echo "_ACEOF"
12228 } >conf$$subs.sh ||
12229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12230 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12231 ac_delim='%!_!# '
12232 for ac_last_try in false false false false false :; do
12233 . ./conf$$subs.sh ||
12234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12235
12236 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12237 if test $ac_delim_n = $ac_delim_num; then
12238 break
12239 elif $ac_last_try; then
12240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12241 else
12242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12243 fi
12244 done
12245 rm -f conf$$subs.sh
12246
12247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12248 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12249 _ACEOF
12250 sed -n '
12251 h
12252 s/^/S["/; s/!.*/"]=/
12253 p
12254 g
12255 s/^[^!]*!//
12256 :repl
12257 t repl
12258 s/'"$ac_delim"'$//
12259 t delim
12260 :nl
12261 h
12262 s/\(.\{148\}\)..*/\1/
12263 t more1
12264 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12265 p
12266 n
12267 b repl
12268 :more1
12269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12270 p
12271 g
12272 s/.\{148\}//
12273 t nl
12274 :delim
12275 h
12276 s/\(.\{148\}\)..*/\1/
12277 t more2
12278 s/["\\]/\\&/g; s/^/"/; s/$/"/
12279 p
12280 b
12281 :more2
12282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12283 p
12284 g
12285 s/.\{148\}//
12286 t delim
12287 ' <conf$$subs.awk | sed '
12288 /^[^""]/{
12289 N
12290 s/\n//
12291 }
12292 ' >>$CONFIG_STATUS || ac_write_fail=1
12293 rm -f conf$$subs.awk
12294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12295 _ACAWK
12296 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12297 for (key in S) S_is_set[key] = 1
12298 FS = ""
12299
12300 }
12301 {
12302 line = $ 0
12303 nfields = split(line, field, "@")
12304 substed = 0
12305 len = length(field[1])
12306 for (i = 2; i < nfields; i++) {
12307 key = field[i]
12308 keylen = length(key)
12309 if (S_is_set[key]) {
12310 value = S[key]
12311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12312 len += length(value) + length(field[++i])
12313 substed = 1
12314 } else
12315 len += 1 + keylen
12316 }
12317
12318 print line
12319 }
12320
12321 _ACAWK
12322 _ACEOF
12323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12324 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12325 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12326 else
12327 cat
12328 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12329 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12330 _ACEOF
12331
12332 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12333 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12334 # trailing colons and then remove the whole line if VPATH becomes empty
12335 # (actually we leave an empty line to preserve line numbers).
12336 if test "x$srcdir" = x.; then
12337 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12338 h
12339 s///
12340 s/^/:/
12341 s/[ ]*$/:/
12342 s/:\$(srcdir):/:/g
12343 s/:\${srcdir}:/:/g
12344 s/:@srcdir@:/:/g
12345 s/^:*//
12346 s/:*$//
12347 x
12348 s/\(=[ ]*\).*/\1/
12349 G
12350 s/\n//
12351 s/^[^=]*=[ ]*$//
12352 }'
12353 fi
12354
12355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12356 fi # test -n "$CONFIG_FILES"
12357
12358 # Set up the scripts for CONFIG_HEADERS section.
12359 # No need to generate them if there are no CONFIG_HEADERS.
12360 # This happens for instance with `./config.status Makefile'.
12361 if test -n "$CONFIG_HEADERS"; then
12362 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12363 BEGIN {
12364 _ACEOF
12365
12366 # Transform confdefs.h into an awk script `defines.awk', embedded as
12367 # here-document in config.status, that substitutes the proper values into
12368 # config.h.in to produce config.h.
12369
12370 # Create a delimiter string that does not exist in confdefs.h, to ease
12371 # handling of long lines.
12372 ac_delim='%!_!# '
12373 for ac_last_try in false false :; do
12374 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12375 if test -z "$ac_tt"; then
12376 break
12377 elif $ac_last_try; then
12378 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12379 else
12380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12381 fi
12382 done
12383
12384 # For the awk script, D is an array of macro values keyed by name,
12385 # likewise P contains macro parameters if any. Preserve backslash
12386 # newline sequences.
12387
12388 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12389 sed -n '
12390 s/.\{148\}/&'"$ac_delim"'/g
12391 t rset
12392 :rset
12393 s/^[ ]*#[ ]*define[ ][ ]*/ /
12394 t def
12395 d
12396 :def
12397 s/\\$//
12398 t bsnl
12399 s/["\\]/\\&/g
12400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12401 D["\1"]=" \3"/p
12402 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12403 d
12404 :bsnl
12405 s/["\\]/\\&/g
12406 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12407 D["\1"]=" \3\\\\\\n"\\/p
12408 t cont
12409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12410 t cont
12411 d
12412 :cont
12413 n
12414 s/.\{148\}/&'"$ac_delim"'/g
12415 t clear
12416 :clear
12417 s/\\$//
12418 t bsnlc
12419 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12420 d
12421 :bsnlc
12422 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12423 b cont
12424 ' <confdefs.h | sed '
12425 s/'"$ac_delim"'/"\\\
12426 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12427
12428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12429 for (key in D) D_is_set[key] = 1
12430 FS = ""
12431 }
12432 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12433 line = \$ 0
12434 split(line, arg, " ")
12435 if (arg[1] == "#") {
12436 defundef = arg[2]
12437 mac1 = arg[3]
12438 } else {
12439 defundef = substr(arg[1], 2)
12440 mac1 = arg[2]
12441 }
12442 split(mac1, mac2, "(") #)
12443 macro = mac2[1]
12444 prefix = substr(line, 1, index(line, defundef) - 1)
12445 if (D_is_set[macro]) {
12446 # Preserve the white space surrounding the "#".
12447 print prefix "define", macro P[macro] D[macro]
12448 next
12449 } else {
12450 # Replace #undef with comments. This is necessary, for example,
12451 # in the case of _POSIX_SOURCE, which is predefined and required
12452 # on some systems where configure will not decide to define it.
12453 if (defundef == "undef") {
12454 print "/*", prefix defundef, macro, "*/"
12455 next
12456 }
12457 }
12458 }
12459 { print }
12460 _ACAWK
12461 _ACEOF
12462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12463 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12464 fi # test -n "$CONFIG_HEADERS"
12465
12466
12467 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12468 shift
12469 for ac_tag
12470 do
12471 case $ac_tag in
12472 :[FHLC]) ac_mode=$ac_tag; continue;;
12473 esac
12474 case $ac_mode$ac_tag in
12475 :[FHL]*:*);;
12476 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12477 :[FH]-) ac_tag=-:-;;
12478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12479 esac
12480 ac_save_IFS=$IFS
12481 IFS=:
12482 set x $ac_tag
12483 IFS=$ac_save_IFS
12484 shift
12485 ac_file=$1
12486 shift
12487
12488 case $ac_mode in
12489 :L) ac_source=$1;;
12490 :[FH])
12491 ac_file_inputs=
12492 for ac_f
12493 do
12494 case $ac_f in
12495 -) ac_f="$ac_tmp/stdin";;
12496 *) # Look for the file first in the build tree, then in the source tree
12497 # (if the path is not absolute). The absolute path cannot be DOS-style,
12498 # because $ac_f cannot contain `:'.
12499 test -f "$ac_f" ||
12500 case $ac_f in
12501 [\\/$]*) false;;
12502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12503 esac ||
12504 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12505 esac
12506 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12507 as_fn_append ac_file_inputs " '$ac_f'"
12508 done
12509
12510 # Let's still pretend it is `configure' which instantiates (i.e., don't
12511 # use $as_me), people would be surprised to read:
12512 # /* config.h. Generated by config.status. */
12513 configure_input='Generated from '`
12514 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12515 `' by configure.'
12516 if test x"$ac_file" != x-; then
12517 configure_input="$ac_file. $configure_input"
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12519 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12520 fi
12521 # Neutralize special characters interpreted by sed in replacement strings.
12522 case $configure_input in #(
12523 *\&* | *\|* | *\\* )
12524 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12525 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12526 *) ac_sed_conf_input=$configure_input;;
12527 esac
12528
12529 case $ac_tag in
12530 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12532 esac
12533 ;;
12534 esac
12535
12536 ac_dir=`$as_dirname -- "$ac_file" ||
12537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12538 X"$ac_file" : 'X\(//\)[^/]' \| \
12539 X"$ac_file" : 'X\(//\)$' \| \
12540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12541 printf "%s\n" X"$ac_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="$ac_dir"; as_fn_mkdir_p
12560 ac_builddir=.
12561
12562 case "$ac_dir" in
12563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12564 *)
12565 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12566 # A ".." for each directory in $ac_dir_suffix.
12567 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12568 case $ac_top_builddir_sub in
12569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12571 esac ;;
12572 esac
12573 ac_abs_top_builddir=$ac_pwd
12574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12575 # for backward compatibility:
12576 ac_top_builddir=$ac_top_build_prefix
12577
12578 case $srcdir in
12579 .) # We are building in place.
12580 ac_srcdir=.
12581 ac_top_srcdir=$ac_top_builddir_sub
12582 ac_abs_top_srcdir=$ac_pwd ;;
12583 [\\/]* | ?:[\\/]* ) # Absolute name.
12584 ac_srcdir=$srcdir$ac_dir_suffix;
12585 ac_top_srcdir=$srcdir
12586 ac_abs_top_srcdir=$srcdir ;;
12587 *) # Relative name.
12588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12589 ac_top_srcdir=$ac_top_build_prefix$srcdir
12590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12591 esac
12592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12593
12594
12595 case $ac_mode in
12596 :F)
12597 #
12598 # CONFIG_FILE
12599 #
12600
12601 case $INSTALL in
12602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12604 esac
12605 ac_MKDIR_P=$MKDIR_P
12606 case $MKDIR_P in
12607 [\\/$]* | ?:[\\/]* ) ;;
12608 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12609 esac
12610 _ACEOF
12611
12612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12613 # If the template does not know about datarootdir, expand it.
12614 # FIXME: This hack should be removed a few years after 2.60.
12615 ac_datarootdir_hack=; ac_datarootdir_seen=
12616 ac_sed_dataroot='
12617 /datarootdir/ {
12618 p
12619 q
12620 }
12621 /@datadir@/p
12622 /@docdir@/p
12623 /@infodir@/p
12624 /@localedir@/p
12625 /@mandir@/p'
12626 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12627 *datarootdir*) ac_datarootdir_seen=yes;;
12628 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12630 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12631 _ACEOF
12632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12633 ac_datarootdir_hack='
12634 s&@datadir@&$datadir&g
12635 s&@docdir@&$docdir&g
12636 s&@infodir@&$infodir&g
12637 s&@localedir@&$localedir&g
12638 s&@mandir@&$mandir&g
12639 s&\\\${datarootdir}&$datarootdir&g' ;;
12640 esac
12641 _ACEOF
12642
12643 # Neutralize VPATH when `$srcdir' = `.'.
12644 # Shell code in configure.ac might set extrasub.
12645 # FIXME: do we really want to maintain this feature?
12646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12647 ac_sed_extra="$ac_vpsub
12648 $extrasub
12649 _ACEOF
12650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12651 :t
12652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12653 s|@configure_input@|$ac_sed_conf_input|;t t
12654 s&@top_builddir@&$ac_top_builddir_sub&;t t
12655 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12656 s&@srcdir@&$ac_srcdir&;t t
12657 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12658 s&@top_srcdir@&$ac_top_srcdir&;t t
12659 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12660 s&@builddir@&$ac_builddir&;t t
12661 s&@abs_builddir@&$ac_abs_builddir&;t t
12662 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12663 s&@INSTALL@&$ac_INSTALL&;t t
12664 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12665 $ac_datarootdir_hack
12666 "
12667 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12668 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12669
12670 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12671 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12673 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12675 which seems to be undefined. Please make sure it is defined" >&5
12676 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12677 which seems to be undefined. Please make sure it is defined" >&2;}
12678
12679 rm -f "$ac_tmp/stdin"
12680 case $ac_file in
12681 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12682 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12683 esac \
12684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12685 ;;
12686 :H)
12687 #
12688 # CONFIG_HEADER
12689 #
12690 if test x"$ac_file" != x-; then
12691 {
12692 printf "%s\n" "/* $configure_input */" >&1 \
12693 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12694 } >"$ac_tmp/config.h" \
12695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12696 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12698 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12699 else
12700 rm -f "$ac_file"
12701 mv "$ac_tmp/config.h" "$ac_file" \
12702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12703 fi
12704 else
12705 printf "%s\n" "/* $configure_input */" >&1 \
12706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12707 || as_fn_error $? "could not create -" "$LINENO" 5
12708 fi
12709 # Compute "$ac_file"'s index in $config_headers.
12710 _am_arg="$ac_file"
12711 _am_stamp_count=1
12712 for _am_header in $config_headers :; do
12713 case $_am_header in
12714 $_am_arg | $_am_arg:* )
12715 break ;;
12716 * )
12717 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12718 esac
12719 done
12720 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12721 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12722 X"$_am_arg" : 'X\(//\)[^/]' \| \
12723 X"$_am_arg" : 'X\(//\)$' \| \
12724 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12725 printf "%s\n" X"$_am_arg" |
12726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12727 s//\1/
12728 q
12729 }
12730 /^X\(\/\/\)[^/].*/{
12731 s//\1/
12732 q
12733 }
12734 /^X\(\/\/\)$/{
12735 s//\1/
12736 q
12737 }
12738 /^X\(\/\).*/{
12739 s//\1/
12740 q
12741 }
12742 s/.*/./; q'`/stamp-h$_am_stamp_count
12743 ;;
12744
12745 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12746 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12747 ;;
12748 esac
12749
12750
12751 case $ac_file$ac_mode in
12752 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12753 # Older Autoconf quotes --file arguments for eval, but not when files
12754 # are listed without --file. Let's play safe and only enable the eval
12755 # if we detect the quoting.
12756 # TODO: see whether this extra hack can be removed once we start
12757 # requiring Autoconf 2.70 or later.
12758 case $CONFIG_FILES in #(
12759 *\'*) :
12760 eval set x "$CONFIG_FILES" ;; #(
12761 *) :
12762 set x $CONFIG_FILES ;; #(
12763 *) :
12764 ;;
12765 esac
12766 shift
12767 # Used to flag and report bootstrapping failures.
12768 am_rc=0
12769 for am_mf
12770 do
12771 # Strip MF so we end up with the name of the file.
12772 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12773 # Check whether this is an Automake generated Makefile which includes
12774 # dependency-tracking related rules and includes.
12775 # Grep'ing the whole file directly is not great: AIX grep has a line
12776 # limit of 2048, but all sed's we know have understand at least 4000.
12777 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12778 || continue
12779 am_dirpart=`$as_dirname -- "$am_mf" ||
12780 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12781 X"$am_mf" : 'X\(//\)[^/]' \| \
12782 X"$am_mf" : 'X\(//\)$' \| \
12783 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12784 printf "%s\n" X"$am_mf" |
12785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12786 s//\1/
12787 q
12788 }
12789 /^X\(\/\/\)[^/].*/{
12790 s//\1/
12791 q
12792 }
12793 /^X\(\/\/\)$/{
12794 s//\1/
12795 q
12796 }
12797 /^X\(\/\).*/{
12798 s//\1/
12799 q
12800 }
12801 s/.*/./; q'`
12802 am_filepart=`$as_basename -- "$am_mf" ||
12803 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12804 X"$am_mf" : 'X\(//\)$' \| \
12805 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12806 printf "%s\n" X/"$am_mf" |
12807 sed '/^.*\/\([^/][^/]*\)\/*$/{
12808 s//\1/
12809 q
12810 }
12811 /^X\/\(\/\/\)$/{
12812 s//\1/
12813 q
12814 }
12815 /^X\/\(\/\).*/{
12816 s//\1/
12817 q
12818 }
12819 s/.*/./; q'`
12820 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12821 && sed -e '/# am--include-marker/d' "$am_filepart" \
12822 | $MAKE -f - am--depfiles" >&5
12823 (cd "$am_dirpart" \
12824 && sed -e '/# am--include-marker/d' "$am_filepart" \
12825 | $MAKE -f - am--depfiles) >&5 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } || am_rc=$?
12829 done
12830 if test $am_rc -ne 0; then
12831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12832 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12833 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12834 for automatic dependency tracking. If GNU make was not used, consider
12835 re-running the configure script with MAKE=\"gmake\" (or whatever is
12836 necessary). You can also try re-running configure with the
12837 '--disable-dependency-tracking' option to at least be able to build
12838 the package (albeit without support for automatic dependency tracking).
12839 See \`config.log' for more details" "$LINENO" 5; }
12840 fi
12841 { am_dirpart=; unset am_dirpart;}
12842 { am_filepart=; unset am_filepart;}
12843 { am_mf=; unset am_mf;}
12844 { am_rc=; unset am_rc;}
12845 rm -f conftest-deps.mk
12846 }
12847 ;;
12848
12849 esac
12850 done # for ac_tag
12851
12852
12853 as_fn_exit 0
12854 _ACEOF
12855 ac_clean_files=$ac_clean_files_save
12856
12857 test $ac_write_fail = 0 ||
12858 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12859
12860
12861 # configure is writing to config.log, and then calls config.status.
12862 # config.status does its own redirection, appending to config.log.
12863 # Unfortunately, on DOS this fails, as config.log is still kept open
12864 # by configure, so config.status won't be able to write to it; its
12865 # output is simply discarded. So we exec the FD to /dev/null,
12866 # effectively closing config.log, so it can be properly (re)opened and
12867 # appended to by config.status. When coming back to configure, we
12868 # need to make the FD available again.
12869 if test "$no_create" != yes; then
12870 ac_cs_success=:
12871 ac_config_status_args=
12872 test "$silent" = yes &&
12873 ac_config_status_args="$ac_config_status_args --quiet"
12874 exec 5>/dev/null
12875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12876 exec 5>>config.log
12877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12878 # would make configure fail if this is the last instruction.
12879 $ac_cs_success || as_fn_exit 1
12880 fi
12881 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12883 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12884 fi
12885
12886
12887