configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xlsclients 1.1.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/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/xlsclients/-/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='xlsclients'
614 PACKAGE_TARNAME='xlsclients'
615 PACKAGE_VERSION='1.1.5'
616 PACKAGE_STRING='xlsclients 1.1.5'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlsclients/-/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 XLSCLIENTS_LIBS
657 XLSCLIENTS_CFLAGS
658 LIBOBJS
659 MAN_SUBSTS
660 XORG_MAN_PAGE
661 ADMIN_MAN_DIR
662 DRIVER_MAN_DIR
663 MISC_MAN_DIR
664 FILE_MAN_DIR
665 LIB_MAN_DIR
666 APP_MAN_DIR
667 ADMIN_MAN_SUFFIX
668 DRIVER_MAN_SUFFIX
669 MISC_MAN_SUFFIX
670 FILE_MAN_SUFFIX
671 LIB_MAN_SUFFIX
672 APP_MAN_SUFFIX
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 CSCOPE
695 ETAGS
696 CTAGS
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_dependency_tracking
780 enable_silent_rules
781 enable_selective_werror
782 enable_strict_compilation
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 XLSCLIENTS_CFLAGS
796 XLSCLIENTS_LIBS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: \`$ac_useropt'"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: \`$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: \`$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: \`$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 printf "%s\n" X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures xlsclients 1.1.5 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsclients]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of xlsclients 1.1.5:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 PKG_CONFIG path to pkg-config utility
1446 PKG_CONFIG_PATH
1447 directories to add to pkg-config's search path
1448 PKG_CONFIG_LIBDIR
1449 path overriding pkg-config's built-in search path
1450 XLSCLIENTS_CFLAGS
1451 C compiler flags for XLSCLIENTS, overriding pkg-config
1452 XLSCLIENTS_LIBS
1453 linker flags for XLSCLIENTS, overriding pkg-config
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues>.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for configure.gnu first; this name is used for a wrapper for
1505 # Metaconfig's "Configure" on case-insensitive file systems.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 xlsclients configure 1.1.5
1523 generated by GNU Autoconf 2.71
1524
1525 Copyright (C) 2021 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext conftest.beam
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 printf "%s\n" "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext
1562 then :
1563 ac_retval=0
1564 else $as_nop
1565 printf "%s\n" "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_compile
1574
1575 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists and can be compiled using the include files in
1578 # INCLUDES, setting the cache variable VAR accordingly.
1579 ac_fn_c_check_header_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 printf %s "checking for $2... " >&6; }
1584 if eval test \${$3+y}
1585 then :
1586 printf %s "(cached) " >&6
1587 else $as_nop
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 $4
1591 #include <$2>
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"
1594 then :
1595 eval "$3=yes"
1596 else $as_nop
1597 eval "$3=no"
1598 fi
1599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1600 fi
1601 eval ac_res=\$$3
1602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 printf "%s\n" "$ac_res" >&6; }
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606 } # ac_fn_c_check_header_compile
1607
1608 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1609 # ------------------------------------------------------------------
1610 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1611 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1612 ac_fn_check_decl ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 as_decl_name=`echo $2|sed 's/ *(.*//'`
1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1617 printf %s "checking whether $as_decl_name is declared... " >&6; }
1618 if eval test \${$3+y}
1619 then :
1620 printf %s "(cached) " >&6
1621 else $as_nop
1622 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1623 eval ac_save_FLAGS=\$$6
1624 as_fn_append $6 " $5"
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main (void)
1630 {
1631 #ifndef $as_decl_name
1632 #ifdef __cplusplus
1633 (void) $as_decl_use;
1634 #else
1635 (void) $as_decl_name;
1636 #endif
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"
1644 then :
1645 eval "$3=yes"
1646 else $as_nop
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1650 eval $6=\$ac_save_FLAGS
1651
1652 fi
1653 eval ac_res=\$$3
1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 printf "%s\n" "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658 } # ac_fn_check_decl
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }
1689 then :
1690 ac_retval=0
1691 else $as_nop
1692 printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1710 # executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 printf "%s\n" "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }
1735 then :
1736 ac_retval=0
1737 else $as_nop
1738 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1739 printf "%s\n" "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=$ac_status
1743 fi
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749 ac_configure_args_raw=
1750 for ac_arg
1751 do
1752 case $ac_arg in
1753 *\'*)
1754 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 esac
1756 as_fn_append ac_configure_args_raw " '$ac_arg'"
1757 done
1758
1759 case $ac_configure_args_raw in
1760 *$as_nl*)
1761 ac_safe_unquote= ;;
1762 *)
1763 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1764 ac_unsafe_a="$ac_unsafe_z#~"
1765 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1766 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1767 esac
1768
1769 cat >config.log <<_ACEOF
1770 This file contains any messages produced by compilers while
1771 running configure, to aid debugging if configure makes a mistake.
1772
1773 It was created by xlsclients $as_me 1.1.5, which was
1774 generated by GNU Autoconf 2.71. Invocation command line was
1775
1776 $ $0$ac_configure_args_raw
1777
1778 _ACEOF
1779 exec 5>>config.log
1780 {
1781 cat <<_ASUNAME
1782 ## --------- ##
1783 ## Platform. ##
1784 ## --------- ##
1785
1786 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1787 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1788 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1789 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1790 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1791
1792 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1793 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1794
1795 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1796 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1797 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1798 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1799 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1800 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1801 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1802
1803 _ASUNAME
1804
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808 IFS=$as_save_IFS
1809 case $as_dir in #(((
1810 '') as_dir=./ ;;
1811 */) ;;
1812 *) as_dir=$as_dir/ ;;
1813 esac
1814 printf "%s\n" "PATH: $as_dir"
1815 done
1816 IFS=$as_save_IFS
1817
1818 } >&5
1819
1820 cat >&5 <<_ACEOF
1821
1822
1823 ## ----------- ##
1824 ## Core tests. ##
1825 ## ----------- ##
1826
1827 _ACEOF
1828
1829
1830 # Keep a trace of the command line.
1831 # Strip out --no-create and --no-recursion so they do not pile up.
1832 # Strip out --silent because we don't want to record it for future runs.
1833 # Also quote any args containing shell meta-characters.
1834 # Make two passes to allow for proper duplicate-argument suppression.
1835 ac_configure_args=
1836 ac_configure_args0=
1837 ac_configure_args1=
1838 ac_must_keep_next=false
1839 for ac_pass in 1 2
1840 do
1841 for ac_arg
1842 do
1843 case $ac_arg in
1844 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1846 | -silent | --silent | --silen | --sile | --sil)
1847 continue ;;
1848 *\'*)
1849 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1850 esac
1851 case $ac_pass in
1852 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1853 2)
1854 as_fn_append ac_configure_args1 " '$ac_arg'"
1855 if test $ac_must_keep_next = true; then
1856 ac_must_keep_next=false # Got value, back to normal.
1857 else
1858 case $ac_arg in
1859 *=* | --config-cache | -C | -disable-* | --disable-* \
1860 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1861 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1862 | -with-* | --with-* | -without-* | --without-* | --x)
1863 case "$ac_configure_args0 " in
1864 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1865 esac
1866 ;;
1867 -* ) ac_must_keep_next=true ;;
1868 esac
1869 fi
1870 as_fn_append ac_configure_args " '$ac_arg'"
1871 ;;
1872 esac
1873 done
1874 done
1875 { ac_configure_args0=; unset ac_configure_args0;}
1876 { ac_configure_args1=; unset ac_configure_args1;}
1877
1878 # When interrupted or exit'd, cleanup temporary files, and complete
1879 # config.log. We remove comments because anyway the quotes in there
1880 # would cause problems or look ugly.
1881 # WARNING: Use '\'' to represent an apostrophe within the trap.
1882 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1883 trap 'exit_status=$?
1884 # Sanitize IFS.
1885 IFS=" "" $as_nl"
1886 # Save into config.log some information that might help in debugging.
1887 {
1888 echo
1889
1890 printf "%s\n" "## ---------------- ##
1891 ## Cache variables. ##
1892 ## ---------------- ##"
1893 echo
1894 # The following way of writing the cache mishandles newlines in values,
1895 (
1896 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1897 eval ac_val=\$$ac_var
1898 case $ac_val in #(
1899 *${as_nl}*)
1900 case $ac_var in #(
1901 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1902 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1903 esac
1904 case $ac_var in #(
1905 _ | IFS | as_nl) ;; #(
1906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1907 *) { eval $ac_var=; unset $ac_var;} ;;
1908 esac ;;
1909 esac
1910 done
1911 (set) 2>&1 |
1912 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1913 *${as_nl}ac_space=\ *)
1914 sed -n \
1915 "s/'\''/'\''\\\\'\'''\''/g;
1916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1917 ;; #(
1918 *)
1919 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1920 ;;
1921 esac |
1922 sort
1923 )
1924 echo
1925
1926 printf "%s\n" "## ----------------- ##
1927 ## Output variables. ##
1928 ## ----------------- ##"
1929 echo
1930 for ac_var in $ac_subst_vars
1931 do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in
1934 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 esac
1936 printf "%s\n" "$ac_var='\''$ac_val'\''"
1937 done | sort
1938 echo
1939
1940 if test -n "$ac_subst_files"; then
1941 printf "%s\n" "## ------------------- ##
1942 ## File substitutions. ##
1943 ## ------------------- ##"
1944 echo
1945 for ac_var in $ac_subst_files
1946 do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in
1949 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950 esac
1951 printf "%s\n" "$ac_var='\''$ac_val'\''"
1952 done | sort
1953 echo
1954 fi
1955
1956 if test -s confdefs.h; then
1957 printf "%s\n" "## ----------- ##
1958 ## confdefs.h. ##
1959 ## ----------- ##"
1960 echo
1961 cat confdefs.h
1962 echo
1963 fi
1964 test "$ac_signal" != 0 &&
1965 printf "%s\n" "$as_me: caught signal $ac_signal"
1966 printf "%s\n" "$as_me: exit $exit_status"
1967 } >&5
1968 rm -f core *.core core.conftest.* &&
1969 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1970 exit $exit_status
1971 ' 0
1972 for ac_signal in 1 2 13 15; do
1973 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1974 done
1975 ac_signal=0
1976
1977 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1978 rm -f -r conftest* confdefs.h
1979
1980 printf "%s\n" "/* confdefs.h */" > confdefs.h
1981
1982 # Predefined preprocessor variables.
1983
1984 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1985
1986 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1987
1988 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1989
1990 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1991
1992 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1993
1994 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1995
1996
1997 # Let the site file select an alternate cache file if it wants to.
1998 # Prefer an explicitly selected file to automatically selected ones.
1999 if test -n "$CONFIG_SITE"; then
2000 ac_site_files="$CONFIG_SITE"
2001 elif test "x$prefix" != xNONE; then
2002 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2003 else
2004 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2005 fi
2006
2007 for ac_site_file in $ac_site_files
2008 do
2009 case $ac_site_file in #(
2010 */*) :
2011 ;; #(
2012 *) :
2013 ac_site_file=./$ac_site_file ;;
2014 esac
2015 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2017 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2018 sed 's/^/| /' "$ac_site_file" >&5
2019 . "$ac_site_file" \
2020 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2021 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2022 as_fn_error $? "failed to load site script $ac_site_file
2023 See \`config.log' for more details" "$LINENO" 5; }
2024 fi
2025 done
2026
2027 if test -r "$cache_file"; then
2028 # Some versions of bash will fail to source /dev/null (special files
2029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2032 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2033 case $cache_file in
2034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2035 *) . "./$cache_file";;
2036 esac
2037 fi
2038 else
2039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2040 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2041 >$cache_file
2042 fi
2043
2044 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2045 # Test code for whether the C compiler supports C89 (global declarations)
2046 ac_c_conftest_c89_globals='
2047 /* Does the compiler advertise C89 conformance?
2048 Do not test the value of __STDC__, because some compilers set it to 0
2049 while being otherwise adequately conformant. */
2050 #if !defined __STDC__
2051 # error "Compiler does not advertise C89 conformance"
2052 #endif
2053
2054 #include <stddef.h>
2055 #include <stdarg.h>
2056 struct stat;
2057 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2058 struct buf { int x; };
2059 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2060 static char *e (p, i)
2061 char **p;
2062 int i;
2063 {
2064 return p[i];
2065 }
2066 static char *f (char * (*g) (char **, int), char **p, ...)
2067 {
2068 char *s;
2069 va_list v;
2070 va_start (v,p);
2071 s = g (p, va_arg (v,int));
2072 va_end (v);
2073 return s;
2074 }
2075
2076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2077 function prototypes and stuff, but not \xHH hex character constants.
2078 These do not provoke an error unfortunately, instead are silently treated
2079 as an "x". The following induces an error, until -std is added to get
2080 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2081 array size at least. It is necessary to write \x00 == 0 to get something
2082 that is true only with -std. */
2083 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2084
2085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2086 inside strings and character constants. */
2087 #define FOO(x) '\''x'\''
2088 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2089
2090 int test (int i, double x);
2091 struct s1 {int (*f) (int a);};
2092 struct s2 {int (*f) (double a);};
2093 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2094 int, int);'
2095
2096 # Test code for whether the C compiler supports C89 (body of main).
2097 ac_c_conftest_c89_main='
2098 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2099 '
2100
2101 # Test code for whether the C compiler supports C99 (global declarations)
2102 ac_c_conftest_c99_globals='
2103 // Does the compiler advertise C99 conformance?
2104 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2105 # error "Compiler does not advertise C99 conformance"
2106 #endif
2107
2108 #include <stdbool.h>
2109 extern int puts (const char *);
2110 extern int printf (const char *, ...);
2111 extern int dprintf (int, const char *, ...);
2112 extern void *malloc (size_t);
2113
2114 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2115 // dprintf is used instead of fprintf to avoid needing to declare
2116 // FILE and stderr.
2117 #define debug(...) dprintf (2, __VA_ARGS__)
2118 #define showlist(...) puts (#__VA_ARGS__)
2119 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2120 static void
2121 test_varargs_macros (void)
2122 {
2123 int x = 1234;
2124 int y = 5678;
2125 debug ("Flag");
2126 debug ("X = %d\n", x);
2127 showlist (The first, second, and third items.);
2128 report (x>y, "x is %d but y is %d", x, y);
2129 }
2130
2131 // Check long long types.
2132 #define BIG64 18446744073709551615ull
2133 #define BIG32 4294967295ul
2134 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2135 #if !BIG_OK
2136 #error "your preprocessor is broken"
2137 #endif
2138 #if BIG_OK
2139 #else
2140 #error "your preprocessor is broken"
2141 #endif
2142 static long long int bignum = -9223372036854775807LL;
2143 static unsigned long long int ubignum = BIG64;
2144
2145 struct incomplete_array
2146 {
2147 int datasize;
2148 double data[];
2149 };
2150
2151 struct named_init {
2152 int number;
2153 const wchar_t *name;
2154 double average;
2155 };
2156
2157 typedef const char *ccp;
2158
2159 static inline int
2160 test_restrict (ccp restrict text)
2161 {
2162 // See if C++-style comments work.
2163 // Iterate through items via the restricted pointer.
2164 // Also check for declarations in for loops.
2165 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2166 continue;
2167 return 0;
2168 }
2169
2170 // Check varargs and va_copy.
2171 static bool
2172 test_varargs (const char *format, ...)
2173 {
2174 va_list args;
2175 va_start (args, format);
2176 va_list args_copy;
2177 va_copy (args_copy, args);
2178
2179 const char *str = "";
2180 int number = 0;
2181 float fnumber = 0;
2182
2183 while (*format)
2184 {
2185 switch (*format++)
2186 {
2187 case '\''s'\'': // string
2188 str = va_arg (args_copy, const char *);
2189 break;
2190 case '\''d'\'': // int
2191 number = va_arg (args_copy, int);
2192 break;
2193 case '\''f'\'': // float
2194 fnumber = va_arg (args_copy, double);
2195 break;
2196 default:
2197 break;
2198 }
2199 }
2200 va_end (args_copy);
2201 va_end (args);
2202
2203 return *str && number && fnumber;
2204 }
2205 '
2206
2207 # Test code for whether the C compiler supports C99 (body of main).
2208 ac_c_conftest_c99_main='
2209 // Check bool.
2210 _Bool success = false;
2211 success |= (argc != 0);
2212
2213 // Check restrict.
2214 if (test_restrict ("String literal") == 0)
2215 success = true;
2216 char *restrict newvar = "Another string";
2217
2218 // Check varargs.
2219 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2220 test_varargs_macros ();
2221
2222 // Check flexible array members.
2223 struct incomplete_array *ia =
2224 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2225 ia->datasize = 10;
2226 for (int i = 0; i < ia->datasize; ++i)
2227 ia->data[i] = i * 1.234;
2228
2229 // Check named initializers.
2230 struct named_init ni = {
2231 .number = 34,
2232 .name = L"Test wide string",
2233 .average = 543.34343,
2234 };
2235
2236 ni.number = 58;
2237
2238 int dynamic_array[ni.number];
2239 dynamic_array[0] = argv[0][0];
2240 dynamic_array[ni.number - 1] = 543;
2241
2242 // work around unused variable warnings
2243 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2244 || dynamic_array[ni.number - 1] != 543);
2245 '
2246
2247 # Test code for whether the C compiler supports C11 (global declarations)
2248 ac_c_conftest_c11_globals='
2249 // Does the compiler advertise C11 conformance?
2250 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2251 # error "Compiler does not advertise C11 conformance"
2252 #endif
2253
2254 // Check _Alignas.
2255 char _Alignas (double) aligned_as_double;
2256 char _Alignas (0) no_special_alignment;
2257 extern char aligned_as_int;
2258 char _Alignas (0) _Alignas (int) aligned_as_int;
2259
2260 // Check _Alignof.
2261 enum
2262 {
2263 int_alignment = _Alignof (int),
2264 int_array_alignment = _Alignof (int[100]),
2265 char_alignment = _Alignof (char)
2266 };
2267 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2268
2269 // Check _Noreturn.
2270 int _Noreturn does_not_return (void) { for (;;) continue; }
2271
2272 // Check _Static_assert.
2273 struct test_static_assert
2274 {
2275 int x;
2276 _Static_assert (sizeof (int) <= sizeof (long int),
2277 "_Static_assert does not work in struct");
2278 long int y;
2279 };
2280
2281 // Check UTF-8 literals.
2282 #define u8 syntax error!
2283 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2284
2285 // Check duplicate typedefs.
2286 typedef long *long_ptr;
2287 typedef long int *long_ptr;
2288 typedef long_ptr long_ptr;
2289
2290 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2291 struct anonymous
2292 {
2293 union {
2294 struct { int i; int j; };
2295 struct { int k; long int l; } w;
2296 };
2297 int m;
2298 } v1;
2299 '
2300
2301 # Test code for whether the C compiler supports C11 (body of main).
2302 ac_c_conftest_c11_main='
2303 _Static_assert ((offsetof (struct anonymous, i)
2304 == offsetof (struct anonymous, w.k)),
2305 "Anonymous union alignment botch");
2306 v1.i = 2;
2307 v1.w.k = 5;
2308 ok |= v1.i != 5;
2309 '
2310
2311 # Test code for whether the C compiler supports C11 (complete).
2312 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2313 ${ac_c_conftest_c99_globals}
2314 ${ac_c_conftest_c11_globals}
2315
2316 int
2317 main (int argc, char **argv)
2318 {
2319 int ok = 0;
2320 ${ac_c_conftest_c89_main}
2321 ${ac_c_conftest_c99_main}
2322 ${ac_c_conftest_c11_main}
2323 return ok;
2324 }
2325 "
2326
2327 # Test code for whether the C compiler supports C99 (complete).
2328 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2329 ${ac_c_conftest_c99_globals}
2330
2331 int
2332 main (int argc, char **argv)
2333 {
2334 int ok = 0;
2335 ${ac_c_conftest_c89_main}
2336 ${ac_c_conftest_c99_main}
2337 return ok;
2338 }
2339 "
2340
2341 # Test code for whether the C compiler supports C89 (complete).
2342 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2343
2344 int
2345 main (int argc, char **argv)
2346 {
2347 int ok = 0;
2348 ${ac_c_conftest_c89_main}
2349 return ok;
2350 }
2351 "
2352
2353 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2354 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2355 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2356 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2357 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2358 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2359 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2360 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2361 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2362 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2363
2364 # Auxiliary files required by this configure script.
2365 ac_aux_files="config.guess config.sub missing install-sh compile"
2366
2367 # Locations in which to look for auxiliary files.
2368 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2369
2370 # Search for a directory containing all of the required auxiliary files,
2371 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2372 # If we don't find one directory that contains all the files we need,
2373 # we report the set of missing files from the *first* directory in
2374 # $ac_aux_dir_candidates and give up.
2375 ac_missing_aux_files=""
2376 ac_first_candidate=:
2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 as_found=false
2380 for as_dir in $ac_aux_dir_candidates
2381 do
2382 IFS=$as_save_IFS
2383 case $as_dir in #(((
2384 '') as_dir=./ ;;
2385 */) ;;
2386 *) as_dir=$as_dir/ ;;
2387 esac
2388 as_found=:
2389
2390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2391 ac_aux_dir_found=yes
2392 ac_install_sh=
2393 for ac_aux in $ac_aux_files
2394 do
2395 # As a special case, if "install-sh" is required, that requirement
2396 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2397 # and $ac_install_sh is set appropriately for whichever one is found.
2398 if test x"$ac_aux" = x"install-sh"
2399 then
2400 if test -f "${as_dir}install-sh"; then
2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2402 ac_install_sh="${as_dir}install-sh -c"
2403 elif test -f "${as_dir}install.sh"; then
2404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2405 ac_install_sh="${as_dir}install.sh -c"
2406 elif test -f "${as_dir}shtool"; then
2407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2408 ac_install_sh="${as_dir}shtool install -c"
2409 else
2410 ac_aux_dir_found=no
2411 if $ac_first_candidate; then
2412 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2413 else
2414 break
2415 fi
2416 fi
2417 else
2418 if test -f "${as_dir}${ac_aux}"; then
2419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2420 else
2421 ac_aux_dir_found=no
2422 if $ac_first_candidate; then
2423 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2424 else
2425 break
2426 fi
2427 fi
2428 fi
2429 done
2430 if test "$ac_aux_dir_found" = yes; then
2431 ac_aux_dir="$as_dir"
2432 break
2433 fi
2434 ac_first_candidate=false
2435
2436 as_found=false
2437 done
2438 IFS=$as_save_IFS
2439 if $as_found
2440 then :
2441
2442 else $as_nop
2443 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2444 fi
2445
2446
2447 # These three variables are undocumented and unsupported,
2448 # and are intended to be withdrawn in a future Autoconf release.
2449 # They can cause serious problems if a builder's source tree is in a directory
2450 # whose full name contains unusual characters.
2451 if test -f "${ac_aux_dir}config.guess"; then
2452 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2453 fi
2454 if test -f "${ac_aux_dir}config.sub"; then
2455 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2456 fi
2457 if test -f "$ac_aux_dir/configure"; then
2458 ac_configure="$SHELL ${ac_aux_dir}configure"
2459 fi
2460
2461 # Check that the precious variables saved in the cache have kept the same
2462 # value.
2463 ac_cache_corrupted=false
2464 for ac_var in $ac_precious_vars; do
2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2466 eval ac_new_set=\$ac_env_${ac_var}_set
2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2468 eval ac_new_val=\$ac_env_${ac_var}_value
2469 case $ac_old_set,$ac_new_set in
2470 set,)
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2472 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,set)
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2476 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2478 ,);;
2479 *)
2480 if test "x$ac_old_val" != "x$ac_new_val"; then
2481 # differences in whitespace do not lead to failure.
2482 ac_old_val_w=`echo x $ac_old_val`
2483 ac_new_val_w=`echo x $ac_new_val`
2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2486 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2487 ac_cache_corrupted=:
2488 else
2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2490 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2491 eval $ac_var=\$ac_old_val
2492 fi
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2494 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2496 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2497 fi;;
2498 esac
2499 # Pass precious variables to config.status.
2500 if test "$ac_new_set" = set; then
2501 case $ac_new_val in
2502 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2503 *) ac_arg=$ac_var=$ac_new_val ;;
2504 esac
2505 case " $ac_configure_args " in
2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2508 esac
2509 fi
2510 done
2511 if $ac_cache_corrupted; then
2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2515 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2516 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2517 and start over" "$LINENO" 5
2518 fi
2519 ## -------------------- ##
2520 ## Main body of script. ##
2521 ## -------------------- ##
2522
2523 ac_ext=c
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
2531 ac_config_headers="$ac_config_headers config.h"
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544 # Expand $ac_aux_dir to an absolute path.
2545 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2546
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 printf %s "checking for $ac_word... " >&6; }
2557 if test ${ac_cv_prog_CC+y}
2558 then :
2559 printf %s "(cached) " >&6
2560 else $as_nop
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 case $as_dir in #(((
2569 '') as_dir=./ ;;
2570 */) ;;
2571 *) as_dir=$as_dir/ ;;
2572 esac
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2588 printf "%s\n" "$CC" >&6; }
2589 else
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 printf "%s\n" "no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$ac_cv_prog_CC"; then
2597 ac_ct_CC=$CC
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 printf %s "checking for $ac_word... " >&6; }
2602 if test ${ac_cv_prog_ac_ct_CC+y}
2603 then :
2604 printf %s "(cached) " >&6
2605 else $as_nop
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612 IFS=$as_save_IFS
2613 case $as_dir in #(((
2614 '') as_dir=./ ;;
2615 */) ;;
2616 *) as_dir=$as_dir/ ;;
2617 esac
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_ac_ct_CC="gcc"
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2633 printf "%s\n" "$ac_ct_CC" >&6; }
2634 else
2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 printf "%s\n" "no" >&6; }
2637 fi
2638
2639 if test "x$ac_ct_CC" = x; then
2640 CC=""
2641 else
2642 case $cross_compiling:$ac_tool_warned in
2643 yes:)
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2646 ac_tool_warned=yes ;;
2647 esac
2648 CC=$ac_ct_CC
2649 fi
2650 else
2651 CC="$ac_cv_prog_CC"
2652 fi
2653
2654 if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}cc; ac_word=$2
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 printf %s "checking for $ac_word... " >&6; }
2660 if test ${ac_cv_prog_CC+y}
2661 then :
2662 printf %s "(cached) " >&6
2663 else $as_nop
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 case $as_dir in #(((
2672 '') as_dir=./ ;;
2673 */) ;;
2674 *) as_dir=$as_dir/ ;;
2675 esac
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC="${ac_tool_prefix}cc"
2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 CC=$ac_cv_prog_CC
2689 if test -n "$CC"; then
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2691 printf "%s\n" "$CC" >&6; }
2692 else
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 printf "%s\n" "no" >&6; }
2695 fi
2696
2697
2698 fi
2699 fi
2700 if test -z "$CC"; then
2701 # Extract the first word of "cc", so it can be a program name with args.
2702 set dummy cc; ac_word=$2
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 printf %s "checking for $ac_word... " >&6; }
2705 if test ${ac_cv_prog_CC+y}
2706 then :
2707 printf %s "(cached) " >&6
2708 else $as_nop
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 ac_prog_rejected=no
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 case $as_dir in #(((
2718 '') as_dir=./ ;;
2719 */) ;;
2720 *) as_dir=$as_dir/ ;;
2721 esac
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2724 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2725 ac_prog_rejected=yes
2726 continue
2727 fi
2728 ac_cv_prog_CC="cc"
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 if test $ac_prog_rejected = yes; then
2737 # We found a bogon in the path, so make sure we never use it.
2738 set dummy $ac_cv_prog_CC
2739 shift
2740 if test $# != 0; then
2741 # We chose a different compiler from the bogus one.
2742 # However, it has the same basename, so the bogon will be chosen
2743 # first if we set CC to just the basename; use the full file name.
2744 shift
2745 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2746 fi
2747 fi
2748 fi
2749 fi
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753 printf "%s\n" "$CC" >&6; }
2754 else
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 printf "%s\n" "no" >&6; }
2757 fi
2758
2759
2760 fi
2761 if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in cl.exe
2764 do
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 printf %s "checking for $ac_word... " >&6; }
2769 if test ${ac_cv_prog_CC+y}
2770 then :
2771 printf %s "(cached) " >&6
2772 else $as_nop
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 case $as_dir in #(((
2781 '') as_dir=./ ;;
2782 */) ;;
2783 *) as_dir=$as_dir/ ;;
2784 esac
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 printf "%s\n" "$CC" >&6; }
2801 else
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 printf "%s\n" "no" >&6; }
2804 fi
2805
2806
2807 test -n "$CC" && break
2808 done
2809 fi
2810 if test -z "$CC"; then
2811 ac_ct_CC=$CC
2812 for ac_prog in cl.exe
2813 do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 printf %s "checking for $ac_word... " >&6; }
2818 if test ${ac_cv_prog_ac_ct_CC+y}
2819 then :
2820 printf %s "(cached) " >&6
2821 else $as_nop
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 case $as_dir in #(((
2830 '') as_dir=./ ;;
2831 */) ;;
2832 *) as_dir=$as_dir/ ;;
2833 esac
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_ac_ct_CC="$ac_prog"
2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 printf "%s\n" "$ac_ct_CC" >&6; }
2850 else
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 printf "%s\n" "no" >&6; }
2853 fi
2854
2855
2856 test -n "$ac_ct_CC" && break
2857 done
2858
2859 if test "x$ac_ct_CC" = x; then
2860 CC=""
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2867 esac
2868 CC=$ac_ct_CC
2869 fi
2870 fi
2871
2872 fi
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}clang; ac_word=$2
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 printf %s "checking for $ac_word... " >&6; }
2879 if test ${ac_cv_prog_CC+y}
2880 then :
2881 printf %s "(cached) " >&6
2882 else $as_nop
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 case $as_dir in #(((
2891 '') as_dir=./ ;;
2892 */) ;;
2893 *) as_dir=$as_dir/ ;;
2894 esac
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_CC="${ac_tool_prefix}clang"
2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 printf "%s\n" "$CC" >&6; }
2911 else
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 printf "%s\n" "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919 ac_ct_CC=$CC
2920 # Extract the first word of "clang", so it can be a program name with args.
2921 set dummy clang; ac_word=$2
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 printf %s "checking for $ac_word... " >&6; }
2924 if test ${ac_cv_prog_ac_ct_CC+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else $as_nop
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 case $as_dir in #(((
2936 '') as_dir=./ ;;
2937 */) ;;
2938 *) as_dir=$as_dir/ ;;
2939 esac
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_ac_ct_CC="clang"
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953 if test -n "$ac_ct_CC"; then
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2955 printf "%s\n" "$ac_ct_CC" >&6; }
2956 else
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 printf "%s\n" "no" >&6; }
2959 fi
2960
2961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970 CC=$ac_ct_CC
2971 fi
2972 else
2973 CC="$ac_cv_prog_CC"
2974 fi
2975
2976 fi
2977
2978
2979 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2981 as_fn_error $? "no acceptable C compiler found in \$PATH
2982 See \`config.log' for more details" "$LINENO" 5; }
2983
2984 # Provide some information about the compiler.
2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2986 set X $ac_compile
2987 ac_compiler=$2
2988 for ac_option in --version -v -V -qversion -version; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 printf "%s\n" "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997 ac_status=$?
2998 if test -s conftest.err; then
2999 sed '10a\
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err >conftest.er1
3002 cat conftest.er1 >&5
3003 fi
3004 rm -f conftest.er1 conftest.err
3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3007 done
3008
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011
3012 int
3013 main (void)
3014 {
3015
3016 ;
3017 return 0;
3018 }
3019 _ACEOF
3020 ac_clean_files_save=$ac_clean_files
3021 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3024 # of exeext.
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3026 printf %s "checking whether the C compiler works... " >&6; }
3027 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028
3029 # The possible output files:
3030 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3031
3032 ac_rmfiles=
3033 for ac_file in $ac_files
3034 do
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3038 esac
3039 done
3040 rm -f $ac_rmfiles
3041
3042 if { { ac_try="$ac_link_default"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 printf "%s\n" "$ac_try_echo"; } >&5
3049 (eval "$ac_link_default") 2>&5
3050 ac_status=$?
3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 then :
3054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3055 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3056 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3057 # so that the user can short-circuit this test for compilers unknown to
3058 # Autoconf.
3059 for ac_file in $ac_files ''
3060 do
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3064 ;;
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3071 then :; else
3072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 fi
3074 # We set ac_cv_exeext here because the later test for it is not
3075 # safe: cross compilers may not add the suffix if given an `-o'
3076 # argument, so we may need to know it at that point already.
3077 # Even if this section looks crufty: it has the advantage of
3078 # actually working.
3079 break;;
3080 * )
3081 break;;
3082 esac
3083 done
3084 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085
3086 else $as_nop
3087 ac_file=''
3088 fi
3089 if test -z "$ac_file"
3090 then :
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 printf "%s\n" "no" >&6; }
3093 printf "%s\n" "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error 77 "C compiler cannot create executables
3099 See \`config.log' for more details" "$LINENO" 5; }
3100 else $as_nop
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3102 printf "%s\n" "yes" >&6; }
3103 fi
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3105 printf %s "checking for C compiler default output file name... " >&6; }
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3107 printf "%s\n" "$ac_file" >&6; }
3108 ac_exeext=$ac_cv_exeext
3109
3110 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3111 ac_clean_files=$ac_clean_files_save
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3113 printf %s "checking for suffix of executables... " >&6; }
3114 if { { ac_try="$ac_link"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 printf "%s\n" "$ac_try_echo"; } >&5
3121 (eval "$ac_link") 2>&5
3122 ac_status=$?
3123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }
3125 then :
3126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3127 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3128 # work properly (i.e., refer to `conftest.exe'), while it won't with
3129 # `rm'.
3130 for ac_file in conftest.exe conftest conftest.*; do
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 break;;
3136 * ) break;;
3137 esac
3138 done
3139 else $as_nop
3140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details" "$LINENO" 5; }
3144 fi
3145 rm -f conftest conftest$ac_cv_exeext
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3147 printf "%s\n" "$ac_cv_exeext" >&6; }
3148
3149 rm -f conftest.$ac_ext
3150 EXEEXT=$ac_cv_exeext
3151 ac_exeext=$EXEEXT
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3154 #include <stdio.h>
3155 int
3156 main (void)
3157 {
3158 FILE *f = fopen ("conftest.out", "w");
3159 return ferror (f) || fclose (f) != 0;
3160
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 ac_clean_files="$ac_clean_files conftest.out"
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3169 printf %s "checking whether we are cross compiling... " >&6; }
3170 if test "$cross_compiling" != yes; then
3171 { { ac_try="$ac_link"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 printf "%s\n" "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3179 ac_status=$?
3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }
3182 if { ac_try='./conftest$ac_cv_exeext'
3183 { { case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 printf "%s\n" "$ac_try_echo"; } >&5
3189 (eval "$ac_try") 2>&5
3190 ac_status=$?
3191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; }; then
3193 cross_compiling=no
3194 else
3195 if test "$cross_compiling" = maybe; then
3196 cross_compiling=yes
3197 else
3198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error 77 "cannot run C compiled programs.
3201 If you meant to cross compile, use \`--host'.
3202 See \`config.log' for more details" "$LINENO" 5; }
3203 fi
3204 fi
3205 fi
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3207 printf "%s\n" "$cross_compiling" >&6; }
3208
3209 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3210 ac_clean_files=$ac_clean_files_save
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3212 printf %s "checking for suffix of object files... " >&6; }
3213 if test ${ac_cv_objext+y}
3214 then :
3215 printf %s "(cached) " >&6
3216 else $as_nop
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3219
3220 int
3221 main (void)
3222 {
3223
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.o conftest.obj
3229 if { { ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 printf "%s\n" "$ac_try_echo"; } >&5
3236 (eval "$ac_compile") 2>&5
3237 ac_status=$?
3238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 then :
3241 for ac_file in conftest.o conftest.obj conftest.*; do
3242 test -f "$ac_file" || continue;
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3246 break;;
3247 esac
3248 done
3249 else $as_nop
3250 printf "%s\n" "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error $? "cannot compute suffix of object files: cannot compile
3256 See \`config.log' for more details" "$LINENO" 5; }
3257 fi
3258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3259 fi
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3261 printf "%s\n" "$ac_cv_objext" >&6; }
3262 OBJEXT=$ac_cv_objext
3263 ac_objext=$OBJEXT
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3265 printf %s "checking whether the compiler supports GNU C... " >&6; }
3266 if test ${ac_cv_c_compiler_gnu+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else $as_nop
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272
3273 int
3274 main (void)
3275 {
3276 #ifndef __GNUC__
3277 choke me
3278 #endif
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"
3285 then :
3286 ac_compiler_gnu=yes
3287 else $as_nop
3288 ac_compiler_gnu=no
3289 fi
3290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3292
3293 fi
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3295 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298 if test $ac_compiler_gnu = yes; then
3299 GCC=yes
3300 else
3301 GCC=
3302 fi
3303 ac_test_CFLAGS=${CFLAGS+y}
3304 ac_save_CFLAGS=$CFLAGS
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3306 printf %s "checking whether $CC accepts -g... " >&6; }
3307 if test ${ac_cv_prog_cc_g+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else $as_nop
3311 ac_save_c_werror_flag=$ac_c_werror_flag
3312 ac_c_werror_flag=yes
3313 ac_cv_prog_cc_g=no
3314 CFLAGS="-g"
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main (void)
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 if ac_fn_c_try_compile "$LINENO"
3327 then :
3328 ac_cv_prog_cc_g=yes
3329 else $as_nop
3330 CFLAGS=""
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333
3334 int
3335 main (void)
3336 {
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"
3343 then :
3344
3345 else $as_nop
3346 ac_c_werror_flag=$ac_save_c_werror_flag
3347 CFLAGS="-g"
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350
3351 int
3352 main (void)
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 if ac_fn_c_try_compile "$LINENO"
3360 then :
3361 ac_cv_prog_cc_g=yes
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3364 fi
3365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3366 fi
3367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3369 fi
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3372 if test $ac_test_CFLAGS; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3376 CFLAGS="-g -O2"
3377 else
3378 CFLAGS="-g"
3379 fi
3380 else
3381 if test "$GCC" = yes; then
3382 CFLAGS="-O2"
3383 else
3384 CFLAGS=
3385 fi
3386 fi
3387 ac_prog_cc_stdc=no
3388 if test x$ac_prog_cc_stdc = xno
3389 then :
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3391 printf %s "checking for $CC option to enable C11 features... " >&6; }
3392 if test ${ac_cv_prog_cc_c11+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else $as_nop
3396 ac_cv_prog_cc_c11=no
3397 ac_save_CC=$CC
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400 $ac_c_conftest_c11_program
3401 _ACEOF
3402 for ac_arg in '' -std=gnu11
3403 do
3404 CC="$ac_save_CC $ac_arg"
3405 if ac_fn_c_try_compile "$LINENO"
3406 then :
3407 ac_cv_prog_cc_c11=$ac_arg
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.beam
3410 test "x$ac_cv_prog_cc_c11" != "xno" && break
3411 done
3412 rm -f conftest.$ac_ext
3413 CC=$ac_save_CC
3414 fi
3415
3416 if test "x$ac_cv_prog_cc_c11" = xno
3417 then :
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3419 printf "%s\n" "unsupported" >&6; }
3420 else $as_nop
3421 if test "x$ac_cv_prog_cc_c11" = x
3422 then :
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3424 printf "%s\n" "none needed" >&6; }
3425 else $as_nop
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3427 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3428 CC="$CC $ac_cv_prog_cc_c11"
3429 fi
3430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3431 ac_prog_cc_stdc=c11
3432 fi
3433 fi
3434 if test x$ac_prog_cc_stdc = xno
3435 then :
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3437 printf %s "checking for $CC option to enable C99 features... " >&6; }
3438 if test ${ac_cv_prog_cc_c99+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else $as_nop
3442 ac_cv_prog_cc_c99=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 $ac_c_conftest_c99_program
3447 _ACEOF
3448 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3449 do
3450 CC="$ac_save_CC $ac_arg"
3451 if ac_fn_c_try_compile "$LINENO"
3452 then :
3453 ac_cv_prog_cc_c99=$ac_arg
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext conftest.beam
3456 test "x$ac_cv_prog_cc_c99" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460 fi
3461
3462 if test "x$ac_cv_prog_cc_c99" = xno
3463 then :
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3465 printf "%s\n" "unsupported" >&6; }
3466 else $as_nop
3467 if test "x$ac_cv_prog_cc_c99" = x
3468 then :
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3470 printf "%s\n" "none needed" >&6; }
3471 else $as_nop
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3473 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3474 CC="$CC $ac_cv_prog_cc_c99"
3475 fi
3476 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3477 ac_prog_cc_stdc=c99
3478 fi
3479 fi
3480 if test x$ac_prog_cc_stdc = xno
3481 then :
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3483 printf %s "checking for $CC option to enable C89 features... " >&6; }
3484 if test ${ac_cv_prog_cc_c89+y}
3485 then :
3486 printf %s "(cached) " >&6
3487 else $as_nop
3488 ac_cv_prog_cc_c89=no
3489 ac_save_CC=$CC
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 $ac_c_conftest_c89_program
3493 _ACEOF
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 do
3496 CC="$ac_save_CC $ac_arg"
3497 if ac_fn_c_try_compile "$LINENO"
3498 then :
3499 ac_cv_prog_cc_c89=$ac_arg
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.beam
3502 test "x$ac_cv_prog_cc_c89" != "xno" && break
3503 done
3504 rm -f conftest.$ac_ext
3505 CC=$ac_save_CC
3506 fi
3507
3508 if test "x$ac_cv_prog_cc_c89" = xno
3509 then :
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 printf "%s\n" "unsupported" >&6; }
3512 else $as_nop
3513 if test "x$ac_cv_prog_cc_c89" = x
3514 then :
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 printf "%s\n" "none needed" >&6; }
3517 else $as_nop
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 fi
3522 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3523 ac_prog_cc_stdc=c89
3524 fi
3525 fi
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3540 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3541 if test ${am_cv_prog_cc_c_o+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else $as_nop
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main (void)
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 # Make sure it works both with $CC and with simple cc.
3557 # Following AC_PROG_CC_C_O, we do the test twice because some
3558 # compilers refuse to overwrite an existing .o file with -o,
3559 # though they will create one.
3560 am_cv_prog_cc_c_o=yes
3561 for am_i in 1 2; do
3562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } \
3567 && test -f conftest2.$ac_objext; then
3568 : OK
3569 else
3570 am_cv_prog_cc_c_o=no
3571 break
3572 fi
3573 done
3574 rm -f core conftest*
3575 unset am_i
3576 fi
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3578 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3579 if test "$am_cv_prog_cc_c_o" != yes; then
3580 # Losing compiler, so override with the script.
3581 # FIXME: It is wrong to rewrite CC.
3582 # But if we don't then we get into trouble of one sort or another.
3583 # A longer-term fix would be to have automake use am__CC in this case,
3584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3585 CC="$am_aux_dir/compile $CC"
3586 fi
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592
3593
3594
3595 ac_header= ac_cache=
3596 for ac_item in $ac_header_c_list
3597 do
3598 if test $ac_cache; then
3599 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3600 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3601 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3602 fi
3603 ac_header= ac_cache=
3604 elif test $ac_header; then
3605 ac_cache=$ac_item
3606 else
3607 ac_header=$ac_item
3608 fi
3609 done
3610
3611
3612
3613
3614
3615
3616
3617
3618 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3619 then :
3620
3621 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3622
3623 fi
3624
3625
3626
3627
3628
3629
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3631 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3632 if test ${ac_cv_safe_to_define___extensions__+y}
3633 then :
3634 printf %s "(cached) " >&6
3635 else $as_nop
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638
3639 # define __EXTENSIONS__ 1
3640 $ac_includes_default
3641 int
3642 main (void)
3643 {
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"
3650 then :
3651 ac_cv_safe_to_define___extensions__=yes
3652 else $as_nop
3653 ac_cv_safe_to_define___extensions__=no
3654 fi
3655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3656 fi
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3658 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3659
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3661 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3662 if test ${ac_cv_should_define__xopen_source+y}
3663 then :
3664 printf %s "(cached) " >&6
3665 else $as_nop
3666 ac_cv_should_define__xopen_source=no
3667 if test $ac_cv_header_wchar_h = yes
3668 then :
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671
3672 #include <wchar.h>
3673 mbstate_t x;
3674 int
3675 main (void)
3676 {
3677
3678 ;
3679 return 0;
3680 }
3681 _ACEOF
3682 if ac_fn_c_try_compile "$LINENO"
3683 then :
3684
3685 else $as_nop
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 #define _XOPEN_SOURCE 500
3690 #include <wchar.h>
3691 mbstate_t x;
3692 int
3693 main (void)
3694 {
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"
3701 then :
3702 ac_cv_should_define__xopen_source=yes
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3707 fi
3708 fi
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3710 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3711
3712 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3713
3714 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3715
3716 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3717
3718 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3719
3720 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3721
3722 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3723
3724 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3725
3726 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3727
3728 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3729
3730 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3731
3732 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3733
3734 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3735
3736 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3737
3738 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3739
3740 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3741
3742 if test $ac_cv_header_minix_config_h = yes
3743 then :
3744 MINIX=yes
3745 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3746
3747 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3748
3749 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3750
3751 else $as_nop
3752 MINIX=
3753 fi
3754 if test $ac_cv_safe_to_define___extensions__ = yes
3755 then :
3756 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3757
3758 fi
3759 if test $ac_cv_should_define__xopen_source = yes
3760 then :
3761 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3762
3763 fi
3764
3765
3766 # Initialize Automake
3767 am__api_version='1.16'
3768
3769
3770 # Find a good install program. We prefer a C program (faster),
3771 # so one script is as good as another. But avoid the broken or
3772 # incompatible versions:
3773 # SysV /etc/install, /usr/sbin/install
3774 # SunOS /usr/etc/install
3775 # IRIX /sbin/install
3776 # AIX /bin/install
3777 # AmigaOS /C/install, which installs bootblocks on floppy discs
3778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3781 # OS/2's system install, which has a completely different semantic
3782 # ./install, which can be erroneously created by make from ./install.sh.
3783 # Reject install programs that cannot install multiple files.
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3785 printf %s "checking for a BSD-compatible install... " >&6; }
3786 if test -z "$INSTALL"; then
3787 if test ${ac_cv_path_install+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else $as_nop
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 case $as_dir in #(((
3796 '') as_dir=./ ;;
3797 */) ;;
3798 *) as_dir=$as_dir/ ;;
3799 esac
3800 # Account for fact that we put trailing slashes in our PATH walk.
3801 case $as_dir in #((
3802 ./ | /[cC]/* | \
3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805 /usr/ucb/* ) ;;
3806 *)
3807 # OSF1 and SCO ODT 3.0 have their own names for install.
3808 # Don't use installbsd from OSF since it installs stuff as root
3809 # by default.
3810 for ac_prog in ginstall scoinst install; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3813 if test $ac_prog = install &&
3814 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # AIX install. It has an incompatible calling convention.
3816 :
3817 elif test $ac_prog = install &&
3818 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819 # program-specific install script used by HP pwplus--don't use.
3820 :
3821 else
3822 rm -rf conftest.one conftest.two conftest.dir
3823 echo one > conftest.one
3824 echo two > conftest.two
3825 mkdir conftest.dir
3826 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3827 test -s conftest.one && test -s conftest.two &&
3828 test -s conftest.dir/conftest.one &&
3829 test -s conftest.dir/conftest.two
3830 then
3831 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3832 break 3
3833 fi
3834 fi
3835 fi
3836 done
3837 done
3838 ;;
3839 esac
3840
3841 done
3842 IFS=$as_save_IFS
3843
3844 rm -rf conftest.one conftest.two conftest.dir
3845
3846 fi
3847 if test ${ac_cv_path_install+y}; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. Don't cache a
3851 # value for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the value is a relative name.
3854 INSTALL=$ac_install_sh
3855 fi
3856 fi
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858 printf "%s\n" "$INSTALL" >&6; }
3859
3860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861 # It thinks the first close brace ends the variable substitution.
3862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3869 printf %s "checking whether build environment is sane... " >&6; }
3870 # Reject unsafe characters in $srcdir or the absolute working directory
3871 # name. Accept space and tab only in the latter.
3872 am_lf='
3873 '
3874 case `pwd` in
3875 *[\\\"\#\$\&\'\`$am_lf]*)
3876 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3877 esac
3878 case $srcdir in
3879 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3880 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3881 esac
3882
3883 # Do 'set' in a subshell so we don't clobber the current shell's
3884 # arguments. Must try -L first in case configure is actually a
3885 # symlink; some systems play weird games with the mod time of symlinks
3886 # (eg FreeBSD returns the mod time of the symlink's containing
3887 # directory).
3888 if (
3889 am_has_slept=no
3890 for am_try in 1 2; do
3891 echo "timestamp, slept: $am_has_slept" > conftest.file
3892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3893 if test "$*" = "X"; then
3894 # -L didn't work.
3895 set X `ls -t "$srcdir/configure" conftest.file`
3896 fi
3897 if test "$*" != "X $srcdir/configure conftest.file" \
3898 && test "$*" != "X conftest.file $srcdir/configure"; then
3899
3900 # If neither matched, then we have a broken ls. This can happen
3901 # if, for instance, CONFIG_SHELL is bash and it inherits a
3902 # broken ls alias from the environment. This has actually
3903 # happened. Such a system could not be considered "sane".
3904 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3905 alias in your environment" "$LINENO" 5
3906 fi
3907 if test "$2" = conftest.file || test $am_try -eq 2; then
3908 break
3909 fi
3910 # Just in case.
3911 sleep 1
3912 am_has_slept=yes
3913 done
3914 test "$2" = conftest.file
3915 )
3916 then
3917 # Ok.
3918 :
3919 else
3920 as_fn_error $? "newly created file is older than distributed files!
3921 Check your system clock" "$LINENO" 5
3922 fi
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 printf "%s\n" "yes" >&6; }
3925 # If we didn't sleep, we still need to ensure time stamps of config.status and
3926 # generated files are strictly newer.
3927 am_sleep_pid=
3928 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3929 ( sleep 1 ) &
3930 am_sleep_pid=$!
3931 fi
3932
3933 rm -f conftest.file
3934
3935 test "$program_prefix" != NONE &&
3936 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3937 # Use a double $ so make ignores it.
3938 test "$program_suffix" != NONE &&
3939 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3940 # Double any \ or $.
3941 # By default was `s,x,x', remove it if useless.
3942 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3943 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3944
3945
3946 if test x"${MISSING+set}" != xset; then
3947 MISSING="\${SHELL} '$am_aux_dir/missing'"
3948 fi
3949 # Use eval to expand $SHELL
3950 if eval "$MISSING --is-lightweight"; then
3951 am_missing_run="$MISSING "
3952 else
3953 am_missing_run=
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3955 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3956 fi
3957
3958 if test x"${install_sh+set}" != xset; then
3959 case $am_aux_dir in
3960 *\ * | *\ *)
3961 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3962 *)
3963 install_sh="\${SHELL} $am_aux_dir/install-sh"
3964 esac
3965 fi
3966
3967 # Installed binaries are usually stripped using 'strip' when the user
3968 # run "make install-strip". However 'strip' might not be the right
3969 # tool to use in cross-compilation environments, therefore Automake
3970 # will honor the 'STRIP' environment variable to overrule this program.
3971 if test "$cross_compiling" != no; then
3972 if test -n "$ac_tool_prefix"; then
3973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3974 set dummy ${ac_tool_prefix}strip; ac_word=$2
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 printf %s "checking for $ac_word... " >&6; }
3977 if test ${ac_cv_prog_STRIP+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else $as_nop
3981 if test -n "$STRIP"; then
3982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 case $as_dir in #(((
3989 '') as_dir=./ ;;
3990 */) ;;
3991 *) as_dir=$as_dir/ ;;
3992 esac
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 STRIP=$ac_cv_prog_STRIP
4006 if test -n "$STRIP"; then
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4008 printf "%s\n" "$STRIP" >&6; }
4009 else
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 printf "%s\n" "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 if test -z "$ac_cv_prog_STRIP"; then
4017 ac_ct_STRIP=$STRIP
4018 # Extract the first word of "strip", so it can be a program name with args.
4019 set dummy strip; ac_word=$2
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 printf %s "checking for $ac_word... " >&6; }
4022 if test ${ac_cv_prog_ac_ct_STRIP+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else $as_nop
4026 if test -n "$ac_ct_STRIP"; then
4027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 case $as_dir in #(((
4034 '') as_dir=./ ;;
4035 */) ;;
4036 *) as_dir=$as_dir/ ;;
4037 esac
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_STRIP="strip"
4041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 fi
4049 fi
4050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4051 if test -n "$ac_ct_STRIP"; then
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4053 printf "%s\n" "$ac_ct_STRIP" >&6; }
4054 else
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 printf "%s\n" "no" >&6; }
4057 fi
4058
4059 if test "x$ac_ct_STRIP" = x; then
4060 STRIP=":"
4061 else
4062 case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068 STRIP=$ac_ct_STRIP
4069 fi
4070 else
4071 STRIP="$ac_cv_prog_STRIP"
4072 fi
4073
4074 fi
4075 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4076
4077
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4079 printf %s "checking for a race-free mkdir -p... " >&6; }
4080 if test -z "$MKDIR_P"; then
4081 if test ${ac_cv_path_mkdir+y}
4082 then :
4083 printf %s "(cached) " >&6
4084 else $as_nop
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4087 do
4088 IFS=$as_save_IFS
4089 case $as_dir in #(((
4090 '') as_dir=./ ;;
4091 */) ;;
4092 *) as_dir=$as_dir/ ;;
4093 esac
4094 for ac_prog in mkdir gmkdir; do
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4097 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4098 'mkdir ('*'coreutils) '* | \
4099 'BusyBox '* | \
4100 'mkdir (fileutils) '4.1*)
4101 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4102 break 3;;
4103 esac
4104 done
4105 done
4106 done
4107 IFS=$as_save_IFS
4108
4109 fi
4110
4111 test -d ./--version && rmdir ./--version
4112 if test ${ac_cv_path_mkdir+y}; then
4113 MKDIR_P="$ac_cv_path_mkdir -p"
4114 else
4115 # As a last resort, use the slow shell script. Don't cache a
4116 # value for MKDIR_P within a source directory, because that will
4117 # break other packages using the cache if that directory is
4118 # removed, or if the value is a relative name.
4119 MKDIR_P="$ac_install_sh -d"
4120 fi
4121 fi
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4123 printf "%s\n" "$MKDIR_P" >&6; }
4124
4125 for ac_prog in gawk mawk nawk awk
4126 do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 printf %s "checking for $ac_word... " >&6; }
4131 if test ${ac_cv_prog_AWK+y}
4132 then :
4133 printf %s "(cached) " >&6
4134 else $as_nop
4135 if test -n "$AWK"; then
4136 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 case $as_dir in #(((
4143 '') as_dir=./ ;;
4144 */) ;;
4145 *) as_dir=$as_dir/ ;;
4146 esac
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_AWK="$ac_prog"
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi
4158 fi
4159 AWK=$ac_cv_prog_AWK
4160 if test -n "$AWK"; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4162 printf "%s\n" "$AWK" >&6; }
4163 else
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 printf "%s\n" "no" >&6; }
4166 fi
4167
4168
4169 test -n "$AWK" && break
4170 done
4171
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4173 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4174 set x ${MAKE-make}
4175 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4176 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4177 then :
4178 printf %s "(cached) " >&6
4179 else $as_nop
4180 cat >conftest.make <<\_ACEOF
4181 SHELL = /bin/sh
4182 all:
4183 @echo '@@@%%%=$(MAKE)=@@@%%%'
4184 _ACEOF
4185 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4186 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4187 *@@@%%%=?*=@@@%%%*)
4188 eval ac_cv_prog_make_${ac_make}_set=yes;;
4189 *)
4190 eval ac_cv_prog_make_${ac_make}_set=no;;
4191 esac
4192 rm -f conftest.make
4193 fi
4194 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196 printf "%s\n" "yes" >&6; }
4197 SET_MAKE=
4198 else
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 printf "%s\n" "no" >&6; }
4201 SET_MAKE="MAKE=${MAKE-make}"
4202 fi
4203
4204 rm -rf .tst 2>/dev/null
4205 mkdir .tst 2>/dev/null
4206 if test -d .tst; then
4207 am__leading_dot=.
4208 else
4209 am__leading_dot=_
4210 fi
4211 rmdir .tst 2>/dev/null
4212
4213 DEPDIR="${am__leading_dot}deps"
4214
4215 ac_config_commands="$ac_config_commands depfiles"
4216
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4218 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4219 cat > confinc.mk << 'END'
4220 am__doit:
4221 @echo this is the am__doit target >confinc.out
4222 .PHONY: am__doit
4223 END
4224 am__include="#"
4225 am__quote=
4226 # BSD make does it like this.
4227 echo '.include "confinc.mk" # ignored' > confmf.BSD
4228 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4229 echo 'include confinc.mk # ignored' > confmf.GNU
4230 _am_result=no
4231 for s in GNU BSD; do
4232 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4233 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }
4237 case $?:`cat confinc.out 2>/dev/null` in #(
4238 '0:this is the am__doit target') :
4239 case $s in #(
4240 BSD) :
4241 am__include='.include' am__quote='"' ;; #(
4242 *) :
4243 am__include='include' am__quote='' ;;
4244 esac ;; #(
4245 *) :
4246 ;;
4247 esac
4248 if test "$am__include" != "#"; then
4249 _am_result="yes ($s style)"
4250 break
4251 fi
4252 done
4253 rm -f confinc.* confmf.*
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4255 printf "%s\n" "${_am_result}" >&6; }
4256
4257 # Check whether --enable-dependency-tracking was given.
4258 if test ${enable_dependency_tracking+y}
4259 then :
4260 enableval=$enable_dependency_tracking;
4261 fi
4262
4263 if test "x$enable_dependency_tracking" != xno; then
4264 am_depcomp="$ac_aux_dir/depcomp"
4265 AMDEPBACKSLASH='\'
4266 am__nodep='_no'
4267 fi
4268 if test "x$enable_dependency_tracking" != xno; then
4269 AMDEP_TRUE=
4270 AMDEP_FALSE='#'
4271 else
4272 AMDEP_TRUE='#'
4273 AMDEP_FALSE=
4274 fi
4275
4276
4277 # Check whether --enable-silent-rules was given.
4278 if test ${enable_silent_rules+y}
4279 then :
4280 enableval=$enable_silent_rules;
4281 fi
4282
4283 case $enable_silent_rules in # (((
4284 yes) AM_DEFAULT_VERBOSITY=0;;
4285 no) AM_DEFAULT_VERBOSITY=1;;
4286 *) AM_DEFAULT_VERBOSITY=1;;
4287 esac
4288 am_make=${MAKE-make}
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4290 printf %s "checking whether $am_make supports nested variables... " >&6; }
4291 if test ${am_cv_make_support_nested_variables+y}
4292 then :
4293 printf %s "(cached) " >&6
4294 else $as_nop
4295 if printf "%s\n" 'TRUE=$(BAR$(V))
4296 BAR0=false
4297 BAR1=true
4298 V=1
4299 am__doit:
4300 @$(TRUE)
4301 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4302 am_cv_make_support_nested_variables=yes
4303 else
4304 am_cv_make_support_nested_variables=no
4305 fi
4306 fi
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4308 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4309 if test $am_cv_make_support_nested_variables = yes; then
4310 AM_V='$(V)'
4311 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4312 else
4313 AM_V=$AM_DEFAULT_VERBOSITY
4314 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4315 fi
4316 AM_BACKSLASH='\'
4317
4318 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4319 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4320 # is not polluted with repeated "-I."
4321 am__isrc=' -I$(srcdir)'
4322 # test to see if srcdir already configured
4323 if test -f $srcdir/config.status; then
4324 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4325 fi
4326 fi
4327
4328 # test whether we have cygpath
4329 if test -z "$CYGPATH_W"; then
4330 if (cygpath --version) >/dev/null 2>/dev/null; then
4331 CYGPATH_W='cygpath -w'
4332 else
4333 CYGPATH_W=echo
4334 fi
4335 fi
4336
4337
4338 # Define the identity of the package.
4339 PACKAGE='xlsclients'
4340 VERSION='1.1.5'
4341
4342
4343 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4344
4345
4346 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4347
4348 # Some tools Automake needs.
4349
4350 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4351
4352
4353 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4354
4355
4356 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4357
4358
4359 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4360
4361
4362 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4363
4364 # For better backward compatibility. To be removed once Automake 1.9.x
4365 # dies out for good. For more background, see:
4366 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4367 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4368 mkdir_p='$(MKDIR_P)'
4369
4370 # We need awk for the "check" target (and possibly the TAP driver). The
4371 # system "awk" is bad on some platforms.
4372 # Always define AMTAR for backward compatibility. Yes, it's still used
4373 # in the wild :-( We should find a proper way to deprecate it ...
4374 AMTAR='$${TAR-tar}'
4375
4376
4377 # We'll loop over all known methods to create a tar archive until one works.
4378 _am_tools='gnutar pax cpio none'
4379
4380 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4381
4382
4383
4384
4385
4386 depcc="$CC" am_compiler_list=
4387
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4389 printf %s "checking dependency style of $depcc... " >&6; }
4390 if test ${am_cv_CC_dependencies_compiler_type+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else $as_nop
4394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4395 # We make a subdir and do the tests there. Otherwise we can end up
4396 # making bogus files that we don't know about and never remove. For
4397 # instance it was reported that on HP-UX the gcc test will end up
4398 # making a dummy file named 'D' -- because '-MD' means "put the output
4399 # in D".
4400 rm -rf conftest.dir
4401 mkdir conftest.dir
4402 # Copy depcomp to subdir because otherwise we won't find it if we're
4403 # using a relative directory.
4404 cp "$am_depcomp" conftest.dir
4405 cd conftest.dir
4406 # We will build objects and dependencies in a subdirectory because
4407 # it helps to detect inapplicable dependency modes. For instance
4408 # both Tru64's cc and ICC support -MD to output dependencies as a
4409 # side effect of compilation, but ICC will put the dependencies in
4410 # the current directory while Tru64 will put them in the object
4411 # directory.
4412 mkdir sub
4413
4414 am_cv_CC_dependencies_compiler_type=none
4415 if test "$am_compiler_list" = ""; then
4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4417 fi
4418 am__universal=false
4419 case " $depcc " in #(
4420 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4421 esac
4422
4423 for depmode in $am_compiler_list; do
4424 # Setup a source with many dependencies, because some compilers
4425 # like to wrap large dependency lists on column 80 (with \), and
4426 # we should not choose a depcomp mode which is confused by this.
4427 #
4428 # We need to recreate these files for each test, as the compiler may
4429 # overwrite some of them when testing with obscure command lines.
4430 # This happens at least with the AIX C compiler.
4431 : > sub/conftest.c
4432 for i in 1 2 3 4 5 6; do
4433 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4435 # Solaris 10 /bin/sh.
4436 echo '/* dummy */' > sub/conftst$i.h
4437 done
4438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4439
4440 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4441 # mode. It turns out that the SunPro C++ compiler does not properly
4442 # handle '-M -o', and we need to detect this. Also, some Intel
4443 # versions had trouble with output in subdirs.
4444 am__obj=sub/conftest.${OBJEXT-o}
4445 am__minus_obj="-o $am__obj"
4446 case $depmode in
4447 gcc)
4448 # This depmode causes a compiler race in universal mode.
4449 test "$am__universal" = false || continue
4450 ;;
4451 nosideeffect)
4452 # After this tag, mechanisms are not by side-effect, so they'll
4453 # only be used when explicitly requested.
4454 if test "x$enable_dependency_tracking" = xyes; then
4455 continue
4456 else
4457 break
4458 fi
4459 ;;
4460 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4461 # This compiler won't grok '-c -o', but also, the minuso test has
4462 # not run yet. These depmodes are late enough in the game, and
4463 # so weak that their functioning should not be impacted.
4464 am__obj=conftest.${OBJEXT-o}
4465 am__minus_obj=
4466 ;;
4467 none) break ;;
4468 esac
4469 if depmode=$depmode \
4470 source=sub/conftest.c object=$am__obj \
4471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4473 >/dev/null 2>conftest.err &&
4474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4478 # icc doesn't choke on unknown options, it will just issue warnings
4479 # or remarks (even with -Werror). So we grep stderr for any message
4480 # that says an option was ignored or not supported.
4481 # When given -MP, icc 7.0 and 7.1 complain thusly:
4482 # icc: Command line warning: ignoring option '-M'; no argument required
4483 # The diagnosis changed in icc 8.0:
4484 # icc: Command line remark: option '-MP' not supported
4485 if (grep 'ignoring option' conftest.err ||
4486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4487 am_cv_CC_dependencies_compiler_type=$depmode
4488 break
4489 fi
4490 fi
4491 done
4492
4493 cd ..
4494 rm -rf conftest.dir
4495 else
4496 am_cv_CC_dependencies_compiler_type=none
4497 fi
4498
4499 fi
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4501 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4503
4504 if
4505 test "x$enable_dependency_tracking" != xno \
4506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4507 am__fastdepCC_TRUE=
4508 am__fastdepCC_FALSE='#'
4509 else
4510 am__fastdepCC_TRUE='#'
4511 am__fastdepCC_FALSE=
4512 fi
4513
4514
4515 # Variables for tags utilities; see am/tags.am
4516 if test -z "$CTAGS"; then
4517 CTAGS=ctags
4518 fi
4519
4520 if test -z "$ETAGS"; then
4521 ETAGS=etags
4522 fi
4523
4524 if test -z "$CSCOPE"; then
4525 CSCOPE=cscope
4526 fi
4527
4528
4529
4530 # POSIX will say in a future version that running "rm -f" with no argument
4531 # is OK; and we want to be able to make that assumption in our Makefile
4532 # recipes. So use an aggressive probe to check that the usage we want is
4533 # actually supported "in the wild" to an acceptable degree.
4534 # See automake bug#10828.
4535 # To make any issue more visible, cause the running configure to be aborted
4536 # by default if the 'rm' program in use doesn't match our expectations; the
4537 # user can still override this though.
4538 if rm -f && rm -fr && rm -rf; then : OK; else
4539 cat >&2 <<'END'
4540 Oops!
4541
4542 Your 'rm' program seems unable to run without file operands specified
4543 on the command line, even when the '-f' option is present. This is contrary
4544 to the behaviour of most rm programs out there, and not conforming with
4545 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4546
4547 Please tell bug-automake@gnu.org about your system, including the value
4548 of your $PATH and any error possibly output before this message. This
4549 can help us improve future automake versions.
4550
4551 END
4552 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4553 echo 'Configuration will proceed anyway, since you have set the' >&2
4554 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4555 echo >&2
4556 else
4557 cat >&2 <<'END'
4558 Aborting the configuration process, to ensure you take notice of the issue.
4559
4560 You can download and install GNU coreutils to get an 'rm' implementation
4561 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4562
4563 If you want to complete the configuration process using your problematic
4564 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4565 to "yes", and re-run configure.
4566
4567 END
4568 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4569 fi
4570 fi
4571
4572
4573 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4587 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4588 if test ${ac_cv_c_undeclared_builtin_options+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 ac_save_CFLAGS=$CFLAGS
4593 ac_cv_c_undeclared_builtin_options='cannot detect'
4594 for ac_arg in '' -fno-builtin; do
4595 CFLAGS="$ac_save_CFLAGS $ac_arg"
4596 # This test program should *not* compile successfully.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599
4600 int
4601 main (void)
4602 {
4603 (void) strchr;
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"
4609 then :
4610
4611 else $as_nop
4612 # This test program should compile successfully.
4613 # No library function is consistently available on
4614 # freestanding implementations, so test against a dummy
4615 # declaration. Include always-available headers on the
4616 # off chance that they somehow elicit warnings.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <float.h>
4620 #include <limits.h>
4621 #include <stdarg.h>
4622 #include <stddef.h>
4623 extern void ac_decl (int, char *);
4624
4625 int
4626 main (void)
4627 {
4628 (void) ac_decl (0, (char *) 0);
4629 (void) ac_decl;
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"
4636 then :
4637 if test x"$ac_arg" = x
4638 then :
4639 ac_cv_c_undeclared_builtin_options='none needed'
4640 else $as_nop
4641 ac_cv_c_undeclared_builtin_options=$ac_arg
4642 fi
4643 break
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4648 done
4649 CFLAGS=$ac_save_CFLAGS
4650
4651 fi
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4653 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4654 case $ac_cv_c_undeclared_builtin_options in #(
4655 'cannot detect') :
4656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4657 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4658 as_fn_error $? "cannot make $CC report undeclared builtins
4659 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4660 'none needed') :
4661 ac_c_undeclared_builtin_options='' ;; #(
4662 *) :
4663 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4664 esac
4665
4666
4667
4668
4669
4670 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4671 if test "x$ac_cv_have_decl___clang__" = xyes
4672 then :
4673 CLANGCC="yes"
4674 else $as_nop
4675 CLANGCC="no"
4676 fi
4677 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4678 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4679 then :
4680 INTELCC="yes"
4681 else $as_nop
4682 INTELCC="no"
4683 fi
4684 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4685 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4686 then :
4687 SUNCC="yes"
4688 else $as_nop
4689 SUNCC="no"
4690 fi
4691
4692
4693
4694
4695
4696
4697
4698
4699 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4700 if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 printf %s "checking for $ac_word... " >&6; }
4705 if test ${ac_cv_path_PKG_CONFIG+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else $as_nop
4709 case $PKG_CONFIG in
4710 [\\/]* | ?:[\\/]*)
4711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4712 ;;
4713 *)
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 case $as_dir in #(((
4719 '') as_dir=./ ;;
4720 */) ;;
4721 *) as_dir=$as_dir/ ;;
4722 esac
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4725 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 ;;
4734 esac
4735 fi
4736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4737 if test -n "$PKG_CONFIG"; then
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4739 printf "%s\n" "$PKG_CONFIG" >&6; }
4740 else
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 printf "%s\n" "no" >&6; }
4743 fi
4744
4745
4746 fi
4747 if test -z "$ac_cv_path_PKG_CONFIG"; then
4748 ac_pt_PKG_CONFIG=$PKG_CONFIG
4749 # Extract the first word of "pkg-config", so it can be a program name with args.
4750 set dummy pkg-config; ac_word=$2
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 printf %s "checking for $ac_word... " >&6; }
4753 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4754 then :
4755 printf %s "(cached) " >&6
4756 else $as_nop
4757 case $ac_pt_PKG_CONFIG in
4758 [\\/]* | ?:[\\/]*)
4759 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4760 ;;
4761 *)
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 case $as_dir in #(((
4767 '') as_dir=./ ;;
4768 */) ;;
4769 *) as_dir=$as_dir/ ;;
4770 esac
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4773 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 ;;
4782 esac
4783 fi
4784 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4785 if test -n "$ac_pt_PKG_CONFIG"; then
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4787 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4788 else
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 printf "%s\n" "no" >&6; }
4791 fi
4792
4793 if test "x$ac_pt_PKG_CONFIG" = x; then
4794 PKG_CONFIG=""
4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 PKG_CONFIG=$ac_pt_PKG_CONFIG
4803 fi
4804 else
4805 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4806 fi
4807
4808 fi
4809 if test -n "$PKG_CONFIG"; then
4810 _pkg_min_version=0.9.0
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4812 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4813 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4815 printf "%s\n" "yes" >&6; }
4816 else
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 printf "%s\n" "no" >&6; }
4819 PKG_CONFIG=""
4820 fi
4821 fi
4822
4823
4824 # Make sure we can run config.sub.
4825 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4826 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4827
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4829 printf %s "checking build system type... " >&6; }
4830 if test ${ac_cv_build+y}
4831 then :
4832 printf %s "(cached) " >&6
4833 else $as_nop
4834 ac_build_alias=$build_alias
4835 test "x$ac_build_alias" = x &&
4836 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4837 test "x$ac_build_alias" = x &&
4838 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4839 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4840 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4841
4842 fi
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4844 printf "%s\n" "$ac_cv_build" >&6; }
4845 case $ac_cv_build in
4846 *-*-*) ;;
4847 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4848 esac
4849 build=$ac_cv_build
4850 ac_save_IFS=$IFS; IFS='-'
4851 set x $ac_cv_build
4852 shift
4853 build_cpu=$1
4854 build_vendor=$2
4855 shift; shift
4856 # Remember, the first character of IFS is used to create $*,
4857 # except with old shells:
4858 build_os=$*
4859 IFS=$ac_save_IFS
4860 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4861
4862
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4864 printf %s "checking host system type... " >&6; }
4865 if test ${ac_cv_host+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else $as_nop
4869 if test "x$host_alias" = x; then
4870 ac_cv_host=$ac_cv_build
4871 else
4872 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4873 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4874 fi
4875
4876 fi
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4878 printf "%s\n" "$ac_cv_host" >&6; }
4879 case $ac_cv_host in
4880 *-*-*) ;;
4881 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4882 esac
4883 host=$ac_cv_host
4884 ac_save_IFS=$IFS; IFS='-'
4885 set x $ac_cv_host
4886 shift
4887 host_cpu=$1
4888 host_vendor=$2
4889 shift; shift
4890 # Remember, the first character of IFS is used to create $*,
4891 # except with old shells:
4892 host_os=$*
4893 IFS=$ac_save_IFS
4894 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4895
4896
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4898 printf %s "checking for a sed that does not truncate output... " >&6; }
4899 if test ${ac_cv_path_SED+y}
4900 then :
4901 printf %s "(cached) " >&6
4902 else $as_nop
4903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4904 for ac_i in 1 2 3 4 5 6 7; do
4905 ac_script="$ac_script$as_nl$ac_script"
4906 done
4907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4908 { ac_script=; unset ac_script;}
4909 if test -z "$SED"; then
4910 ac_path_SED_found=false
4911 # Loop through the user's path and test for each of PROGNAME-LIST
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915 IFS=$as_save_IFS
4916 case $as_dir in #(((
4917 '') as_dir=./ ;;
4918 */) ;;
4919 *) as_dir=$as_dir/ ;;
4920 esac
4921 for ac_prog in sed gsed
4922 do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4925 as_fn_executable_p "$ac_path_SED" || continue
4926 # Check for GNU ac_path_SED and select it if it is found.
4927 # Check for GNU $ac_path_SED
4928 case `"$ac_path_SED" --version 2>&1` in
4929 *GNU*)
4930 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4931 *)
4932 ac_count=0
4933 printf %s 0123456789 >"conftest.in"
4934 while :
4935 do
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 printf "%s\n" '' >> "conftest.nl"
4940 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_SED_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_SED="$ac_path_SED"
4946 ac_path_SED_max=$ac_count
4947 fi
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4950 done
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952 esac
4953
4954 $ac_path_SED_found && break 3
4955 done
4956 done
4957 done
4958 IFS=$as_save_IFS
4959 if test -z "$ac_cv_path_SED"; then
4960 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4961 fi
4962 else
4963 ac_cv_path_SED=$SED
4964 fi
4965
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968 printf "%s\n" "$ac_cv_path_SED" >&6; }
4969 SED="$ac_cv_path_SED"
4970 rm -f conftest.sed
4971
4972
4973
4974
4975
4976
4977 # Check whether --enable-selective-werror was given.
4978 if test ${enable_selective_werror+y}
4979 then :
4980 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4981 else $as_nop
4982 SELECTIVE_WERROR=yes
4983 fi
4984
4985
4986
4987
4988
4989 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4990 if test "x$SUNCC" = "xyes"; then
4991 BASE_CFLAGS="-v"
4992 else
4993 BASE_CFLAGS=""
4994 fi
4995
4996 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 xorg_testset_save_CFLAGS="$CFLAGS"
5011
5012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5015 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5016 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5017 then :
5018 printf %s "(cached) " >&6
5019 else $as_nop
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 int i;
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"
5025 then :
5026 xorg_cv_cc_flag_unknown_warning_option=yes
5027 else $as_nop
5028 xorg_cv_cc_flag_unknown_warning_option=no
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5031 fi
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5035 CFLAGS="$xorg_testset_save_CFLAGS"
5036 fi
5037
5038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041 fi
5042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5045 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"
5054 then :
5055 xorg_cv_cc_flag_unused_command_line_argument=yes
5056 else $as_nop
5057 xorg_cv_cc_flag_unused_command_line_argument=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5060 fi
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064 CFLAGS="$xorg_testset_save_CFLAGS"
5065 fi
5066
5067 found="no"
5068
5069 if test $found = "no" ; then
5070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072 fi
5073
5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076 fi
5077
5078 CFLAGS="$CFLAGS -Wall"
5079
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5081 printf %s "checking if $CC supports -Wall... " >&6; }
5082 cacheid=xorg_cv_cc_flag__Wall
5083 if eval test \${$cacheid+y}
5084 then :
5085 printf %s "(cached) " >&6
5086 else $as_nop
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 int i;
5090 int
5091 main (void)
5092 {
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 if ac_fn_c_try_link "$LINENO"
5099 then :
5100 eval $cacheid=yes
5101 else $as_nop
5102 eval $cacheid=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5105 conftest$ac_exeext conftest.$ac_ext
5106 fi
5107
5108
5109 CFLAGS="$xorg_testset_save_CFLAGS"
5110
5111 eval supported=\$$cacheid
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113 printf "%s\n" "$supported" >&6; }
5114 if test "$supported" = "yes" ; then
5115 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5116 found="yes"
5117 fi
5118 fi
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 xorg_testset_save_CFLAGS="$CFLAGS"
5135
5136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5139 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5140 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5141 then :
5142 printf %s "(cached) " >&6
5143 else $as_nop
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 int i;
5147 _ACEOF
5148 if ac_fn_c_try_compile "$LINENO"
5149 then :
5150 xorg_cv_cc_flag_unknown_warning_option=yes
5151 else $as_nop
5152 xorg_cv_cc_flag_unknown_warning_option=no
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5155 fi
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5159 CFLAGS="$xorg_testset_save_CFLAGS"
5160 fi
5161
5162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5165 fi
5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5169 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"
5178 then :
5179 xorg_cv_cc_flag_unused_command_line_argument=yes
5180 else $as_nop
5181 xorg_cv_cc_flag_unused_command_line_argument=no
5182 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5184 fi
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5188 CFLAGS="$xorg_testset_save_CFLAGS"
5189 fi
5190
5191 found="no"
5192
5193 if test $found = "no" ; then
5194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196 fi
5197
5198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5200 fi
5201
5202 CFLAGS="$CFLAGS -Wpointer-arith"
5203
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5205 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5206 cacheid=xorg_cv_cc_flag__Wpointer_arith
5207 if eval test \${$cacheid+y}
5208 then :
5209 printf %s "(cached) " >&6
5210 else $as_nop
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 int i;
5214 int
5215 main (void)
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_link "$LINENO"
5223 then :
5224 eval $cacheid=yes
5225 else $as_nop
5226 eval $cacheid=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5229 conftest$ac_exeext conftest.$ac_ext
5230 fi
5231
5232
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235 eval supported=\$$cacheid
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237 printf "%s\n" "$supported" >&6; }
5238 if test "$supported" = "yes" ; then
5239 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5240 found="yes"
5241 fi
5242 fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258 xorg_testset_save_CFLAGS="$CFLAGS"
5259
5260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5264 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else $as_nop
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 int i;
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"
5273 then :
5274 xorg_cv_cc_flag_unknown_warning_option=yes
5275 else $as_nop
5276 xorg_cv_cc_flag_unknown_warning_option=no
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5279 fi
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284 fi
5285
5286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289 fi
5290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"
5302 then :
5303 xorg_cv_cc_flag_unused_command_line_argument=yes
5304 else $as_nop
5305 xorg_cv_cc_flag_unused_command_line_argument=no
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5308 fi
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5312 CFLAGS="$xorg_testset_save_CFLAGS"
5313 fi
5314
5315 found="no"
5316
5317 if test $found = "no" ; then
5318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320 fi
5321
5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5324 fi
5325
5326 CFLAGS="$CFLAGS -Wmissing-declarations"
5327
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5329 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5330 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5331 if eval test \${$cacheid+y}
5332 then :
5333 printf %s "(cached) " >&6
5334 else $as_nop
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 int i;
5338 int
5339 main (void)
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"
5347 then :
5348 eval $cacheid=yes
5349 else $as_nop
5350 eval $cacheid=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5353 conftest$ac_exeext conftest.$ac_ext
5354 fi
5355
5356
5357 CFLAGS="$xorg_testset_save_CFLAGS"
5358
5359 eval supported=\$$cacheid
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5361 printf "%s\n" "$supported" >&6; }
5362 if test "$supported" = "yes" ; then
5363 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5364 found="yes"
5365 fi
5366 fi
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 xorg_testset_save_CFLAGS="$CFLAGS"
5383
5384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5387 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5388 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5389 then :
5390 printf %s "(cached) " >&6
5391 else $as_nop
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 int i;
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"
5397 then :
5398 xorg_cv_cc_flag_unknown_warning_option=yes
5399 else $as_nop
5400 xorg_cv_cc_flag_unknown_warning_option=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5403 fi
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5405 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408 fi
5409
5410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413 fi
5414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5416 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5417 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else $as_nop
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 int i;
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"
5426 then :
5427 xorg_cv_cc_flag_unused_command_line_argument=yes
5428 else $as_nop
5429 xorg_cv_cc_flag_unused_command_line_argument=no
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5432 fi
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5436 CFLAGS="$xorg_testset_save_CFLAGS"
5437 fi
5438
5439 found="no"
5440
5441 if test $found = "no" ; then
5442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444 fi
5445
5446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448 fi
5449
5450 CFLAGS="$CFLAGS -Wformat=2"
5451
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5453 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5454 cacheid=xorg_cv_cc_flag__Wformat_2
5455 if eval test \${$cacheid+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else $as_nop
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 int
5463 main (void)
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_link "$LINENO"
5471 then :
5472 eval $cacheid=yes
5473 else $as_nop
5474 eval $cacheid=no
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5477 conftest$ac_exeext conftest.$ac_ext
5478 fi
5479
5480
5481 CFLAGS="$xorg_testset_save_CFLAGS"
5482
5483 eval supported=\$$cacheid
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5485 printf "%s\n" "$supported" >&6; }
5486 if test "$supported" = "yes" ; then
5487 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5488 found="yes"
5489 fi
5490 fi
5491
5492 if test $found = "no" ; then
5493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495 fi
5496
5497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499 fi
5500
5501 CFLAGS="$CFLAGS -Wformat"
5502
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5504 printf %s "checking if $CC supports -Wformat... " >&6; }
5505 cacheid=xorg_cv_cc_flag__Wformat
5506 if eval test \${$cacheid+y}
5507 then :
5508 printf %s "(cached) " >&6
5509 else $as_nop
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 int i;
5513 int
5514 main (void)
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_c_try_link "$LINENO"
5522 then :
5523 eval $cacheid=yes
5524 else $as_nop
5525 eval $cacheid=no
5526 fi
5527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5528 conftest$ac_exeext conftest.$ac_ext
5529 fi
5530
5531
5532 CFLAGS="$xorg_testset_save_CFLAGS"
5533
5534 eval supported=\$$cacheid
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5536 printf "%s\n" "$supported" >&6; }
5537 if test "$supported" = "yes" ; then
5538 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5539 found="yes"
5540 fi
5541 fi
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 xorg_testset_save_CFLAGS="$CFLAGS"
5560
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5565 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else $as_nop
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"
5574 then :
5575 xorg_cv_cc_flag_unknown_warning_option=yes
5576 else $as_nop
5577 xorg_cv_cc_flag_unknown_warning_option=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5580 fi
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5584 CFLAGS="$xorg_testset_save_CFLAGS"
5585 fi
5586
5587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 fi
5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5594 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"
5603 then :
5604 xorg_cv_cc_flag_unused_command_line_argument=yes
5605 else $as_nop
5606 xorg_cv_cc_flag_unused_command_line_argument=no
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5609 fi
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5613 CFLAGS="$xorg_testset_save_CFLAGS"
5614 fi
5615
5616 found="no"
5617
5618 if test $found = "no" ; then
5619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621 fi
5622
5623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5625 fi
5626
5627 CFLAGS="$CFLAGS -Wstrict-prototypes"
5628
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5630 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5631 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5632 if eval test \${$cacheid+y}
5633 then :
5634 printf %s "(cached) " >&6
5635 else $as_nop
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 int i;
5639 int
5640 main (void)
5641 {
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"
5648 then :
5649 eval $cacheid=yes
5650 else $as_nop
5651 eval $cacheid=no
5652 fi
5653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5654 conftest$ac_exeext conftest.$ac_ext
5655 fi
5656
5657
5658 CFLAGS="$xorg_testset_save_CFLAGS"
5659
5660 eval supported=\$$cacheid
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5662 printf "%s\n" "$supported" >&6; }
5663 if test "$supported" = "yes" ; then
5664 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5665 found="yes"
5666 fi
5667 fi
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 xorg_testset_save_CFLAGS="$CFLAGS"
5684
5685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5689 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else $as_nop
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 int i;
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"
5698 then :
5699 xorg_cv_cc_flag_unknown_warning_option=yes
5700 else $as_nop
5701 xorg_cv_cc_flag_unknown_warning_option=no
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5704 fi
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5708 CFLAGS="$xorg_testset_save_CFLAGS"
5709 fi
5710
5711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5714 fi
5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5718 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5726 if ac_fn_c_try_compile "$LINENO"
5727 then :
5728 xorg_cv_cc_flag_unused_command_line_argument=yes
5729 else $as_nop
5730 xorg_cv_cc_flag_unused_command_line_argument=no
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5733 fi
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5737 CFLAGS="$xorg_testset_save_CFLAGS"
5738 fi
5739
5740 found="no"
5741
5742 if test $found = "no" ; then
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 fi
5746
5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5749 fi
5750
5751 CFLAGS="$CFLAGS -Wmissing-prototypes"
5752
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5754 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5755 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5756 if eval test \${$cacheid+y}
5757 then :
5758 printf %s "(cached) " >&6
5759 else $as_nop
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 int
5764 main (void)
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_link "$LINENO"
5772 then :
5773 eval $cacheid=yes
5774 else $as_nop
5775 eval $cacheid=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5778 conftest$ac_exeext conftest.$ac_ext
5779 fi
5780
5781
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783
5784 eval supported=\$$cacheid
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5786 printf "%s\n" "$supported" >&6; }
5787 if test "$supported" = "yes" ; then
5788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5789 found="yes"
5790 fi
5791 fi
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 xorg_testset_save_CFLAGS="$CFLAGS"
5808
5809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5813 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5814 then :
5815 printf %s "(cached) " >&6
5816 else $as_nop
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 int i;
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"
5822 then :
5823 xorg_cv_cc_flag_unknown_warning_option=yes
5824 else $as_nop
5825 xorg_cv_cc_flag_unknown_warning_option=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5828 fi
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5832 CFLAGS="$xorg_testset_save_CFLAGS"
5833 fi
5834
5835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5838 fi
5839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5842 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"
5851 then :
5852 xorg_cv_cc_flag_unused_command_line_argument=yes
5853 else $as_nop
5854 xorg_cv_cc_flag_unused_command_line_argument=no
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5857 fi
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5861 CFLAGS="$xorg_testset_save_CFLAGS"
5862 fi
5863
5864 found="no"
5865
5866 if test $found = "no" ; then
5867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869 fi
5870
5871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873 fi
5874
5875 CFLAGS="$CFLAGS -Wnested-externs"
5876
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5878 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5879 cacheid=xorg_cv_cc_flag__Wnested_externs
5880 if eval test \${$cacheid+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else $as_nop
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 int i;
5887 int
5888 main (void)
5889 {
5890
5891 ;
5892 return 0;
5893 }
5894 _ACEOF
5895 if ac_fn_c_try_link "$LINENO"
5896 then :
5897 eval $cacheid=yes
5898 else $as_nop
5899 eval $cacheid=no
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5902 conftest$ac_exeext conftest.$ac_ext
5903 fi
5904
5905
5906 CFLAGS="$xorg_testset_save_CFLAGS"
5907
5908 eval supported=\$$cacheid
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5910 printf "%s\n" "$supported" >&6; }
5911 if test "$supported" = "yes" ; then
5912 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5913 found="yes"
5914 fi
5915 fi
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 xorg_testset_save_CFLAGS="$CFLAGS"
5932
5933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5937 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5938 then :
5939 printf %s "(cached) " >&6
5940 else $as_nop
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 int i;
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"
5946 then :
5947 xorg_cv_cc_flag_unknown_warning_option=yes
5948 else $as_nop
5949 xorg_cv_cc_flag_unknown_warning_option=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5952 fi
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5956 CFLAGS="$xorg_testset_save_CFLAGS"
5957 fi
5958
5959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962 fi
5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5966 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5974 if ac_fn_c_try_compile "$LINENO"
5975 then :
5976 xorg_cv_cc_flag_unused_command_line_argument=yes
5977 else $as_nop
5978 xorg_cv_cc_flag_unused_command_line_argument=no
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5981 fi
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5985 CFLAGS="$xorg_testset_save_CFLAGS"
5986 fi
5987
5988 found="no"
5989
5990 if test $found = "no" ; then
5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994
5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997 fi
5998
5999 CFLAGS="$CFLAGS -Wbad-function-cast"
6000
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6002 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6003 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6004 if eval test \${$cacheid+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 int i;
6011 int
6012 main (void)
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"
6020 then :
6021 eval $cacheid=yes
6022 else $as_nop
6023 eval $cacheid=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6026 conftest$ac_exeext conftest.$ac_ext
6027 fi
6028
6029
6030 CFLAGS="$xorg_testset_save_CFLAGS"
6031
6032 eval supported=\$$cacheid
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6034 printf "%s\n" "$supported" >&6; }
6035 if test "$supported" = "yes" ; then
6036 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6037 found="yes"
6038 fi
6039 fi
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 xorg_testset_save_CFLAGS="$CFLAGS"
6056
6057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6060 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6061 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6062 then :
6063 printf %s "(cached) " >&6
6064 else $as_nop
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 int i;
6068 _ACEOF
6069 if ac_fn_c_try_compile "$LINENO"
6070 then :
6071 xorg_cv_cc_flag_unknown_warning_option=yes
6072 else $as_nop
6073 xorg_cv_cc_flag_unknown_warning_option=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6076 fi
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081 fi
6082
6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 fi
6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6091 then :
6092 printf %s "(cached) " >&6
6093 else $as_nop
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"
6099 then :
6100 xorg_cv_cc_flag_unused_command_line_argument=yes
6101 else $as_nop
6102 xorg_cv_cc_flag_unused_command_line_argument=no
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6109 CFLAGS="$xorg_testset_save_CFLAGS"
6110 fi
6111
6112 found="no"
6113
6114 if test $found = "no" ; then
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121 fi
6122
6123 CFLAGS="$CFLAGS -Wold-style-definition"
6124
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6126 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6127 cacheid=xorg_cv_cc_flag__Wold_style_definition
6128 if eval test \${$cacheid+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else $as_nop
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 int i;
6135 int
6136 main (void)
6137 {
6138
6139 ;
6140 return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_link "$LINENO"
6144 then :
6145 eval $cacheid=yes
6146 else $as_nop
6147 eval $cacheid=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6150 conftest$ac_exeext conftest.$ac_ext
6151 fi
6152
6153
6154 CFLAGS="$xorg_testset_save_CFLAGS"
6155
6156 eval supported=\$$cacheid
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6158 printf "%s\n" "$supported" >&6; }
6159 if test "$supported" = "yes" ; then
6160 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6161 found="yes"
6162 fi
6163 fi
6164
6165 if test $found = "no" ; then
6166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168 fi
6169
6170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6172 fi
6173
6174 CFLAGS="$CFLAGS -fd"
6175
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6177 printf %s "checking if $CC supports -fd... " >&6; }
6178 cacheid=xorg_cv_cc_flag__fd
6179 if eval test \${$cacheid+y}
6180 then :
6181 printf %s "(cached) " >&6
6182 else $as_nop
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 int i;
6186 int
6187 main (void)
6188 {
6189
6190 ;
6191 return 0;
6192 }
6193 _ACEOF
6194 if ac_fn_c_try_link "$LINENO"
6195 then :
6196 eval $cacheid=yes
6197 else $as_nop
6198 eval $cacheid=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6201 conftest$ac_exeext conftest.$ac_ext
6202 fi
6203
6204
6205 CFLAGS="$xorg_testset_save_CFLAGS"
6206
6207 eval supported=\$$cacheid
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6209 printf "%s\n" "$supported" >&6; }
6210 if test "$supported" = "yes" ; then
6211 BASE_CFLAGS="$BASE_CFLAGS -fd"
6212 found="yes"
6213 fi
6214 fi
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 xorg_testset_save_CFLAGS="$CFLAGS"
6231
6232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else $as_nop
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 int i;
6243 _ACEOF
6244 if ac_fn_c_try_compile "$LINENO"
6245 then :
6246 xorg_cv_cc_flag_unknown_warning_option=yes
6247 else $as_nop
6248 xorg_cv_cc_flag_unknown_warning_option=no
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6251 fi
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6255 CFLAGS="$xorg_testset_save_CFLAGS"
6256 fi
6257
6258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261 fi
6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6266 then :
6267 printf %s "(cached) " >&6
6268 else $as_nop
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 int i;
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"
6274 then :
6275 xorg_cv_cc_flag_unused_command_line_argument=yes
6276 else $as_nop
6277 xorg_cv_cc_flag_unused_command_line_argument=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6280 fi
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6284 CFLAGS="$xorg_testset_save_CFLAGS"
6285 fi
6286
6287 found="no"
6288
6289 if test $found = "no" ; then
6290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292 fi
6293
6294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6296 fi
6297
6298 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6299
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6301 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6302 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6303 if eval test \${$cacheid+y}
6304 then :
6305 printf %s "(cached) " >&6
6306 else $as_nop
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 int i;
6310 int
6311 main (void)
6312 {
6313
6314 ;
6315 return 0;
6316 }
6317 _ACEOF
6318 if ac_fn_c_try_link "$LINENO"
6319 then :
6320 eval $cacheid=yes
6321 else $as_nop
6322 eval $cacheid=no
6323 fi
6324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6325 conftest$ac_exeext conftest.$ac_ext
6326 fi
6327
6328
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330
6331 eval supported=\$$cacheid
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6333 printf "%s\n" "$supported" >&6; }
6334 if test "$supported" = "yes" ; then
6335 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6336 found="yes"
6337 fi
6338 fi
6339
6340
6341
6342
6343
6344 # This chunk adds additional warnings that could catch undesired effects.
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 xorg_testset_save_CFLAGS="$CFLAGS"
6359
6360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6364 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6365 then :
6366 printf %s "(cached) " >&6
6367 else $as_nop
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6370 int i;
6371 _ACEOF
6372 if ac_fn_c_try_compile "$LINENO"
6373 then :
6374 xorg_cv_cc_flag_unknown_warning_option=yes
6375 else $as_nop
6376 xorg_cv_cc_flag_unknown_warning_option=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6379 fi
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6383 CFLAGS="$xorg_testset_save_CFLAGS"
6384 fi
6385
6386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389 fi
6390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6393 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6401 if ac_fn_c_try_compile "$LINENO"
6402 then :
6403 xorg_cv_cc_flag_unused_command_line_argument=yes
6404 else $as_nop
6405 xorg_cv_cc_flag_unused_command_line_argument=no
6406 fi
6407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6408 fi
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6412 CFLAGS="$xorg_testset_save_CFLAGS"
6413 fi
6414
6415 found="no"
6416
6417 if test $found = "no" ; then
6418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6420 fi
6421
6422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424 fi
6425
6426 CFLAGS="$CFLAGS -Wunused"
6427
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6429 printf %s "checking if $CC supports -Wunused... " >&6; }
6430 cacheid=xorg_cv_cc_flag__Wunused
6431 if eval test \${$cacheid+y}
6432 then :
6433 printf %s "(cached) " >&6
6434 else $as_nop
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 int i;
6438 int
6439 main (void)
6440 {
6441
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_link "$LINENO"
6447 then :
6448 eval $cacheid=yes
6449 else $as_nop
6450 eval $cacheid=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6453 conftest$ac_exeext conftest.$ac_ext
6454 fi
6455
6456
6457 CFLAGS="$xorg_testset_save_CFLAGS"
6458
6459 eval supported=\$$cacheid
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6461 printf "%s\n" "$supported" >&6; }
6462 if test "$supported" = "yes" ; then
6463 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6464 found="yes"
6465 fi
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482 xorg_testset_save_CFLAGS="$CFLAGS"
6483
6484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6488 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6489 then :
6490 printf %s "(cached) " >&6
6491 else $as_nop
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 int i;
6495 _ACEOF
6496 if ac_fn_c_try_compile "$LINENO"
6497 then :
6498 xorg_cv_cc_flag_unknown_warning_option=yes
6499 else $as_nop
6500 xorg_cv_cc_flag_unknown_warning_option=no
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6503 fi
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6505 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6507 CFLAGS="$xorg_testset_save_CFLAGS"
6508 fi
6509
6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513 fi
6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6516 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6517 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"
6526 then :
6527 xorg_cv_cc_flag_unused_command_line_argument=yes
6528 else $as_nop
6529 xorg_cv_cc_flag_unused_command_line_argument=no
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6532 fi
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6534 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6536 CFLAGS="$xorg_testset_save_CFLAGS"
6537 fi
6538
6539 found="no"
6540
6541 if test $found = "no" ; then
6542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6544 fi
6545
6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6548 fi
6549
6550 CFLAGS="$CFLAGS -Wuninitialized"
6551
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6553 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6554 cacheid=xorg_cv_cc_flag__Wuninitialized
6555 if eval test \${$cacheid+y}
6556 then :
6557 printf %s "(cached) " >&6
6558 else $as_nop
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 int
6563 main (void)
6564 {
6565
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_link "$LINENO"
6571 then :
6572 eval $cacheid=yes
6573 else $as_nop
6574 eval $cacheid=no
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6577 conftest$ac_exeext conftest.$ac_ext
6578 fi
6579
6580
6581 CFLAGS="$xorg_testset_save_CFLAGS"
6582
6583 eval supported=\$$cacheid
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6585 printf "%s\n" "$supported" >&6; }
6586 if test "$supported" = "yes" ; then
6587 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6588 found="yes"
6589 fi
6590 fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606 xorg_testset_save_CFLAGS="$CFLAGS"
6607
6608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6611 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6612 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6613 then :
6614 printf %s "(cached) " >&6
6615 else $as_nop
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 int i;
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"
6621 then :
6622 xorg_cv_cc_flag_unknown_warning_option=yes
6623 else $as_nop
6624 xorg_cv_cc_flag_unknown_warning_option=no
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6627 fi
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6631 CFLAGS="$xorg_testset_save_CFLAGS"
6632 fi
6633
6634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637 fi
6638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6641 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6649 if ac_fn_c_try_compile "$LINENO"
6650 then :
6651 xorg_cv_cc_flag_unused_command_line_argument=yes
6652 else $as_nop
6653 xorg_cv_cc_flag_unused_command_line_argument=no
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6656 fi
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6658 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6660 CFLAGS="$xorg_testset_save_CFLAGS"
6661 fi
6662
6663 found="no"
6664
6665 if test $found = "no" ; then
6666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6668 fi
6669
6670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672 fi
6673
6674 CFLAGS="$CFLAGS -Wshadow"
6675
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6677 printf %s "checking if $CC supports -Wshadow... " >&6; }
6678 cacheid=xorg_cv_cc_flag__Wshadow
6679 if eval test \${$cacheid+y}
6680 then :
6681 printf %s "(cached) " >&6
6682 else $as_nop
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 int
6687 main (void)
6688 {
6689
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"
6695 then :
6696 eval $cacheid=yes
6697 else $as_nop
6698 eval $cacheid=no
6699 fi
6700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6701 conftest$ac_exeext conftest.$ac_ext
6702 fi
6703
6704
6705 CFLAGS="$xorg_testset_save_CFLAGS"
6706
6707 eval supported=\$$cacheid
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6709 printf "%s\n" "$supported" >&6; }
6710 if test "$supported" = "yes" ; then
6711 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6712 found="yes"
6713 fi
6714 fi
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 xorg_testset_save_CFLAGS="$CFLAGS"
6731
6732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6736 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6737 then :
6738 printf %s "(cached) " >&6
6739 else $as_nop
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 int i;
6743 _ACEOF
6744 if ac_fn_c_try_compile "$LINENO"
6745 then :
6746 xorg_cv_cc_flag_unknown_warning_option=yes
6747 else $as_nop
6748 xorg_cv_cc_flag_unknown_warning_option=no
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6751 fi
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6753 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6755 CFLAGS="$xorg_testset_save_CFLAGS"
6756 fi
6757
6758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6761 fi
6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6764 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6765 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"
6774 then :
6775 xorg_cv_cc_flag_unused_command_line_argument=yes
6776 else $as_nop
6777 xorg_cv_cc_flag_unused_command_line_argument=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6780 fi
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6782 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6784 CFLAGS="$xorg_testset_save_CFLAGS"
6785 fi
6786
6787 found="no"
6788
6789 if test $found = "no" ; then
6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6792 fi
6793
6794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6796 fi
6797
6798 CFLAGS="$CFLAGS -Wmissing-noreturn"
6799
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6801 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6802 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6803 if eval test \${$cacheid+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else $as_nop
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 int i;
6810 int
6811 main (void)
6812 {
6813
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"
6819 then :
6820 eval $cacheid=yes
6821 else $as_nop
6822 eval $cacheid=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6825 conftest$ac_exeext conftest.$ac_ext
6826 fi
6827
6828
6829 CFLAGS="$xorg_testset_save_CFLAGS"
6830
6831 eval supported=\$$cacheid
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6833 printf "%s\n" "$supported" >&6; }
6834 if test "$supported" = "yes" ; then
6835 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6836 found="yes"
6837 fi
6838 fi
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 xorg_testset_save_CFLAGS="$CFLAGS"
6855
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6859 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6860 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else $as_nop
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 int i;
6867 _ACEOF
6868 if ac_fn_c_try_compile "$LINENO"
6869 then :
6870 xorg_cv_cc_flag_unknown_warning_option=yes
6871 else $as_nop
6872 xorg_cv_cc_flag_unknown_warning_option=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6875 fi
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6877 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6879 CFLAGS="$xorg_testset_save_CFLAGS"
6880 fi
6881
6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885 fi
6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6888 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6889 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"
6898 then :
6899 xorg_cv_cc_flag_unused_command_line_argument=yes
6900 else $as_nop
6901 xorg_cv_cc_flag_unused_command_line_argument=no
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6904 fi
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6908 CFLAGS="$xorg_testset_save_CFLAGS"
6909 fi
6910
6911 found="no"
6912
6913 if test $found = "no" ; then
6914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6916 fi
6917
6918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6920 fi
6921
6922 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6923
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6925 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6926 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6927 if eval test \${$cacheid+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else $as_nop
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 int
6935 main (void)
6936 {
6937
6938 ;
6939 return 0;
6940 }
6941 _ACEOF
6942 if ac_fn_c_try_link "$LINENO"
6943 then :
6944 eval $cacheid=yes
6945 else $as_nop
6946 eval $cacheid=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6949 conftest$ac_exeext conftest.$ac_ext
6950 fi
6951
6952
6953 CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955 eval supported=\$$cacheid
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957 printf "%s\n" "$supported" >&6; }
6958 if test "$supported" = "yes" ; then
6959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6960 found="yes"
6961 fi
6962 fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 xorg_testset_save_CFLAGS="$CFLAGS"
6979
6980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6985 then :
6986 printf %s "(cached) " >&6
6987 else $as_nop
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 int i;
6991 _ACEOF
6992 if ac_fn_c_try_compile "$LINENO"
6993 then :
6994 xorg_cv_cc_flag_unknown_warning_option=yes
6995 else $as_nop
6996 xorg_cv_cc_flag_unknown_warning_option=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6999 fi
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7001 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7003 CFLAGS="$xorg_testset_save_CFLAGS"
7004 fi
7005
7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009 fi
7010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7013 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7021 if ac_fn_c_try_compile "$LINENO"
7022 then :
7023 xorg_cv_cc_flag_unused_command_line_argument=yes
7024 else $as_nop
7025 xorg_cv_cc_flag_unused_command_line_argument=no
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7028 fi
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7030 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7032 CFLAGS="$xorg_testset_save_CFLAGS"
7033 fi
7034
7035 found="no"
7036
7037 if test $found = "no" ; then
7038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040 fi
7041
7042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7044 fi
7045
7046 CFLAGS="$CFLAGS -Wredundant-decls"
7047
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7049 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7050 cacheid=xorg_cv_cc_flag__Wredundant_decls
7051 if eval test \${$cacheid+y}
7052 then :
7053 printf %s "(cached) " >&6
7054 else $as_nop
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 int i;
7058 int
7059 main (void)
7060 {
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 if ac_fn_c_try_link "$LINENO"
7067 then :
7068 eval $cacheid=yes
7069 else $as_nop
7070 eval $cacheid=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7073 conftest$ac_exeext conftest.$ac_ext
7074 fi
7075
7076
7077 CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079 eval supported=\$$cacheid
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081 printf "%s\n" "$supported" >&6; }
7082 if test "$supported" = "yes" ; then
7083 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7084 found="yes"
7085 fi
7086 fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 xorg_testset_save_CFLAGS="$CFLAGS"
7103
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7108 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7109 then :
7110 printf %s "(cached) " >&6
7111 else $as_nop
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 _ACEOF
7116 if ac_fn_c_try_compile "$LINENO"
7117 then :
7118 xorg_cv_cc_flag_unknown_warning_option=yes
7119 else $as_nop
7120 xorg_cv_cc_flag_unknown_warning_option=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7123 fi
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7125 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7127 CFLAGS="$xorg_testset_save_CFLAGS"
7128 fi
7129
7130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133 fi
7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7136 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7137 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7138 then :
7139 printf %s "(cached) " >&6
7140 else $as_nop
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"
7146 then :
7147 xorg_cv_cc_flag_unused_command_line_argument=yes
7148 else $as_nop
7149 xorg_cv_cc_flag_unused_command_line_argument=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7152 fi
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 found="no"
7160
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168 fi
7169
7170 CFLAGS="$CFLAGS -Wlogical-op"
7171
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7173 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7174 cacheid=xorg_cv_cc_flag__Wlogical_op
7175 if eval test \${$cacheid+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 int i;
7182 int
7183 main (void)
7184 {
7185
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_link "$LINENO"
7191 then :
7192 eval $cacheid=yes
7193 else $as_nop
7194 eval $cacheid=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7197 conftest$ac_exeext conftest.$ac_ext
7198 fi
7199
7200
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202
7203 eval supported=\$$cacheid
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205 printf "%s\n" "$supported" >&6; }
7206 if test "$supported" = "yes" ; then
7207 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7208 found="yes"
7209 fi
7210 fi
7211
7212
7213
7214 # These are currently disabled because they are noisy. They will be enabled
7215 # in the future once the codebase is sufficiently modernized to silence
7216 # them. For now, I don't want them to drown out the other warnings.
7217 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7218 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7219 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7220
7221 # Turn some warnings into errors, so we don't accidently get successful builds
7222 # when there are problems that should be fixed.
7223
7224 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 xorg_testset_save_CFLAGS="$CFLAGS"
7239
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7245 then :
7246 printf %s "(cached) " >&6
7247 else $as_nop
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 int i;
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"
7253 then :
7254 xorg_cv_cc_flag_unknown_warning_option=yes
7255 else $as_nop
7256 xorg_cv_cc_flag_unknown_warning_option=no
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7259 fi
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7264 fi
7265
7266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 fi
7270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7274 then :
7275 printf %s "(cached) " >&6
7276 else $as_nop
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"
7282 then :
7283 xorg_cv_cc_flag_unused_command_line_argument=yes
7284 else $as_nop
7285 xorg_cv_cc_flag_unused_command_line_argument=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7288 fi
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7292 CFLAGS="$xorg_testset_save_CFLAGS"
7293 fi
7294
7295 found="no"
7296
7297 if test $found = "no" ; then
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 fi
7301
7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7304 fi
7305
7306 CFLAGS="$CFLAGS -Werror=implicit"
7307
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7309 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7310 cacheid=xorg_cv_cc_flag__Werror_implicit
7311 if eval test \${$cacheid+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else $as_nop
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int i;
7318 int
7319 main (void)
7320 {
7321
7322 ;
7323 return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_c_try_link "$LINENO"
7327 then :
7328 eval $cacheid=yes
7329 else $as_nop
7330 eval $cacheid=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7333 conftest$ac_exeext conftest.$ac_ext
7334 fi
7335
7336
7337 CFLAGS="$xorg_testset_save_CFLAGS"
7338
7339 eval supported=\$$cacheid
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341 printf "%s\n" "$supported" >&6; }
7342 if test "$supported" = "yes" ; then
7343 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7344 found="yes"
7345 fi
7346 fi
7347
7348 if test $found = "no" ; then
7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351 fi
7352
7353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355 fi
7356
7357 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7358
7359 { 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
7360 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7361 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7362 if eval test \${$cacheid+y}
7363 then :
7364 printf %s "(cached) " >&6
7365 else $as_nop
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 int i;
7369 int
7370 main (void)
7371 {
7372
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"
7378 then :
7379 eval $cacheid=yes
7380 else $as_nop
7381 eval $cacheid=no
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7384 conftest$ac_exeext conftest.$ac_ext
7385 fi
7386
7387
7388 CFLAGS="$xorg_testset_save_CFLAGS"
7389
7390 eval supported=\$$cacheid
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7392 printf "%s\n" "$supported" >&6; }
7393 if test "$supported" = "yes" ; then
7394 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7395 found="yes"
7396 fi
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 xorg_testset_save_CFLAGS="$CFLAGS"
7414
7415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7418 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7419 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7420 then :
7421 printf %s "(cached) " >&6
7422 else $as_nop
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 int i;
7426 _ACEOF
7427 if ac_fn_c_try_compile "$LINENO"
7428 then :
7429 xorg_cv_cc_flag_unknown_warning_option=yes
7430 else $as_nop
7431 xorg_cv_cc_flag_unknown_warning_option=no
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7434 fi
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7436 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7438 CFLAGS="$xorg_testset_save_CFLAGS"
7439 fi
7440
7441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444 fi
7445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7447 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7448 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"
7457 then :
7458 xorg_cv_cc_flag_unused_command_line_argument=yes
7459 else $as_nop
7460 xorg_cv_cc_flag_unused_command_line_argument=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7463 fi
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7465 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7467 CFLAGS="$xorg_testset_save_CFLAGS"
7468 fi
7469
7470 found="no"
7471
7472 if test $found = "no" ; then
7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475 fi
7476
7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7479 fi
7480
7481 CFLAGS="$CFLAGS -Werror=nonnull"
7482
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7484 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7485 cacheid=xorg_cv_cc_flag__Werror_nonnull
7486 if eval test \${$cacheid+y}
7487 then :
7488 printf %s "(cached) " >&6
7489 else $as_nop
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 int i;
7493 int
7494 main (void)
7495 {
7496
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"
7502 then :
7503 eval $cacheid=yes
7504 else $as_nop
7505 eval $cacheid=no
7506 fi
7507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7508 conftest$ac_exeext conftest.$ac_ext
7509 fi
7510
7511
7512 CFLAGS="$xorg_testset_save_CFLAGS"
7513
7514 eval supported=\$$cacheid
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7516 printf "%s\n" "$supported" >&6; }
7517 if test "$supported" = "yes" ; then
7518 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7519 found="yes"
7520 fi
7521 fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 xorg_testset_save_CFLAGS="$CFLAGS"
7538
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7542 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7543 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else $as_nop
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 int i;
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"
7552 then :
7553 xorg_cv_cc_flag_unknown_warning_option=yes
7554 else $as_nop
7555 xorg_cv_cc_flag_unknown_warning_option=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7558 fi
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7560 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7562 CFLAGS="$xorg_testset_save_CFLAGS"
7563 fi
7564
7565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568 fi
7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7571 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7572 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"
7581 then :
7582 xorg_cv_cc_flag_unused_command_line_argument=yes
7583 else $as_nop
7584 xorg_cv_cc_flag_unused_command_line_argument=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7587 fi
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591 CFLAGS="$xorg_testset_save_CFLAGS"
7592 fi
7593
7594 found="no"
7595
7596 if test $found = "no" ; then
7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 fi
7600
7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603 fi
7604
7605 CFLAGS="$CFLAGS -Werror=init-self"
7606
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7608 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7609 cacheid=xorg_cv_cc_flag__Werror_init_self
7610 if eval test \${$cacheid+y}
7611 then :
7612 printf %s "(cached) " >&6
7613 else $as_nop
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 int i;
7617 int
7618 main (void)
7619 {
7620
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_link "$LINENO"
7626 then :
7627 eval $cacheid=yes
7628 else $as_nop
7629 eval $cacheid=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7632 conftest$ac_exeext conftest.$ac_ext
7633 fi
7634
7635
7636 CFLAGS="$xorg_testset_save_CFLAGS"
7637
7638 eval supported=\$$cacheid
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7640 printf "%s\n" "$supported" >&6; }
7641 if test "$supported" = "yes" ; then
7642 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7643 found="yes"
7644 fi
7645 fi
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661 xorg_testset_save_CFLAGS="$CFLAGS"
7662
7663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7667 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7668 then :
7669 printf %s "(cached) " >&6
7670 else $as_nop
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 int i;
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"
7676 then :
7677 xorg_cv_cc_flag_unknown_warning_option=yes
7678 else $as_nop
7679 xorg_cv_cc_flag_unknown_warning_option=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7682 fi
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7686 CFLAGS="$xorg_testset_save_CFLAGS"
7687 fi
7688
7689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692 fi
7693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7696 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"
7705 then :
7706 xorg_cv_cc_flag_unused_command_line_argument=yes
7707 else $as_nop
7708 xorg_cv_cc_flag_unused_command_line_argument=no
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7711 fi
7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7715 CFLAGS="$xorg_testset_save_CFLAGS"
7716 fi
7717
7718 found="no"
7719
7720 if test $found = "no" ; then
7721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723 fi
7724
7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727 fi
7728
7729 CFLAGS="$CFLAGS -Werror=main"
7730
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7732 printf %s "checking if $CC supports -Werror=main... " >&6; }
7733 cacheid=xorg_cv_cc_flag__Werror_main
7734 if eval test \${$cacheid+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else $as_nop
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 int i;
7741 int
7742 main (void)
7743 {
7744
7745 ;
7746 return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_link "$LINENO"
7750 then :
7751 eval $cacheid=yes
7752 else $as_nop
7753 eval $cacheid=no
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7756 conftest$ac_exeext conftest.$ac_ext
7757 fi
7758
7759
7760 CFLAGS="$xorg_testset_save_CFLAGS"
7761
7762 eval supported=\$$cacheid
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7764 printf "%s\n" "$supported" >&6; }
7765 if test "$supported" = "yes" ; then
7766 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7767 found="yes"
7768 fi
7769 fi
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 xorg_testset_save_CFLAGS="$CFLAGS"
7786
7787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7791 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7792 then :
7793 printf %s "(cached) " >&6
7794 else $as_nop
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 int i;
7798 _ACEOF
7799 if ac_fn_c_try_compile "$LINENO"
7800 then :
7801 xorg_cv_cc_flag_unknown_warning_option=yes
7802 else $as_nop
7803 xorg_cv_cc_flag_unknown_warning_option=no
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7808 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7810 CFLAGS="$xorg_testset_save_CFLAGS"
7811 fi
7812
7813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7816 fi
7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7819 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7820 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7828 if ac_fn_c_try_compile "$LINENO"
7829 then :
7830 xorg_cv_cc_flag_unused_command_line_argument=yes
7831 else $as_nop
7832 xorg_cv_cc_flag_unused_command_line_argument=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7835 fi
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7837 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7839 CFLAGS="$xorg_testset_save_CFLAGS"
7840 fi
7841
7842 found="no"
7843
7844 if test $found = "no" ; then
7845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847 fi
7848
7849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7851 fi
7852
7853 CFLAGS="$CFLAGS -Werror=missing-braces"
7854
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7856 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7857 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7858 if eval test \${$cacheid+y}
7859 then :
7860 printf %s "(cached) " >&6
7861 else $as_nop
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int i;
7865 int
7866 main (void)
7867 {
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_link "$LINENO"
7874 then :
7875 eval $cacheid=yes
7876 else $as_nop
7877 eval $cacheid=no
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7880 conftest$ac_exeext conftest.$ac_ext
7881 fi
7882
7883
7884 CFLAGS="$xorg_testset_save_CFLAGS"
7885
7886 eval supported=\$$cacheid
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7888 printf "%s\n" "$supported" >&6; }
7889 if test "$supported" = "yes" ; then
7890 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7891 found="yes"
7892 fi
7893 fi
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909 xorg_testset_save_CFLAGS="$CFLAGS"
7910
7911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7914 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7915 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7916 then :
7917 printf %s "(cached) " >&6
7918 else $as_nop
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 int i;
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"
7924 then :
7925 xorg_cv_cc_flag_unknown_warning_option=yes
7926 else $as_nop
7927 xorg_cv_cc_flag_unknown_warning_option=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7930 fi
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7932 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7934 CFLAGS="$xorg_testset_save_CFLAGS"
7935 fi
7936
7937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940 fi
7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7943 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7944 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"
7953 then :
7954 xorg_cv_cc_flag_unused_command_line_argument=yes
7955 else $as_nop
7956 xorg_cv_cc_flag_unused_command_line_argument=no
7957 fi
7958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7959 fi
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7963 CFLAGS="$xorg_testset_save_CFLAGS"
7964 fi
7965
7966 found="no"
7967
7968 if test $found = "no" ; then
7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971 fi
7972
7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975 fi
7976
7977 CFLAGS="$CFLAGS -Werror=sequence-point"
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7980 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7981 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7982 if eval test \${$cacheid+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else $as_nop
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 int
7990 main (void)
7991 {
7992
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 if ac_fn_c_try_link "$LINENO"
7998 then :
7999 eval $cacheid=yes
8000 else $as_nop
8001 eval $cacheid=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8004 conftest$ac_exeext conftest.$ac_ext
8005 fi
8006
8007
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010 eval supported=\$$cacheid
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012 printf "%s\n" "$supported" >&6; }
8013 if test "$supported" = "yes" ; then
8014 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8015 found="yes"
8016 fi
8017 fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else $as_nop
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"
8048 then :
8049 xorg_cv_cc_flag_unknown_warning_option=yes
8050 else $as_nop
8051 xorg_cv_cc_flag_unknown_warning_option=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8054 fi
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059 fi
8060
8061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064 fi
8065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8069 then :
8070 printf %s "(cached) " >&6
8071 else $as_nop
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 int i;
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"
8077 then :
8078 xorg_cv_cc_flag_unused_command_line_argument=yes
8079 else $as_nop
8080 xorg_cv_cc_flag_unused_command_line_argument=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8083 fi
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087 CFLAGS="$xorg_testset_save_CFLAGS"
8088 fi
8089
8090 found="no"
8091
8092 if test $found = "no" ; then
8093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099 fi
8100
8101 CFLAGS="$CFLAGS -Werror=return-type"
8102
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8104 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8105 cacheid=xorg_cv_cc_flag__Werror_return_type
8106 if eval test \${$cacheid+y}
8107 then :
8108 printf %s "(cached) " >&6
8109 else $as_nop
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main (void)
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"
8122 then :
8123 eval $cacheid=yes
8124 else $as_nop
8125 eval $cacheid=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8128 conftest$ac_exeext conftest.$ac_ext
8129 fi
8130
8131
8132 CFLAGS="$xorg_testset_save_CFLAGS"
8133
8134 eval supported=\$$cacheid
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8136 printf "%s\n" "$supported" >&6; }
8137 if test "$supported" = "yes" ; then
8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8139 found="yes"
8140 fi
8141 fi
8142
8143 if test $found = "no" ; then
8144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146 fi
8147
8148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150 fi
8151
8152 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8153
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8155 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8156 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8157 if eval test \${$cacheid+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else $as_nop
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 int
8165 main (void)
8166 {
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"
8173 then :
8174 eval $cacheid=yes
8175 else $as_nop
8176 eval $cacheid=no
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8179 conftest$ac_exeext conftest.$ac_ext
8180 fi
8181
8182
8183 CFLAGS="$xorg_testset_save_CFLAGS"
8184
8185 eval supported=\$$cacheid
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8187 printf "%s\n" "$supported" >&6; }
8188 if test "$supported" = "yes" ; then
8189 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8190 found="yes"
8191 fi
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208 xorg_testset_save_CFLAGS="$CFLAGS"
8209
8210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8213 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8214 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else $as_nop
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int i;
8221 _ACEOF
8222 if ac_fn_c_try_compile "$LINENO"
8223 then :
8224 xorg_cv_cc_flag_unknown_warning_option=yes
8225 else $as_nop
8226 xorg_cv_cc_flag_unknown_warning_option=no
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8229 fi
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8233 CFLAGS="$xorg_testset_save_CFLAGS"
8234 fi
8235
8236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8239 fi
8240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8243 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"
8252 then :
8253 xorg_cv_cc_flag_unused_command_line_argument=yes
8254 else $as_nop
8255 xorg_cv_cc_flag_unused_command_line_argument=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8258 fi
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8260 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8262 CFLAGS="$xorg_testset_save_CFLAGS"
8263 fi
8264
8265 found="no"
8266
8267 if test $found = "no" ; then
8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270 fi
8271
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274 fi
8275
8276 CFLAGS="$CFLAGS -Werror=trigraphs"
8277
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8279 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8280 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8281 if eval test \${$cacheid+y}
8282 then :
8283 printf %s "(cached) " >&6
8284 else $as_nop
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 int i;
8288 int
8289 main (void)
8290 {
8291
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"
8297 then :
8298 eval $cacheid=yes
8299 else $as_nop
8300 eval $cacheid=no
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8303 conftest$ac_exeext conftest.$ac_ext
8304 fi
8305
8306
8307 CFLAGS="$xorg_testset_save_CFLAGS"
8308
8309 eval supported=\$$cacheid
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8311 printf "%s\n" "$supported" >&6; }
8312 if test "$supported" = "yes" ; then
8313 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8314 found="yes"
8315 fi
8316 fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 xorg_testset_save_CFLAGS="$CFLAGS"
8333
8334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8339 then :
8340 printf %s "(cached) " >&6
8341 else $as_nop
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 int i;
8345 _ACEOF
8346 if ac_fn_c_try_compile "$LINENO"
8347 then :
8348 xorg_cv_cc_flag_unknown_warning_option=yes
8349 else $as_nop
8350 xorg_cv_cc_flag_unknown_warning_option=no
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8353 fi
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8357 CFLAGS="$xorg_testset_save_CFLAGS"
8358 fi
8359
8360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8363 fi
8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8367 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"
8376 then :
8377 xorg_cv_cc_flag_unused_command_line_argument=yes
8378 else $as_nop
8379 xorg_cv_cc_flag_unused_command_line_argument=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8382 fi
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8386 CFLAGS="$xorg_testset_save_CFLAGS"
8387 fi
8388
8389 found="no"
8390
8391 if test $found = "no" ; then
8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394 fi
8395
8396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8398 fi
8399
8400 CFLAGS="$CFLAGS -Werror=array-bounds"
8401
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8403 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8404 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8405 if eval test \${$cacheid+y}
8406 then :
8407 printf %s "(cached) " >&6
8408 else $as_nop
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 int i;
8412 int
8413 main (void)
8414 {
8415
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_link "$LINENO"
8421 then :
8422 eval $cacheid=yes
8423 else $as_nop
8424 eval $cacheid=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8427 conftest$ac_exeext conftest.$ac_ext
8428 fi
8429
8430
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432
8433 eval supported=\$$cacheid
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8435 printf "%s\n" "$supported" >&6; }
8436 if test "$supported" = "yes" ; then
8437 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8438 found="yes"
8439 fi
8440 fi
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456 xorg_testset_save_CFLAGS="$CFLAGS"
8457
8458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8462 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8463 then :
8464 printf %s "(cached) " >&6
8465 else $as_nop
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 int i;
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"
8471 then :
8472 xorg_cv_cc_flag_unknown_warning_option=yes
8473 else $as_nop
8474 xorg_cv_cc_flag_unknown_warning_option=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8477 fi
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8481 CFLAGS="$xorg_testset_save_CFLAGS"
8482 fi
8483
8484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8487 fi
8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8491 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"
8500 then :
8501 xorg_cv_cc_flag_unused_command_line_argument=yes
8502 else $as_nop
8503 xorg_cv_cc_flag_unused_command_line_argument=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8506 fi
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8510 CFLAGS="$xorg_testset_save_CFLAGS"
8511 fi
8512
8513 found="no"
8514
8515 if test $found = "no" ; then
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 fi
8519
8520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8522 fi
8523
8524 CFLAGS="$CFLAGS -Werror=write-strings"
8525
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8527 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8528 cacheid=xorg_cv_cc_flag__Werror_write_strings
8529 if eval test \${$cacheid+y}
8530 then :
8531 printf %s "(cached) " >&6
8532 else $as_nop
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 int i;
8536 int
8537 main (void)
8538 {
8539
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"
8545 then :
8546 eval $cacheid=yes
8547 else $as_nop
8548 eval $cacheid=no
8549 fi
8550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8551 conftest$ac_exeext conftest.$ac_ext
8552 fi
8553
8554
8555 CFLAGS="$xorg_testset_save_CFLAGS"
8556
8557 eval supported=\$$cacheid
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8559 printf "%s\n" "$supported" >&6; }
8560 if test "$supported" = "yes" ; then
8561 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8562 found="yes"
8563 fi
8564 fi
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580 xorg_testset_save_CFLAGS="$CFLAGS"
8581
8582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8585 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8586 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else $as_nop
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 int i;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"
8595 then :
8596 xorg_cv_cc_flag_unknown_warning_option=yes
8597 else $as_nop
8598 xorg_cv_cc_flag_unknown_warning_option=no
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8601 fi
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8605 CFLAGS="$xorg_testset_save_CFLAGS"
8606 fi
8607
8608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611 fi
8612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8615 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"
8624 then :
8625 xorg_cv_cc_flag_unused_command_line_argument=yes
8626 else $as_nop
8627 xorg_cv_cc_flag_unused_command_line_argument=no
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8630 fi
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8632 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8634 CFLAGS="$xorg_testset_save_CFLAGS"
8635 fi
8636
8637 found="no"
8638
8639 if test $found = "no" ; then
8640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8642 fi
8643
8644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646 fi
8647
8648 CFLAGS="$CFLAGS -Werror=address"
8649
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8651 printf %s "checking if $CC supports -Werror=address... " >&6; }
8652 cacheid=xorg_cv_cc_flag__Werror_address
8653 if eval test \${$cacheid+y}
8654 then :
8655 printf %s "(cached) " >&6
8656 else $as_nop
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 int i;
8660 int
8661 main (void)
8662 {
8663
8664 ;
8665 return 0;
8666 }
8667 _ACEOF
8668 if ac_fn_c_try_link "$LINENO"
8669 then :
8670 eval $cacheid=yes
8671 else $as_nop
8672 eval $cacheid=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681 eval supported=\$$cacheid
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683 printf "%s\n" "$supported" >&6; }
8684 if test "$supported" = "yes" ; then
8685 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8686 found="yes"
8687 fi
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8711 then :
8712 printf %s "(cached) " >&6
8713 else $as_nop
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 int i;
8717 _ACEOF
8718 if ac_fn_c_try_compile "$LINENO"
8719 then :
8720 xorg_cv_cc_flag_unknown_warning_option=yes
8721 else $as_nop
8722 xorg_cv_cc_flag_unknown_warning_option=no
8723 fi
8724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8725 fi
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8727 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8729 CFLAGS="$xorg_testset_save_CFLAGS"
8730 fi
8731
8732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735 fi
8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8740 then :
8741 printf %s "(cached) " >&6
8742 else $as_nop
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 int i;
8746 _ACEOF
8747 if ac_fn_c_try_compile "$LINENO"
8748 then :
8749 xorg_cv_cc_flag_unused_command_line_argument=yes
8750 else $as_nop
8751 xorg_cv_cc_flag_unused_command_line_argument=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8754 fi
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8758 CFLAGS="$xorg_testset_save_CFLAGS"
8759 fi
8760
8761 found="no"
8762
8763 if test $found = "no" ; then
8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766 fi
8767
8768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770 fi
8771
8772 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8773
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8775 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8776 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8777 if eval test \${$cacheid+y}
8778 then :
8779 printf %s "(cached) " >&6
8780 else $as_nop
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 int
8785 main (void)
8786 {
8787
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"
8793 then :
8794 eval $cacheid=yes
8795 else $as_nop
8796 eval $cacheid=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8799 conftest$ac_exeext conftest.$ac_ext
8800 fi
8801
8802
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804
8805 eval supported=\$$cacheid
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8807 printf "%s\n" "$supported" >&6; }
8808 if test "$supported" = "yes" ; then
8809 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8810 found="yes"
8811 fi
8812 fi
8813
8814 if test $found = "no" ; then
8815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817 fi
8818
8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8821 fi
8822
8823 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8824
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8826 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8827 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8828 if eval test \${$cacheid+y}
8829 then :
8830 printf %s "(cached) " >&6
8831 else $as_nop
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 int i;
8835 int
8836 main (void)
8837 {
8838
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_link "$LINENO"
8844 then :
8845 eval $cacheid=yes
8846 else $as_nop
8847 eval $cacheid=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8850 conftest$ac_exeext conftest.$ac_ext
8851 fi
8852
8853
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855
8856 eval supported=\$$cacheid
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8858 printf "%s\n" "$supported" >&6; }
8859 if test "$supported" = "yes" ; then
8860 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8861 found="yes"
8862 fi
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879 xorg_testset_save_CFLAGS="$CFLAGS"
8880
8881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8884 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8885 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8886 then :
8887 printf %s "(cached) " >&6
8888 else $as_nop
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 int i;
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"
8894 then :
8895 xorg_cv_cc_flag_unknown_warning_option=yes
8896 else $as_nop
8897 xorg_cv_cc_flag_unknown_warning_option=no
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8900 fi
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8902 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8904 CFLAGS="$xorg_testset_save_CFLAGS"
8905 fi
8906
8907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910 fi
8911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8913 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8914 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8915 then :
8916 printf %s "(cached) " >&6
8917 else $as_nop
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 int i;
8921 _ACEOF
8922 if ac_fn_c_try_compile "$LINENO"
8923 then :
8924 xorg_cv_cc_flag_unused_command_line_argument=yes
8925 else $as_nop
8926 xorg_cv_cc_flag_unused_command_line_argument=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8929 fi
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8931 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8933 CFLAGS="$xorg_testset_save_CFLAGS"
8934 fi
8935
8936 found="no"
8937
8938 if test $found = "no" ; then
8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 fi
8942
8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8945 fi
8946
8947 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8948
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8950 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8951 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8952 if eval test \${$cacheid+y}
8953 then :
8954 printf %s "(cached) " >&6
8955 else $as_nop
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 int i;
8959 int
8960 main (void)
8961 {
8962
8963 ;
8964 return 0;
8965 }
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"
8968 then :
8969 eval $cacheid=yes
8970 else $as_nop
8971 eval $cacheid=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi
8976
8977
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979
8980 eval supported=\$$cacheid
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8982 printf "%s\n" "$supported" >&6; }
8983 if test "$supported" = "yes" ; then
8984 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8985 found="yes"
8986 fi
8987 fi
8988
8989 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8990 else
8991 { 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
8992 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;}
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 xorg_testset_save_CFLAGS="$CFLAGS"
9007
9008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9013 then :
9014 printf %s "(cached) " >&6
9015 else $as_nop
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 int i;
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"
9021 then :
9022 xorg_cv_cc_flag_unknown_warning_option=yes
9023 else $as_nop
9024 xorg_cv_cc_flag_unknown_warning_option=no
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9027 fi
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9029 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9031 CFLAGS="$xorg_testset_save_CFLAGS"
9032 fi
9033
9034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037 fi
9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9040 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9041 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"
9050 then :
9051 xorg_cv_cc_flag_unused_command_line_argument=yes
9052 else $as_nop
9053 xorg_cv_cc_flag_unused_command_line_argument=no
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9056 fi
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9060 CFLAGS="$xorg_testset_save_CFLAGS"
9061 fi
9062
9063 found="no"
9064
9065 if test $found = "no" ; then
9066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9068 fi
9069
9070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9072 fi
9073
9074 CFLAGS="$CFLAGS -Wimplicit"
9075
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9077 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9078 cacheid=xorg_cv_cc_flag__Wimplicit
9079 if eval test \${$cacheid+y}
9080 then :
9081 printf %s "(cached) " >&6
9082 else $as_nop
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 int i;
9086 int
9087 main (void)
9088 {
9089
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"
9095 then :
9096 eval $cacheid=yes
9097 else $as_nop
9098 eval $cacheid=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9101 conftest$ac_exeext conftest.$ac_ext
9102 fi
9103
9104
9105 CFLAGS="$xorg_testset_save_CFLAGS"
9106
9107 eval supported=\$$cacheid
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9109 printf "%s\n" "$supported" >&6; }
9110 if test "$supported" = "yes" ; then
9111 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9112 found="yes"
9113 fi
9114 fi
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130 xorg_testset_save_CFLAGS="$CFLAGS"
9131
9132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9137 then :
9138 printf %s "(cached) " >&6
9139 else $as_nop
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 int i;
9143 _ACEOF
9144 if ac_fn_c_try_compile "$LINENO"
9145 then :
9146 xorg_cv_cc_flag_unknown_warning_option=yes
9147 else $as_nop
9148 xorg_cv_cc_flag_unknown_warning_option=no
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9151 fi
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9155 CFLAGS="$xorg_testset_save_CFLAGS"
9156 fi
9157
9158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161 fi
9162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9165 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9173 if ac_fn_c_try_compile "$LINENO"
9174 then :
9175 xorg_cv_cc_flag_unused_command_line_argument=yes
9176 else $as_nop
9177 xorg_cv_cc_flag_unused_command_line_argument=no
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9180 fi
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9182 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9184 CFLAGS="$xorg_testset_save_CFLAGS"
9185 fi
9186
9187 found="no"
9188
9189 if test $found = "no" ; then
9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192 fi
9193
9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9196 fi
9197
9198 CFLAGS="$CFLAGS -Wnonnull"
9199
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9201 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9202 cacheid=xorg_cv_cc_flag__Wnonnull
9203 if eval test \${$cacheid+y}
9204 then :
9205 printf %s "(cached) " >&6
9206 else $as_nop
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 int i;
9210 int
9211 main (void)
9212 {
9213
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"
9219 then :
9220 eval $cacheid=yes
9221 else $as_nop
9222 eval $cacheid=no
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9225 conftest$ac_exeext conftest.$ac_ext
9226 fi
9227
9228
9229 CFLAGS="$xorg_testset_save_CFLAGS"
9230
9231 eval supported=\$$cacheid
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9233 printf "%s\n" "$supported" >&6; }
9234 if test "$supported" = "yes" ; then
9235 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9236 found="yes"
9237 fi
9238 fi
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254 xorg_testset_save_CFLAGS="$CFLAGS"
9255
9256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9260 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9261 then :
9262 printf %s "(cached) " >&6
9263 else $as_nop
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266 int i;
9267 _ACEOF
9268 if ac_fn_c_try_compile "$LINENO"
9269 then :
9270 xorg_cv_cc_flag_unknown_warning_option=yes
9271 else $as_nop
9272 xorg_cv_cc_flag_unknown_warning_option=no
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9275 fi
9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9277 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9279 CFLAGS="$xorg_testset_save_CFLAGS"
9280 fi
9281
9282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9285 fi
9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9288 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9289 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9297 if ac_fn_c_try_compile "$LINENO"
9298 then :
9299 xorg_cv_cc_flag_unused_command_line_argument=yes
9300 else $as_nop
9301 xorg_cv_cc_flag_unused_command_line_argument=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9304 fi
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9306 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9308 CFLAGS="$xorg_testset_save_CFLAGS"
9309 fi
9310
9311 found="no"
9312
9313 if test $found = "no" ; then
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 fi
9317
9318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9320 fi
9321
9322 CFLAGS="$CFLAGS -Winit-self"
9323
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9325 printf %s "checking if $CC supports -Winit-self... " >&6; }
9326 cacheid=xorg_cv_cc_flag__Winit_self
9327 if eval test \${$cacheid+y}
9328 then :
9329 printf %s "(cached) " >&6
9330 else $as_nop
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 int i;
9334 int
9335 main (void)
9336 {
9337
9338 ;
9339 return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"
9343 then :
9344 eval $cacheid=yes
9345 else $as_nop
9346 eval $cacheid=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9349 conftest$ac_exeext conftest.$ac_ext
9350 fi
9351
9352
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354
9355 eval supported=\$$cacheid
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9357 printf "%s\n" "$supported" >&6; }
9358 if test "$supported" = "yes" ; then
9359 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9360 found="yes"
9361 fi
9362 fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378 xorg_testset_save_CFLAGS="$CFLAGS"
9379
9380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9384 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9385 then :
9386 printf %s "(cached) " >&6
9387 else $as_nop
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 int i;
9391 _ACEOF
9392 if ac_fn_c_try_compile "$LINENO"
9393 then :
9394 xorg_cv_cc_flag_unknown_warning_option=yes
9395 else $as_nop
9396 xorg_cv_cc_flag_unknown_warning_option=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9399 fi
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9401 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9403 CFLAGS="$xorg_testset_save_CFLAGS"
9404 fi
9405
9406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409 fi
9410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9413 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9421 if ac_fn_c_try_compile "$LINENO"
9422 then :
9423 xorg_cv_cc_flag_unused_command_line_argument=yes
9424 else $as_nop
9425 xorg_cv_cc_flag_unused_command_line_argument=no
9426 fi
9427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9428 fi
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9430 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9432 CFLAGS="$xorg_testset_save_CFLAGS"
9433 fi
9434
9435 found="no"
9436
9437 if test $found = "no" ; then
9438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440 fi
9441
9442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9444 fi
9445
9446 CFLAGS="$CFLAGS -Wmain"
9447
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9449 printf %s "checking if $CC supports -Wmain... " >&6; }
9450 cacheid=xorg_cv_cc_flag__Wmain
9451 if eval test \${$cacheid+y}
9452 then :
9453 printf %s "(cached) " >&6
9454 else $as_nop
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int i;
9458 int
9459 main (void)
9460 {
9461
9462 ;
9463 return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"
9467 then :
9468 eval $cacheid=yes
9469 else $as_nop
9470 eval $cacheid=no
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9473 conftest$ac_exeext conftest.$ac_ext
9474 fi
9475
9476
9477 CFLAGS="$xorg_testset_save_CFLAGS"
9478
9479 eval supported=\$$cacheid
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9481 printf "%s\n" "$supported" >&6; }
9482 if test "$supported" = "yes" ; then
9483 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9484 found="yes"
9485 fi
9486 fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 xorg_testset_save_CFLAGS="$CFLAGS"
9503
9504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9507 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9508 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9509 then :
9510 printf %s "(cached) " >&6
9511 else $as_nop
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 int i;
9515 _ACEOF
9516 if ac_fn_c_try_compile "$LINENO"
9517 then :
9518 xorg_cv_cc_flag_unknown_warning_option=yes
9519 else $as_nop
9520 xorg_cv_cc_flag_unknown_warning_option=no
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9523 fi
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9527 CFLAGS="$xorg_testset_save_CFLAGS"
9528 fi
9529
9530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9533 fi
9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9537 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9545 if ac_fn_c_try_compile "$LINENO"
9546 then :
9547 xorg_cv_cc_flag_unused_command_line_argument=yes
9548 else $as_nop
9549 xorg_cv_cc_flag_unused_command_line_argument=no
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9552 fi
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9554 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9556 CFLAGS="$xorg_testset_save_CFLAGS"
9557 fi
9558
9559 found="no"
9560
9561 if test $found = "no" ; then
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 fi
9565
9566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9568 fi
9569
9570 CFLAGS="$CFLAGS -Wmissing-braces"
9571
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9573 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9574 cacheid=xorg_cv_cc_flag__Wmissing_braces
9575 if eval test \${$cacheid+y}
9576 then :
9577 printf %s "(cached) " >&6
9578 else $as_nop
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 int
9583 main (void)
9584 {
9585
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"
9591 then :
9592 eval $cacheid=yes
9593 else $as_nop
9594 eval $cacheid=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9597 conftest$ac_exeext conftest.$ac_ext
9598 fi
9599
9600
9601 CFLAGS="$xorg_testset_save_CFLAGS"
9602
9603 eval supported=\$$cacheid
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9605 printf "%s\n" "$supported" >&6; }
9606 if test "$supported" = "yes" ; then
9607 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9608 found="yes"
9609 fi
9610 fi
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626 xorg_testset_save_CFLAGS="$CFLAGS"
9627
9628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9633 then :
9634 printf %s "(cached) " >&6
9635 else $as_nop
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 int i;
9639 _ACEOF
9640 if ac_fn_c_try_compile "$LINENO"
9641 then :
9642 xorg_cv_cc_flag_unknown_warning_option=yes
9643 else $as_nop
9644 xorg_cv_cc_flag_unknown_warning_option=no
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9647 fi
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9651 CFLAGS="$xorg_testset_save_CFLAGS"
9652 fi
9653
9654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9657 fi
9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9661 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9669 if ac_fn_c_try_compile "$LINENO"
9670 then :
9671 xorg_cv_cc_flag_unused_command_line_argument=yes
9672 else $as_nop
9673 xorg_cv_cc_flag_unused_command_line_argument=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9676 fi
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9680 CFLAGS="$xorg_testset_save_CFLAGS"
9681 fi
9682
9683 found="no"
9684
9685 if test $found = "no" ; then
9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692 fi
9693
9694 CFLAGS="$CFLAGS -Wsequence-point"
9695
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9697 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9698 cacheid=xorg_cv_cc_flag__Wsequence_point
9699 if eval test \${$cacheid+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else $as_nop
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 int i;
9706 int
9707 main (void)
9708 {
9709
9710 ;
9711 return 0;
9712 }
9713 _ACEOF
9714 if ac_fn_c_try_link "$LINENO"
9715 then :
9716 eval $cacheid=yes
9717 else $as_nop
9718 eval $cacheid=no
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9721 conftest$ac_exeext conftest.$ac_ext
9722 fi
9723
9724
9725 CFLAGS="$xorg_testset_save_CFLAGS"
9726
9727 eval supported=\$$cacheid
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9729 printf "%s\n" "$supported" >&6; }
9730 if test "$supported" = "yes" ; then
9731 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9732 found="yes"
9733 fi
9734 fi
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750 xorg_testset_save_CFLAGS="$CFLAGS"
9751
9752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9755 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9756 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else $as_nop
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 int i;
9763 _ACEOF
9764 if ac_fn_c_try_compile "$LINENO"
9765 then :
9766 xorg_cv_cc_flag_unknown_warning_option=yes
9767 else $as_nop
9768 xorg_cv_cc_flag_unknown_warning_option=no
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9771 fi
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9775 CFLAGS="$xorg_testset_save_CFLAGS"
9776 fi
9777
9778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9781 fi
9782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9785 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9793 if ac_fn_c_try_compile "$LINENO"
9794 then :
9795 xorg_cv_cc_flag_unused_command_line_argument=yes
9796 else $as_nop
9797 xorg_cv_cc_flag_unused_command_line_argument=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9800 fi
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805 fi
9806
9807 found="no"
9808
9809 if test $found = "no" ; then
9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812 fi
9813
9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816 fi
9817
9818 CFLAGS="$CFLAGS -Wreturn-type"
9819
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9821 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9822 cacheid=xorg_cv_cc_flag__Wreturn_type
9823 if eval test \${$cacheid+y}
9824 then :
9825 printf %s "(cached) " >&6
9826 else $as_nop
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9829 int i;
9830 int
9831 main (void)
9832 {
9833
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"
9839 then :
9840 eval $cacheid=yes
9841 else $as_nop
9842 eval $cacheid=no
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9845 conftest$ac_exeext conftest.$ac_ext
9846 fi
9847
9848
9849 CFLAGS="$xorg_testset_save_CFLAGS"
9850
9851 eval supported=\$$cacheid
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9853 printf "%s\n" "$supported" >&6; }
9854 if test "$supported" = "yes" ; then
9855 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9856 found="yes"
9857 fi
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874 xorg_testset_save_CFLAGS="$CFLAGS"
9875
9876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9879 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9880 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9881 then :
9882 printf %s "(cached) " >&6
9883 else $as_nop
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 int i;
9887 _ACEOF
9888 if ac_fn_c_try_compile "$LINENO"
9889 then :
9890 xorg_cv_cc_flag_unknown_warning_option=yes
9891 else $as_nop
9892 xorg_cv_cc_flag_unknown_warning_option=no
9893 fi
9894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9895 fi
9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9899 CFLAGS="$xorg_testset_save_CFLAGS"
9900 fi
9901
9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905 fi
9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9909 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"
9918 then :
9919 xorg_cv_cc_flag_unused_command_line_argument=yes
9920 else $as_nop
9921 xorg_cv_cc_flag_unused_command_line_argument=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9924 fi
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929 fi
9930
9931 found="no"
9932
9933 if test $found = "no" ; then
9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936 fi
9937
9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9940 fi
9941
9942 CFLAGS="$CFLAGS -Wtrigraphs"
9943
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9945 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9946 cacheid=xorg_cv_cc_flag__Wtrigraphs
9947 if eval test \${$cacheid+y}
9948 then :
9949 printf %s "(cached) " >&6
9950 else $as_nop
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 int i;
9954 int
9955 main (void)
9956 {
9957
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 if ac_fn_c_try_link "$LINENO"
9963 then :
9964 eval $cacheid=yes
9965 else $as_nop
9966 eval $cacheid=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9969 conftest$ac_exeext conftest.$ac_ext
9970 fi
9971
9972
9973 CFLAGS="$xorg_testset_save_CFLAGS"
9974
9975 eval supported=\$$cacheid
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9977 printf "%s\n" "$supported" >&6; }
9978 if test "$supported" = "yes" ; then
9979 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9980 found="yes"
9981 fi
9982 fi
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998 xorg_testset_save_CFLAGS="$CFLAGS"
9999
10000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10004 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10005 then :
10006 printf %s "(cached) " >&6
10007 else $as_nop
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 int i;
10011 _ACEOF
10012 if ac_fn_c_try_compile "$LINENO"
10013 then :
10014 xorg_cv_cc_flag_unknown_warning_option=yes
10015 else $as_nop
10016 xorg_cv_cc_flag_unknown_warning_option=no
10017 fi
10018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10019 fi
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10021 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10023 CFLAGS="$xorg_testset_save_CFLAGS"
10024 fi
10025
10026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10029 fi
10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10032 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10033 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10041 if ac_fn_c_try_compile "$LINENO"
10042 then :
10043 xorg_cv_cc_flag_unused_command_line_argument=yes
10044 else $as_nop
10045 xorg_cv_cc_flag_unused_command_line_argument=no
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10048 fi
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052 CFLAGS="$xorg_testset_save_CFLAGS"
10053 fi
10054
10055 found="no"
10056
10057 if test $found = "no" ; then
10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060 fi
10061
10062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064 fi
10065
10066 CFLAGS="$CFLAGS -Warray-bounds"
10067
10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10069 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10070 cacheid=xorg_cv_cc_flag__Warray_bounds
10071 if eval test \${$cacheid+y}
10072 then :
10073 printf %s "(cached) " >&6
10074 else $as_nop
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 int i;
10078 int
10079 main (void)
10080 {
10081
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 if ac_fn_c_try_link "$LINENO"
10087 then :
10088 eval $cacheid=yes
10089 else $as_nop
10090 eval $cacheid=no
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10093 conftest$ac_exeext conftest.$ac_ext
10094 fi
10095
10096
10097 CFLAGS="$xorg_testset_save_CFLAGS"
10098
10099 eval supported=\$$cacheid
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10101 printf "%s\n" "$supported" >&6; }
10102 if test "$supported" = "yes" ; then
10103 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10104 found="yes"
10105 fi
10106 fi
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122 xorg_testset_save_CFLAGS="$CFLAGS"
10123
10124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10127 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10128 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10129 then :
10130 printf %s "(cached) " >&6
10131 else $as_nop
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 int i;
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"
10137 then :
10138 xorg_cv_cc_flag_unknown_warning_option=yes
10139 else $as_nop
10140 xorg_cv_cc_flag_unknown_warning_option=no
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10143 fi
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10145 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10147 CFLAGS="$xorg_testset_save_CFLAGS"
10148 fi
10149
10150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153 fi
10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10156 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10157 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10165 if ac_fn_c_try_compile "$LINENO"
10166 then :
10167 xorg_cv_cc_flag_unused_command_line_argument=yes
10168 else $as_nop
10169 xorg_cv_cc_flag_unused_command_line_argument=no
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10172 fi
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10174 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10176 CFLAGS="$xorg_testset_save_CFLAGS"
10177 fi
10178
10179 found="no"
10180
10181 if test $found = "no" ; then
10182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10184 fi
10185
10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10188 fi
10189
10190 CFLAGS="$CFLAGS -Wwrite-strings"
10191
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10193 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10194 cacheid=xorg_cv_cc_flag__Wwrite_strings
10195 if eval test \${$cacheid+y}
10196 then :
10197 printf %s "(cached) " >&6
10198 else $as_nop
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201 int i;
10202 int
10203 main (void)
10204 {
10205
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"
10211 then :
10212 eval $cacheid=yes
10213 else $as_nop
10214 eval $cacheid=no
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10217 conftest$ac_exeext conftest.$ac_ext
10218 fi
10219
10220
10221 CFLAGS="$xorg_testset_save_CFLAGS"
10222
10223 eval supported=\$$cacheid
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10225 printf "%s\n" "$supported" >&6; }
10226 if test "$supported" = "yes" ; then
10227 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10228 found="yes"
10229 fi
10230 fi
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246 xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10253 then :
10254 printf %s "(cached) " >&6
10255 else $as_nop
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"
10261 then :
10262 xorg_cv_cc_flag_unknown_warning_option=yes
10263 else $as_nop
10264 xorg_cv_cc_flag_unknown_warning_option=no
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10267 fi
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10269 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10271 CFLAGS="$xorg_testset_save_CFLAGS"
10272 fi
10273
10274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10277 fi
10278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10280 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10281 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10289 if ac_fn_c_try_compile "$LINENO"
10290 then :
10291 xorg_cv_cc_flag_unused_command_line_argument=yes
10292 else $as_nop
10293 xorg_cv_cc_flag_unused_command_line_argument=no
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10296 fi
10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10298 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10300 CFLAGS="$xorg_testset_save_CFLAGS"
10301 fi
10302
10303 found="no"
10304
10305 if test $found = "no" ; then
10306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10308 fi
10309
10310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10312 fi
10313
10314 CFLAGS="$CFLAGS -Waddress"
10315
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10317 printf %s "checking if $CC supports -Waddress... " >&6; }
10318 cacheid=xorg_cv_cc_flag__Waddress
10319 if eval test \${$cacheid+y}
10320 then :
10321 printf %s "(cached) " >&6
10322 else $as_nop
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 int i;
10326 int
10327 main (void)
10328 {
10329
10330 ;
10331 return 0;
10332 }
10333 _ACEOF
10334 if ac_fn_c_try_link "$LINENO"
10335 then :
10336 eval $cacheid=yes
10337 else $as_nop
10338 eval $cacheid=no
10339 fi
10340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10341 conftest$ac_exeext conftest.$ac_ext
10342 fi
10343
10344
10345 CFLAGS="$xorg_testset_save_CFLAGS"
10346
10347 eval supported=\$$cacheid
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10349 printf "%s\n" "$supported" >&6; }
10350 if test "$supported" = "yes" ; then
10351 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10352 found="yes"
10353 fi
10354 fi
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370 xorg_testset_save_CFLAGS="$CFLAGS"
10371
10372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10377 then :
10378 printf %s "(cached) " >&6
10379 else $as_nop
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 int i;
10383 _ACEOF
10384 if ac_fn_c_try_compile "$LINENO"
10385 then :
10386 xorg_cv_cc_flag_unknown_warning_option=yes
10387 else $as_nop
10388 xorg_cv_cc_flag_unknown_warning_option=no
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10391 fi
10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10395 CFLAGS="$xorg_testset_save_CFLAGS"
10396 fi
10397
10398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10401 fi
10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10405 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10413 if ac_fn_c_try_compile "$LINENO"
10414 then :
10415 xorg_cv_cc_flag_unused_command_line_argument=yes
10416 else $as_nop
10417 xorg_cv_cc_flag_unused_command_line_argument=no
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10420 fi
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10424 CFLAGS="$xorg_testset_save_CFLAGS"
10425 fi
10426
10427 found="no"
10428
10429 if test $found = "no" ; then
10430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10432 fi
10433
10434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10436 fi
10437
10438 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10439
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10441 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10442 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10443 if eval test \${$cacheid+y}
10444 then :
10445 printf %s "(cached) " >&6
10446 else $as_nop
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 int i;
10450 int
10451 main (void)
10452 {
10453
10454 ;
10455 return 0;
10456 }
10457 _ACEOF
10458 if ac_fn_c_try_link "$LINENO"
10459 then :
10460 eval $cacheid=yes
10461 else $as_nop
10462 eval $cacheid=no
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10465 conftest$ac_exeext conftest.$ac_ext
10466 fi
10467
10468
10469 CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471 eval supported=\$$cacheid
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473 printf "%s\n" "$supported" >&6; }
10474 if test "$supported" = "yes" ; then
10475 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10476 found="yes"
10477 fi
10478 fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494 xorg_testset_save_CFLAGS="$CFLAGS"
10495
10496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10501 then :
10502 printf %s "(cached) " >&6
10503 else $as_nop
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 int i;
10507 _ACEOF
10508 if ac_fn_c_try_compile "$LINENO"
10509 then :
10510 xorg_cv_cc_flag_unknown_warning_option=yes
10511 else $as_nop
10512 xorg_cv_cc_flag_unknown_warning_option=no
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10515 fi
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10517 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10519 CFLAGS="$xorg_testset_save_CFLAGS"
10520 fi
10521
10522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10525 fi
10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10530 then :
10531 printf %s "(cached) " >&6
10532 else $as_nop
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535 int i;
10536 _ACEOF
10537 if ac_fn_c_try_compile "$LINENO"
10538 then :
10539 xorg_cv_cc_flag_unused_command_line_argument=yes
10540 else $as_nop
10541 xorg_cv_cc_flag_unused_command_line_argument=no
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10544 fi
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10546 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10548 CFLAGS="$xorg_testset_save_CFLAGS"
10549 fi
10550
10551 found="no"
10552
10553 if test $found = "no" ; then
10554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10556 fi
10557
10558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10560 fi
10561
10562 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10563
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10565 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10566 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10567 if eval test \${$cacheid+y}
10568 then :
10569 printf %s "(cached) " >&6
10570 else $as_nop
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 int i;
10574 int
10575 main (void)
10576 {
10577
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"
10583 then :
10584 eval $cacheid=yes
10585 else $as_nop
10586 eval $cacheid=no
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10589 conftest$ac_exeext conftest.$ac_ext
10590 fi
10591
10592
10593 CFLAGS="$xorg_testset_save_CFLAGS"
10594
10595 eval supported=\$$cacheid
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10597 printf "%s\n" "$supported" >&6; }
10598 if test "$supported" = "yes" ; then
10599 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10600 found="yes"
10601 fi
10602 fi
10603
10604
10605 fi
10606
10607
10608
10609
10610
10611
10612
10613 CWARNFLAGS="$BASE_CFLAGS"
10614 if test "x$GCC" = xyes ; then
10615 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10616 fi
10617
10618
10619
10620
10621
10622
10623
10624
10625 # Check whether --enable-strict-compilation was given.
10626 if test ${enable_strict_compilation+y}
10627 then :
10628 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10629 else $as_nop
10630 STRICT_COMPILE=no
10631 fi
10632
10633
10634
10635
10636
10637
10638 STRICT_CFLAGS=""
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652 xorg_testset_save_CFLAGS="$CFLAGS"
10653
10654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10658 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10659 then :
10660 printf %s "(cached) " >&6
10661 else $as_nop
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 int i;
10665 _ACEOF
10666 if ac_fn_c_try_compile "$LINENO"
10667 then :
10668 xorg_cv_cc_flag_unknown_warning_option=yes
10669 else $as_nop
10670 xorg_cv_cc_flag_unknown_warning_option=no
10671 fi
10672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10673 fi
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10677 CFLAGS="$xorg_testset_save_CFLAGS"
10678 fi
10679
10680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10683 fi
10684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10687 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
10695 if ac_fn_c_try_compile "$LINENO"
10696 then :
10697 xorg_cv_cc_flag_unused_command_line_argument=yes
10698 else $as_nop
10699 xorg_cv_cc_flag_unused_command_line_argument=no
10700 fi
10701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10702 fi
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10704 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10706 CFLAGS="$xorg_testset_save_CFLAGS"
10707 fi
10708
10709 found="no"
10710
10711 if test $found = "no" ; then
10712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10714 fi
10715
10716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10718 fi
10719
10720 CFLAGS="$CFLAGS -pedantic"
10721
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10723 printf %s "checking if $CC supports -pedantic... " >&6; }
10724 cacheid=xorg_cv_cc_flag__pedantic
10725 if eval test \${$cacheid+y}
10726 then :
10727 printf %s "(cached) " >&6
10728 else $as_nop
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 int i;
10732 int
10733 main (void)
10734 {
10735
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"
10741 then :
10742 eval $cacheid=yes
10743 else $as_nop
10744 eval $cacheid=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747 conftest$ac_exeext conftest.$ac_ext
10748 fi
10749
10750
10751 CFLAGS="$xorg_testset_save_CFLAGS"
10752
10753 eval supported=\$$cacheid
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10755 printf "%s\n" "$supported" >&6; }
10756 if test "$supported" = "yes" ; then
10757 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10758 found="yes"
10759 fi
10760 fi
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776 xorg_testset_save_CFLAGS="$CFLAGS"
10777
10778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10781 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10782 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10783 then :
10784 printf %s "(cached) " >&6
10785 else $as_nop
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 int i;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"
10791 then :
10792 xorg_cv_cc_flag_unknown_warning_option=yes
10793 else $as_nop
10794 xorg_cv_cc_flag_unknown_warning_option=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10797 fi
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10801 CFLAGS="$xorg_testset_save_CFLAGS"
10802 fi
10803
10804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10807 fi
10808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10812 then :
10813 printf %s "(cached) " >&6
10814 else $as_nop
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 int i;
10818 _ACEOF
10819 if ac_fn_c_try_compile "$LINENO"
10820 then :
10821 xorg_cv_cc_flag_unused_command_line_argument=yes
10822 else $as_nop
10823 xorg_cv_cc_flag_unused_command_line_argument=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10826 fi
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10828 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10830 CFLAGS="$xorg_testset_save_CFLAGS"
10831 fi
10832
10833 found="no"
10834
10835 if test $found = "no" ; then
10836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10838 fi
10839
10840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10842 fi
10843
10844 CFLAGS="$CFLAGS -Werror"
10845
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10847 printf %s "checking if $CC supports -Werror... " >&6; }
10848 cacheid=xorg_cv_cc_flag__Werror
10849 if eval test \${$cacheid+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else $as_nop
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 int i;
10856 int
10857 main (void)
10858 {
10859
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"
10865 then :
10866 eval $cacheid=yes
10867 else $as_nop
10868 eval $cacheid=no
10869 fi
10870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10871 conftest$ac_exeext conftest.$ac_ext
10872 fi
10873
10874
10875 CFLAGS="$xorg_testset_save_CFLAGS"
10876
10877 eval supported=\$$cacheid
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10879 printf "%s\n" "$supported" >&6; }
10880 if test "$supported" = "yes" ; then
10881 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10882 found="yes"
10883 fi
10884 fi
10885
10886 if test $found = "no" ; then
10887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10889 fi
10890
10891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10893 fi
10894
10895 CFLAGS="$CFLAGS -errwarn"
10896
10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10898 printf %s "checking if $CC supports -errwarn... " >&6; }
10899 cacheid=xorg_cv_cc_flag__errwarn
10900 if eval test \${$cacheid+y}
10901 then :
10902 printf %s "(cached) " >&6
10903 else $as_nop
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 int i;
10907 int
10908 main (void)
10909 {
10910
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"
10916 then :
10917 eval $cacheid=yes
10918 else $as_nop
10919 eval $cacheid=no
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10922 conftest$ac_exeext conftest.$ac_ext
10923 fi
10924
10925
10926 CFLAGS="$xorg_testset_save_CFLAGS"
10927
10928 eval supported=\$$cacheid
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10930 printf "%s\n" "$supported" >&6; }
10931 if test "$supported" = "yes" ; then
10932 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10933 found="yes"
10934 fi
10935 fi
10936
10937
10938
10939 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10940 # activate it with -Werror, so we add it here explicitly.
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954 xorg_testset_save_CFLAGS="$CFLAGS"
10955
10956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10961 then :
10962 printf %s "(cached) " >&6
10963 else $as_nop
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966 int i;
10967 _ACEOF
10968 if ac_fn_c_try_compile "$LINENO"
10969 then :
10970 xorg_cv_cc_flag_unknown_warning_option=yes
10971 else $as_nop
10972 xorg_cv_cc_flag_unknown_warning_option=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10975 fi
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10979 CFLAGS="$xorg_testset_save_CFLAGS"
10980 fi
10981
10982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10985 fi
10986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10990 then :
10991 printf %s "(cached) " >&6
10992 else $as_nop
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 int i;
10996 _ACEOF
10997 if ac_fn_c_try_compile "$LINENO"
10998 then :
10999 xorg_cv_cc_flag_unused_command_line_argument=yes
11000 else $as_nop
11001 xorg_cv_cc_flag_unused_command_line_argument=no
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11004 fi
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11008 CFLAGS="$xorg_testset_save_CFLAGS"
11009 fi
11010
11011 found="no"
11012
11013 if test $found = "no" ; then
11014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016 fi
11017
11018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11020 fi
11021
11022 CFLAGS="$CFLAGS -Werror=attributes"
11023
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11025 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11026 cacheid=xorg_cv_cc_flag__Werror_attributes
11027 if eval test \${$cacheid+y}
11028 then :
11029 printf %s "(cached) " >&6
11030 else $as_nop
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 int i;
11034 int
11035 main (void)
11036 {
11037
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"
11043 then :
11044 eval $cacheid=yes
11045 else $as_nop
11046 eval $cacheid=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11049 conftest$ac_exeext conftest.$ac_ext
11050 fi
11051
11052
11053 CFLAGS="$xorg_testset_save_CFLAGS"
11054
11055 eval supported=\$$cacheid
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11057 printf "%s\n" "$supported" >&6; }
11058 if test "$supported" = "yes" ; then
11059 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11060 found="yes"
11061 fi
11062 fi
11063
11064
11065
11066 if test "x$STRICT_COMPILE" = "xyes"; then
11067 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11068 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11069 fi
11070
11071
11072
11073
11074
11075
11076 cat >>confdefs.h <<_ACEOF
11077 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11078 _ACEOF
11079
11080 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11081 if test "x$PVM" = "x"; then
11082 PVM="0"
11083 fi
11084
11085 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11086
11087 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11088 if test "x$PVP" = "x"; then
11089 PVP="0"
11090 fi
11091
11092 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11093
11094
11095
11096 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11097 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11098 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11099 touch \$(top_srcdir)/ChangeLog; \
11100 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11101
11102
11103
11104
11105 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11106 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11107 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11108 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11109 touch \$(top_srcdir)/INSTALL; \
11110 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11111
11112
11113
11114
11115
11116
11117 case $host_os in
11118 solaris*)
11119 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11120 # check for a man page file found in later versions that use
11121 # traditional section numbers instead
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11123 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11124 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11125 then :
11126 printf %s "(cached) " >&6
11127 else $as_nop
11128 test "$cross_compiling" = yes &&
11129 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11130 if test -r "/usr/share/man/man7/attributes.7"; then
11131 ac_cv_file__usr_share_man_man7_attributes_7=yes
11132 else
11133 ac_cv_file__usr_share_man_man7_attributes_7=no
11134 fi
11135 fi
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11137 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11138 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11139 then :
11140 SYSV_MAN_SECTIONS=false
11141 else $as_nop
11142 SYSV_MAN_SECTIONS=true
11143 fi
11144
11145 ;;
11146 *) SYSV_MAN_SECTIONS=false ;;
11147 esac
11148
11149 if test x$APP_MAN_SUFFIX = x ; then
11150 APP_MAN_SUFFIX=1
11151 fi
11152 if test x$APP_MAN_DIR = x ; then
11153 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11154 fi
11155
11156 if test x$LIB_MAN_SUFFIX = x ; then
11157 LIB_MAN_SUFFIX=3
11158 fi
11159 if test x$LIB_MAN_DIR = x ; then
11160 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11161 fi
11162
11163 if test x$FILE_MAN_SUFFIX = x ; then
11164 case $SYSV_MAN_SECTIONS in
11165 true) FILE_MAN_SUFFIX=4 ;;
11166 *) FILE_MAN_SUFFIX=5 ;;
11167 esac
11168 fi
11169 if test x$FILE_MAN_DIR = x ; then
11170 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11171 fi
11172
11173 if test x$MISC_MAN_SUFFIX = x ; then
11174 case $SYSV_MAN_SECTIONS in
11175 true) MISC_MAN_SUFFIX=5 ;;
11176 *) MISC_MAN_SUFFIX=7 ;;
11177 esac
11178 fi
11179 if test x$MISC_MAN_DIR = x ; then
11180 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11181 fi
11182
11183 if test x$DRIVER_MAN_SUFFIX = x ; then
11184 case $SYSV_MAN_SECTIONS in
11185 true) DRIVER_MAN_SUFFIX=7 ;;
11186 *) DRIVER_MAN_SUFFIX=4 ;;
11187 esac
11188 fi
11189 if test x$DRIVER_MAN_DIR = x ; then
11190 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11191 fi
11192
11193 if test x$ADMIN_MAN_SUFFIX = x ; then
11194 case $SYSV_MAN_SECTIONS in
11195 true) ADMIN_MAN_SUFFIX=1m ;;
11196 *) ADMIN_MAN_SUFFIX=8 ;;
11197 esac
11198 fi
11199 if test x$ADMIN_MAN_DIR = x ; then
11200 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11201 fi
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217 XORG_MAN_PAGE="X Version 11"
11218
11219 MAN_SUBSTS="\
11220 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11221 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11222 -e 's|__xservername__|Xorg|g' \
11223 -e 's|__xconfigfile__|xorg.conf|g' \
11224 -e 's|__projectroot__|\$(prefix)|g' \
11225 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11226 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11227 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11228 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11229 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11230 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11231 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11232
11233
11234
11235 # Check whether --enable-silent-rules was given.
11236 if test ${enable_silent_rules+y}
11237 then :
11238 enableval=$enable_silent_rules;
11239 fi
11240
11241 case $enable_silent_rules in # (((
11242 yes) AM_DEFAULT_VERBOSITY=0;;
11243 no) AM_DEFAULT_VERBOSITY=1;;
11244 *) AM_DEFAULT_VERBOSITY=0;;
11245 esac
11246 am_make=${MAKE-make}
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11248 printf %s "checking whether $am_make supports nested variables... " >&6; }
11249 if test ${am_cv_make_support_nested_variables+y}
11250 then :
11251 printf %s "(cached) " >&6
11252 else $as_nop
11253 if printf "%s\n" 'TRUE=$(BAR$(V))
11254 BAR0=false
11255 BAR1=true
11256 V=1
11257 am__doit:
11258 @$(TRUE)
11259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11260 am_cv_make_support_nested_variables=yes
11261 else
11262 am_cv_make_support_nested_variables=no
11263 fi
11264 fi
11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11266 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11267 if test $am_cv_make_support_nested_variables = yes; then
11268 AM_V='$(V)'
11269 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11270 else
11271 AM_V=$AM_DEFAULT_VERBOSITY
11272 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11273 fi
11274 AM_BACKSLASH='\'
11275
11276
11277
11278 # Use POSIX strnlen or the implementation supplied in this module
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
11280 printf %s "checking for working strnlen... " >&6; }
11281 if test ${ac_cv_func_strnlen_working+y}
11282 then :
11283 printf %s "(cached) " >&6
11284 else $as_nop
11285 if test "$cross_compiling" = yes
11286 then :
11287 # Guess no on AIX systems, yes otherwise.
11288 case "$host_os" in
11289 aix*) ac_cv_func_strnlen_working=no;;
11290 *) ac_cv_func_strnlen_working=yes;;
11291 esac
11292 else $as_nop
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 $ac_includes_default
11296 int
11297 main (void)
11298 {
11299
11300 #define S "foobar"
11301 #define S_LEN (sizeof S - 1)
11302
11303 /* At least one implementation is buggy: that of AIX 4.3 would
11304 give strnlen (S, 1) == 3. */
11305
11306 int i;
11307 for (i = 0; i < S_LEN + 1; ++i)
11308 {
11309 int expected = i <= S_LEN ? i : S_LEN;
11310 if (strnlen (S, i) != expected)
11311 return 1;
11312 }
11313 return 0;
11314
11315 ;
11316 return 0;
11317 }
11318 _ACEOF
11319 if ac_fn_c_try_run "$LINENO"
11320 then :
11321 ac_cv_func_strnlen_working=yes
11322 else $as_nop
11323 ac_cv_func_strnlen_working=no
11324 fi
11325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11326 conftest.$ac_objext conftest.beam conftest.$ac_ext
11327 fi
11328
11329 fi
11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
11331 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
11332 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
11333 *" strnlen.$ac_objext "* ) ;;
11334 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
11335 ;;
11336 esac
11337
11338
11339 if test "x$ac_cv_func_strnlen_working" = xyes; then
11340
11341 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
11342
11343 fi
11344
11345 # Obtain compiler/linker options for xlsclients dependencies
11346
11347 pkg_failed=no
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5
11349 printf %s "checking for XLSCLIENTS... " >&6; }
11350
11351 if test -n "$XLSCLIENTS_CFLAGS"; then
11352 pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS"
11353 elif test -n "$PKG_CONFIG"; then
11354 if test -n "$PKG_CONFIG" && \
11355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
11356 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
11357 ac_status=$?
11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11359 test $ac_status = 0; }; then
11360 pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null`
11361 test "x$?" != "x0" && pkg_failed=yes
11362 else
11363 pkg_failed=yes
11364 fi
11365 else
11366 pkg_failed=untried
11367 fi
11368 if test -n "$XLSCLIENTS_LIBS"; then
11369 pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS"
11370 elif test -n "$PKG_CONFIG"; then
11371 if test -n "$PKG_CONFIG" && \
11372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
11373 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
11374 ac_status=$?
11375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11376 test $ac_status = 0; }; then
11377 pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null`
11378 test "x$?" != "x0" && pkg_failed=yes
11379 else
11380 pkg_failed=yes
11381 fi
11382 else
11383 pkg_failed=untried
11384 fi
11385
11386
11387
11388 if test $pkg_failed = yes; then
11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 printf "%s\n" "no" >&6; }
11391
11392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11393 _pkg_short_errors_supported=yes
11394 else
11395 _pkg_short_errors_supported=no
11396 fi
11397 if test $_pkg_short_errors_supported = yes; then
11398 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6" 2>&1`
11399 else
11400 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6" 2>&1`
11401 fi
11402 # Put the nasty error message in config.log where it belongs
11403 echo "$XLSCLIENTS_PKG_ERRORS" >&5
11404
11405 as_fn_error $? "Package requirements (xcb >= 1.6) were not met:
11406
11407 $XLSCLIENTS_PKG_ERRORS
11408
11409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11410 installed software in a non-standard prefix.
11411
11412 Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS
11413 and XLSCLIENTS_LIBS to avoid the need to call pkg-config.
11414 See the pkg-config man page for more details." "$LINENO" 5
11415 elif test $pkg_failed = untried; then
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 printf "%s\n" "no" >&6; }
11418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11419 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11420 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11421 is in your PATH or set the PKG_CONFIG environment variable to the full
11422 path to pkg-config.
11423
11424 Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS
11425 and XLSCLIENTS_LIBS to avoid the need to call pkg-config.
11426 See the pkg-config man page for more details.
11427
11428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11429 See \`config.log' for more details" "$LINENO" 5; }
11430 else
11431 XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS
11432 XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS
11433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11434 printf "%s\n" "yes" >&6; }
11435
11436 fi
11437
11438 ac_config_files="$ac_config_files Makefile man/Makefile"
11439
11440 cat >confcache <<\_ACEOF
11441 # This file is a shell script that caches the results of configure
11442 # tests run on this system so they can be shared between configure
11443 # scripts and configure runs, see configure's option --config-cache.
11444 # It is not useful on other systems. If it contains results you don't
11445 # want to keep, you may remove or edit it.
11446 #
11447 # config.status only pays attention to the cache file if you give it
11448 # the --recheck option to rerun configure.
11449 #
11450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11452 # following values.
11453
11454 _ACEOF
11455
11456 # The following way of writing the cache mishandles newlines in values,
11457 # but we know of no workaround that is simple, portable, and efficient.
11458 # So, we kill variables containing newlines.
11459 # Ultrix sh set writes to stderr and can't be redirected directly,
11460 # and sets the high bit in the cache file unless we assign to the vars.
11461 (
11462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11463 eval ac_val=\$$ac_var
11464 case $ac_val in #(
11465 *${as_nl}*)
11466 case $ac_var in #(
11467 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11468 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11469 esac
11470 case $ac_var in #(
11471 _ | IFS | as_nl) ;; #(
11472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11473 *) { eval $ac_var=; unset $ac_var;} ;;
11474 esac ;;
11475 esac
11476 done
11477
11478 (set) 2>&1 |
11479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11480 *${as_nl}ac_space=\ *)
11481 # `set' does not quote correctly, so add quotes: double-quote
11482 # substitution turns \\\\ into \\, and sed turns \\ into \.
11483 sed -n \
11484 "s/'/'\\\\''/g;
11485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11486 ;; #(
11487 *)
11488 # `set' quotes correctly as required by POSIX, so do not add quotes.
11489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11490 ;;
11491 esac |
11492 sort
11493 ) |
11494 sed '
11495 /^ac_cv_env_/b end
11496 t clear
11497 :clear
11498 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11499 t end
11500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11501 :end' >>confcache
11502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11503 if test -w "$cache_file"; then
11504 if test "x$cache_file" != "x/dev/null"; then
11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11506 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11507 if test ! -f "$cache_file" || test -h "$cache_file"; then
11508 cat confcache >"$cache_file"
11509 else
11510 case $cache_file in #(
11511 */* | ?:*)
11512 mv -f confcache "$cache_file"$$ &&
11513 mv -f "$cache_file"$$ "$cache_file" ;; #(
11514 *)
11515 mv -f confcache "$cache_file" ;;
11516 esac
11517 fi
11518 fi
11519 else
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11521 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11522 fi
11523 fi
11524 rm -f confcache
11525
11526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11527 # Let make expand exec_prefix.
11528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11529
11530 DEFS=-DHAVE_CONFIG_H
11531
11532 ac_libobjs=
11533 ac_ltlibobjs=
11534 U=
11535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11536 # 1. Remove the extension, and $U if already installed.
11537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11538 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11540 # will be set to the directory where LIBOBJS objects are built.
11541 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11542 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11543 done
11544 LIBOBJS=$ac_libobjs
11545
11546 LTLIBOBJS=$ac_ltlibobjs
11547
11548
11549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11550 printf %s "checking that generated files are newer than configure... " >&6; }
11551 if test -n "$am_sleep_pid"; then
11552 # Hide warnings about reused PIDs.
11553 wait $am_sleep_pid 2>/dev/null
11554 fi
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11556 printf "%s\n" "done" >&6; }
11557 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11558 as_fn_error $? "conditional \"AMDEP\" was never defined.
11559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11560 fi
11561 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11562 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11564 fi
11565 if test -n "$EXEEXT"; then
11566 am__EXEEXT_TRUE=
11567 am__EXEEXT_FALSE='#'
11568 else
11569 am__EXEEXT_TRUE='#'
11570 am__EXEEXT_FALSE=
11571 fi
11572
11573
11574 : "${CONFIG_STATUS=./config.status}"
11575 ac_write_fail=0
11576 ac_clean_files_save=$ac_clean_files
11577 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11579 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11580 as_write_fail=0
11581 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11582 #! $SHELL
11583 # Generated by $as_me.
11584 # Run this file to recreate the current configuration.
11585 # Compiler output produced by configure, useful for debugging
11586 # configure, is in config.log if it exists.
11587
11588 debug=false
11589 ac_cs_recheck=false
11590 ac_cs_silent=false
11591
11592 SHELL=\${CONFIG_SHELL-$SHELL}
11593 export SHELL
11594 _ASEOF
11595 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11596 ## -------------------- ##
11597 ## M4sh Initialization. ##
11598 ## -------------------- ##
11599
11600 # Be more Bourne compatible
11601 DUALCASE=1; export DUALCASE # for MKS sh
11602 as_nop=:
11603 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11604 then :
11605 emulate sh
11606 NULLCMD=:
11607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11608 # is contrary to our usage. Disable this feature.
11609 alias -g '${1+"$@"}'='"$@"'
11610 setopt NO_GLOB_SUBST
11611 else $as_nop
11612 case `(set -o) 2>/dev/null` in #(
11613 *posix*) :
11614 set -o posix ;; #(
11615 *) :
11616 ;;
11617 esac
11618 fi
11619
11620
11621
11622 # Reset variables that may have inherited troublesome values from
11623 # the environment.
11624
11625 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11626 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11627 # side effect of setting IFS to empty, thus disabling word splitting.)
11628 # Quoting is to prevent editors from complaining about space-tab.
11629 as_nl='
11630 '
11631 export as_nl
11632 IFS=" "" $as_nl"
11633
11634 PS1='$ '
11635 PS2='> '
11636 PS4='+ '
11637
11638 # Ensure predictable behavior from utilities with locale-dependent output.
11639 LC_ALL=C
11640 export LC_ALL
11641 LANGUAGE=C
11642 export LANGUAGE
11643
11644 # We cannot yet rely on "unset" to work, but we need these variables
11645 # to be unset--not just set to an empty or harmless value--now, to
11646 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11647 # also avoids known problems related to "unset" and subshell syntax
11648 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11649 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11650 do eval test \${$as_var+y} \
11651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11652 done
11653
11654 # Ensure that fds 0, 1, and 2 are open.
11655 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11656 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11657 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11658
11659 # The user is always right.
11660 if ${PATH_SEPARATOR+false} :; then
11661 PATH_SEPARATOR=:
11662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11664 PATH_SEPARATOR=';'
11665 }
11666 fi
11667
11668
11669 # Find who we are. Look in the path if we contain no directory separator.
11670 as_myself=
11671 case $0 in #((
11672 *[\\/]* ) as_myself=$0 ;;
11673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 case $as_dir in #(((
11678 '') as_dir=./ ;;
11679 */) ;;
11680 *) as_dir=$as_dir/ ;;
11681 esac
11682 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11683 done
11684 IFS=$as_save_IFS
11685
11686 ;;
11687 esac
11688 # We did not find ourselves, most probably we were run as `sh COMMAND'
11689 # in which case we are not to be found in the path.
11690 if test "x$as_myself" = x; then
11691 as_myself=$0
11692 fi
11693 if test ! -f "$as_myself"; then
11694 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11695 exit 1
11696 fi
11697
11698
11699
11700 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11701 # ----------------------------------------
11702 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11703 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11704 # script with STATUS, using 1 if that was 0.
11705 as_fn_error ()
11706 {
11707 as_status=$1; test $as_status -eq 0 && as_status=1
11708 if test "$4"; then
11709 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11711 fi
11712 printf "%s\n" "$as_me: error: $2" >&2
11713 as_fn_exit $as_status
11714 } # as_fn_error
11715
11716
11717
11718 # as_fn_set_status STATUS
11719 # -----------------------
11720 # Set $? to STATUS, without forking.
11721 as_fn_set_status ()
11722 {
11723 return $1
11724 } # as_fn_set_status
11725
11726 # as_fn_exit STATUS
11727 # -----------------
11728 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11729 as_fn_exit ()
11730 {
11731 set +e
11732 as_fn_set_status $1
11733 exit $1
11734 } # as_fn_exit
11735
11736 # as_fn_unset VAR
11737 # ---------------
11738 # Portably unset VAR.
11739 as_fn_unset ()
11740 {
11741 { eval $1=; unset $1;}
11742 }
11743 as_unset=as_fn_unset
11744
11745 # as_fn_append VAR VALUE
11746 # ----------------------
11747 # Append the text in VALUE to the end of the definition contained in VAR. Take
11748 # advantage of any shell optimizations that allow amortized linear growth over
11749 # repeated appends, instead of the typical quadratic growth present in naive
11750 # implementations.
11751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11752 then :
11753 eval 'as_fn_append ()
11754 {
11755 eval $1+=\$2
11756 }'
11757 else $as_nop
11758 as_fn_append ()
11759 {
11760 eval $1=\$$1\$2
11761 }
11762 fi # as_fn_append
11763
11764 # as_fn_arith ARG...
11765 # ------------------
11766 # Perform arithmetic evaluation on the ARGs, and store the result in the
11767 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11768 # must be portable across $(()) and expr.
11769 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11770 then :
11771 eval 'as_fn_arith ()
11772 {
11773 as_val=$(( $* ))
11774 }'
11775 else $as_nop
11776 as_fn_arith ()
11777 {
11778 as_val=`expr "$@" || test $? -eq 1`
11779 }
11780 fi # as_fn_arith
11781
11782
11783 if expr a : '\(a\)' >/dev/null 2>&1 &&
11784 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11785 as_expr=expr
11786 else
11787 as_expr=false
11788 fi
11789
11790 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11791 as_basename=basename
11792 else
11793 as_basename=false
11794 fi
11795
11796 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11797 as_dirname=dirname
11798 else
11799 as_dirname=false
11800 fi
11801
11802 as_me=`$as_basename -- "$0" ||
11803 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11804 X"$0" : 'X\(//\)$' \| \
11805 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11806 printf "%s\n" X/"$0" |
11807 sed '/^.*\/\([^/][^/]*\)\/*$/{
11808 s//\1/
11809 q
11810 }
11811 /^X\/\(\/\/\)$/{
11812 s//\1/
11813 q
11814 }
11815 /^X\/\(\/\).*/{
11816 s//\1/
11817 q
11818 }
11819 s/.*/./; q'`
11820
11821 # Avoid depending upon Character Ranges.
11822 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11823 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11824 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11825 as_cr_digits='0123456789'
11826 as_cr_alnum=$as_cr_Letters$as_cr_digits
11827
11828
11829 # Determine whether it's possible to make 'echo' print without a newline.
11830 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11831 # for compatibility with existing Makefiles.
11832 ECHO_C= ECHO_N= ECHO_T=
11833 case `echo -n x` in #(((((
11834 -n*)
11835 case `echo 'xy\c'` in
11836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11837 xy) ECHO_C='\c';;
11838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11839 ECHO_T=' ';;
11840 esac;;
11841 *)
11842 ECHO_N='-n';;
11843 esac
11844
11845 # For backward compatibility with old third-party macros, we provide
11846 # the shell variables $as_echo and $as_echo_n. New code should use
11847 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11848 as_echo='printf %s\n'
11849 as_echo_n='printf %s'
11850
11851 rm -f conf$$ conf$$.exe conf$$.file
11852 if test -d conf$$.dir; then
11853 rm -f conf$$.dir/conf$$.file
11854 else
11855 rm -f conf$$.dir
11856 mkdir conf$$.dir 2>/dev/null
11857 fi
11858 if (echo >conf$$.file) 2>/dev/null; then
11859 if ln -s conf$$.file conf$$ 2>/dev/null; then
11860 as_ln_s='ln -s'
11861 # ... but there are two gotchas:
11862 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11863 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11864 # In both cases, we have to default to `cp -pR'.
11865 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11866 as_ln_s='cp -pR'
11867 elif ln conf$$.file conf$$ 2>/dev/null; then
11868 as_ln_s=ln
11869 else
11870 as_ln_s='cp -pR'
11871 fi
11872 else
11873 as_ln_s='cp -pR'
11874 fi
11875 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11876 rmdir conf$$.dir 2>/dev/null
11877
11878
11879 # as_fn_mkdir_p
11880 # -------------
11881 # Create "$as_dir" as a directory, including parents if necessary.
11882 as_fn_mkdir_p ()
11883 {
11884
11885 case $as_dir in #(
11886 -*) as_dir=./$as_dir;;
11887 esac
11888 test -d "$as_dir" || eval $as_mkdir_p || {
11889 as_dirs=
11890 while :; do
11891 case $as_dir in #(
11892 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11893 *) as_qdir=$as_dir;;
11894 esac
11895 as_dirs="'$as_qdir' $as_dirs"
11896 as_dir=`$as_dirname -- "$as_dir" ||
11897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11898 X"$as_dir" : 'X\(//\)[^/]' \| \
11899 X"$as_dir" : 'X\(//\)$' \| \
11900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11901 printf "%s\n" X"$as_dir" |
11902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11903 s//\1/
11904 q
11905 }
11906 /^X\(\/\/\)[^/].*/{
11907 s//\1/
11908 q
11909 }
11910 /^X\(\/\/\)$/{
11911 s//\1/
11912 q
11913 }
11914 /^X\(\/\).*/{
11915 s//\1/
11916 q
11917 }
11918 s/.*/./; q'`
11919 test -d "$as_dir" && break
11920 done
11921 test -z "$as_dirs" || eval "mkdir $as_dirs"
11922 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11923
11924
11925 } # as_fn_mkdir_p
11926 if mkdir -p . 2>/dev/null; then
11927 as_mkdir_p='mkdir -p "$as_dir"'
11928 else
11929 test -d ./-p && rmdir ./-p
11930 as_mkdir_p=false
11931 fi
11932
11933
11934 # as_fn_executable_p FILE
11935 # -----------------------
11936 # Test if FILE is an executable regular file.
11937 as_fn_executable_p ()
11938 {
11939 test -f "$1" && test -x "$1"
11940 } # as_fn_executable_p
11941 as_test_x='test -x'
11942 as_executable_p=as_fn_executable_p
11943
11944 # Sed expression to map a string onto a valid CPP name.
11945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11946
11947 # Sed expression to map a string onto a valid variable name.
11948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11949
11950
11951 exec 6>&1
11952 ## ----------------------------------- ##
11953 ## Main body of $CONFIG_STATUS script. ##
11954 ## ----------------------------------- ##
11955 _ASEOF
11956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11957
11958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959 # Save the log message, to keep $0 and so on meaningful, and to
11960 # report actual input values of CONFIG_FILES etc. instead of their
11961 # values after options handling.
11962 ac_log="
11963 This file was extended by xlsclients $as_me 1.1.5, which was
11964 generated by GNU Autoconf 2.71. Invocation command line was
11965
11966 CONFIG_FILES = $CONFIG_FILES
11967 CONFIG_HEADERS = $CONFIG_HEADERS
11968 CONFIG_LINKS = $CONFIG_LINKS
11969 CONFIG_COMMANDS = $CONFIG_COMMANDS
11970 $ $0 $@
11971
11972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11973 "
11974
11975 _ACEOF
11976
11977 case $ac_config_files in *"
11978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11979 esac
11980
11981 case $ac_config_headers in *"
11982 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11983 esac
11984
11985
11986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11987 # Files that config.status was made for.
11988 config_files="$ac_config_files"
11989 config_headers="$ac_config_headers"
11990 config_commands="$ac_config_commands"
11991
11992 _ACEOF
11993
11994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11995 ac_cs_usage="\
11996 \`$as_me' instantiates files and other configuration actions
11997 from templates according to the current configuration. Unless the files
11998 and actions are specified as TAGs, all are instantiated by default.
11999
12000 Usage: $0 [OPTION]... [TAG]...
12001
12002 -h, --help print this help, then exit
12003 -V, --version print version number and configuration settings, then exit
12004 --config print configuration, then exit
12005 -q, --quiet, --silent
12006 do not print progress messages
12007 -d, --debug don't remove temporary files
12008 --recheck update $as_me by reconfiguring in the same conditions
12009 --file=FILE[:TEMPLATE]
12010 instantiate the configuration file FILE
12011 --header=FILE[:TEMPLATE]
12012 instantiate the configuration header FILE
12013
12014 Configuration files:
12015 $config_files
12016
12017 Configuration headers:
12018 $config_headers
12019
12020 Configuration commands:
12021 $config_commands
12022
12023 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues>."
12024
12025 _ACEOF
12026 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12027 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12029 ac_cs_config='$ac_cs_config_escaped'
12030 ac_cs_version="\\
12031 xlsclients config.status 1.1.5
12032 configured by $0, generated by GNU Autoconf 2.71,
12033 with options \\"\$ac_cs_config\\"
12034
12035 Copyright (C) 2021 Free Software Foundation, Inc.
12036 This config.status script is free software; the Free Software Foundation
12037 gives unlimited permission to copy, distribute and modify it."
12038
12039 ac_pwd='$ac_pwd'
12040 srcdir='$srcdir'
12041 INSTALL='$INSTALL'
12042 MKDIR_P='$MKDIR_P'
12043 AWK='$AWK'
12044 test -n "\$AWK" || AWK=awk
12045 _ACEOF
12046
12047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048 # The default lists apply if the user does not specify any file.
12049 ac_need_defaults=:
12050 while test $# != 0
12051 do
12052 case $1 in
12053 --*=?*)
12054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12056 ac_shift=:
12057 ;;
12058 --*=)
12059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12060 ac_optarg=
12061 ac_shift=:
12062 ;;
12063 *)
12064 ac_option=$1
12065 ac_optarg=$2
12066 ac_shift=shift
12067 ;;
12068 esac
12069
12070 case $ac_option in
12071 # Handling of the options.
12072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12073 ac_cs_recheck=: ;;
12074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12075 printf "%s\n" "$ac_cs_version"; exit ;;
12076 --config | --confi | --conf | --con | --co | --c )
12077 printf "%s\n" "$ac_cs_config"; exit ;;
12078 --debug | --debu | --deb | --de | --d | -d )
12079 debug=: ;;
12080 --file | --fil | --fi | --f )
12081 $ac_shift
12082 case $ac_optarg in
12083 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12084 '') as_fn_error $? "missing file argument" ;;
12085 esac
12086 as_fn_append CONFIG_FILES " '$ac_optarg'"
12087 ac_need_defaults=false;;
12088 --header | --heade | --head | --hea )
12089 $ac_shift
12090 case $ac_optarg in
12091 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12092 esac
12093 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12094 ac_need_defaults=false;;
12095 --he | --h)
12096 # Conflict between --help and --header
12097 as_fn_error $? "ambiguous option: \`$1'
12098 Try \`$0 --help' for more information.";;
12099 --help | --hel | -h )
12100 printf "%s\n" "$ac_cs_usage"; exit ;;
12101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12102 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12103 ac_cs_silent=: ;;
12104
12105 # This is an error.
12106 -*) as_fn_error $? "unrecognized option: \`$1'
12107 Try \`$0 --help' for more information." ;;
12108
12109 *) as_fn_append ac_config_targets " $1"
12110 ac_need_defaults=false ;;
12111
12112 esac
12113 shift
12114 done
12115
12116 ac_configure_extra_args=
12117
12118 if $ac_cs_silent; then
12119 exec 6>/dev/null
12120 ac_configure_extra_args="$ac_configure_extra_args --silent"
12121 fi
12122
12123 _ACEOF
12124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12125 if \$ac_cs_recheck; then
12126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12127 shift
12128 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12129 CONFIG_SHELL='$SHELL'
12130 export CONFIG_SHELL
12131 exec "\$@"
12132 fi
12133
12134 _ACEOF
12135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12136 exec 5>>config.log
12137 {
12138 echo
12139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12140 ## Running $as_me. ##
12141 _ASBOX
12142 printf "%s\n" "$ac_log"
12143 } >&5
12144
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12147 #
12148 # INIT-COMMANDS
12149 #
12150 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12151
12152 _ACEOF
12153
12154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12155
12156 # Handling of arguments.
12157 for ac_config_target in $ac_config_targets
12158 do
12159 case $ac_config_target in
12160 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12162 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12163 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12164
12165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12166 esac
12167 done
12168
12169
12170 # If the user did not use the arguments to specify the items to instantiate,
12171 # then the envvar interface is used. Set only those that are not.
12172 # We use the long form for the default assignment because of an extremely
12173 # bizarre bug on SunOS 4.1.3.
12174 if $ac_need_defaults; then
12175 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12176 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12177 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12178 fi
12179
12180 # Have a temporary directory for convenience. Make it in the build tree
12181 # simply because there is no reason against having it here, and in addition,
12182 # creating and moving files from /tmp can sometimes cause problems.
12183 # Hook for its removal unless debugging.
12184 # Note that there is a small window in which the directory will not be cleaned:
12185 # after its creation but before its name has been assigned to `$tmp'.
12186 $debug ||
12187 {
12188 tmp= ac_tmp=
12189 trap 'exit_status=$?
12190 : "${ac_tmp:=$tmp}"
12191 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12192 ' 0
12193 trap 'as_fn_exit 1' 1 2 13 15
12194 }
12195 # Create a (secure) tmp directory for tmp files.
12196
12197 {
12198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12199 test -d "$tmp"
12200 } ||
12201 {
12202 tmp=./conf$$-$RANDOM
12203 (umask 077 && mkdir "$tmp")
12204 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12205 ac_tmp=$tmp
12206
12207 # Set up the scripts for CONFIG_FILES section.
12208 # No need to generate them if there are no CONFIG_FILES.
12209 # This happens for instance with `./config.status config.h'.
12210 if test -n "$CONFIG_FILES"; then
12211
12212
12213 ac_cr=`echo X | tr X '\015'`
12214 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12215 # But we know of no other shell where ac_cr would be empty at this
12216 # point, so we can use a bashism as a fallback.
12217 if test "x$ac_cr" = x; then
12218 eval ac_cr=\$\'\\r\'
12219 fi
12220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12222 ac_cs_awk_cr='\\r'
12223 else
12224 ac_cs_awk_cr=$ac_cr
12225 fi
12226
12227 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12228 _ACEOF
12229
12230
12231 {
12232 echo "cat >conf$$subs.awk <<_ACEOF" &&
12233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12234 echo "_ACEOF"
12235 } >conf$$subs.sh ||
12236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12238 ac_delim='%!_!# '
12239 for ac_last_try in false false false false false :; do
12240 . ./conf$$subs.sh ||
12241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12242
12243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12244 if test $ac_delim_n = $ac_delim_num; then
12245 break
12246 elif $ac_last_try; then
12247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12248 else
12249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12250 fi
12251 done
12252 rm -f conf$$subs.sh
12253
12254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12255 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12256 _ACEOF
12257 sed -n '
12258 h
12259 s/^/S["/; s/!.*/"]=/
12260 p
12261 g
12262 s/^[^!]*!//
12263 :repl
12264 t repl
12265 s/'"$ac_delim"'$//
12266 t delim
12267 :nl
12268 h
12269 s/\(.\{148\}\)..*/\1/
12270 t more1
12271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12272 p
12273 n
12274 b repl
12275 :more1
12276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12277 p
12278 g
12279 s/.\{148\}//
12280 t nl
12281 :delim
12282 h
12283 s/\(.\{148\}\)..*/\1/
12284 t more2
12285 s/["\\]/\\&/g; s/^/"/; s/$/"/
12286 p
12287 b
12288 :more2
12289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12290 p
12291 g
12292 s/.\{148\}//
12293 t delim
12294 ' <conf$$subs.awk | sed '
12295 /^[^""]/{
12296 N
12297 s/\n//
12298 }
12299 ' >>$CONFIG_STATUS || ac_write_fail=1
12300 rm -f conf$$subs.awk
12301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12302 _ACAWK
12303 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12304 for (key in S) S_is_set[key] = 1
12305 FS = ""
12306
12307 }
12308 {
12309 line = $ 0
12310 nfields = split(line, field, "@")
12311 substed = 0
12312 len = length(field[1])
12313 for (i = 2; i < nfields; i++) {
12314 key = field[i]
12315 keylen = length(key)
12316 if (S_is_set[key]) {
12317 value = S[key]
12318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12319 len += length(value) + length(field[++i])
12320 substed = 1
12321 } else
12322 len += 1 + keylen
12323 }
12324
12325 print line
12326 }
12327
12328 _ACAWK
12329 _ACEOF
12330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12333 else
12334 cat
12335 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12336 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12337 _ACEOF
12338
12339 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12340 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12341 # trailing colons and then remove the whole line if VPATH becomes empty
12342 # (actually we leave an empty line to preserve line numbers).
12343 if test "x$srcdir" = x.; then
12344 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12345 h
12346 s///
12347 s/^/:/
12348 s/[ ]*$/:/
12349 s/:\$(srcdir):/:/g
12350 s/:\${srcdir}:/:/g
12351 s/:@srcdir@:/:/g
12352 s/^:*//
12353 s/:*$//
12354 x
12355 s/\(=[ ]*\).*/\1/
12356 G
12357 s/\n//
12358 s/^[^=]*=[ ]*$//
12359 }'
12360 fi
12361
12362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12363 fi # test -n "$CONFIG_FILES"
12364
12365 # Set up the scripts for CONFIG_HEADERS section.
12366 # No need to generate them if there are no CONFIG_HEADERS.
12367 # This happens for instance with `./config.status Makefile'.
12368 if test -n "$CONFIG_HEADERS"; then
12369 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12370 BEGIN {
12371 _ACEOF
12372
12373 # Transform confdefs.h into an awk script `defines.awk', embedded as
12374 # here-document in config.status, that substitutes the proper values into
12375 # config.h.in to produce config.h.
12376
12377 # Create a delimiter string that does not exist in confdefs.h, to ease
12378 # handling of long lines.
12379 ac_delim='%!_!# '
12380 for ac_last_try in false false :; do
12381 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12382 if test -z "$ac_tt"; then
12383 break
12384 elif $ac_last_try; then
12385 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12386 else
12387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12388 fi
12389 done
12390
12391 # For the awk script, D is an array of macro values keyed by name,
12392 # likewise P contains macro parameters if any. Preserve backslash
12393 # newline sequences.
12394
12395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12396 sed -n '
12397 s/.\{148\}/&'"$ac_delim"'/g
12398 t rset
12399 :rset
12400 s/^[ ]*#[ ]*define[ ][ ]*/ /
12401 t def
12402 d
12403 :def
12404 s/\\$//
12405 t bsnl
12406 s/["\\]/\\&/g
12407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12408 D["\1"]=" \3"/p
12409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12410 d
12411 :bsnl
12412 s/["\\]/\\&/g
12413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12414 D["\1"]=" \3\\\\\\n"\\/p
12415 t cont
12416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12417 t cont
12418 d
12419 :cont
12420 n
12421 s/.\{148\}/&'"$ac_delim"'/g
12422 t clear
12423 :clear
12424 s/\\$//
12425 t bsnlc
12426 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12427 d
12428 :bsnlc
12429 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12430 b cont
12431 ' <confdefs.h | sed '
12432 s/'"$ac_delim"'/"\\\
12433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12434
12435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12436 for (key in D) D_is_set[key] = 1
12437 FS = ""
12438 }
12439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12440 line = \$ 0
12441 split(line, arg, " ")
12442 if (arg[1] == "#") {
12443 defundef = arg[2]
12444 mac1 = arg[3]
12445 } else {
12446 defundef = substr(arg[1], 2)
12447 mac1 = arg[2]
12448 }
12449 split(mac1, mac2, "(") #)
12450 macro = mac2[1]
12451 prefix = substr(line, 1, index(line, defundef) - 1)
12452 if (D_is_set[macro]) {
12453 # Preserve the white space surrounding the "#".
12454 print prefix "define", macro P[macro] D[macro]
12455 next
12456 } else {
12457 # Replace #undef with comments. This is necessary, for example,
12458 # in the case of _POSIX_SOURCE, which is predefined and required
12459 # on some systems where configure will not decide to define it.
12460 if (defundef == "undef") {
12461 print "/*", prefix defundef, macro, "*/"
12462 next
12463 }
12464 }
12465 }
12466 { print }
12467 _ACAWK
12468 _ACEOF
12469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12470 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12471 fi # test -n "$CONFIG_HEADERS"
12472
12473
12474 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12475 shift
12476 for ac_tag
12477 do
12478 case $ac_tag in
12479 :[FHLC]) ac_mode=$ac_tag; continue;;
12480 esac
12481 case $ac_mode$ac_tag in
12482 :[FHL]*:*);;
12483 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12484 :[FH]-) ac_tag=-:-;;
12485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12486 esac
12487 ac_save_IFS=$IFS
12488 IFS=:
12489 set x $ac_tag
12490 IFS=$ac_save_IFS
12491 shift
12492 ac_file=$1
12493 shift
12494
12495 case $ac_mode in
12496 :L) ac_source=$1;;
12497 :[FH])
12498 ac_file_inputs=
12499 for ac_f
12500 do
12501 case $ac_f in
12502 -) ac_f="$ac_tmp/stdin";;
12503 *) # Look for the file first in the build tree, then in the source tree
12504 # (if the path is not absolute). The absolute path cannot be DOS-style,
12505 # because $ac_f cannot contain `:'.
12506 test -f "$ac_f" ||
12507 case $ac_f in
12508 [\\/$]*) false;;
12509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12510 esac ||
12511 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12512 esac
12513 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12514 as_fn_append ac_file_inputs " '$ac_f'"
12515 done
12516
12517 # Let's still pretend it is `configure' which instantiates (i.e., don't
12518 # use $as_me), people would be surprised to read:
12519 # /* config.h. Generated by config.status. */
12520 configure_input='Generated from '`
12521 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12522 `' by configure.'
12523 if test x"$ac_file" != x-; then
12524 configure_input="$ac_file. $configure_input"
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12526 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12527 fi
12528 # Neutralize special characters interpreted by sed in replacement strings.
12529 case $configure_input in #(
12530 *\&* | *\|* | *\\* )
12531 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12533 *) ac_sed_conf_input=$configure_input;;
12534 esac
12535
12536 case $ac_tag in
12537 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12539 esac
12540 ;;
12541 esac
12542
12543 ac_dir=`$as_dirname -- "$ac_file" ||
12544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12545 X"$ac_file" : 'X\(//\)[^/]' \| \
12546 X"$ac_file" : 'X\(//\)$' \| \
12547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12548 printf "%s\n" X"$ac_file" |
12549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12550 s//\1/
12551 q
12552 }
12553 /^X\(\/\/\)[^/].*/{
12554 s//\1/
12555 q
12556 }
12557 /^X\(\/\/\)$/{
12558 s//\1/
12559 q
12560 }
12561 /^X\(\/\).*/{
12562 s//\1/
12563 q
12564 }
12565 s/.*/./; q'`
12566 as_dir="$ac_dir"; as_fn_mkdir_p
12567 ac_builddir=.
12568
12569 case "$ac_dir" in
12570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12571 *)
12572 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12573 # A ".." for each directory in $ac_dir_suffix.
12574 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12575 case $ac_top_builddir_sub in
12576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12578 esac ;;
12579 esac
12580 ac_abs_top_builddir=$ac_pwd
12581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12582 # for backward compatibility:
12583 ac_top_builddir=$ac_top_build_prefix
12584
12585 case $srcdir in
12586 .) # We are building in place.
12587 ac_srcdir=.
12588 ac_top_srcdir=$ac_top_builddir_sub
12589 ac_abs_top_srcdir=$ac_pwd ;;
12590 [\\/]* | ?:[\\/]* ) # Absolute name.
12591 ac_srcdir=$srcdir$ac_dir_suffix;
12592 ac_top_srcdir=$srcdir
12593 ac_abs_top_srcdir=$srcdir ;;
12594 *) # Relative name.
12595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12596 ac_top_srcdir=$ac_top_build_prefix$srcdir
12597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12598 esac
12599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12600
12601
12602 case $ac_mode in
12603 :F)
12604 #
12605 # CONFIG_FILE
12606 #
12607
12608 case $INSTALL in
12609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12611 esac
12612 ac_MKDIR_P=$MKDIR_P
12613 case $MKDIR_P in
12614 [\\/$]* | ?:[\\/]* ) ;;
12615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12616 esac
12617 _ACEOF
12618
12619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12620 # If the template does not know about datarootdir, expand it.
12621 # FIXME: This hack should be removed a few years after 2.60.
12622 ac_datarootdir_hack=; ac_datarootdir_seen=
12623 ac_sed_dataroot='
12624 /datarootdir/ {
12625 p
12626 q
12627 }
12628 /@datadir@/p
12629 /@docdir@/p
12630 /@infodir@/p
12631 /@localedir@/p
12632 /@mandir@/p'
12633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12634 *datarootdir*) ac_datarootdir_seen=yes;;
12635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12637 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12640 ac_datarootdir_hack='
12641 s&@datadir@&$datadir&g
12642 s&@docdir@&$docdir&g
12643 s&@infodir@&$infodir&g
12644 s&@localedir@&$localedir&g
12645 s&@mandir@&$mandir&g
12646 s&\\\${datarootdir}&$datarootdir&g' ;;
12647 esac
12648 _ACEOF
12649
12650 # Neutralize VPATH when `$srcdir' = `.'.
12651 # Shell code in configure.ac might set extrasub.
12652 # FIXME: do we really want to maintain this feature?
12653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12654 ac_sed_extra="$ac_vpsub
12655 $extrasub
12656 _ACEOF
12657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12658 :t
12659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12660 s|@configure_input@|$ac_sed_conf_input|;t t
12661 s&@top_builddir@&$ac_top_builddir_sub&;t t
12662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12663 s&@srcdir@&$ac_srcdir&;t t
12664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12665 s&@top_srcdir@&$ac_top_srcdir&;t t
12666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12667 s&@builddir@&$ac_builddir&;t t
12668 s&@abs_builddir@&$ac_abs_builddir&;t t
12669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12670 s&@INSTALL@&$ac_INSTALL&;t t
12671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12672 $ac_datarootdir_hack
12673 "
12674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12675 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12676
12677 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12678 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12680 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12682 which seems to be undefined. Please make sure it is defined" >&5
12683 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12684 which seems to be undefined. Please make sure it is defined" >&2;}
12685
12686 rm -f "$ac_tmp/stdin"
12687 case $ac_file in
12688 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12689 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12690 esac \
12691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12692 ;;
12693 :H)
12694 #
12695 # CONFIG_HEADER
12696 #
12697 if test x"$ac_file" != x-; then
12698 {
12699 printf "%s\n" "/* $configure_input */" >&1 \
12700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12701 } >"$ac_tmp/config.h" \
12702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12703 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12705 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12706 else
12707 rm -f "$ac_file"
12708 mv "$ac_tmp/config.h" "$ac_file" \
12709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12710 fi
12711 else
12712 printf "%s\n" "/* $configure_input */" >&1 \
12713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12714 || as_fn_error $? "could not create -" "$LINENO" 5
12715 fi
12716 # Compute "$ac_file"'s index in $config_headers.
12717 _am_arg="$ac_file"
12718 _am_stamp_count=1
12719 for _am_header in $config_headers :; do
12720 case $_am_header in
12721 $_am_arg | $_am_arg:* )
12722 break ;;
12723 * )
12724 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12725 esac
12726 done
12727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12729 X"$_am_arg" : 'X\(//\)[^/]' \| \
12730 X"$_am_arg" : 'X\(//\)$' \| \
12731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12732 printf "%s\n" X"$_am_arg" |
12733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12734 s//\1/
12735 q
12736 }
12737 /^X\(\/\/\)[^/].*/{
12738 s//\1/
12739 q
12740 }
12741 /^X\(\/\/\)$/{
12742 s//\1/
12743 q
12744 }
12745 /^X\(\/\).*/{
12746 s//\1/
12747 q
12748 }
12749 s/.*/./; q'`/stamp-h$_am_stamp_count
12750 ;;
12751
12752 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12753 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12754 ;;
12755 esac
12756
12757
12758 case $ac_file$ac_mode in
12759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12760 # Older Autoconf quotes --file arguments for eval, but not when files
12761 # are listed without --file. Let's play safe and only enable the eval
12762 # if we detect the quoting.
12763 # TODO: see whether this extra hack can be removed once we start
12764 # requiring Autoconf 2.70 or later.
12765 case $CONFIG_FILES in #(
12766 *\'*) :
12767 eval set x "$CONFIG_FILES" ;; #(
12768 *) :
12769 set x $CONFIG_FILES ;; #(
12770 *) :
12771 ;;
12772 esac
12773 shift
12774 # Used to flag and report bootstrapping failures.
12775 am_rc=0
12776 for am_mf
12777 do
12778 # Strip MF so we end up with the name of the file.
12779 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12780 # Check whether this is an Automake generated Makefile which includes
12781 # dependency-tracking related rules and includes.
12782 # Grep'ing the whole file directly is not great: AIX grep has a line
12783 # limit of 2048, but all sed's we know have understand at least 4000.
12784 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12785 || continue
12786 am_dirpart=`$as_dirname -- "$am_mf" ||
12787 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12788 X"$am_mf" : 'X\(//\)[^/]' \| \
12789 X"$am_mf" : 'X\(//\)$' \| \
12790 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12791 printf "%s\n" X"$am_mf" |
12792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12793 s//\1/
12794 q
12795 }
12796 /^X\(\/\/\)[^/].*/{
12797 s//\1/
12798 q
12799 }
12800 /^X\(\/\/\)$/{
12801 s//\1/
12802 q
12803 }
12804 /^X\(\/\).*/{
12805 s//\1/
12806 q
12807 }
12808 s/.*/./; q'`
12809 am_filepart=`$as_basename -- "$am_mf" ||
12810 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12811 X"$am_mf" : 'X\(//\)$' \| \
12812 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12813 printf "%s\n" X/"$am_mf" |
12814 sed '/^.*\/\([^/][^/]*\)\/*$/{
12815 s//\1/
12816 q
12817 }
12818 /^X\/\(\/\/\)$/{
12819 s//\1/
12820 q
12821 }
12822 /^X\/\(\/\).*/{
12823 s//\1/
12824 q
12825 }
12826 s/.*/./; q'`
12827 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12828 && sed -e '/# am--include-marker/d' "$am_filepart" \
12829 | $MAKE -f - am--depfiles" >&5
12830 (cd "$am_dirpart" \
12831 && sed -e '/# am--include-marker/d' "$am_filepart" \
12832 | $MAKE -f - am--depfiles) >&5 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } || am_rc=$?
12836 done
12837 if test $am_rc -ne 0; then
12838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12839 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12840 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12841 for automatic dependency tracking. If GNU make was not used, consider
12842 re-running the configure script with MAKE=\"gmake\" (or whatever is
12843 necessary). You can also try re-running configure with the
12844 '--disable-dependency-tracking' option to at least be able to build
12845 the package (albeit without support for automatic dependency tracking).
12846 See \`config.log' for more details" "$LINENO" 5; }
12847 fi
12848 { am_dirpart=; unset am_dirpart;}
12849 { am_filepart=; unset am_filepart;}
12850 { am_mf=; unset am_mf;}
12851 { am_rc=; unset am_rc;}
12852 rm -f conftest-deps.mk
12853 }
12854 ;;
12855
12856 esac
12857 done # for ac_tag
12858
12859
12860 as_fn_exit 0
12861 _ACEOF
12862 ac_clean_files=$ac_clean_files_save
12863
12864 test $ac_write_fail = 0 ||
12865 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12866
12867
12868 # configure is writing to config.log, and then calls config.status.
12869 # config.status does its own redirection, appending to config.log.
12870 # Unfortunately, on DOS this fails, as config.log is still kept open
12871 # by configure, so config.status won't be able to write to it; its
12872 # output is simply discarded. So we exec the FD to /dev/null,
12873 # effectively closing config.log, so it can be properly (re)opened and
12874 # appended to by config.status. When coming back to configure, we
12875 # need to make the FD available again.
12876 if test "$no_create" != yes; then
12877 ac_cs_success=:
12878 ac_config_status_args=
12879 test "$silent" = yes &&
12880 ac_config_status_args="$ac_config_status_args --quiet"
12881 exec 5>/dev/null
12882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12883 exec 5>>config.log
12884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12885 # would make configure fail if this is the last instruction.
12886 $ac_cs_success || as_fn_exit 1
12887 fi
12888 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12890 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12891 fi
12892
12893
12894