configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xmessage 1.0.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xmessage'
607 PACKAGE_TARNAME='xmessage'
608 PACKAGE_VERSION='1.0.7'
609 PACKAGE_STRING='xmessage 1.0.7'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 appdefaultdir
652 APPDEFS_LIBS
653 APPDEFS_CFLAGS
654 XMESSAGE_LIBS
655 XMESSAGE_CFLAGS
656 MAN_SUBSTS
657 XORG_MAN_PAGE
658 ADMIN_MAN_DIR
659 DRIVER_MAN_DIR
660 MISC_MAN_DIR
661 FILE_MAN_DIR
662 LIB_MAN_DIR
663 APP_MAN_DIR
664 ADMIN_MAN_SUFFIX
665 DRIVER_MAN_SUFFIX
666 MISC_MAN_SUFFIX
667 FILE_MAN_SUFFIX
668 LIB_MAN_SUFFIX
669 APP_MAN_SUFFIX
670 SED
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 INSTALL_CMD
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CHANGELOG_CMD
684 STRICT_CFLAGS
685 CWARNFLAGS
686 BASE_CFLAGS
687 am__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 CCDEPMODE
690 am__nodep
691 AMDEPBACKSLASH
692 AMDEP_FALSE
693 AMDEP_TRUE
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 CSCOPE
708 ETAGS
709 CTAGS
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 runstatedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL
772 am__quote'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_silent_rules
777 enable_dependency_tracking
778 enable_selective_werror
779 enable_strict_compilation
780 enable_largefile
781 with_appdefaultdir
782 enable_year2038
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 XMESSAGE_CFLAGS
796 XMESSAGE_LIBS
797 APPDEFS_CFLAGS
798 APPDEFS_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 runstatedir='${localstatedir}/run'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: '$ac_useropt'"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: '$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: '$ac_useropt'"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: '$ac_useropt'"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: '$ac_option'
1193 Try '$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir runstatedir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: '$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 printf "%s\n" X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 'configure' configures xmessage 1.0.7 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print 'checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for '--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or '..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, 'make install' will install all the files in
1374 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than '$ac_default_prefix' using '--prefix',
1376 for instance '--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xmessage]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of xmessage 1.0.7:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-selective-werror
1433 Turn off selective compiler errors. (default:
1434 enabled)
1435 --enable-strict-compilation
1436 Enable all warnings from compiler and make them
1437 errors (default: disabled)
1438 --disable-largefile omit support for large files
1439 --enable-year2038 support timestamps after 2038
1440
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-appdefaultdir=<pathname>
1445 specify directory for app-defaults files (default is
1446 autodetected)
1447
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 PKG_CONFIG path to pkg-config utility
1457 PKG_CONFIG_PATH
1458 directories to add to pkg-config's search path
1459 PKG_CONFIG_LIBDIR
1460 path overriding pkg-config's built-in search path
1461 XMESSAGE_CFLAGS
1462 C compiler flags for XMESSAGE, overriding pkg-config
1463 XMESSAGE_LIBS
1464 linker flags for XMESSAGE, overriding pkg-config
1465 APPDEFS_CFLAGS
1466 C compiler flags for APPDEFS, overriding pkg-config
1467 APPDEFS_LIBS
1468 linker flags for APPDEFS, overriding pkg-config
1469
1470 Use these variables to override the choices made by 'configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for configure.gnu first; this name is used for a wrapper for
1520 # Metaconfig's "Configure" on case-insensitive file systems.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 xmessage configure 1.0.7
1538 generated by GNU Autoconf 2.72
1539
1540 Copyright (C) 2023 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest.beam
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext
1577 then :
1578 ac_retval=0
1579 else case e in #(
1580 e) printf "%s\n" "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1 ;;
1584 esac
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1592 # ------------------------------------------------------------------
1593 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1594 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1595 ac_fn_check_decl ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 as_decl_name=`echo $2|sed 's/ *(.*//'`
1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600 printf %s "checking whether $as_decl_name is declared... " >&6; }
1601 if eval test \${$3+y}
1602 then :
1603 printf %s "(cached) " >&6
1604 else case e in #(
1605 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1606 eval ac_save_FLAGS=\$$6
1607 as_fn_append $6 " $5"
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 int
1612 main (void)
1613 {
1614 #ifndef $as_decl_name
1615 #ifdef __cplusplus
1616 (void) $as_decl_use;
1617 #else
1618 (void) $as_decl_name;
1619 #endif
1620 #endif
1621
1622 ;
1623 return 0;
1624 }
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"
1627 then :
1628 eval "$3=yes"
1629 else case e in #(
1630 e) eval "$3=no" ;;
1631 esac
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1634 eval $6=\$ac_save_FLAGS
1635 ;;
1636 esac
1637 fi
1638 eval ac_res=\$$3
1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 printf "%s\n" "$ac_res" >&6; }
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642
1643 } # ac_fn_check_decl
1644
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 printf %s "checking for $2... " >&6; }
1654 if eval test \${$3+y}
1655 then :
1656 printf %s "(cached) " >&6
1657 else case e in #(
1658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1660 $4
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"
1664 then :
1665 eval "$3=yes"
1666 else case e in #(
1667 e) eval "$3=no" ;;
1668 esac
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1671 esac
1672 fi
1673 eval ac_res=\$$3
1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 printf "%s\n" "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_c_check_header_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1708 }
1709 then :
1710 ac_retval=0
1711 else case e in #(
1712 e) printf "%s\n" "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1 ;;
1716 esac
1717 fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727 ac_configure_args_raw=
1728 for ac_arg
1729 do
1730 case $ac_arg in
1731 *\'*)
1732 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733 esac
1734 as_fn_append ac_configure_args_raw " '$ac_arg'"
1735 done
1736
1737 case $ac_configure_args_raw in
1738 *$as_nl*)
1739 ac_safe_unquote= ;;
1740 *)
1741 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1742 ac_unsafe_a="$ac_unsafe_z#~"
1743 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1744 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1745 esac
1746
1747 cat >config.log <<_ACEOF
1748 This file contains any messages produced by compilers while
1749 running configure, to aid debugging if configure makes a mistake.
1750
1751 It was created by xmessage $as_me 1.0.7, which was
1752 generated by GNU Autoconf 2.72. Invocation command line was
1753
1754 $ $0$ac_configure_args_raw
1755
1756 _ACEOF
1757 exec 5>>config.log
1758 {
1759 cat <<_ASUNAME
1760 ## --------- ##
1761 ## Platform. ##
1762 ## --------- ##
1763
1764 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1765 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1766 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1767 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1768 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1769
1770 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1771 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1772
1773 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1774 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1775 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1776 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1777 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1778 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1779 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1780
1781 _ASUNAME
1782
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786 IFS=$as_save_IFS
1787 case $as_dir in #(((
1788 '') as_dir=./ ;;
1789 */) ;;
1790 *) as_dir=$as_dir/ ;;
1791 esac
1792 printf "%s\n" "PATH: $as_dir"
1793 done
1794 IFS=$as_save_IFS
1795
1796 } >&5
1797
1798 cat >&5 <<_ACEOF
1799
1800
1801 ## ----------- ##
1802 ## Core tests. ##
1803 ## ----------- ##
1804
1805 _ACEOF
1806
1807
1808 # Keep a trace of the command line.
1809 # Strip out --no-create and --no-recursion so they do not pile up.
1810 # Strip out --silent because we don't want to record it for future runs.
1811 # Also quote any args containing shell meta-characters.
1812 # Make two passes to allow for proper duplicate-argument suppression.
1813 ac_configure_args=
1814 ac_configure_args0=
1815 ac_configure_args1=
1816 ac_must_keep_next=false
1817 for ac_pass in 1 2
1818 do
1819 for ac_arg
1820 do
1821 case $ac_arg in
1822 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1824 | -silent | --silent | --silen | --sile | --sil)
1825 continue ;;
1826 *\'*)
1827 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1828 esac
1829 case $ac_pass in
1830 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1831 2)
1832 as_fn_append ac_configure_args1 " '$ac_arg'"
1833 if test $ac_must_keep_next = true; then
1834 ac_must_keep_next=false # Got value, back to normal.
1835 else
1836 case $ac_arg in
1837 *=* | --config-cache | -C | -disable-* | --disable-* \
1838 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1839 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1840 | -with-* | --with-* | -without-* | --without-* | --x)
1841 case "$ac_configure_args0 " in
1842 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1843 esac
1844 ;;
1845 -* ) ac_must_keep_next=true ;;
1846 esac
1847 fi
1848 as_fn_append ac_configure_args " '$ac_arg'"
1849 ;;
1850 esac
1851 done
1852 done
1853 { ac_configure_args0=; unset ac_configure_args0;}
1854 { ac_configure_args1=; unset ac_configure_args1;}
1855
1856 # When interrupted or exit'd, cleanup temporary files, and complete
1857 # config.log. We remove comments because anyway the quotes in there
1858 # would cause problems or look ugly.
1859 # WARNING: Use '\'' to represent an apostrophe within the trap.
1860 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1861 trap 'exit_status=$?
1862 # Sanitize IFS.
1863 IFS=" "" $as_nl"
1864 # Save into config.log some information that might help in debugging.
1865 {
1866 echo
1867
1868 printf "%s\n" "## ---------------- ##
1869 ## Cache variables. ##
1870 ## ---------------- ##"
1871 echo
1872 # The following way of writing the cache mishandles newlines in values,
1873 (
1874 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1875 eval ac_val=\$$ac_var
1876 case $ac_val in #(
1877 *${as_nl}*)
1878 case $ac_var in #(
1879 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1880 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1881 esac
1882 case $ac_var in #(
1883 _ | IFS | as_nl) ;; #(
1884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1885 *) { eval $ac_var=; unset $ac_var;} ;;
1886 esac ;;
1887 esac
1888 done
1889 (set) 2>&1 |
1890 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1891 *${as_nl}ac_space=\ *)
1892 sed -n \
1893 "s/'\''/'\''\\\\'\'''\''/g;
1894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1895 ;; #(
1896 *)
1897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1898 ;;
1899 esac |
1900 sort
1901 )
1902 echo
1903
1904 printf "%s\n" "## ----------------- ##
1905 ## Output variables. ##
1906 ## ----------------- ##"
1907 echo
1908 for ac_var in $ac_subst_vars
1909 do
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
1912 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 esac
1914 printf "%s\n" "$ac_var='\''$ac_val'\''"
1915 done | sort
1916 echo
1917
1918 if test -n "$ac_subst_files"; then
1919 printf "%s\n" "## ------------------- ##
1920 ## File substitutions. ##
1921 ## ------------------- ##"
1922 echo
1923 for ac_var in $ac_subst_files
1924 do
1925 eval ac_val=\$$ac_var
1926 case $ac_val in
1927 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928 esac
1929 printf "%s\n" "$ac_var='\''$ac_val'\''"
1930 done | sort
1931 echo
1932 fi
1933
1934 if test -s confdefs.h; then
1935 printf "%s\n" "## ----------- ##
1936 ## confdefs.h. ##
1937 ## ----------- ##"
1938 echo
1939 cat confdefs.h
1940 echo
1941 fi
1942 test "$ac_signal" != 0 &&
1943 printf "%s\n" "$as_me: caught signal $ac_signal"
1944 printf "%s\n" "$as_me: exit $exit_status"
1945 } >&5
1946 rm -f core *.core core.conftest.* &&
1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948 exit $exit_status
1949 ' 0
1950 for ac_signal in 1 2 13 15; do
1951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1952 done
1953 ac_signal=0
1954
1955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1956 rm -f -r conftest* confdefs.h
1957
1958 printf "%s\n" "/* confdefs.h */" > confdefs.h
1959
1960 # Predefined preprocessor variables.
1961
1962 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1963
1964 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1965
1966 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1967
1968 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1969
1970 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1971
1972 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1973
1974
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer an explicitly selected file to automatically selected ones.
1977 if test -n "$CONFIG_SITE"; then
1978 ac_site_files="$CONFIG_SITE"
1979 elif test "x$prefix" != xNONE; then
1980 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1981 else
1982 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1983 fi
1984
1985 for ac_site_file in $ac_site_files
1986 do
1987 case $ac_site_file in #(
1988 */*) :
1989 ;; #(
1990 *) :
1991 ac_site_file=./$ac_site_file ;;
1992 esac
1993 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1995 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1996 sed 's/^/| /' "$ac_site_file" >&5
1997 . "$ac_site_file" \
1998 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1999 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2000 as_fn_error $? "failed to load site script $ac_site_file
2001 See 'config.log' for more details" "$LINENO" 5; }
2002 fi
2003 done
2004
2005 if test -r "$cache_file"; then
2006 # Some versions of bash will fail to source /dev/null (special files
2007 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2008 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2010 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2011 case $cache_file in
2012 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013 *) . "./$cache_file";;
2014 esac
2015 fi
2016 else
2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2018 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2019 >$cache_file
2020 fi
2021
2022 # Test code for whether the C compiler supports C89 (global declarations)
2023 ac_c_conftest_c89_globals='
2024 /* Does the compiler advertise C89 conformance?
2025 Do not test the value of __STDC__, because some compilers set it to 0
2026 while being otherwise adequately conformant. */
2027 #if !defined __STDC__
2028 # error "Compiler does not advertise C89 conformance"
2029 #endif
2030
2031 #include <stddef.h>
2032 #include <stdarg.h>
2033 struct stat;
2034 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2035 struct buf { int x; };
2036 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2037 static char *e (char **p, int i)
2038 {
2039 return p[i];
2040 }
2041 static char *f (char * (*g) (char **, int), char **p, ...)
2042 {
2043 char *s;
2044 va_list v;
2045 va_start (v,p);
2046 s = g (p, va_arg (v,int));
2047 va_end (v);
2048 return s;
2049 }
2050
2051 /* C89 style stringification. */
2052 #define noexpand_stringify(a) #a
2053 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2054
2055 /* C89 style token pasting. Exercises some of the corner cases that
2056 e.g. old MSVC gets wrong, but not very hard. */
2057 #define noexpand_concat(a,b) a##b
2058 #define expand_concat(a,b) noexpand_concat(a,b)
2059 extern int vA;
2060 extern int vbee;
2061 #define aye A
2062 #define bee B
2063 int *pvA = &expand_concat(v,aye);
2064 int *pvbee = &noexpand_concat(v,bee);
2065
2066 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2067 function prototypes and stuff, but not \xHH hex character constants.
2068 These do not provoke an error unfortunately, instead are silently treated
2069 as an "x". The following induces an error, until -std is added to get
2070 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2071 array size at least. It is necessary to write \x00 == 0 to get something
2072 that is true only with -std. */
2073 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2074
2075 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2076 inside strings and character constants. */
2077 #define FOO(x) '\''x'\''
2078 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2079
2080 int test (int i, double x);
2081 struct s1 {int (*f) (int a);};
2082 struct s2 {int (*f) (double a);};
2083 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2084 int, int);'
2085
2086 # Test code for whether the C compiler supports C89 (body of main).
2087 ac_c_conftest_c89_main='
2088 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2089 '
2090
2091 # Test code for whether the C compiler supports C99 (global declarations)
2092 ac_c_conftest_c99_globals='
2093 /* Does the compiler advertise C99 conformance? */
2094 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2095 # error "Compiler does not advertise C99 conformance"
2096 #endif
2097
2098 // See if C++-style comments work.
2099
2100 #include <stdbool.h>
2101 extern int puts (const char *);
2102 extern int printf (const char *, ...);
2103 extern int dprintf (int, const char *, ...);
2104 extern void *malloc (size_t);
2105 extern void free (void *);
2106
2107 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2108 // dprintf is used instead of fprintf to avoid needing to declare
2109 // FILE and stderr.
2110 #define debug(...) dprintf (2, __VA_ARGS__)
2111 #define showlist(...) puts (#__VA_ARGS__)
2112 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2113 static void
2114 test_varargs_macros (void)
2115 {
2116 int x = 1234;
2117 int y = 5678;
2118 debug ("Flag");
2119 debug ("X = %d\n", x);
2120 showlist (The first, second, and third items.);
2121 report (x>y, "x is %d but y is %d", x, y);
2122 }
2123
2124 // Check long long types.
2125 #define BIG64 18446744073709551615ull
2126 #define BIG32 4294967295ul
2127 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2128 #if !BIG_OK
2129 #error "your preprocessor is broken"
2130 #endif
2131 #if BIG_OK
2132 #else
2133 #error "your preprocessor is broken"
2134 #endif
2135 static long long int bignum = -9223372036854775807LL;
2136 static unsigned long long int ubignum = BIG64;
2137
2138 struct incomplete_array
2139 {
2140 int datasize;
2141 double data[];
2142 };
2143
2144 struct named_init {
2145 int number;
2146 const wchar_t *name;
2147 double average;
2148 };
2149
2150 typedef const char *ccp;
2151
2152 static inline int
2153 test_restrict (ccp restrict text)
2154 {
2155 // Iterate through items via the restricted pointer.
2156 // Also check for declarations in for loops.
2157 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2158 continue;
2159 return 0;
2160 }
2161
2162 // Check varargs and va_copy.
2163 static bool
2164 test_varargs (const char *format, ...)
2165 {
2166 va_list args;
2167 va_start (args, format);
2168 va_list args_copy;
2169 va_copy (args_copy, args);
2170
2171 const char *str = "";
2172 int number = 0;
2173 float fnumber = 0;
2174
2175 while (*format)
2176 {
2177 switch (*format++)
2178 {
2179 case '\''s'\'': // string
2180 str = va_arg (args_copy, const char *);
2181 break;
2182 case '\''d'\'': // int
2183 number = va_arg (args_copy, int);
2184 break;
2185 case '\''f'\'': // float
2186 fnumber = va_arg (args_copy, double);
2187 break;
2188 default:
2189 break;
2190 }
2191 }
2192 va_end (args_copy);
2193 va_end (args);
2194
2195 return *str && number && fnumber;
2196 }
2197 '
2198
2199 # Test code for whether the C compiler supports C99 (body of main).
2200 ac_c_conftest_c99_main='
2201 // Check bool.
2202 _Bool success = false;
2203 success |= (argc != 0);
2204
2205 // Check restrict.
2206 if (test_restrict ("String literal") == 0)
2207 success = true;
2208 char *restrict newvar = "Another string";
2209
2210 // Check varargs.
2211 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2212 test_varargs_macros ();
2213
2214 // Check flexible array members.
2215 struct incomplete_array *ia =
2216 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2217 ia->datasize = 10;
2218 for (int i = 0; i < ia->datasize; ++i)
2219 ia->data[i] = i * 1.234;
2220 // Work around memory leak warnings.
2221 free (ia);
2222
2223 // Check named initializers.
2224 struct named_init ni = {
2225 .number = 34,
2226 .name = L"Test wide string",
2227 .average = 543.34343,
2228 };
2229
2230 ni.number = 58;
2231
2232 int dynamic_array[ni.number];
2233 dynamic_array[0] = argv[0][0];
2234 dynamic_array[ni.number - 1] = 543;
2235
2236 // work around unused variable warnings
2237 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2238 || dynamic_array[ni.number - 1] != 543);
2239 '
2240
2241 # Test code for whether the C compiler supports C11 (global declarations)
2242 ac_c_conftest_c11_globals='
2243 /* Does the compiler advertise C11 conformance? */
2244 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2245 # error "Compiler does not advertise C11 conformance"
2246 #endif
2247
2248 // Check _Alignas.
2249 char _Alignas (double) aligned_as_double;
2250 char _Alignas (0) no_special_alignment;
2251 extern char aligned_as_int;
2252 char _Alignas (0) _Alignas (int) aligned_as_int;
2253
2254 // Check _Alignof.
2255 enum
2256 {
2257 int_alignment = _Alignof (int),
2258 int_array_alignment = _Alignof (int[100]),
2259 char_alignment = _Alignof (char)
2260 };
2261 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2262
2263 // Check _Noreturn.
2264 int _Noreturn does_not_return (void) { for (;;) continue; }
2265
2266 // Check _Static_assert.
2267 struct test_static_assert
2268 {
2269 int x;
2270 _Static_assert (sizeof (int) <= sizeof (long int),
2271 "_Static_assert does not work in struct");
2272 long int y;
2273 };
2274
2275 // Check UTF-8 literals.
2276 #define u8 syntax error!
2277 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2278
2279 // Check duplicate typedefs.
2280 typedef long *long_ptr;
2281 typedef long int *long_ptr;
2282 typedef long_ptr long_ptr;
2283
2284 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2285 struct anonymous
2286 {
2287 union {
2288 struct { int i; int j; };
2289 struct { int k; long int l; } w;
2290 };
2291 int m;
2292 } v1;
2293 '
2294
2295 # Test code for whether the C compiler supports C11 (body of main).
2296 ac_c_conftest_c11_main='
2297 _Static_assert ((offsetof (struct anonymous, i)
2298 == offsetof (struct anonymous, w.k)),
2299 "Anonymous union alignment botch");
2300 v1.i = 2;
2301 v1.w.k = 5;
2302 ok |= v1.i != 5;
2303 '
2304
2305 # Test code for whether the C compiler supports C11 (complete).
2306 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2307 ${ac_c_conftest_c99_globals}
2308 ${ac_c_conftest_c11_globals}
2309
2310 int
2311 main (int argc, char **argv)
2312 {
2313 int ok = 0;
2314 ${ac_c_conftest_c89_main}
2315 ${ac_c_conftest_c99_main}
2316 ${ac_c_conftest_c11_main}
2317 return ok;
2318 }
2319 "
2320
2321 # Test code for whether the C compiler supports C99 (complete).
2322 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2323 ${ac_c_conftest_c99_globals}
2324
2325 int
2326 main (int argc, char **argv)
2327 {
2328 int ok = 0;
2329 ${ac_c_conftest_c89_main}
2330 ${ac_c_conftest_c99_main}
2331 return ok;
2332 }
2333 "
2334
2335 # Test code for whether the C compiler supports C89 (complete).
2336 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2337
2338 int
2339 main (int argc, char **argv)
2340 {
2341 int ok = 0;
2342 ${ac_c_conftest_c89_main}
2343 return ok;
2344 }
2345 "
2346
2347 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2348 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2349 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2350 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2351 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2352 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2353 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2354 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2355 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2356
2357 # Auxiliary files required by this configure script.
2358 ac_aux_files="config.guess config.sub compile missing install-sh"
2359
2360 # Locations in which to look for auxiliary files.
2361 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2362
2363 # Search for a directory containing all of the required auxiliary files,
2364 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2365 # If we don't find one directory that contains all the files we need,
2366 # we report the set of missing files from the *first* directory in
2367 # $ac_aux_dir_candidates and give up.
2368 ac_missing_aux_files=""
2369 ac_first_candidate=:
2370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 as_found=false
2373 for as_dir in $ac_aux_dir_candidates
2374 do
2375 IFS=$as_save_IFS
2376 case $as_dir in #(((
2377 '') as_dir=./ ;;
2378 */) ;;
2379 *) as_dir=$as_dir/ ;;
2380 esac
2381 as_found=:
2382
2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2384 ac_aux_dir_found=yes
2385 ac_install_sh=
2386 for ac_aux in $ac_aux_files
2387 do
2388 # As a special case, if "install-sh" is required, that requirement
2389 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2390 # and $ac_install_sh is set appropriately for whichever one is found.
2391 if test x"$ac_aux" = x"install-sh"
2392 then
2393 if test -f "${as_dir}install-sh"; then
2394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2395 ac_install_sh="${as_dir}install-sh -c"
2396 elif test -f "${as_dir}install.sh"; then
2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2398 ac_install_sh="${as_dir}install.sh -c"
2399 elif test -f "${as_dir}shtool"; then
2400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2401 ac_install_sh="${as_dir}shtool install -c"
2402 else
2403 ac_aux_dir_found=no
2404 if $ac_first_candidate; then
2405 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2406 else
2407 break
2408 fi
2409 fi
2410 else
2411 if test -f "${as_dir}${ac_aux}"; then
2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2413 else
2414 ac_aux_dir_found=no
2415 if $ac_first_candidate; then
2416 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2417 else
2418 break
2419 fi
2420 fi
2421 fi
2422 done
2423 if test "$ac_aux_dir_found" = yes; then
2424 ac_aux_dir="$as_dir"
2425 break
2426 fi
2427 ac_first_candidate=false
2428
2429 as_found=false
2430 done
2431 IFS=$as_save_IFS
2432 if $as_found
2433 then :
2434
2435 else case e in #(
2436 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2437 esac
2438 fi
2439
2440
2441 # These three variables are undocumented and unsupported,
2442 # and are intended to be withdrawn in a future Autoconf release.
2443 # They can cause serious problems if a builder's source tree is in a directory
2444 # whose full name contains unusual characters.
2445 if test -f "${ac_aux_dir}config.guess"; then
2446 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2447 fi
2448 if test -f "${ac_aux_dir}config.sub"; then
2449 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2450 fi
2451 if test -f "$ac_aux_dir/configure"; then
2452 ac_configure="$SHELL ${ac_aux_dir}configure"
2453 fi
2454
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2466 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2470 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2480 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2484 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2488 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2490 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2503 fi
2504 done
2505 if $ac_cache_corrupted; then
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2507 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2511 and start over" "$LINENO" 5
2512 fi
2513 ## -------------------- ##
2514 ## Main body of script. ##
2515 ## -------------------- ##
2516
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
2524
2525 ac_config_headers="$ac_config_headers config.h"
2526
2527
2528 # Initialize Automake
2529 am__api_version='1.16'
2530
2531
2532
2533 # Find a good install program. We prefer a C program (faster),
2534 # so one script is as good as another. But avoid the broken or
2535 # incompatible versions:
2536 # SysV /etc/install, /usr/sbin/install
2537 # SunOS /usr/etc/install
2538 # IRIX /sbin/install
2539 # AIX /bin/install
2540 # AmigaOS /C/install, which installs bootblocks on floppy discs
2541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2544 # OS/2's system install, which has a completely different semantic
2545 # ./install, which can be erroneously created by make from ./install.sh.
2546 # Reject install programs that cannot install multiple files.
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2548 printf %s "checking for a BSD-compatible install... " >&6; }
2549 if test -z "$INSTALL"; then
2550 if test ${ac_cv_path_install+y}
2551 then :
2552 printf %s "(cached) " >&6
2553 else case e in #(
2554 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 case $as_dir in #(((
2559 '') as_dir=./ ;;
2560 */) ;;
2561 *) as_dir=$as_dir/ ;;
2562 esac
2563 # Account for fact that we put trailing slashes in our PATH walk.
2564 case $as_dir in #((
2565 ./ | /[cC]/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2568 /usr/ucb/* ) ;;
2569 *)
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2572 # by default.
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2579 :
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2583 :
2584 else
2585 rm -rf conftest.one conftest.two conftest.dir
2586 echo one > conftest.one
2587 echo two > conftest.two
2588 mkdir conftest.dir
2589 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2590 test -s conftest.one && test -s conftest.two &&
2591 test -s conftest.dir/conftest.one &&
2592 test -s conftest.dir/conftest.two
2593 then
2594 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2595 break 3
2596 fi
2597 fi
2598 fi
2599 done
2600 done
2601 ;;
2602 esac
2603
2604 done
2605 IFS=$as_save_IFS
2606
2607 rm -rf conftest.one conftest.two conftest.dir
2608 ;;
2609 esac
2610 fi
2611 if test ${ac_cv_path_install+y}; then
2612 INSTALL=$ac_cv_path_install
2613 else
2614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
2618 INSTALL=$ac_install_sh
2619 fi
2620 fi
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2622 printf "%s\n" "$INSTALL" >&6; }
2623
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2627
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2629
2630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2631
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2633 printf %s "checking whether build environment is sane... " >&6; }
2634 # Reject unsafe characters in $srcdir or the absolute working directory
2635 # name. Accept space and tab only in the latter.
2636 am_lf='
2637 '
2638 case `pwd` in
2639 *[\\\"\#\$\&\'\`$am_lf]*)
2640 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2641 esac
2642 case $srcdir in
2643 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2644 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2645 esac
2646
2647 # Do 'set' in a subshell so we don't clobber the current shell's
2648 # arguments. Must try -L first in case configure is actually a
2649 # symlink; some systems play weird games with the mod time of symlinks
2650 # (eg FreeBSD returns the mod time of the symlink's containing
2651 # directory).
2652 if (
2653 am_has_slept=no
2654 for am_try in 1 2; do
2655 echo "timestamp, slept: $am_has_slept" > conftest.file
2656 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2657 if test "$*" = "X"; then
2658 # -L didn't work.
2659 set X `ls -t "$srcdir/configure" conftest.file`
2660 fi
2661 if test "$*" != "X $srcdir/configure conftest.file" \
2662 && test "$*" != "X conftest.file $srcdir/configure"; then
2663
2664 # If neither matched, then we have a broken ls. This can happen
2665 # if, for instance, CONFIG_SHELL is bash and it inherits a
2666 # broken ls alias from the environment. This has actually
2667 # happened. Such a system could not be considered "sane".
2668 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2669 alias in your environment" "$LINENO" 5
2670 fi
2671 if test "$2" = conftest.file || test $am_try -eq 2; then
2672 break
2673 fi
2674 # Just in case.
2675 sleep 1
2676 am_has_slept=yes
2677 done
2678 test "$2" = conftest.file
2679 )
2680 then
2681 # Ok.
2682 :
2683 else
2684 as_fn_error $? "newly created file is older than distributed files!
2685 Check your system clock" "$LINENO" 5
2686 fi
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2688 printf "%s\n" "yes" >&6; }
2689 # If we didn't sleep, we still need to ensure time stamps of config.status and
2690 # generated files are strictly newer.
2691 am_sleep_pid=
2692 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2693 ( sleep 1 ) &
2694 am_sleep_pid=$!
2695 fi
2696
2697 rm -f conftest.file
2698
2699 test "$program_prefix" != NONE &&
2700 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2701 # Use a double $ so make ignores it.
2702 test "$program_suffix" != NONE &&
2703 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2704 # Double any \ or $.
2705 # By default was 's,x,x', remove it if useless.
2706 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2707 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2708
2709
2710 # Expand $ac_aux_dir to an absolute path.
2711 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2712
2713
2714 if test x"${MISSING+set}" != xset; then
2715 MISSING="\${SHELL} '$am_aux_dir/missing'"
2716 fi
2717 # Use eval to expand $SHELL
2718 if eval "$MISSING --is-lightweight"; then
2719 am_missing_run="$MISSING "
2720 else
2721 am_missing_run=
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2723 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2724 fi
2725
2726 if test x"${install_sh+set}" != xset; then
2727 case $am_aux_dir in
2728 *\ * | *\ *)
2729 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2730 *)
2731 install_sh="\${SHELL} $am_aux_dir/install-sh"
2732 esac
2733 fi
2734
2735 # Installed binaries are usually stripped using 'strip' when the user
2736 # run "make install-strip". However 'strip' might not be the right
2737 # tool to use in cross-compilation environments, therefore Automake
2738 # will honor the 'STRIP' environment variable to overrule this program.
2739 if test "$cross_compiling" != no; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}strip; ac_word=$2
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 printf %s "checking for $ac_word... " >&6; }
2745 if test ${ac_cv_prog_STRIP+y}
2746 then :
2747 printf %s "(cached) " >&6
2748 else case e in #(
2749 e) if test -n "$STRIP"; then
2750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 case $as_dir in #(((
2757 '') as_dir=./ ;;
2758 */) ;;
2759 *) as_dir=$as_dir/ ;;
2760 esac
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi ;;
2772 esac
2773 fi
2774 STRIP=$ac_cv_prog_STRIP
2775 if test -n "$STRIP"; then
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2777 printf "%s\n" "$STRIP" >&6; }
2778 else
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 printf "%s\n" "no" >&6; }
2781 fi
2782
2783
2784 fi
2785 if test -z "$ac_cv_prog_STRIP"; then
2786 ac_ct_STRIP=$STRIP
2787 # Extract the first word of "strip", so it can be a program name with args.
2788 set dummy strip; ac_word=$2
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 printf %s "checking for $ac_word... " >&6; }
2791 if test ${ac_cv_prog_ac_ct_STRIP+y}
2792 then :
2793 printf %s "(cached) " >&6
2794 else case e in #(
2795 e) if test -n "$ac_ct_STRIP"; then
2796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 case $as_dir in #(((
2803 '') as_dir=./ ;;
2804 */) ;;
2805 *) as_dir=$as_dir/ ;;
2806 esac
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_ac_ct_STRIP="strip"
2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi ;;
2818 esac
2819 fi
2820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2821 if test -n "$ac_ct_STRIP"; then
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2823 printf "%s\n" "$ac_ct_STRIP" >&6; }
2824 else
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 printf "%s\n" "no" >&6; }
2827 fi
2828
2829 if test "x$ac_ct_STRIP" = x; then
2830 STRIP=":"
2831 else
2832 case $cross_compiling:$ac_tool_warned in
2833 yes:)
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2837 esac
2838 STRIP=$ac_ct_STRIP
2839 fi
2840 else
2841 STRIP="$ac_cv_prog_STRIP"
2842 fi
2843
2844 fi
2845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846
2847
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2849 printf %s "checking for a race-free mkdir -p... " >&6; }
2850 if test -z "$MKDIR_P"; then
2851 if test ${ac_cv_path_mkdir+y}
2852 then :
2853 printf %s "(cached) " >&6
2854 else case e in #(
2855 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2857 do
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_prog in mkdir gmkdir; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2867 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2868 'mkdir ('*'coreutils) '* | \
2869 *'BusyBox '* | \
2870 'mkdir (fileutils) '4.1*)
2871 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2872 break 3;;
2873 esac
2874 done
2875 done
2876 done
2877 IFS=$as_save_IFS
2878 ;;
2879 esac
2880 fi
2881
2882 test -d ./--version && rmdir ./--version
2883 if test ${ac_cv_path_mkdir+y}; then
2884 MKDIR_P="$ac_cv_path_mkdir -p"
2885 else
2886 # As a last resort, use plain mkdir -p,
2887 # in the hope it doesn't have the bugs of ancient mkdir.
2888 MKDIR_P='mkdir -p'
2889 fi
2890 fi
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2892 printf "%s\n" "$MKDIR_P" >&6; }
2893
2894 for ac_prog in gawk mawk nawk awk
2895 do
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 printf %s "checking for $ac_word... " >&6; }
2900 if test ${ac_cv_prog_AWK+y}
2901 then :
2902 printf %s "(cached) " >&6
2903 else case e in #(
2904 e) if test -n "$AWK"; then
2905 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 case $as_dir in #(((
2912 '') as_dir=./ ;;
2913 */) ;;
2914 *) as_dir=$as_dir/ ;;
2915 esac
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_AWK="$ac_prog"
2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi ;;
2927 esac
2928 fi
2929 AWK=$ac_cv_prog_AWK
2930 if test -n "$AWK"; then
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932 printf "%s\n" "$AWK" >&6; }
2933 else
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 printf "%s\n" "no" >&6; }
2936 fi
2937
2938
2939 test -n "$AWK" && break
2940 done
2941
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944 set x ${MAKE-make}
2945 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2947 then :
2948 printf %s "(cached) " >&6
2949 else case e in #(
2950 e) cat >conftest.make <<\_ACEOF
2951 SHELL = /bin/sh
2952 all:
2953 @echo '@@@%%%=$(MAKE)=@@@%%%'
2954 _ACEOF
2955 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2957 *@@@%%%=?*=@@@%%%*)
2958 eval ac_cv_prog_make_${ac_make}_set=yes;;
2959 *)
2960 eval ac_cv_prog_make_${ac_make}_set=no;;
2961 esac
2962 rm -f conftest.make ;;
2963 esac
2964 fi
2965 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 printf "%s\n" "yes" >&6; }
2968 SET_MAKE=
2969 else
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 printf "%s\n" "no" >&6; }
2972 SET_MAKE="MAKE=${MAKE-make}"
2973 fi
2974
2975 rm -rf .tst 2>/dev/null
2976 mkdir .tst 2>/dev/null
2977 if test -d .tst; then
2978 am__leading_dot=.
2979 else
2980 am__leading_dot=_
2981 fi
2982 rmdir .tst 2>/dev/null
2983
2984 # Check whether --enable-silent-rules was given.
2985 if test ${enable_silent_rules+y}
2986 then :
2987 enableval=$enable_silent_rules;
2988 fi
2989
2990 case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994 esac
2995 am_make=${MAKE-make}
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 printf %s "checking whether $am_make supports nested variables... " >&6; }
2998 if test ${am_cv_make_support_nested_variables+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else case e in #(
3002 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3003 BAR0=false
3004 BAR1=true
3005 V=1
3006 am__doit:
3007 @$(TRUE)
3008 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010 else
3011 am_cv_make_support_nested_variables=no
3012 fi ;;
3013 esac
3014 fi
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3016 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3017 if test $am_cv_make_support_nested_variables = yes; then
3018 AM_V='$(V)'
3019 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3020 else
3021 AM_V=$AM_DEFAULT_VERBOSITY
3022 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3023 fi
3024 AM_BACKSLASH='\'
3025
3026 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3027 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3028 # is not polluted with repeated "-I."
3029 am__isrc=' -I$(srcdir)'
3030 # test to see if srcdir already configured
3031 if test -f $srcdir/config.status; then
3032 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3033 fi
3034 fi
3035
3036 # test whether we have cygpath
3037 if test -z "$CYGPATH_W"; then
3038 if (cygpath --version) >/dev/null 2>/dev/null; then
3039 CYGPATH_W='cygpath -w'
3040 else
3041 CYGPATH_W=echo
3042 fi
3043 fi
3044
3045
3046 # Define the identity of the package.
3047 PACKAGE='xmessage'
3048 VERSION='1.0.7'
3049
3050
3051 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3052
3053
3054 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3055
3056 # Some tools Automake needs.
3057
3058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3059
3060
3061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3062
3063
3064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3065
3066
3067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3068
3069
3070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071
3072 # For better backward compatibility. To be removed once Automake 1.9.x
3073 # dies out for good. For more background, see:
3074 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3075 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3076 mkdir_p='$(MKDIR_P)'
3077
3078 # We need awk for the "check" target (and possibly the TAP driver). The
3079 # system "awk" is bad on some platforms.
3080 # Always define AMTAR for backward compatibility. Yes, it's still used
3081 # in the wild :-( We should find a proper way to deprecate it ...
3082 AMTAR='$${TAR-tar}'
3083
3084
3085 # We'll loop over all known methods to create a tar archive until one works.
3086 _am_tools='gnutar pax cpio none'
3087
3088 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3089
3090
3091
3092
3093
3094 # Variables for tags utilities; see am/tags.am
3095 if test -z "$CTAGS"; then
3096 CTAGS=ctags
3097 fi
3098
3099 if test -z "$ETAGS"; then
3100 ETAGS=etags
3101 fi
3102
3103 if test -z "$CSCOPE"; then
3104 CSCOPE=cscope
3105 fi
3106
3107
3108
3109 # POSIX will say in a future version that running "rm -f" with no argument
3110 # is OK; and we want to be able to make that assumption in our Makefile
3111 # recipes. So use an aggressive probe to check that the usage we want is
3112 # actually supported "in the wild" to an acceptable degree.
3113 # See automake bug#10828.
3114 # To make any issue more visible, cause the running configure to be aborted
3115 # by default if the 'rm' program in use doesn't match our expectations; the
3116 # user can still override this though.
3117 if rm -f && rm -fr && rm -rf; then : OK; else
3118 cat >&2 <<'END'
3119 Oops!
3120
3121 Your 'rm' program seems unable to run without file operands specified
3122 on the command line, even when the '-f' option is present. This is contrary
3123 to the behaviour of most rm programs out there, and not conforming with
3124 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3125
3126 Please tell bug-automake@gnu.org about your system, including the value
3127 of your $PATH and any error possibly output before this message. This
3128 can help us improve future automake versions.
3129
3130 END
3131 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3132 echo 'Configuration will proceed anyway, since you have set the' >&2
3133 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3134 echo >&2
3135 else
3136 cat >&2 <<'END'
3137 Aborting the configuration process, to ensure you take notice of the issue.
3138
3139 You can download and install GNU coreutils to get an 'rm' implementation
3140 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3141
3142 If you want to complete the configuration process using your problematic
3143 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3144 to "yes", and re-run configure.
3145
3146 END
3147 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3148 fi
3149 fi
3150
3151
3152 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173 DEPDIR="${am__leading_dot}deps"
3174
3175 ac_config_commands="$ac_config_commands depfiles"
3176
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3178 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3179 cat > confinc.mk << 'END'
3180 am__doit:
3181 @echo this is the am__doit target >confinc.out
3182 .PHONY: am__doit
3183 END
3184 am__include="#"
3185 am__quote=
3186 # BSD make does it like this.
3187 echo '.include "confinc.mk" # ignored' > confmf.BSD
3188 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3189 echo 'include confinc.mk # ignored' > confmf.GNU
3190 _am_result=no
3191 for s in GNU BSD; do
3192 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3193 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197 case $?:`cat confinc.out 2>/dev/null` in #(
3198 '0:this is the am__doit target') :
3199 case $s in #(
3200 BSD) :
3201 am__include='.include' am__quote='"' ;; #(
3202 *) :
3203 am__include='include' am__quote='' ;;
3204 esac ;; #(
3205 *) :
3206 ;;
3207 esac
3208 if test "$am__include" != "#"; then
3209 _am_result="yes ($s style)"
3210 break
3211 fi
3212 done
3213 rm -f confinc.* confmf.*
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3215 printf "%s\n" "${_am_result}" >&6; }
3216
3217 # Check whether --enable-dependency-tracking was given.
3218 if test ${enable_dependency_tracking+y}
3219 then :
3220 enableval=$enable_dependency_tracking;
3221 fi
3222
3223 if test "x$enable_dependency_tracking" != xno; then
3224 am_depcomp="$ac_aux_dir/depcomp"
3225 AMDEPBACKSLASH='\'
3226 am__nodep='_no'
3227 fi
3228 if test "x$enable_dependency_tracking" != xno; then
3229 AMDEP_TRUE=
3230 AMDEP_FALSE='#'
3231 else
3232 AMDEP_TRUE='#'
3233 AMDEP_FALSE=
3234 fi
3235
3236
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 printf %s "checking for $ac_word... " >&6; }
3247 if test ${ac_cv_prog_CC+y}
3248 then :
3249 printf %s "(cached) " >&6
3250 else case e in #(
3251 e) if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 case $as_dir in #(((
3259 '') as_dir=./ ;;
3260 */) ;;
3261 *) as_dir=$as_dir/ ;;
3262 esac
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 fi ;;
3274 esac
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 printf "%s\n" "$CC" >&6; }
3280 else
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 printf "%s\n" "no" >&6; }
3283 fi
3284
3285
3286 fi
3287 if test -z "$ac_cv_prog_CC"; then
3288 ac_ct_CC=$CC
3289 # Extract the first word of "gcc", so it can be a program name with args.
3290 set dummy gcc; ac_word=$2
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 printf %s "checking for $ac_word... " >&6; }
3293 if test ${ac_cv_prog_ac_ct_CC+y}
3294 then :
3295 printf %s "(cached) " >&6
3296 else case e in #(
3297 e) if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 case $as_dir in #(((
3305 '') as_dir=./ ;;
3306 */) ;;
3307 *) as_dir=$as_dir/ ;;
3308 esac
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC="gcc"
3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 fi ;;
3320 esac
3321 fi
3322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323 if test -n "$ac_ct_CC"; then
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3325 printf "%s\n" "$ac_ct_CC" >&6; }
3326 else
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 printf "%s\n" "no" >&6; }
3329 fi
3330
3331 if test "x$ac_ct_CC" = x; then
3332 CC=""
3333 else
3334 case $cross_compiling:$ac_tool_warned in
3335 yes:)
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3338 ac_tool_warned=yes ;;
3339 esac
3340 CC=$ac_ct_CC
3341 fi
3342 else
3343 CC="$ac_cv_prog_CC"
3344 fi
3345
3346 if test -z "$CC"; then
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}cc; ac_word=$2
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 printf %s "checking for $ac_word... " >&6; }
3352 if test ${ac_cv_prog_CC+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else case e in #(
3356 e) if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 case $as_dir in #(((
3364 '') as_dir=./ ;;
3365 */) ;;
3366 *) as_dir=$as_dir/ ;;
3367 esac
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi ;;
3379 esac
3380 fi
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384 printf "%s\n" "$CC" >&6; }
3385 else
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 printf "%s\n" "no" >&6; }
3388 fi
3389
3390
3391 fi
3392 fi
3393 if test -z "$CC"; then
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 printf %s "checking for $ac_word... " >&6; }
3398 if test ${ac_cv_prog_CC+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else case e in #(
3402 e) if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 ac_prog_rejected=no
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 case $as_dir in #(((
3411 '') as_dir=./ ;;
3412 */) ;;
3413 *) as_dir=$as_dir/ ;;
3414 esac
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3417 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3418 ac_prog_rejected=yes
3419 continue
3420 fi
3421 ac_cv_prog_CC="cc"
3422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 if test $ac_prog_rejected = yes; then
3430 # We found a bogon in the path, so make sure we never use it.
3431 set dummy $ac_cv_prog_CC
3432 shift
3433 if test $# != 0; then
3434 # We chose a different compiler from the bogus one.
3435 # However, it has the same basename, so the bogon will be chosen
3436 # first if we set CC to just the basename; use the full file name.
3437 shift
3438 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3439 fi
3440 fi
3441 fi ;;
3442 esac
3443 fi
3444 CC=$ac_cv_prog_CC
3445 if test -n "$CC"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3447 printf "%s\n" "$CC" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3451 fi
3452
3453
3454 fi
3455 if test -z "$CC"; then
3456 if test -n "$ac_tool_prefix"; then
3457 for ac_prog in cl.exe
3458 do
3459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 printf %s "checking for $ac_word... " >&6; }
3463 if test ${ac_cv_prog_CC+y}
3464 then :
3465 printf %s "(cached) " >&6
3466 else case e in #(
3467 e) if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 case $as_dir in #(((
3475 '') as_dir=./ ;;
3476 */) ;;
3477 *) as_dir=$as_dir/ ;;
3478 esac
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi ;;
3490 esac
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 fi
3500
3501
3502 test -n "$CC" && break
3503 done
3504 fi
3505 if test -z "$CC"; then
3506 ac_ct_CC=$CC
3507 for ac_prog in cl.exe
3508 do
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 printf %s "checking for $ac_word... " >&6; }
3513 if test ${ac_cv_prog_ac_ct_CC+y}
3514 then :
3515 printf %s "(cached) " >&6
3516 else case e in #(
3517 e) if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 case $as_dir in #(((
3525 '') as_dir=./ ;;
3526 */) ;;
3527 *) as_dir=$as_dir/ ;;
3528 esac
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_CC="$ac_prog"
3532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535 done
3536 done
3537 IFS=$as_save_IFS
3538
3539 fi ;;
3540 esac
3541 fi
3542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3543 if test -n "$ac_ct_CC"; then
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3545 printf "%s\n" "$ac_ct_CC" >&6; }
3546 else
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 printf "%s\n" "no" >&6; }
3549 fi
3550
3551
3552 test -n "$ac_ct_CC" && break
3553 done
3554
3555 if test "x$ac_ct_CC" = x; then
3556 CC=""
3557 else
3558 case $cross_compiling:$ac_tool_warned in
3559 yes:)
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3563 esac
3564 CC=$ac_ct_CC
3565 fi
3566 fi
3567
3568 fi
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3572 set dummy ${ac_tool_prefix}clang; ac_word=$2
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 printf %s "checking for $ac_word... " >&6; }
3575 if test ${ac_cv_prog_CC+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else case e in #(
3579 e) if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 case $as_dir in #(((
3587 '') as_dir=./ ;;
3588 */) ;;
3589 *) as_dir=$as_dir/ ;;
3590 esac
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_CC="${ac_tool_prefix}clang"
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi ;;
3602 esac
3603 fi
3604 CC=$ac_cv_prog_CC
3605 if test -n "$CC"; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607 printf "%s\n" "$CC" >&6; }
3608 else
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 printf "%s\n" "no" >&6; }
3611 fi
3612
3613
3614 fi
3615 if test -z "$ac_cv_prog_CC"; then
3616 ac_ct_CC=$CC
3617 # Extract the first word of "clang", so it can be a program name with args.
3618 set dummy clang; ac_word=$2
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 printf %s "checking for $ac_word... " >&6; }
3621 if test ${ac_cv_prog_ac_ct_CC+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else case e in #(
3625 e) if test -n "$ac_ct_CC"; then
3626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 case $as_dir in #(((
3633 '') as_dir=./ ;;
3634 */) ;;
3635 *) as_dir=$as_dir/ ;;
3636 esac
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_ac_ct_CC="clang"
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi ;;
3648 esac
3649 fi
3650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651 if test -n "$ac_ct_CC"; then
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653 printf "%s\n" "$ac_ct_CC" >&6; }
3654 else
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3657 fi
3658
3659 if test "x$ac_ct_CC" = x; then
3660 CC=""
3661 else
3662 case $cross_compiling:$ac_tool_warned in
3663 yes:)
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3666 ac_tool_warned=yes ;;
3667 esac
3668 CC=$ac_ct_CC
3669 fi
3670 else
3671 CC="$ac_cv_prog_CC"
3672 fi
3673
3674 fi
3675
3676
3677 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3678 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3679 as_fn_error $? "no acceptable C compiler found in \$PATH
3680 See 'config.log' for more details" "$LINENO" 5; }
3681
3682 # Provide some information about the compiler.
3683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3684 set X $ac_compile
3685 ac_compiler=$2
3686 for ac_option in --version -v -V -qversion -version; do
3687 { { ac_try="$ac_compiler $ac_option >&5"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 printf "%s\n" "$ac_try_echo"; } >&5
3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3695 ac_status=$?
3696 if test -s conftest.err; then
3697 sed '10a\
3698 ... rest of stderr output deleted ...
3699 10q' conftest.err >conftest.er1
3700 cat conftest.er1 >&5
3701 fi
3702 rm -f conftest.er1 conftest.err
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }
3705 done
3706
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main (void)
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 ac_clean_files_save=$ac_clean_files
3719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3720 # Try to create an executable without -o first, disregard a.out.
3721 # It will help us diagnose broken compilers, and finding out an intuition
3722 # of exeext.
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3724 printf %s "checking whether the C compiler works... " >&6; }
3725 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3726
3727 # The possible output files:
3728 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3729
3730 ac_rmfiles=
3731 for ac_file in $ac_files
3732 do
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3736 esac
3737 done
3738 rm -f $ac_rmfiles
3739
3740 if { { ac_try="$ac_link_default"
3741 case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 printf "%s\n" "$ac_try_echo"; } >&5
3747 (eval "$ac_link_default") 2>&5
3748 ac_status=$?
3749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3751 then :
3752 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3753 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3754 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3755 # so that the user can short-circuit this test for compilers unknown to
3756 # Autoconf.
3757 for ac_file in $ac_files ''
3758 do
3759 test -f "$ac_file" || continue
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3762 ;;
3763 [ab].out )
3764 # We found the default executable, but exeext='' is most
3765 # certainly right.
3766 break;;
3767 *.* )
3768 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3769 then :; else
3770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3771 fi
3772 # We set ac_cv_exeext here because the later test for it is not
3773 # safe: cross compilers may not add the suffix if given an '-o'
3774 # argument, so we may need to know it at that point already.
3775 # Even if this section looks crufty: it has the advantage of
3776 # actually working.
3777 break;;
3778 * )
3779 break;;
3780 esac
3781 done
3782 test "$ac_cv_exeext" = no && ac_cv_exeext=
3783
3784 else case e in #(
3785 e) ac_file='' ;;
3786 esac
3787 fi
3788 if test -z "$ac_file"
3789 then :
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 printf "%s\n" "no" >&6; }
3792 printf "%s\n" "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3796 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3797 as_fn_error 77 "C compiler cannot create executables
3798 See 'config.log' for more details" "$LINENO" 5; }
3799 else case e in #(
3800 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3801 printf "%s\n" "yes" >&6; } ;;
3802 esac
3803 fi
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3805 printf %s "checking for C compiler default output file name... " >&6; }
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3807 printf "%s\n" "$ac_file" >&6; }
3808 ac_exeext=$ac_cv_exeext
3809
3810 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3811 ac_clean_files=$ac_clean_files_save
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3813 printf %s "checking for suffix of executables... " >&6; }
3814 if { { ac_try="$ac_link"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 printf "%s\n" "$ac_try_echo"; } >&5
3821 (eval "$ac_link") 2>&5
3822 ac_status=$?
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }
3825 then :
3826 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3827 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3828 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3829 # 'rm'.
3830 for ac_file in conftest.exe conftest conftest.*; do
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3835 break;;
3836 * ) break;;
3837 esac
3838 done
3839 else case e in #(
3840 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3841 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3842 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3843 See 'config.log' for more details" "$LINENO" 5; } ;;
3844 esac
3845 fi
3846 rm -f conftest conftest$ac_cv_exeext
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3848 printf "%s\n" "$ac_cv_exeext" >&6; }
3849
3850 rm -f conftest.$ac_ext
3851 EXEEXT=$ac_cv_exeext
3852 ac_exeext=$EXEEXT
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <stdio.h>
3856 int
3857 main (void)
3858 {
3859 FILE *f = fopen ("conftest.out", "w");
3860 if (!f)
3861 return 1;
3862 return ferror (f) || fclose (f) != 0;
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_clean_files="$ac_clean_files conftest.out"
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872 printf %s "checking whether we are cross compiling... " >&6; }
3873 if test "$cross_compiling" != yes; then
3874 { { ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 printf "%s\n" "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }
3885 if { ac_try='./conftest$ac_cv_exeext'
3886 { { case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 printf "%s\n" "$ac_try_echo"; } >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; }; then
3896 cross_compiling=no
3897 else
3898 if test "$cross_compiling" = maybe; then
3899 cross_compiling=yes
3900 else
3901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3902 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3903 as_fn_error 77 "cannot run C compiled programs.
3904 If you meant to cross compile, use '--host'.
3905 See 'config.log' for more details" "$LINENO" 5; }
3906 fi
3907 fi
3908 fi
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910 printf "%s\n" "$cross_compiling" >&6; }
3911
3912 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3913 conftest.o conftest.obj conftest.out
3914 ac_clean_files=$ac_clean_files_save
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3916 printf %s "checking for suffix of object files... " >&6; }
3917 if test ${ac_cv_objext+y}
3918 then :
3919 printf %s "(cached) " >&6
3920 else case e in #(
3921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main (void)
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.o conftest.obj
3933 if { { ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 printf "%s\n" "$ac_try_echo"; } >&5
3940 (eval "$ac_compile") 2>&5
3941 ac_status=$?
3942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }
3944 then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3947 case $ac_file in
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 break;;
3951 esac
3952 done
3953 else case e in #(
3954 e) printf "%s\n" "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3958 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of object files: cannot compile
3960 See 'config.log' for more details" "$LINENO" 5; } ;;
3961 esac
3962 fi
3963 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3964 esac
3965 fi
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3967 printf "%s\n" "$ac_cv_objext" >&6; }
3968 OBJEXT=$ac_cv_objext
3969 ac_objext=$OBJEXT
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3971 printf %s "checking whether the compiler supports GNU C... " >&6; }
3972 if test ${ac_cv_c_compiler_gnu+y}
3973 then :
3974 printf %s "(cached) " >&6
3975 else case e in #(
3976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main (void)
3981 {
3982 #ifndef __GNUC__
3983 choke me
3984 #endif
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"
3991 then :
3992 ac_compiler_gnu=yes
3993 else case e in #(
3994 e) ac_compiler_gnu=no ;;
3995 esac
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3998 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3999 ;;
4000 esac
4001 fi
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4003 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005
4006 if test $ac_compiler_gnu = yes; then
4007 GCC=yes
4008 else
4009 GCC=
4010 fi
4011 ac_test_CFLAGS=${CFLAGS+y}
4012 ac_save_CFLAGS=$CFLAGS
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4014 printf %s "checking whether $CC accepts -g... " >&6; }
4015 if test ${ac_cv_prog_cc_g+y}
4016 then :
4017 printf %s "(cached) " >&6
4018 else case e in #(
4019 e) ac_save_c_werror_flag=$ac_c_werror_flag
4020 ac_c_werror_flag=yes
4021 ac_cv_prog_cc_g=no
4022 CFLAGS="-g"
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025
4026 int
4027 main (void)
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"
4035 then :
4036 ac_cv_prog_cc_g=yes
4037 else case e in #(
4038 e) CFLAGS=""
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main (void)
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"
4051 then :
4052
4053 else case e in #(
4054 e) ac_c_werror_flag=$ac_save_c_werror_flag
4055 CFLAGS="-g"
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058
4059 int
4060 main (void)
4061 {
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"
4068 then :
4069 ac_cv_prog_cc_g=yes
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4072 esac
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4075 esac
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4079 esac
4080 fi
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4082 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4083 if test $ac_test_CFLAGS; then
4084 CFLAGS=$ac_save_CFLAGS
4085 elif test $ac_cv_prog_cc_g = yes; then
4086 if test "$GCC" = yes; then
4087 CFLAGS="-g -O2"
4088 else
4089 CFLAGS="-g"
4090 fi
4091 else
4092 if test "$GCC" = yes; then
4093 CFLAGS="-O2"
4094 else
4095 CFLAGS=
4096 fi
4097 fi
4098 ac_prog_cc_stdc=no
4099 if test x$ac_prog_cc_stdc = xno
4100 then :
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4102 printf %s "checking for $CC option to enable C11 features... " >&6; }
4103 if test ${ac_cv_prog_cc_c11+y}
4104 then :
4105 printf %s "(cached) " >&6
4106 else case e in #(
4107 e) ac_cv_prog_cc_c11=no
4108 ac_save_CC=$CC
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 $ac_c_conftest_c11_program
4112 _ACEOF
4113 for ac_arg in '' -std=gnu11
4114 do
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"
4117 then :
4118 ac_cv_prog_cc_c11=$ac_arg
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.beam
4121 test "x$ac_cv_prog_cc_c11" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC ;;
4125 esac
4126 fi
4127
4128 if test "x$ac_cv_prog_cc_c11" = xno
4129 then :
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131 printf "%s\n" "unsupported" >&6; }
4132 else case e in #(
4133 e) if test "x$ac_cv_prog_cc_c11" = x
4134 then :
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136 printf "%s\n" "none needed" >&6; }
4137 else case e in #(
4138 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4139 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4140 CC="$CC $ac_cv_prog_cc_c11" ;;
4141 esac
4142 fi
4143 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4144 ac_prog_cc_stdc=c11 ;;
4145 esac
4146 fi
4147 fi
4148 if test x$ac_prog_cc_stdc = xno
4149 then :
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4151 printf %s "checking for $CC option to enable C99 features... " >&6; }
4152 if test ${ac_cv_prog_cc_c99+y}
4153 then :
4154 printf %s "(cached) " >&6
4155 else case e in #(
4156 e) ac_cv_prog_cc_c99=no
4157 ac_save_CC=$CC
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 $ac_c_conftest_c99_program
4161 _ACEOF
4162 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4163 do
4164 CC="$ac_save_CC $ac_arg"
4165 if ac_fn_c_try_compile "$LINENO"
4166 then :
4167 ac_cv_prog_cc_c99=$ac_arg
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.beam
4170 test "x$ac_cv_prog_cc_c99" != "xno" && break
4171 done
4172 rm -f conftest.$ac_ext
4173 CC=$ac_save_CC ;;
4174 esac
4175 fi
4176
4177 if test "x$ac_cv_prog_cc_c99" = xno
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4180 printf "%s\n" "unsupported" >&6; }
4181 else case e in #(
4182 e) if test "x$ac_cv_prog_cc_c99" = x
4183 then :
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 printf "%s\n" "none needed" >&6; }
4186 else case e in #(
4187 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4188 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4189 CC="$CC $ac_cv_prog_cc_c99" ;;
4190 esac
4191 fi
4192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4193 ac_prog_cc_stdc=c99 ;;
4194 esac
4195 fi
4196 fi
4197 if test x$ac_prog_cc_stdc = xno
4198 then :
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4200 printf %s "checking for $CC option to enable C89 features... " >&6; }
4201 if test ${ac_cv_prog_cc_c89+y}
4202 then :
4203 printf %s "(cached) " >&6
4204 else case e in #(
4205 e) ac_cv_prog_cc_c89=no
4206 ac_save_CC=$CC
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 $ac_c_conftest_c89_program
4210 _ACEOF
4211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4212 do
4213 CC="$ac_save_CC $ac_arg"
4214 if ac_fn_c_try_compile "$LINENO"
4215 then :
4216 ac_cv_prog_cc_c89=$ac_arg
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.beam
4219 test "x$ac_cv_prog_cc_c89" != "xno" && break
4220 done
4221 rm -f conftest.$ac_ext
4222 CC=$ac_save_CC ;;
4223 esac
4224 fi
4225
4226 if test "x$ac_cv_prog_cc_c89" = xno
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4229 printf "%s\n" "unsupported" >&6; }
4230 else case e in #(
4231 e) if test "x$ac_cv_prog_cc_c89" = x
4232 then :
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 printf "%s\n" "none needed" >&6; }
4235 else case e in #(
4236 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4238 CC="$CC $ac_cv_prog_cc_c89" ;;
4239 esac
4240 fi
4241 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4242 ac_prog_cc_stdc=c89 ;;
4243 esac
4244 fi
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4260 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4261 if test ${am_cv_prog_cc_c_o+y}
4262 then :
4263 printf %s "(cached) " >&6
4264 else case e in #(
4265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267
4268 int
4269 main (void)
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # Following AC_PROG_CC_C_O, we do the test twice because some
4278 # compilers refuse to overwrite an existing .o file with -o,
4279 # though they will create one.
4280 am_cv_prog_cc_c_o=yes
4281 for am_i in 1 2; do
4282 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4283 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } \
4287 && test -f conftest2.$ac_objext; then
4288 : OK
4289 else
4290 am_cv_prog_cc_c_o=no
4291 break
4292 fi
4293 done
4294 rm -f core conftest*
4295 unset am_i ;;
4296 esac
4297 fi
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4299 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4300 if test "$am_cv_prog_cc_c_o" != yes; then
4301 # Losing compiler, so override with the script.
4302 # FIXME: It is wrong to rewrite CC.
4303 # But if we don't then we get into trouble of one sort or another.
4304 # A longer-term fix would be to have automake use am__CC in this case,
4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306 CC="$am_aux_dir/compile $CC"
4307 fi
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313
4314
4315 depcc="$CC" am_compiler_list=
4316
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4318 printf %s "checking dependency style of $depcc... " >&6; }
4319 if test ${am_cv_CC_dependencies_compiler_type+y}
4320 then :
4321 printf %s "(cached) " >&6
4322 else case e in #(
4323 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324 # We make a subdir and do the tests there. Otherwise we can end up
4325 # making bogus files that we don't know about and never remove. For
4326 # instance it was reported that on HP-UX the gcc test will end up
4327 # making a dummy file named 'D' -- because '-MD' means "put the output
4328 # in D".
4329 rm -rf conftest.dir
4330 mkdir conftest.dir
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4334 cd conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4340 # directory.
4341 mkdir sub
4342
4343 am_cv_CC_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346 fi
4347 am__universal=false
4348 case " $depcc " in #(
4349 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4350 esac
4351
4352 for depmode in $am_compiler_list; do
4353 # Setup a source with many dependencies, because some compilers
4354 # like to wrap large dependency lists on column 80 (with \), and
4355 # we should not choose a depcomp mode which is confused by this.
4356 #
4357 # We need to recreate these files for each test, as the compiler may
4358 # overwrite some of them when testing with obscure command lines.
4359 # This happens at least with the AIX C compiler.
4360 : > sub/conftest.c
4361 for i in 1 2 3 4 5 6; do
4362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4363 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4364 # Solaris 10 /bin/sh.
4365 echo '/* dummy */' > sub/conftst$i.h
4366 done
4367 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368
4369 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4370 # mode. It turns out that the SunPro C++ compiler does not properly
4371 # handle '-M -o', and we need to detect this. Also, some Intel
4372 # versions had trouble with output in subdirs.
4373 am__obj=sub/conftest.${OBJEXT-o}
4374 am__minus_obj="-o $am__obj"
4375 case $depmode in
4376 gcc)
4377 # This depmode causes a compiler race in universal mode.
4378 test "$am__universal" = false || continue
4379 ;;
4380 nosideeffect)
4381 # After this tag, mechanisms are not by side-effect, so they'll
4382 # only be used when explicitly requested.
4383 if test "x$enable_dependency_tracking" = xyes; then
4384 continue
4385 else
4386 break
4387 fi
4388 ;;
4389 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4390 # This compiler won't grok '-c -o', but also, the minuso test has
4391 # not run yet. These depmodes are late enough in the game, and
4392 # so weak that their functioning should not be impacted.
4393 am__obj=conftest.${OBJEXT-o}
4394 am__minus_obj=
4395 ;;
4396 none) break ;;
4397 esac
4398 if depmode=$depmode \
4399 source=sub/conftest.c object=$am__obj \
4400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4401 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4402 >/dev/null 2>conftest.err &&
4403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4407 # icc doesn't choke on unknown options, it will just issue warnings
4408 # or remarks (even with -Werror). So we grep stderr for any message
4409 # that says an option was ignored or not supported.
4410 # When given -MP, icc 7.0 and 7.1 complain thusly:
4411 # icc: Command line warning: ignoring option '-M'; no argument required
4412 # The diagnosis changed in icc 8.0:
4413 # icc: Command line remark: option '-MP' not supported
4414 if (grep 'ignoring option' conftest.err ||
4415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4416 am_cv_CC_dependencies_compiler_type=$depmode
4417 break
4418 fi
4419 fi
4420 done
4421
4422 cd ..
4423 rm -rf conftest.dir
4424 else
4425 am_cv_CC_dependencies_compiler_type=none
4426 fi
4427 ;;
4428 esac
4429 fi
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4431 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4432 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4433
4434 if
4435 test "x$enable_dependency_tracking" != xno \
4436 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4437 am__fastdepCC_TRUE=
4438 am__fastdepCC_FALSE='#'
4439 else
4440 am__fastdepCC_TRUE='#'
4441 am__fastdepCC_FALSE=
4442 fi
4443
4444
4445
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4447 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4448 if test ${ac_cv_c_undeclared_builtin_options+y}
4449 then :
4450 printf %s "(cached) " >&6
4451 else case e in #(
4452 e) ac_save_CFLAGS=$CFLAGS
4453 ac_cv_c_undeclared_builtin_options='cannot detect'
4454 for ac_arg in '' -fno-builtin; do
4455 CFLAGS="$ac_save_CFLAGS $ac_arg"
4456 # This test program should *not* compile successfully.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main (void)
4462 {
4463 (void) strchr;
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"
4469 then :
4470
4471 else case e in #(
4472 e) # This test program should compile successfully.
4473 # No library function is consistently available on
4474 # freestanding implementations, so test against a dummy
4475 # declaration. Include always-available headers on the
4476 # off chance that they somehow elicit warnings.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <float.h>
4480 #include <limits.h>
4481 #include <stdarg.h>
4482 #include <stddef.h>
4483 extern void ac_decl (int, char *);
4484
4485 int
4486 main (void)
4487 {
4488 (void) ac_decl (0, (char *) 0);
4489 (void) ac_decl;
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"
4496 then :
4497 if test x"$ac_arg" = x
4498 then :
4499 ac_cv_c_undeclared_builtin_options='none needed'
4500 else case e in #(
4501 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4502 esac
4503 fi
4504 break
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4507 esac
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 done
4511 CFLAGS=$ac_save_CFLAGS
4512 ;;
4513 esac
4514 fi
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4516 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4517 case $ac_cv_c_undeclared_builtin_options in #(
4518 'cannot detect') :
4519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4520 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4521 as_fn_error $? "cannot make $CC report undeclared builtins
4522 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4523 'none needed') :
4524 ac_c_undeclared_builtin_options='' ;; #(
4525 *) :
4526 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4527 esac
4528
4529 ac_header= ac_cache=
4530 for ac_item in $ac_header_c_list
4531 do
4532 if test $ac_cache; then
4533 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4534 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4535 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4536 fi
4537 ac_header= ac_cache=
4538 elif test $ac_header; then
4539 ac_cache=$ac_item
4540 else
4541 ac_header=$ac_item
4542 fi
4543 done
4544
4545
4546
4547
4548
4549
4550
4551
4552 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4553 then :
4554
4555 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4556
4557 fi
4558
4559
4560
4561
4562 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4563 if test "x$ac_cv_have_decl___clang__" = xyes
4564 then :
4565 CLANGCC="yes"
4566 else case e in #(
4567 e) CLANGCC="no" ;;
4568 esac
4569 fi
4570 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4572 then :
4573 INTELCC="yes"
4574 else case e in #(
4575 e) INTELCC="no" ;;
4576 esac
4577 fi
4578 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4579 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4580 then :
4581 SUNCC="yes"
4582 else case e in #(
4583 e) SUNCC="no" ;;
4584 esac
4585 fi
4586
4587
4588
4589
4590
4591
4592
4593
4594 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4595 if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 printf %s "checking for $ac_word... " >&6; }
4600 if test ${ac_cv_path_PKG_CONFIG+y}
4601 then :
4602 printf %s "(cached) " >&6
4603 else case e in #(
4604 e) case $PKG_CONFIG in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4607 ;;
4608 *)
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612 IFS=$as_save_IFS
4613 case $as_dir in #(((
4614 '') as_dir=./ ;;
4615 */) ;;
4616 *) as_dir=$as_dir/ ;;
4617 esac
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4620 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 ;;
4629 esac ;;
4630 esac
4631 fi
4632 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4633 if test -n "$PKG_CONFIG"; then
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4635 printf "%s\n" "$PKG_CONFIG" >&6; }
4636 else
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 printf "%s\n" "no" >&6; }
4639 fi
4640
4641
4642 fi
4643 if test -z "$ac_cv_path_PKG_CONFIG"; then
4644 ac_pt_PKG_CONFIG=$PKG_CONFIG
4645 # Extract the first word of "pkg-config", so it can be a program name with args.
4646 set dummy pkg-config; ac_word=$2
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 printf %s "checking for $ac_word... " >&6; }
4649 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4650 then :
4651 printf %s "(cached) " >&6
4652 else case e in #(
4653 e) case $ac_pt_PKG_CONFIG in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4656 ;;
4657 *)
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 case $as_dir in #(((
4663 '') as_dir=./ ;;
4664 */) ;;
4665 *) as_dir=$as_dir/ ;;
4666 esac
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4669 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 ;;
4678 esac ;;
4679 esac
4680 fi
4681 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4682 if test -n "$ac_pt_PKG_CONFIG"; then
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4684 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4685 else
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 printf "%s\n" "no" >&6; }
4688 fi
4689
4690 if test "x$ac_pt_PKG_CONFIG" = x; then
4691 PKG_CONFIG=""
4692 else
4693 case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4698 esac
4699 PKG_CONFIG=$ac_pt_PKG_CONFIG
4700 fi
4701 else
4702 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4703 fi
4704
4705 fi
4706 if test -n "$PKG_CONFIG"; then
4707 _pkg_min_version=0.9.0
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4709 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4710 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4712 printf "%s\n" "yes" >&6; }
4713 else
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 printf "%s\n" "no" >&6; }
4716 PKG_CONFIG=""
4717 fi
4718 fi
4719
4720
4721 # Make sure we can run config.sub.
4722 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4723 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4724
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4726 printf %s "checking build system type... " >&6; }
4727 if test ${ac_cv_build+y}
4728 then :
4729 printf %s "(cached) " >&6
4730 else case e in #(
4731 e) ac_build_alias=$build_alias
4732 test "x$ac_build_alias" = x &&
4733 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4734 test "x$ac_build_alias" = x &&
4735 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4736 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4737 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4738 ;;
4739 esac
4740 fi
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4742 printf "%s\n" "$ac_cv_build" >&6; }
4743 case $ac_cv_build in
4744 *-*-*) ;;
4745 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4746 esac
4747 build=$ac_cv_build
4748 ac_save_IFS=$IFS; IFS='-'
4749 set x $ac_cv_build
4750 shift
4751 build_cpu=$1
4752 build_vendor=$2
4753 shift; shift
4754 # Remember, the first character of IFS is used to create $*,
4755 # except with old shells:
4756 build_os=$*
4757 IFS=$ac_save_IFS
4758 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4759
4760
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4762 printf %s "checking host system type... " >&6; }
4763 if test ${ac_cv_host+y}
4764 then :
4765 printf %s "(cached) " >&6
4766 else case e in #(
4767 e) if test "x$host_alias" = x; then
4768 ac_cv_host=$ac_cv_build
4769 else
4770 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4771 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4772 fi
4773 ;;
4774 esac
4775 fi
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4777 printf "%s\n" "$ac_cv_host" >&6; }
4778 case $ac_cv_host in
4779 *-*-*) ;;
4780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4781 esac
4782 host=$ac_cv_host
4783 ac_save_IFS=$IFS; IFS='-'
4784 set x $ac_cv_host
4785 shift
4786 host_cpu=$1
4787 host_vendor=$2
4788 shift; shift
4789 # Remember, the first character of IFS is used to create $*,
4790 # except with old shells:
4791 host_os=$*
4792 IFS=$ac_save_IFS
4793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4794
4795
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4797 printf %s "checking for a sed that does not truncate output... " >&6; }
4798 if test ${ac_cv_path_SED+y}
4799 then :
4800 printf %s "(cached) " >&6
4801 else case e in #(
4802 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4803 for ac_i in 1 2 3 4 5 6 7; do
4804 ac_script="$ac_script$as_nl$ac_script"
4805 done
4806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4807 { ac_script=; unset ac_script;}
4808 if test -z "$SED"; then
4809 ac_path_SED_found=false
4810 # Loop through the user's path and test for each of PROGNAME-LIST
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814 IFS=$as_save_IFS
4815 case $as_dir in #(((
4816 '') as_dir=./ ;;
4817 */) ;;
4818 *) as_dir=$as_dir/ ;;
4819 esac
4820 for ac_prog in sed gsed
4821 do
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4824 as_fn_executable_p "$ac_path_SED" || continue
4825 # Check for GNU ac_path_SED and select it if it is found.
4826 # Check for GNU $ac_path_SED
4827 case `"$ac_path_SED" --version 2>&1` in #(
4828 *GNU*)
4829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4830 #(
4831 *)
4832 ac_count=0
4833 printf %s 0123456789 >"conftest.in"
4834 while :
4835 do
4836 cat "conftest.in" "conftest.in" >"conftest.tmp"
4837 mv "conftest.tmp" "conftest.in"
4838 cp "conftest.in" "conftest.nl"
4839 printf "%s\n" '' >> "conftest.nl"
4840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842 as_fn_arith $ac_count + 1 && ac_count=$as_val
4843 if test $ac_count -gt ${ac_path_SED_max-0}; then
4844 # Best one so far, save it but keep looking for a better one
4845 ac_cv_path_SED="$ac_path_SED"
4846 ac_path_SED_max=$ac_count
4847 fi
4848 # 10*(2^10) chars as input seems more than enough
4849 test $ac_count -gt 10 && break
4850 done
4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852 esac
4853
4854 $ac_path_SED_found && break 3
4855 done
4856 done
4857 done
4858 IFS=$as_save_IFS
4859 if test -z "$ac_cv_path_SED"; then
4860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4861 fi
4862 else
4863 ac_cv_path_SED=$SED
4864 fi
4865 ;;
4866 esac
4867 fi
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4869 printf "%s\n" "$ac_cv_path_SED" >&6; }
4870 SED="$ac_cv_path_SED"
4871 rm -f conftest.sed
4872
4873
4874
4875
4876
4877
4878 # Check whether --enable-selective-werror was given.
4879 if test ${enable_selective_werror+y}
4880 then :
4881 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4882 else case e in #(
4883 e) SELECTIVE_WERROR=yes ;;
4884 esac
4885 fi
4886
4887
4888
4889
4890
4891 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4892 if test "x$SUNCC" = "xyes"; then
4893 BASE_CFLAGS="-v"
4894 else
4895 BASE_CFLAGS=""
4896 fi
4897
4898 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 xorg_testset_save_CFLAGS="$CFLAGS"
4913
4914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4918 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else case e in #(
4922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 int i;
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"
4927 then :
4928 xorg_cv_cc_flag_unknown_warning_option=yes
4929 else case e in #(
4930 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4931 esac
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4934 esac
4935 fi
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4937 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4939 CFLAGS="$xorg_testset_save_CFLAGS"
4940 fi
4941
4942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4945 fi
4946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4948 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4949 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4950 then :
4951 printf %s "(cached) " >&6
4952 else case e in #(
4953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955 int i;
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"
4958 then :
4959 xorg_cv_cc_flag_unused_command_line_argument=yes
4960 else case e in #(
4961 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4962 esac
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4965 esac
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4968 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4970 CFLAGS="$xorg_testset_save_CFLAGS"
4971 fi
4972
4973 found="no"
4974
4975 if test $found = "no" ; then
4976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978 fi
4979
4980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4982 fi
4983
4984 CFLAGS="$CFLAGS -Wall"
4985
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4987 printf %s "checking if $CC supports -Wall... " >&6; }
4988 cacheid=xorg_cv_cc_flag__Wall
4989 if eval test \${$cacheid+y}
4990 then :
4991 printf %s "(cached) " >&6
4992 else case e in #(
4993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 int i;
4996 int
4997 main (void)
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_link "$LINENO"
5005 then :
5006 eval $cacheid=yes
5007 else case e in #(
5008 e) eval $cacheid=no ;;
5009 esac
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5012 conftest$ac_exeext conftest.$ac_ext ;;
5013 esac
5014 fi
5015
5016
5017 CFLAGS="$xorg_testset_save_CFLAGS"
5018
5019 eval supported=\$$cacheid
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5021 printf "%s\n" "$supported" >&6; }
5022 if test "$supported" = "yes" ; then
5023 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5024 found="yes"
5025 fi
5026 fi
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 xorg_testset_save_CFLAGS="$CFLAGS"
5043
5044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5049 then :
5050 printf %s "(cached) " >&6
5051 else case e in #(
5052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 int i;
5055 _ACEOF
5056 if ac_fn_c_try_compile "$LINENO"
5057 then :
5058 xorg_cv_cc_flag_unknown_warning_option=yes
5059 else case e in #(
5060 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5061 esac
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5064 esac
5065 fi
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5067 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5069 CFLAGS="$xorg_testset_save_CFLAGS"
5070 fi
5071
5072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075 fi
5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5080 then :
5081 printf %s "(cached) " >&6
5082 else case e in #(
5083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 int i;
5086 _ACEOF
5087 if ac_fn_c_try_compile "$LINENO"
5088 then :
5089 xorg_cv_cc_flag_unused_command_line_argument=yes
5090 else case e in #(
5091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5092 esac
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5095 esac
5096 fi
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5098 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5100 CFLAGS="$xorg_testset_save_CFLAGS"
5101 fi
5102
5103 found="no"
5104
5105 if test $found = "no" ; then
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 fi
5109
5110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5112 fi
5113
5114 CFLAGS="$CFLAGS -Wpointer-arith"
5115
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5117 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5118 cacheid=xorg_cv_cc_flag__Wpointer_arith
5119 if eval test \${$cacheid+y}
5120 then :
5121 printf %s "(cached) " >&6
5122 else case e in #(
5123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 int i;
5126 int
5127 main (void)
5128 {
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_link "$LINENO"
5135 then :
5136 eval $cacheid=yes
5137 else case e in #(
5138 e) eval $cacheid=no ;;
5139 esac
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5142 conftest$ac_exeext conftest.$ac_ext ;;
5143 esac
5144 fi
5145
5146
5147 CFLAGS="$xorg_testset_save_CFLAGS"
5148
5149 eval supported=\$$cacheid
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5151 printf "%s\n" "$supported" >&6; }
5152 if test "$supported" = "yes" ; then
5153 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5154 found="yes"
5155 fi
5156 fi
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172 xorg_testset_save_CFLAGS="$CFLAGS"
5173
5174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5179 then :
5180 printf %s "(cached) " >&6
5181 else case e in #(
5182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"
5187 then :
5188 xorg_cv_cc_flag_unknown_warning_option=yes
5189 else case e in #(
5190 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5191 esac
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5194 esac
5195 fi
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5197 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5199 CFLAGS="$xorg_testset_save_CFLAGS"
5200 fi
5201
5202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205 fi
5206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5210 then :
5211 printf %s "(cached) " >&6
5212 else case e in #(
5213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 int i;
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"
5218 then :
5219 xorg_cv_cc_flag_unused_command_line_argument=yes
5220 else case e in #(
5221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5222 esac
5223 fi
5224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5225 esac
5226 fi
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5230 CFLAGS="$xorg_testset_save_CFLAGS"
5231 fi
5232
5233 found="no"
5234
5235 if test $found = "no" ; then
5236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 fi
5239
5240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5242 fi
5243
5244 CFLAGS="$CFLAGS -Wmissing-declarations"
5245
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5247 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5248 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5249 if eval test \${$cacheid+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else case e in #(
5253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 int i;
5256 int
5257 main (void)
5258 {
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 if ac_fn_c_try_link "$LINENO"
5265 then :
5266 eval $cacheid=yes
5267 else case e in #(
5268 e) eval $cacheid=no ;;
5269 esac
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5272 conftest$ac_exeext conftest.$ac_ext ;;
5273 esac
5274 fi
5275
5276
5277 CFLAGS="$xorg_testset_save_CFLAGS"
5278
5279 eval supported=\$$cacheid
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5281 printf "%s\n" "$supported" >&6; }
5282 if test "$supported" = "yes" ; then
5283 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5284 found="yes"
5285 fi
5286 fi
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 xorg_testset_save_CFLAGS="$CFLAGS"
5303
5304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5309 then :
5310 printf %s "(cached) " >&6
5311 else case e in #(
5312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 int i;
5315 _ACEOF
5316 if ac_fn_c_try_compile "$LINENO"
5317 then :
5318 xorg_cv_cc_flag_unknown_warning_option=yes
5319 else case e in #(
5320 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5321 esac
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5324 esac
5325 fi
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5329 CFLAGS="$xorg_testset_save_CFLAGS"
5330 fi
5331
5332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5335 fi
5336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else case e in #(
5343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 int i;
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"
5348 then :
5349 xorg_cv_cc_flag_unused_command_line_argument=yes
5350 else case e in #(
5351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5352 esac
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5355 esac
5356 fi
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5361 fi
5362
5363 found="no"
5364
5365 if test $found = "no" ; then
5366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5368 fi
5369
5370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372 fi
5373
5374 CFLAGS="$CFLAGS -Wformat=2"
5375
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5377 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5378 cacheid=xorg_cv_cc_flag__Wformat_2
5379 if eval test \${$cacheid+y}
5380 then :
5381 printf %s "(cached) " >&6
5382 else case e in #(
5383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 int i;
5386 int
5387 main (void)
5388 {
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_link "$LINENO"
5395 then :
5396 eval $cacheid=yes
5397 else case e in #(
5398 e) eval $cacheid=no ;;
5399 esac
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5402 conftest$ac_exeext conftest.$ac_ext ;;
5403 esac
5404 fi
5405
5406
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408
5409 eval supported=\$$cacheid
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5411 printf "%s\n" "$supported" >&6; }
5412 if test "$supported" = "yes" ; then
5413 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5414 found="yes"
5415 fi
5416 fi
5417
5418 if test $found = "no" ; then
5419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5421 fi
5422
5423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5425 fi
5426
5427 CFLAGS="$CFLAGS -Wformat"
5428
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5430 printf %s "checking if $CC supports -Wformat... " >&6; }
5431 cacheid=xorg_cv_cc_flag__Wformat
5432 if eval test \${$cacheid+y}
5433 then :
5434 printf %s "(cached) " >&6
5435 else case e in #(
5436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 int i;
5439 int
5440 main (void)
5441 {
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_c_try_link "$LINENO"
5448 then :
5449 eval $cacheid=yes
5450 else case e in #(
5451 e) eval $cacheid=no ;;
5452 esac
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5455 conftest$ac_exeext conftest.$ac_ext ;;
5456 esac
5457 fi
5458
5459
5460 CFLAGS="$xorg_testset_save_CFLAGS"
5461
5462 eval supported=\$$cacheid
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5464 printf "%s\n" "$supported" >&6; }
5465 if test "$supported" = "yes" ; then
5466 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5467 found="yes"
5468 fi
5469 fi
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 xorg_testset_save_CFLAGS="$CFLAGS"
5488
5489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5492 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5493 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5494 then :
5495 printf %s "(cached) " >&6
5496 else case e in #(
5497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 int i;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"
5502 then :
5503 xorg_cv_cc_flag_unknown_warning_option=yes
5504 else case e in #(
5505 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5506 esac
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5509 esac
5510 fi
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5512 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5514 CFLAGS="$xorg_testset_save_CFLAGS"
5515 fi
5516
5517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 fi
5521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else case e in #(
5528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 int i;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"
5533 then :
5534 xorg_cv_cc_flag_unused_command_line_argument=yes
5535 else case e in #(
5536 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5537 esac
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5540 esac
5541 fi
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5543 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5545 CFLAGS="$xorg_testset_save_CFLAGS"
5546 fi
5547
5548 found="no"
5549
5550 if test $found = "no" ; then
5551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553 fi
5554
5555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557 fi
5558
5559 CFLAGS="$CFLAGS -Wstrict-prototypes"
5560
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5562 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5563 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5564 if eval test \${$cacheid+y}
5565 then :
5566 printf %s "(cached) " >&6
5567 else case e in #(
5568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 int
5572 main (void)
5573 {
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_link "$LINENO"
5580 then :
5581 eval $cacheid=yes
5582 else case e in #(
5583 e) eval $cacheid=no ;;
5584 esac
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5587 conftest$ac_exeext conftest.$ac_ext ;;
5588 esac
5589 fi
5590
5591
5592 CFLAGS="$xorg_testset_save_CFLAGS"
5593
5594 eval supported=\$$cacheid
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5596 printf "%s\n" "$supported" >&6; }
5597 if test "$supported" = "yes" ; then
5598 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5599 found="yes"
5600 fi
5601 fi
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 xorg_testset_save_CFLAGS="$CFLAGS"
5618
5619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5622 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5623 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else case e in #(
5627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 int i;
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"
5632 then :
5633 xorg_cv_cc_flag_unknown_warning_option=yes
5634 else case e in #(
5635 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5636 esac
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5639 esac
5640 fi
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5642 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5644 CFLAGS="$xorg_testset_save_CFLAGS"
5645 fi
5646
5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5650 fi
5651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5653 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5654 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else case e in #(
5658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 int i;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"
5663 then :
5664 xorg_cv_cc_flag_unused_command_line_argument=yes
5665 else case e in #(
5666 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5667 esac
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5670 esac
5671 fi
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5673 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676 fi
5677
5678 found="no"
5679
5680 if test $found = "no" ; then
5681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5683 fi
5684
5685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5687 fi
5688
5689 CFLAGS="$CFLAGS -Wmissing-prototypes"
5690
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5692 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5693 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5694 if eval test \${$cacheid+y}
5695 then :
5696 printf %s "(cached) " >&6
5697 else case e in #(
5698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 int i;
5701 int
5702 main (void)
5703 {
5704
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_link "$LINENO"
5710 then :
5711 eval $cacheid=yes
5712 else case e in #(
5713 e) eval $cacheid=no ;;
5714 esac
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5717 conftest$ac_exeext conftest.$ac_ext ;;
5718 esac
5719 fi
5720
5721
5722 CFLAGS="$xorg_testset_save_CFLAGS"
5723
5724 eval supported=\$$cacheid
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5726 printf "%s\n" "$supported" >&6; }
5727 if test "$supported" = "yes" ; then
5728 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5729 found="yes"
5730 fi
5731 fi
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747 xorg_testset_save_CFLAGS="$CFLAGS"
5748
5749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5753 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5754 then :
5755 printf %s "(cached) " >&6
5756 else case e in #(
5757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 int i;
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"
5762 then :
5763 xorg_cv_cc_flag_unknown_warning_option=yes
5764 else case e in #(
5765 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5766 esac
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5769 esac
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 fi
5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5785 then :
5786 printf %s "(cached) " >&6
5787 else case e in #(
5788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 int i;
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"
5793 then :
5794 xorg_cv_cc_flag_unused_command_line_argument=yes
5795 else case e in #(
5796 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5797 esac
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5800 esac
5801 fi
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5803 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5805 CFLAGS="$xorg_testset_save_CFLAGS"
5806 fi
5807
5808 found="no"
5809
5810 if test $found = "no" ; then
5811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5813 fi
5814
5815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5817 fi
5818
5819 CFLAGS="$CFLAGS -Wnested-externs"
5820
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5822 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5823 cacheid=xorg_cv_cc_flag__Wnested_externs
5824 if eval test \${$cacheid+y}
5825 then :
5826 printf %s "(cached) " >&6
5827 else case e in #(
5828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 int i;
5831 int
5832 main (void)
5833 {
5834
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 if ac_fn_c_try_link "$LINENO"
5840 then :
5841 eval $cacheid=yes
5842 else case e in #(
5843 e) eval $cacheid=no ;;
5844 esac
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5847 conftest$ac_exeext conftest.$ac_ext ;;
5848 esac
5849 fi
5850
5851
5852 CFLAGS="$xorg_testset_save_CFLAGS"
5853
5854 eval supported=\$$cacheid
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5856 printf "%s\n" "$supported" >&6; }
5857 if test "$supported" = "yes" ; then
5858 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5859 found="yes"
5860 fi
5861 fi
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877 xorg_testset_save_CFLAGS="$CFLAGS"
5878
5879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5882 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5883 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else case e in #(
5887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"
5892 then :
5893 xorg_cv_cc_flag_unknown_warning_option=yes
5894 else case e in #(
5895 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5896 esac
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5899 esac
5900 fi
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904 CFLAGS="$xorg_testset_save_CFLAGS"
5905 fi
5906
5907 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910 fi
5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5915 then :
5916 printf %s "(cached) " >&6
5917 else case e in #(
5918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 int i;
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"
5923 then :
5924 xorg_cv_cc_flag_unused_command_line_argument=yes
5925 else case e in #(
5926 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5927 esac
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5930 esac
5931 fi
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5935 CFLAGS="$xorg_testset_save_CFLAGS"
5936 fi
5937
5938 found="no"
5939
5940 if test $found = "no" ; then
5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943 fi
5944
5945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5947 fi
5948
5949 CFLAGS="$CFLAGS -Wbad-function-cast"
5950
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5952 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5953 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5954 if eval test \${$cacheid+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else case e in #(
5958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 int i;
5961 int
5962 main (void)
5963 {
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"
5970 then :
5971 eval $cacheid=yes
5972 else case e in #(
5973 e) eval $cacheid=no ;;
5974 esac
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5977 conftest$ac_exeext conftest.$ac_ext ;;
5978 esac
5979 fi
5980
5981
5982 CFLAGS="$xorg_testset_save_CFLAGS"
5983
5984 eval supported=\$$cacheid
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5986 printf "%s\n" "$supported" >&6; }
5987 if test "$supported" = "yes" ; then
5988 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5989 found="yes"
5990 fi
5991 fi
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007 xorg_testset_save_CFLAGS="$CFLAGS"
6008
6009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6012 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6013 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else case e in #(
6017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 int i;
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"
6022 then :
6023 xorg_cv_cc_flag_unknown_warning_option=yes
6024 else case e in #(
6025 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6026 esac
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6029 esac
6030 fi
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6032 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6034 CFLAGS="$xorg_testset_save_CFLAGS"
6035 fi
6036
6037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040 fi
6041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6043 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6044 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else case e in #(
6048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 int i;
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"
6053 then :
6054 xorg_cv_cc_flag_unused_command_line_argument=yes
6055 else case e in #(
6056 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6057 esac
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6060 esac
6061 fi
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6066 fi
6067
6068 found="no"
6069
6070 if test $found = "no" ; then
6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073 fi
6074
6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6077 fi
6078
6079 CFLAGS="$CFLAGS -Wold-style-definition"
6080
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6082 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6083 cacheid=xorg_cv_cc_flag__Wold_style_definition
6084 if eval test \${$cacheid+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else case e in #(
6088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 int i;
6091 int
6092 main (void)
6093 {
6094
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 if ac_fn_c_try_link "$LINENO"
6100 then :
6101 eval $cacheid=yes
6102 else case e in #(
6103 e) eval $cacheid=no ;;
6104 esac
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6107 conftest$ac_exeext conftest.$ac_ext ;;
6108 esac
6109 fi
6110
6111
6112 CFLAGS="$xorg_testset_save_CFLAGS"
6113
6114 eval supported=\$$cacheid
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6116 printf "%s\n" "$supported" >&6; }
6117 if test "$supported" = "yes" ; then
6118 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6119 found="yes"
6120 fi
6121 fi
6122
6123 if test $found = "no" ; then
6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126 fi
6127
6128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6130 fi
6131
6132 CFLAGS="$CFLAGS -fd"
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6135 printf %s "checking if $CC supports -fd... " >&6; }
6136 cacheid=xorg_cv_cc_flag__fd
6137 if eval test \${$cacheid+y}
6138 then :
6139 printf %s "(cached) " >&6
6140 else case e in #(
6141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 int i;
6144 int
6145 main (void)
6146 {
6147
6148 ;
6149 return 0;
6150 }
6151 _ACEOF
6152 if ac_fn_c_try_link "$LINENO"
6153 then :
6154 eval $cacheid=yes
6155 else case e in #(
6156 e) eval $cacheid=no ;;
6157 esac
6158 fi
6159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6160 conftest$ac_exeext conftest.$ac_ext ;;
6161 esac
6162 fi
6163
6164
6165 CFLAGS="$xorg_testset_save_CFLAGS"
6166
6167 eval supported=\$$cacheid
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6169 printf "%s\n" "$supported" >&6; }
6170 if test "$supported" = "yes" ; then
6171 BASE_CFLAGS="$BASE_CFLAGS -fd"
6172 found="yes"
6173 fi
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 xorg_testset_save_CFLAGS="$CFLAGS"
6191
6192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6195 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6196 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6197 then :
6198 printf %s "(cached) " >&6
6199 else case e in #(
6200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 int i;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"
6205 then :
6206 xorg_cv_cc_flag_unknown_warning_option=yes
6207 else case e in #(
6208 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6209 esac
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6212 esac
6213 fi
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6217 CFLAGS="$xorg_testset_save_CFLAGS"
6218 fi
6219
6220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223 fi
6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else case e in #(
6231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 int i;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"
6236 then :
6237 xorg_cv_cc_flag_unused_command_line_argument=yes
6238 else case e in #(
6239 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6240 esac
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6243 esac
6244 fi
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 found="no"
6252
6253 if test $found = "no" ; then
6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 fi
6257
6258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260 fi
6261
6262 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6263
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6265 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6266 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6267 if eval test \${$cacheid+y}
6268 then :
6269 printf %s "(cached) " >&6
6270 else case e in #(
6271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 int i;
6274 int
6275 main (void)
6276 {
6277
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 if ac_fn_c_try_link "$LINENO"
6283 then :
6284 eval $cacheid=yes
6285 else case e in #(
6286 e) eval $cacheid=no ;;
6287 esac
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6290 conftest$ac_exeext conftest.$ac_ext ;;
6291 esac
6292 fi
6293
6294
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296
6297 eval supported=\$$cacheid
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6299 printf "%s\n" "$supported" >&6; }
6300 if test "$supported" = "yes" ; then
6301 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6302 found="yes"
6303 fi
6304 fi
6305
6306
6307
6308
6309
6310 # This chunk adds additional warnings that could catch undesired effects.
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324 xorg_testset_save_CFLAGS="$CFLAGS"
6325
6326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6330 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6331 then :
6332 printf %s "(cached) " >&6
6333 else case e in #(
6334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 int i;
6337 _ACEOF
6338 if ac_fn_c_try_compile "$LINENO"
6339 then :
6340 xorg_cv_cc_flag_unknown_warning_option=yes
6341 else case e in #(
6342 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6343 esac
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6346 esac
6347 fi
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6349 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6351 CFLAGS="$xorg_testset_save_CFLAGS"
6352 fi
6353
6354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357 fi
6358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6362 then :
6363 printf %s "(cached) " >&6
6364 else case e in #(
6365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 int i;
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"
6370 then :
6371 xorg_cv_cc_flag_unused_command_line_argument=yes
6372 else case e in #(
6373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6374 esac
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6377 esac
6378 fi
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6382 CFLAGS="$xorg_testset_save_CFLAGS"
6383 fi
6384
6385 found="no"
6386
6387 if test $found = "no" ; then
6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390 fi
6391
6392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6394 fi
6395
6396 CFLAGS="$CFLAGS -Wunused"
6397
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6399 printf %s "checking if $CC supports -Wunused... " >&6; }
6400 cacheid=xorg_cv_cc_flag__Wunused
6401 if eval test \${$cacheid+y}
6402 then :
6403 printf %s "(cached) " >&6
6404 else case e in #(
6405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 int i;
6408 int
6409 main (void)
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 if ac_fn_c_try_link "$LINENO"
6417 then :
6418 eval $cacheid=yes
6419 else case e in #(
6420 e) eval $cacheid=no ;;
6421 esac
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6424 conftest$ac_exeext conftest.$ac_ext ;;
6425 esac
6426 fi
6427
6428
6429 CFLAGS="$xorg_testset_save_CFLAGS"
6430
6431 eval supported=\$$cacheid
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6433 printf "%s\n" "$supported" >&6; }
6434 if test "$supported" = "yes" ; then
6435 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6436 found="yes"
6437 fi
6438 fi
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 xorg_testset_save_CFLAGS="$CFLAGS"
6455
6456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6461 then :
6462 printf %s "(cached) " >&6
6463 else case e in #(
6464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 int i;
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"
6469 then :
6470 xorg_cv_cc_flag_unknown_warning_option=yes
6471 else case e in #(
6472 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6473 esac
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6476 esac
6477 fi
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482 fi
6483
6484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487 fi
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6492 then :
6493 printf %s "(cached) " >&6
6494 else case e in #(
6495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 int i;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"
6500 then :
6501 xorg_cv_cc_flag_unused_command_line_argument=yes
6502 else case e in #(
6503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6504 esac
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6507 esac
6508 fi
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6512 CFLAGS="$xorg_testset_save_CFLAGS"
6513 fi
6514
6515 found="no"
6516
6517 if test $found = "no" ; then
6518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520 fi
6521
6522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524 fi
6525
6526 CFLAGS="$CFLAGS -Wuninitialized"
6527
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6529 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6530 cacheid=xorg_cv_cc_flag__Wuninitialized
6531 if eval test \${$cacheid+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else case e in #(
6535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 int i;
6538 int
6539 main (void)
6540 {
6541
6542 ;
6543 return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_link "$LINENO"
6547 then :
6548 eval $cacheid=yes
6549 else case e in #(
6550 e) eval $cacheid=no ;;
6551 esac
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6554 conftest$ac_exeext conftest.$ac_ext ;;
6555 esac
6556 fi
6557
6558
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560
6561 eval supported=\$$cacheid
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6563 printf "%s\n" "$supported" >&6; }
6564 if test "$supported" = "yes" ; then
6565 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6566 found="yes"
6567 fi
6568 fi
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584 xorg_testset_save_CFLAGS="$CFLAGS"
6585
6586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6590 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6591 then :
6592 printf %s "(cached) " >&6
6593 else case e in #(
6594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int i;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"
6599 then :
6600 xorg_cv_cc_flag_unknown_warning_option=yes
6601 else case e in #(
6602 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6603 esac
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6606 esac
6607 fi
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6612 fi
6613
6614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617 fi
6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6622 then :
6623 printf %s "(cached) " >&6
6624 else case e in #(
6625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 int i;
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"
6630 then :
6631 xorg_cv_cc_flag_unused_command_line_argument=yes
6632 else case e in #(
6633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6634 esac
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6637 esac
6638 fi
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6642 CFLAGS="$xorg_testset_save_CFLAGS"
6643 fi
6644
6645 found="no"
6646
6647 if test $found = "no" ; then
6648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650 fi
6651
6652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6654 fi
6655
6656 CFLAGS="$CFLAGS -Wshadow"
6657
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6659 printf %s "checking if $CC supports -Wshadow... " >&6; }
6660 cacheid=xorg_cv_cc_flag__Wshadow
6661 if eval test \${$cacheid+y}
6662 then :
6663 printf %s "(cached) " >&6
6664 else case e in #(
6665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 int i;
6668 int
6669 main (void)
6670 {
6671
6672 ;
6673 return 0;
6674 }
6675 _ACEOF
6676 if ac_fn_c_try_link "$LINENO"
6677 then :
6678 eval $cacheid=yes
6679 else case e in #(
6680 e) eval $cacheid=no ;;
6681 esac
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6684 conftest$ac_exeext conftest.$ac_ext ;;
6685 esac
6686 fi
6687
6688
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691 eval supported=\$$cacheid
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693 printf "%s\n" "$supported" >&6; }
6694 if test "$supported" = "yes" ; then
6695 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6696 found="yes"
6697 fi
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else case e in #(
6724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"
6729 then :
6730 xorg_cv_cc_flag_unknown_warning_option=yes
6731 else case e in #(
6732 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6733 esac
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6736 esac
6737 fi
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6739 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742 fi
6743
6744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747 fi
6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6752 then :
6753 printf %s "(cached) " >&6
6754 else case e in #(
6755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 int i;
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"
6760 then :
6761 xorg_cv_cc_flag_unused_command_line_argument=yes
6762 else case e in #(
6763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6764 esac
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6767 esac
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6772 CFLAGS="$xorg_testset_save_CFLAGS"
6773 fi
6774
6775 found="no"
6776
6777 if test $found = "no" ; then
6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 fi
6781
6782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6784 fi
6785
6786 CFLAGS="$CFLAGS -Wmissing-noreturn"
6787
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6789 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6790 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6791 if eval test \${$cacheid+y}
6792 then :
6793 printf %s "(cached) " >&6
6794 else case e in #(
6795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 int
6799 main (void)
6800 {
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_c_try_link "$LINENO"
6807 then :
6808 eval $cacheid=yes
6809 else case e in #(
6810 e) eval $cacheid=no ;;
6811 esac
6812 fi
6813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6814 conftest$ac_exeext conftest.$ac_ext ;;
6815 esac
6816 fi
6817
6818
6819 CFLAGS="$xorg_testset_save_CFLAGS"
6820
6821 eval supported=\$$cacheid
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6823 printf "%s\n" "$supported" >&6; }
6824 if test "$supported" = "yes" ; then
6825 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6826 found="yes"
6827 fi
6828 fi
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 xorg_testset_save_CFLAGS="$CFLAGS"
6845
6846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6850 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6851 then :
6852 printf %s "(cached) " >&6
6853 else case e in #(
6854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 int i;
6857 _ACEOF
6858 if ac_fn_c_try_compile "$LINENO"
6859 then :
6860 xorg_cv_cc_flag_unknown_warning_option=yes
6861 else case e in #(
6862 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6863 esac
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6866 esac
6867 fi
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6871 CFLAGS="$xorg_testset_save_CFLAGS"
6872 fi
6873
6874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 fi
6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 int i;
6888 _ACEOF
6889 if ac_fn_c_try_compile "$LINENO"
6890 then :
6891 xorg_cv_cc_flag_unused_command_line_argument=yes
6892 else case e in #(
6893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6894 esac
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6897 esac
6898 fi
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6900 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6903 fi
6904
6905 found="no"
6906
6907 if test $found = "no" ; then
6908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910 fi
6911
6912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6914 fi
6915
6916 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6917
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6919 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6920 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6921 if eval test \${$cacheid+y}
6922 then :
6923 printf %s "(cached) " >&6
6924 else case e in #(
6925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 int i;
6928 int
6929 main (void)
6930 {
6931
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 if ac_fn_c_try_link "$LINENO"
6937 then :
6938 eval $cacheid=yes
6939 else case e in #(
6940 e) eval $cacheid=no ;;
6941 esac
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6944 conftest$ac_exeext conftest.$ac_ext ;;
6945 esac
6946 fi
6947
6948
6949 CFLAGS="$xorg_testset_save_CFLAGS"
6950
6951 eval supported=\$$cacheid
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953 printf "%s\n" "$supported" >&6; }
6954 if test "$supported" = "yes" ; then
6955 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6956 found="yes"
6957 fi
6958 fi
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974 xorg_testset_save_CFLAGS="$CFLAGS"
6975
6976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6981 then :
6982 printf %s "(cached) " >&6
6983 else case e in #(
6984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 int i;
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"
6989 then :
6990 xorg_cv_cc_flag_unknown_warning_option=yes
6991 else case e in #(
6992 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6993 esac
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6996 esac
6997 fi
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6999 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002 fi
7003
7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007 fi
7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7012 then :
7013 printf %s "(cached) " >&6
7014 else case e in #(
7015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 int i;
7018 _ACEOF
7019 if ac_fn_c_try_compile "$LINENO"
7020 then :
7021 xorg_cv_cc_flag_unused_command_line_argument=yes
7022 else case e in #(
7023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7024 esac
7025 fi
7026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7027 esac
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 case e in #(
7055 e) 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 case e in #(
7070 e) eval $cacheid=no ;;
7071 esac
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7074 conftest$ac_exeext conftest.$ac_ext ;;
7075 esac
7076 fi
7077
7078
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080
7081 eval supported=\$$cacheid
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7083 printf "%s\n" "$supported" >&6; }
7084 if test "$supported" = "yes" ; then
7085 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7086 found="yes"
7087 fi
7088 fi
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 xorg_testset_save_CFLAGS="$CFLAGS"
7105
7106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7110 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else case e in #(
7114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"
7119 then :
7120 xorg_cv_cc_flag_unknown_warning_option=yes
7121 else case e in #(
7122 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7123 esac
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7126 esac
7127 fi
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7131 CFLAGS="$xorg_testset_save_CFLAGS"
7132 fi
7133
7134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137 fi
7138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7142 then :
7143 printf %s "(cached) " >&6
7144 else case e in #(
7145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7147 int i;
7148 _ACEOF
7149 if ac_fn_c_try_compile "$LINENO"
7150 then :
7151 xorg_cv_cc_flag_unused_command_line_argument=yes
7152 else case e in #(
7153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7154 esac
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7157 esac
7158 fi
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163 fi
7164
7165 found="no"
7166
7167 if test $found = "no" ; then
7168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170 fi
7171
7172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7174 fi
7175
7176 CFLAGS="$CFLAGS -Wlogical-op"
7177
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7179 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7180 cacheid=xorg_cv_cc_flag__Wlogical_op
7181 if eval test \${$cacheid+y}
7182 then :
7183 printf %s "(cached) " >&6
7184 else case e in #(
7185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 int i;
7188 int
7189 main (void)
7190 {
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_link "$LINENO"
7197 then :
7198 eval $cacheid=yes
7199 else case e in #(
7200 e) eval $cacheid=no ;;
7201 esac
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7204 conftest$ac_exeext conftest.$ac_ext ;;
7205 esac
7206 fi
7207
7208
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7210
7211 eval supported=\$$cacheid
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7213 printf "%s\n" "$supported" >&6; }
7214 if test "$supported" = "yes" ; then
7215 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7216 found="yes"
7217 fi
7218 fi
7219
7220
7221
7222 # These are currently disabled because they are noisy. They will be enabled
7223 # in the future once the codebase is sufficiently modernized to silence
7224 # them. For now, I don't want them to drown out the other warnings.
7225 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7226 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7227 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7228
7229 # Turn some warnings into errors, so we don't accidentally get successful builds
7230 # when there are problems that should be fixed.
7231
7232 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 xorg_testset_save_CFLAGS="$CFLAGS"
7247
7248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7252 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7253 then :
7254 printf %s "(cached) " >&6
7255 else case e in #(
7256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 int i;
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"
7261 then :
7262 xorg_cv_cc_flag_unknown_warning_option=yes
7263 else case e in #(
7264 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7265 esac
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7268 esac
7269 fi
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7271 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274 fi
7275
7276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279 fi
7280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7282 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7283 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7284 then :
7285 printf %s "(cached) " >&6
7286 else case e in #(
7287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 int i;
7290 _ACEOF
7291 if ac_fn_c_try_compile "$LINENO"
7292 then :
7293 xorg_cv_cc_flag_unused_command_line_argument=yes
7294 else case e in #(
7295 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7296 esac
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7299 esac
7300 fi
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7305 fi
7306
7307 found="no"
7308
7309 if test $found = "no" ; then
7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312 fi
7313
7314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7316 fi
7317
7318 CFLAGS="$CFLAGS -Werror=implicit"
7319
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7321 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7322 cacheid=xorg_cv_cc_flag__Werror_implicit
7323 if eval test \${$cacheid+y}
7324 then :
7325 printf %s "(cached) " >&6
7326 else case e in #(
7327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 int i;
7330 int
7331 main (void)
7332 {
7333
7334 ;
7335 return 0;
7336 }
7337 _ACEOF
7338 if ac_fn_c_try_link "$LINENO"
7339 then :
7340 eval $cacheid=yes
7341 else case e in #(
7342 e) eval $cacheid=no ;;
7343 esac
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7346 conftest$ac_exeext conftest.$ac_ext ;;
7347 esac
7348 fi
7349
7350
7351 CFLAGS="$xorg_testset_save_CFLAGS"
7352
7353 eval supported=\$$cacheid
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7355 printf "%s\n" "$supported" >&6; }
7356 if test "$supported" = "yes" ; then
7357 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7358 found="yes"
7359 fi
7360 fi
7361
7362 if test $found = "no" ; then
7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365 fi
7366
7367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7369 fi
7370
7371 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7372
7373 { 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
7374 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7375 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7376 if eval test \${$cacheid+y}
7377 then :
7378 printf %s "(cached) " >&6
7379 else case e in #(
7380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 int i;
7383 int
7384 main (void)
7385 {
7386
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_link "$LINENO"
7392 then :
7393 eval $cacheid=yes
7394 else case e in #(
7395 e) eval $cacheid=no ;;
7396 esac
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7399 conftest$ac_exeext conftest.$ac_ext ;;
7400 esac
7401 fi
7402
7403
7404 CFLAGS="$xorg_testset_save_CFLAGS"
7405
7406 eval supported=\$$cacheid
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7408 printf "%s\n" "$supported" >&6; }
7409 if test "$supported" = "yes" ; then
7410 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7411 found="yes"
7412 fi
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 xorg_testset_save_CFLAGS="$CFLAGS"
7430
7431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7434 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7435 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7436 then :
7437 printf %s "(cached) " >&6
7438 else case e in #(
7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 int i;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"
7444 then :
7445 xorg_cv_cc_flag_unknown_warning_option=yes
7446 else case e in #(
7447 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7448 esac
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7451 esac
7452 fi
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7454 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7456 CFLAGS="$xorg_testset_save_CFLAGS"
7457 fi
7458
7459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7462 fi
7463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7465 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7466 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7467 then :
7468 printf %s "(cached) " >&6
7469 else case e in #(
7470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472 int i;
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"
7475 then :
7476 xorg_cv_cc_flag_unused_command_line_argument=yes
7477 else case e in #(
7478 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7479 esac
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7482 esac
7483 fi
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 found="no"
7491
7492 if test $found = "no" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496
7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499 fi
7500
7501 CFLAGS="$CFLAGS -Werror=nonnull"
7502
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7504 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7505 cacheid=xorg_cv_cc_flag__Werror_nonnull
7506 if eval test \${$cacheid+y}
7507 then :
7508 printf %s "(cached) " >&6
7509 else case e in #(
7510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 int i;
7513 int
7514 main (void)
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"
7522 then :
7523 eval $cacheid=yes
7524 else case e in #(
7525 e) eval $cacheid=no ;;
7526 esac
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7529 conftest$ac_exeext conftest.$ac_ext ;;
7530 esac
7531 fi
7532
7533
7534 CFLAGS="$xorg_testset_save_CFLAGS"
7535
7536 eval supported=\$$cacheid
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7538 printf "%s\n" "$supported" >&6; }
7539 if test "$supported" = "yes" ; then
7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7541 found="yes"
7542 fi
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 xorg_testset_save_CFLAGS="$CFLAGS"
7560
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7565 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7566 then :
7567 printf %s "(cached) " >&6
7568 else case e in #(
7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 int i;
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"
7574 then :
7575 xorg_cv_cc_flag_unknown_warning_option=yes
7576 else case e in #(
7577 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7578 esac
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7581 esac
7582 fi
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7584 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7586 CFLAGS="$xorg_testset_save_CFLAGS"
7587 fi
7588
7589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 fi
7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7595 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7596 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7597 then :
7598 printf %s "(cached) " >&6
7599 else case e in #(
7600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 int i;
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"
7605 then :
7606 xorg_cv_cc_flag_unused_command_line_argument=yes
7607 else case e in #(
7608 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7609 esac
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7612 esac
7613 fi
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7615 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7617 CFLAGS="$xorg_testset_save_CFLAGS"
7618 fi
7619
7620 found="no"
7621
7622 if test $found = "no" ; then
7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625 fi
7626
7627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7629 fi
7630
7631 CFLAGS="$CFLAGS -Werror=init-self"
7632
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7634 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7635 cacheid=xorg_cv_cc_flag__Werror_init_self
7636 if eval test \${$cacheid+y}
7637 then :
7638 printf %s "(cached) " >&6
7639 else case e in #(
7640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 int i;
7643 int
7644 main (void)
7645 {
7646
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"
7652 then :
7653 eval $cacheid=yes
7654 else case e in #(
7655 e) eval $cacheid=no ;;
7656 esac
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7659 conftest$ac_exeext conftest.$ac_ext ;;
7660 esac
7661 fi
7662
7663
7664 CFLAGS="$xorg_testset_save_CFLAGS"
7665
7666 eval supported=\$$cacheid
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7668 printf "%s\n" "$supported" >&6; }
7669 if test "$supported" = "yes" ; then
7670 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7671 found="yes"
7672 fi
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 xorg_testset_save_CFLAGS="$CFLAGS"
7690
7691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7694 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7695 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7696 then :
7697 printf %s "(cached) " >&6
7698 else case e in #(
7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"
7704 then :
7705 xorg_cv_cc_flag_unknown_warning_option=yes
7706 else case e in #(
7707 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7708 esac
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7711 esac
7712 fi
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7716 CFLAGS="$xorg_testset_save_CFLAGS"
7717 fi
7718
7719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722 fi
7723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else case e in #(
7730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 int i;
7733 _ACEOF
7734 if ac_fn_c_try_compile "$LINENO"
7735 then :
7736 xorg_cv_cc_flag_unused_command_line_argument=yes
7737 else case e in #(
7738 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7739 esac
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7742 esac
7743 fi
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7745 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7747 CFLAGS="$xorg_testset_save_CFLAGS"
7748 fi
7749
7750 found="no"
7751
7752 if test $found = "no" ; then
7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7755 fi
7756
7757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759 fi
7760
7761 CFLAGS="$CFLAGS -Werror=main"
7762
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7764 printf %s "checking if $CC supports -Werror=main... " >&6; }
7765 cacheid=xorg_cv_cc_flag__Werror_main
7766 if eval test \${$cacheid+y}
7767 then :
7768 printf %s "(cached) " >&6
7769 else case e in #(
7770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 int i;
7773 int
7774 main (void)
7775 {
7776
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 if ac_fn_c_try_link "$LINENO"
7782 then :
7783 eval $cacheid=yes
7784 else case e in #(
7785 e) eval $cacheid=no ;;
7786 esac
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7789 conftest$ac_exeext conftest.$ac_ext ;;
7790 esac
7791 fi
7792
7793
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795
7796 eval supported=\$$cacheid
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7798 printf "%s\n" "$supported" >&6; }
7799 if test "$supported" = "yes" ; then
7800 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7801 found="yes"
7802 fi
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819 xorg_testset_save_CFLAGS="$CFLAGS"
7820
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7824 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7825 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7826 then :
7827 printf %s "(cached) " >&6
7828 else case e in #(
7829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 int i;
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"
7834 then :
7835 xorg_cv_cc_flag_unknown_warning_option=yes
7836 else case e in #(
7837 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7838 esac
7839 fi
7840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7841 esac
7842 fi
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847 fi
7848
7849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7852 fi
7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7857 then :
7858 printf %s "(cached) " >&6
7859 else case e in #(
7860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 int i;
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"
7865 then :
7866 xorg_cv_cc_flag_unused_command_line_argument=yes
7867 else case e in #(
7868 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7869 esac
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7872 esac
7873 fi
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7877 CFLAGS="$xorg_testset_save_CFLAGS"
7878 fi
7879
7880 found="no"
7881
7882 if test $found = "no" ; then
7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885 fi
7886
7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7889 fi
7890
7891 CFLAGS="$CFLAGS -Werror=missing-braces"
7892
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7894 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7895 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7896 if eval test \${$cacheid+y}
7897 then :
7898 printf %s "(cached) " >&6
7899 else case e in #(
7900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 int i;
7903 int
7904 main (void)
7905 {
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"
7912 then :
7913 eval $cacheid=yes
7914 else case e in #(
7915 e) eval $cacheid=no ;;
7916 esac
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7919 conftest$ac_exeext conftest.$ac_ext ;;
7920 esac
7921 fi
7922
7923
7924 CFLAGS="$xorg_testset_save_CFLAGS"
7925
7926 eval supported=\$$cacheid
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7928 printf "%s\n" "$supported" >&6; }
7929 if test "$supported" = "yes" ; then
7930 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7931 found="yes"
7932 fi
7933 fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 xorg_testset_save_CFLAGS="$CFLAGS"
7950
7951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7954 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7955 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else case e in #(
7959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 _ACEOF
7963 if ac_fn_c_try_compile "$LINENO"
7964 then :
7965 xorg_cv_cc_flag_unknown_warning_option=yes
7966 else case e in #(
7967 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7968 esac
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7971 esac
7972 fi
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7976 CFLAGS="$xorg_testset_save_CFLAGS"
7977 fi
7978
7979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 fi
7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7987 then :
7988 printf %s "(cached) " >&6
7989 else case e in #(
7990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 int i;
7993 _ACEOF
7994 if ac_fn_c_try_compile "$LINENO"
7995 then :
7996 xorg_cv_cc_flag_unused_command_line_argument=yes
7997 else case e in #(
7998 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7999 esac
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8002 esac
8003 fi
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008 fi
8009
8010 found="no"
8011
8012 if test $found = "no" ; then
8013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015 fi
8016
8017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8019 fi
8020
8021 CFLAGS="$CFLAGS -Werror=sequence-point"
8022
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8024 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8025 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8026 if eval test \${$cacheid+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else case e in #(
8030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 int i;
8033 int
8034 main (void)
8035 {
8036
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"
8042 then :
8043 eval $cacheid=yes
8044 else case e in #(
8045 e) eval $cacheid=no ;;
8046 esac
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8049 conftest$ac_exeext conftest.$ac_ext ;;
8050 esac
8051 fi
8052
8053
8054 CFLAGS="$xorg_testset_save_CFLAGS"
8055
8056 eval supported=\$$cacheid
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8058 printf "%s\n" "$supported" >&6; }
8059 if test "$supported" = "yes" ; then
8060 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8061 found="yes"
8062 fi
8063 fi
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079 xorg_testset_save_CFLAGS="$CFLAGS"
8080
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8086 then :
8087 printf %s "(cached) " >&6
8088 else case e in #(
8089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"
8094 then :
8095 xorg_cv_cc_flag_unknown_warning_option=yes
8096 else case e in #(
8097 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8098 esac
8099 fi
8100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8101 esac
8102 fi
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107 fi
8108
8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112 fi
8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8117 then :
8118 printf %s "(cached) " >&6
8119 else case e in #(
8120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 int i;
8123 _ACEOF
8124 if ac_fn_c_try_compile "$LINENO"
8125 then :
8126 xorg_cv_cc_flag_unused_command_line_argument=yes
8127 else case e in #(
8128 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8129 esac
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8132 esac
8133 fi
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8137 CFLAGS="$xorg_testset_save_CFLAGS"
8138 fi
8139
8140 found="no"
8141
8142 if test $found = "no" ; then
8143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145 fi
8146
8147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149 fi
8150
8151 CFLAGS="$CFLAGS -Werror=return-type"
8152
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8154 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8155 cacheid=xorg_cv_cc_flag__Werror_return_type
8156 if eval test \${$cacheid+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else case e in #(
8160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 int
8164 main (void)
8165 {
8166
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_link "$LINENO"
8172 then :
8173 eval $cacheid=yes
8174 else case e in #(
8175 e) eval $cacheid=no ;;
8176 esac
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8179 conftest$ac_exeext conftest.$ac_ext ;;
8180 esac
8181 fi
8182
8183
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185
8186 eval supported=\$$cacheid
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8188 printf "%s\n" "$supported" >&6; }
8189 if test "$supported" = "yes" ; then
8190 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8191 found="yes"
8192 fi
8193 fi
8194
8195 if test $found = "no" ; then
8196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198 fi
8199
8200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8202 fi
8203
8204 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8205
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8207 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8208 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8209 if eval test \${$cacheid+y}
8210 then :
8211 printf %s "(cached) " >&6
8212 else case e in #(
8213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 int i;
8216 int
8217 main (void)
8218 {
8219
8220 ;
8221 return 0;
8222 }
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"
8225 then :
8226 eval $cacheid=yes
8227 else case e in #(
8228 e) eval $cacheid=no ;;
8229 esac
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8232 conftest$ac_exeext conftest.$ac_ext ;;
8233 esac
8234 fi
8235
8236
8237 CFLAGS="$xorg_testset_save_CFLAGS"
8238
8239 eval supported=\$$cacheid
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8241 printf "%s\n" "$supported" >&6; }
8242 if test "$supported" = "yes" ; then
8243 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8244 found="yes"
8245 fi
8246 fi
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 xorg_testset_save_CFLAGS="$CFLAGS"
8263
8264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8268 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8269 then :
8270 printf %s "(cached) " >&6
8271 else case e in #(
8272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 int i;
8275 _ACEOF
8276 if ac_fn_c_try_compile "$LINENO"
8277 then :
8278 xorg_cv_cc_flag_unknown_warning_option=yes
8279 else case e in #(
8280 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8281 esac
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8284 esac
8285 fi
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8289 CFLAGS="$xorg_testset_save_CFLAGS"
8290 fi
8291
8292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295 fi
8296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8300 then :
8301 printf %s "(cached) " >&6
8302 else case e in #(
8303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 int i;
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"
8308 then :
8309 xorg_cv_cc_flag_unused_command_line_argument=yes
8310 else case e in #(
8311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8312 esac
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8315 esac
8316 fi
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8320 CFLAGS="$xorg_testset_save_CFLAGS"
8321 fi
8322
8323 found="no"
8324
8325 if test $found = "no" ; then
8326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328 fi
8329
8330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8332 fi
8333
8334 CFLAGS="$CFLAGS -Werror=trigraphs"
8335
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8337 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8338 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8339 if eval test \${$cacheid+y}
8340 then :
8341 printf %s "(cached) " >&6
8342 else case e in #(
8343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 int i;
8346 int
8347 main (void)
8348 {
8349
8350 ;
8351 return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"
8355 then :
8356 eval $cacheid=yes
8357 else case e in #(
8358 e) eval $cacheid=no ;;
8359 esac
8360 fi
8361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8362 conftest$ac_exeext conftest.$ac_ext ;;
8363 esac
8364 fi
8365
8366
8367 CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369 eval supported=\$$cacheid
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371 printf "%s\n" "$supported" >&6; }
8372 if test "$supported" = "yes" ; then
8373 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8374 found="yes"
8375 fi
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8399 then :
8400 printf %s "(cached) " >&6
8401 else case e in #(
8402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 int i;
8405 _ACEOF
8406 if ac_fn_c_try_compile "$LINENO"
8407 then :
8408 xorg_cv_cc_flag_unknown_warning_option=yes
8409 else case e in #(
8410 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8411 esac
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8414 esac
8415 fi
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8419 CFLAGS="$xorg_testset_save_CFLAGS"
8420 fi
8421
8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8425 fi
8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8430 then :
8431 printf %s "(cached) " >&6
8432 else case e in #(
8433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 int i;
8436 _ACEOF
8437 if ac_fn_c_try_compile "$LINENO"
8438 then :
8439 xorg_cv_cc_flag_unused_command_line_argument=yes
8440 else case e in #(
8441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8442 esac
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8445 esac
8446 fi
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8450 CFLAGS="$xorg_testset_save_CFLAGS"
8451 fi
8452
8453 found="no"
8454
8455 if test $found = "no" ; then
8456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8458 fi
8459
8460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8462 fi
8463
8464 CFLAGS="$CFLAGS -Werror=array-bounds"
8465
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8467 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8468 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8469 if eval test \${$cacheid+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else case e in #(
8473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 int i;
8476 int
8477 main (void)
8478 {
8479
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_link "$LINENO"
8485 then :
8486 eval $cacheid=yes
8487 else case e in #(
8488 e) eval $cacheid=no ;;
8489 esac
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8492 conftest$ac_exeext conftest.$ac_ext ;;
8493 esac
8494 fi
8495
8496
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499 eval supported=\$$cacheid
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501 printf "%s\n" "$supported" >&6; }
8502 if test "$supported" = "yes" ; then
8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8504 found="yes"
8505 fi
8506 fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else case e in #(
8532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534 int i;
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"
8537 then :
8538 xorg_cv_cc_flag_unknown_warning_option=yes
8539 else case e in #(
8540 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8541 esac
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8544 esac
8545 fi
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8549 CFLAGS="$xorg_testset_save_CFLAGS"
8550 fi
8551
8552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8555 fi
8556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8560 then :
8561 printf %s "(cached) " >&6
8562 else case e in #(
8563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 int i;
8566 _ACEOF
8567 if ac_fn_c_try_compile "$LINENO"
8568 then :
8569 xorg_cv_cc_flag_unused_command_line_argument=yes
8570 else case e in #(
8571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8572 esac
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8575 esac
8576 fi
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8580 CFLAGS="$xorg_testset_save_CFLAGS"
8581 fi
8582
8583 found="no"
8584
8585 if test $found = "no" ; then
8586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8588 fi
8589
8590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8592 fi
8593
8594 CFLAGS="$CFLAGS -Werror=write-strings"
8595
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8597 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8598 cacheid=xorg_cv_cc_flag__Werror_write_strings
8599 if eval test \${$cacheid+y}
8600 then :
8601 printf %s "(cached) " >&6
8602 else case e in #(
8603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 int i;
8606 int
8607 main (void)
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"
8615 then :
8616 eval $cacheid=yes
8617 else case e in #(
8618 e) eval $cacheid=no ;;
8619 esac
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8622 conftest$ac_exeext conftest.$ac_ext ;;
8623 esac
8624 fi
8625
8626
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628
8629 eval supported=\$$cacheid
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8631 printf "%s\n" "$supported" >&6; }
8632 if test "$supported" = "yes" ; then
8633 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8634 found="yes"
8635 fi
8636 fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652 xorg_testset_save_CFLAGS="$CFLAGS"
8653
8654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8658 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8659 then :
8660 printf %s "(cached) " >&6
8661 else case e in #(
8662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 int i;
8665 _ACEOF
8666 if ac_fn_c_try_compile "$LINENO"
8667 then :
8668 xorg_cv_cc_flag_unknown_warning_option=yes
8669 else case e in #(
8670 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8671 esac
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8674 esac
8675 fi
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8677 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680 fi
8681
8682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8685 fi
8686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else case e in #(
8693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 int i;
8696 _ACEOF
8697 if ac_fn_c_try_compile "$LINENO"
8698 then :
8699 xorg_cv_cc_flag_unused_command_line_argument=yes
8700 else case e in #(
8701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8702 esac
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8705 esac
8706 fi
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8710 CFLAGS="$xorg_testset_save_CFLAGS"
8711 fi
8712
8713 found="no"
8714
8715 if test $found = "no" ; then
8716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8718 fi
8719
8720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8722 fi
8723
8724 CFLAGS="$CFLAGS -Werror=address"
8725
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8727 printf %s "checking if $CC supports -Werror=address... " >&6; }
8728 cacheid=xorg_cv_cc_flag__Werror_address
8729 if eval test \${$cacheid+y}
8730 then :
8731 printf %s "(cached) " >&6
8732 else case e in #(
8733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 int
8737 main (void)
8738 {
8739
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_link "$LINENO"
8745 then :
8746 eval $cacheid=yes
8747 else case e in #(
8748 e) eval $cacheid=no ;;
8749 esac
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8752 conftest$ac_exeext conftest.$ac_ext ;;
8753 esac
8754 fi
8755
8756
8757 CFLAGS="$xorg_testset_save_CFLAGS"
8758
8759 eval supported=\$$cacheid
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8761 printf "%s\n" "$supported" >&6; }
8762 if test "$supported" = "yes" ; then
8763 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8764 found="yes"
8765 fi
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782 xorg_testset_save_CFLAGS="$CFLAGS"
8783
8784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8787 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8788 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8789 then :
8790 printf %s "(cached) " >&6
8791 else case e in #(
8792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 int i;
8795 _ACEOF
8796 if ac_fn_c_try_compile "$LINENO"
8797 then :
8798 xorg_cv_cc_flag_unknown_warning_option=yes
8799 else case e in #(
8800 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8801 esac
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8804 esac
8805 fi
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8809 CFLAGS="$xorg_testset_save_CFLAGS"
8810 fi
8811
8812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8815 fi
8816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8820 then :
8821 printf %s "(cached) " >&6
8822 else case e in #(
8823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 int i;
8826 _ACEOF
8827 if ac_fn_c_try_compile "$LINENO"
8828 then :
8829 xorg_cv_cc_flag_unused_command_line_argument=yes
8830 else case e in #(
8831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8832 esac
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8835 esac
8836 fi
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8840 CFLAGS="$xorg_testset_save_CFLAGS"
8841 fi
8842
8843 found="no"
8844
8845 if test $found = "no" ; then
8846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8848 fi
8849
8850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8852 fi
8853
8854 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8855
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8857 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8858 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8859 if eval test \${$cacheid+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else case e in #(
8863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 int i;
8866 int
8867 main (void)
8868 {
8869
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"
8875 then :
8876 eval $cacheid=yes
8877 else case e in #(
8878 e) eval $cacheid=no ;;
8879 esac
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8882 conftest$ac_exeext conftest.$ac_ext ;;
8883 esac
8884 fi
8885
8886
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888
8889 eval supported=\$$cacheid
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8891 printf "%s\n" "$supported" >&6; }
8892 if test "$supported" = "yes" ; then
8893 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8894 found="yes"
8895 fi
8896 fi
8897
8898 if test $found = "no" ; then
8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 fi
8902
8903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905 fi
8906
8907 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8908
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8910 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8911 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8912 if eval test \${$cacheid+y}
8913 then :
8914 printf %s "(cached) " >&6
8915 else case e in #(
8916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 int i;
8919 int
8920 main (void)
8921 {
8922
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"
8928 then :
8929 eval $cacheid=yes
8930 else case e in #(
8931 e) eval $cacheid=no ;;
8932 esac
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8935 conftest$ac_exeext conftest.$ac_ext ;;
8936 esac
8937 fi
8938
8939
8940 CFLAGS="$xorg_testset_save_CFLAGS"
8941
8942 eval supported=\$$cacheid
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8944 printf "%s\n" "$supported" >&6; }
8945 if test "$supported" = "yes" ; then
8946 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8947 found="yes"
8948 fi
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965 xorg_testset_save_CFLAGS="$CFLAGS"
8966
8967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8970 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8971 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else case e in #(
8975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 int i;
8978 _ACEOF
8979 if ac_fn_c_try_compile "$LINENO"
8980 then :
8981 xorg_cv_cc_flag_unknown_warning_option=yes
8982 else case e in #(
8983 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8984 esac
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8987 esac
8988 fi
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992 CFLAGS="$xorg_testset_save_CFLAGS"
8993 fi
8994
8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else case e in #(
9006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 int i;
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"
9011 then :
9012 xorg_cv_cc_flag_unused_command_line_argument=yes
9013 else case e in #(
9014 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9015 esac
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9018 esac
9019 fi
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9021 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9024 fi
9025
9026 found="no"
9027
9028 if test $found = "no" ; then
9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9031 fi
9032
9033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9035 fi
9036
9037 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9038
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9040 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9041 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9042 if eval test \${$cacheid+y}
9043 then :
9044 printf %s "(cached) " >&6
9045 else case e in #(
9046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 int i;
9049 int
9050 main (void)
9051 {
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"
9058 then :
9059 eval $cacheid=yes
9060 else case e in #(
9061 e) eval $cacheid=no ;;
9062 esac
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9065 conftest$ac_exeext conftest.$ac_ext ;;
9066 esac
9067 fi
9068
9069
9070 CFLAGS="$xorg_testset_save_CFLAGS"
9071
9072 eval supported=\$$cacheid
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9074 printf "%s\n" "$supported" >&6; }
9075 if test "$supported" = "yes" ; then
9076 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9077 found="yes"
9078 fi
9079 fi
9080
9081 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9082 else
9083 { 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
9084 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;}
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 xorg_testset_save_CFLAGS="$CFLAGS"
9099
9100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9104 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9105 then :
9106 printf %s "(cached) " >&6
9107 else case e in #(
9108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int i;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"
9113 then :
9114 xorg_cv_cc_flag_unknown_warning_option=yes
9115 else case e in #(
9116 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9117 esac
9118 fi
9119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9120 esac
9121 fi
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9123 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9125 CFLAGS="$xorg_testset_save_CFLAGS"
9126 fi
9127
9128 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131 fi
9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9134 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9135 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9136 then :
9137 printf %s "(cached) " >&6
9138 else case e in #(
9139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 int i;
9142 _ACEOF
9143 if ac_fn_c_try_compile "$LINENO"
9144 then :
9145 xorg_cv_cc_flag_unused_command_line_argument=yes
9146 else case e in #(
9147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9148 esac
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9151 esac
9152 fi
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9154 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157 fi
9158
9159 found="no"
9160
9161 if test $found = "no" ; then
9162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164 fi
9165
9166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9168 fi
9169
9170 CFLAGS="$CFLAGS -Wimplicit"
9171
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9173 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9174 cacheid=xorg_cv_cc_flag__Wimplicit
9175 if eval test \${$cacheid+y}
9176 then :
9177 printf %s "(cached) " >&6
9178 else case e in #(
9179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 int i;
9182 int
9183 main (void)
9184 {
9185
9186 ;
9187 return 0;
9188 }
9189 _ACEOF
9190 if ac_fn_c_try_link "$LINENO"
9191 then :
9192 eval $cacheid=yes
9193 else case e in #(
9194 e) eval $cacheid=no ;;
9195 esac
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9198 conftest$ac_exeext conftest.$ac_ext ;;
9199 esac
9200 fi
9201
9202
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9204
9205 eval supported=\$$cacheid
9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9207 printf "%s\n" "$supported" >&6; }
9208 if test "$supported" = "yes" ; then
9209 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9210 found="yes"
9211 fi
9212 fi
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228 xorg_testset_save_CFLAGS="$CFLAGS"
9229
9230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9234 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9235 then :
9236 printf %s "(cached) " >&6
9237 else case e in #(
9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int i;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"
9243 then :
9244 xorg_cv_cc_flag_unknown_warning_option=yes
9245 else case e in #(
9246 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9247 esac
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9250 esac
9251 fi
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9256 fi
9257
9258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261 fi
9262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9266 then :
9267 printf %s "(cached) " >&6
9268 else case e in #(
9269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int i;
9272 _ACEOF
9273 if ac_fn_c_try_compile "$LINENO"
9274 then :
9275 xorg_cv_cc_flag_unused_command_line_argument=yes
9276 else case e in #(
9277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9278 esac
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9281 esac
9282 fi
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9286 CFLAGS="$xorg_testset_save_CFLAGS"
9287 fi
9288
9289 found="no"
9290
9291 if test $found = "no" ; then
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294 fi
9295
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9298 fi
9299
9300 CFLAGS="$CFLAGS -Wnonnull"
9301
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9303 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9304 cacheid=xorg_cv_cc_flag__Wnonnull
9305 if eval test \${$cacheid+y}
9306 then :
9307 printf %s "(cached) " >&6
9308 else case e in #(
9309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 int i;
9312 int
9313 main (void)
9314 {
9315
9316 ;
9317 return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"
9321 then :
9322 eval $cacheid=yes
9323 else case e in #(
9324 e) eval $cacheid=no ;;
9325 esac
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9328 conftest$ac_exeext conftest.$ac_ext ;;
9329 esac
9330 fi
9331
9332
9333 CFLAGS="$xorg_testset_save_CFLAGS"
9334
9335 eval supported=\$$cacheid
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9337 printf "%s\n" "$supported" >&6; }
9338 if test "$supported" = "yes" ; then
9339 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9340 found="yes"
9341 fi
9342 fi
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 xorg_testset_save_CFLAGS="$CFLAGS"
9359
9360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9364 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9365 then :
9366 printf %s "(cached) " >&6
9367 else case e in #(
9368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 int i;
9371 _ACEOF
9372 if ac_fn_c_try_compile "$LINENO"
9373 then :
9374 xorg_cv_cc_flag_unknown_warning_option=yes
9375 else case e in #(
9376 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9377 esac
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9380 esac
9381 fi
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9383 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9385 CFLAGS="$xorg_testset_save_CFLAGS"
9386 fi
9387
9388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 fi
9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9394 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9395 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9396 then :
9397 printf %s "(cached) " >&6
9398 else case e in #(
9399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 int i;
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"
9404 then :
9405 xorg_cv_cc_flag_unused_command_line_argument=yes
9406 else case e in #(
9407 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9408 esac
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9411 esac
9412 fi
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417 fi
9418
9419 found="no"
9420
9421 if test $found = "no" ; then
9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 fi
9429
9430 CFLAGS="$CFLAGS -Winit-self"
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9433 printf %s "checking if $CC supports -Winit-self... " >&6; }
9434 cacheid=xorg_cv_cc_flag__Winit_self
9435 if eval test \${$cacheid+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else case e in #(
9439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 int
9443 main (void)
9444 {
9445
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 if ac_fn_c_try_link "$LINENO"
9451 then :
9452 eval $cacheid=yes
9453 else case e in #(
9454 e) eval $cacheid=no ;;
9455 esac
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9458 conftest$ac_exeext conftest.$ac_ext ;;
9459 esac
9460 fi
9461
9462
9463 CFLAGS="$xorg_testset_save_CFLAGS"
9464
9465 eval supported=\$$cacheid
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9467 printf "%s\n" "$supported" >&6; }
9468 if test "$supported" = "yes" ; then
9469 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9470 found="yes"
9471 fi
9472 fi
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 xorg_testset_save_CFLAGS="$CFLAGS"
9489
9490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9494 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9495 then :
9496 printf %s "(cached) " >&6
9497 else case e in #(
9498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int i;
9501 _ACEOF
9502 if ac_fn_c_try_compile "$LINENO"
9503 then :
9504 xorg_cv_cc_flag_unknown_warning_option=yes
9505 else case e in #(
9506 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9507 esac
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9510 esac
9511 fi
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9515 CFLAGS="$xorg_testset_save_CFLAGS"
9516 fi
9517
9518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521 fi
9522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9526 then :
9527 printf %s "(cached) " >&6
9528 else case e in #(
9529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 int i;
9532 _ACEOF
9533 if ac_fn_c_try_compile "$LINENO"
9534 then :
9535 xorg_cv_cc_flag_unused_command_line_argument=yes
9536 else case e in #(
9537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9538 esac
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9541 esac
9542 fi
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 found="no"
9550
9551 if test $found = "no" ; then
9552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 fi
9555
9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558 fi
9559
9560 CFLAGS="$CFLAGS -Wmain"
9561
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9563 printf %s "checking if $CC supports -Wmain... " >&6; }
9564 cacheid=xorg_cv_cc_flag__Wmain
9565 if eval test \${$cacheid+y}
9566 then :
9567 printf %s "(cached) " >&6
9568 else case e in #(
9569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int i;
9572 int
9573 main (void)
9574 {
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"
9581 then :
9582 eval $cacheid=yes
9583 else case e in #(
9584 e) eval $cacheid=no ;;
9585 esac
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9588 conftest$ac_exeext conftest.$ac_ext ;;
9589 esac
9590 fi
9591
9592
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594
9595 eval supported=\$$cacheid
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9597 printf "%s\n" "$supported" >&6; }
9598 if test "$supported" = "yes" ; then
9599 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9600 found="yes"
9601 fi
9602 fi
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618 xorg_testset_save_CFLAGS="$CFLAGS"
9619
9620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9625 then :
9626 printf %s "(cached) " >&6
9627 else case e in #(
9628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 int i;
9631 _ACEOF
9632 if ac_fn_c_try_compile "$LINENO"
9633 then :
9634 xorg_cv_cc_flag_unknown_warning_option=yes
9635 else case e in #(
9636 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9637 esac
9638 fi
9639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9640 esac
9641 fi
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9645 CFLAGS="$xorg_testset_save_CFLAGS"
9646 fi
9647
9648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9651 fi
9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9656 then :
9657 printf %s "(cached) " >&6
9658 else case e in #(
9659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 int i;
9662 _ACEOF
9663 if ac_fn_c_try_compile "$LINENO"
9664 then :
9665 xorg_cv_cc_flag_unused_command_line_argument=yes
9666 else case e in #(
9667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9668 esac
9669 fi
9670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9671 esac
9672 fi
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9676 CFLAGS="$xorg_testset_save_CFLAGS"
9677 fi
9678
9679 found="no"
9680
9681 if test $found = "no" ; then
9682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 fi
9685
9686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9688 fi
9689
9690 CFLAGS="$CFLAGS -Wmissing-braces"
9691
9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9693 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9694 cacheid=xorg_cv_cc_flag__Wmissing_braces
9695 if eval test \${$cacheid+y}
9696 then :
9697 printf %s "(cached) " >&6
9698 else case e in #(
9699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int i;
9702 int
9703 main (void)
9704 {
9705
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"
9711 then :
9712 eval $cacheid=yes
9713 else case e in #(
9714 e) eval $cacheid=no ;;
9715 esac
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9718 conftest$ac_exeext conftest.$ac_ext ;;
9719 esac
9720 fi
9721
9722
9723 CFLAGS="$xorg_testset_save_CFLAGS"
9724
9725 eval supported=\$$cacheid
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9727 printf "%s\n" "$supported" >&6; }
9728 if test "$supported" = "yes" ; then
9729 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9730 found="yes"
9731 fi
9732 fi
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748 xorg_testset_save_CFLAGS="$CFLAGS"
9749
9750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9755 then :
9756 printf %s "(cached) " >&6
9757 else case e in #(
9758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 int i;
9761 _ACEOF
9762 if ac_fn_c_try_compile "$LINENO"
9763 then :
9764 xorg_cv_cc_flag_unknown_warning_option=yes
9765 else case e in #(
9766 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9767 esac
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9770 esac
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 case e in #(
9789 e) 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 case e in #(
9797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9798 esac
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9801 esac
9802 fi
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9806 CFLAGS="$xorg_testset_save_CFLAGS"
9807 fi
9808
9809 found="no"
9810
9811 if test $found = "no" ; then
9812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814 fi
9815
9816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9818 fi
9819
9820 CFLAGS="$CFLAGS -Wsequence-point"
9821
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9823 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9824 cacheid=xorg_cv_cc_flag__Wsequence_point
9825 if eval test \${$cacheid+y}
9826 then :
9827 printf %s "(cached) " >&6
9828 else case e in #(
9829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 int i;
9832 int
9833 main (void)
9834 {
9835
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"
9841 then :
9842 eval $cacheid=yes
9843 else case e in #(
9844 e) eval $cacheid=no ;;
9845 esac
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9848 conftest$ac_exeext conftest.$ac_ext ;;
9849 esac
9850 fi
9851
9852
9853 CFLAGS="$xorg_testset_save_CFLAGS"
9854
9855 eval supported=\$$cacheid
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9857 printf "%s\n" "$supported" >&6; }
9858 if test "$supported" = "yes" ; then
9859 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9860 found="yes"
9861 fi
9862 fi
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878 xorg_testset_save_CFLAGS="$CFLAGS"
9879
9880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9885 then :
9886 printf %s "(cached) " >&6
9887 else case e in #(
9888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 int i;
9891 _ACEOF
9892 if ac_fn_c_try_compile "$LINENO"
9893 then :
9894 xorg_cv_cc_flag_unknown_warning_option=yes
9895 else case e in #(
9896 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9897 esac
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9900 esac
9901 fi
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9905 CFLAGS="$xorg_testset_save_CFLAGS"
9906 fi
9907
9908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9911 fi
9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9916 then :
9917 printf %s "(cached) " >&6
9918 else case e in #(
9919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 int i;
9922 _ACEOF
9923 if ac_fn_c_try_compile "$LINENO"
9924 then :
9925 xorg_cv_cc_flag_unused_command_line_argument=yes
9926 else case e in #(
9927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9928 esac
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9931 esac
9932 fi
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9936 CFLAGS="$xorg_testset_save_CFLAGS"
9937 fi
9938
9939 found="no"
9940
9941 if test $found = "no" ; then
9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944 fi
9945
9946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9948 fi
9949
9950 CFLAGS="$CFLAGS -Wreturn-type"
9951
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9953 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9954 cacheid=xorg_cv_cc_flag__Wreturn_type
9955 if eval test \${$cacheid+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else case e in #(
9959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 int i;
9962 int
9963 main (void)
9964 {
9965
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_c_try_link "$LINENO"
9971 then :
9972 eval $cacheid=yes
9973 else case e in #(
9974 e) eval $cacheid=no ;;
9975 esac
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9978 conftest$ac_exeext conftest.$ac_ext ;;
9979 esac
9980 fi
9981
9982
9983 CFLAGS="$xorg_testset_save_CFLAGS"
9984
9985 eval supported=\$$cacheid
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9987 printf "%s\n" "$supported" >&6; }
9988 if test "$supported" = "yes" ; then
9989 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9990 found="yes"
9991 fi
9992 fi
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 xorg_testset_save_CFLAGS="$CFLAGS"
10009
10010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10015 then :
10016 printf %s "(cached) " >&6
10017 else case e in #(
10018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int i;
10021 _ACEOF
10022 if ac_fn_c_try_compile "$LINENO"
10023 then :
10024 xorg_cv_cc_flag_unknown_warning_option=yes
10025 else case e in #(
10026 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10027 esac
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10030 esac
10031 fi
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10035 CFLAGS="$xorg_testset_save_CFLAGS"
10036 fi
10037
10038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10041 fi
10042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else case e in #(
10049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051 int i;
10052 _ACEOF
10053 if ac_fn_c_try_compile "$LINENO"
10054 then :
10055 xorg_cv_cc_flag_unused_command_line_argument=yes
10056 else case e in #(
10057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10058 esac
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10061 esac
10062 fi
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10066 CFLAGS="$xorg_testset_save_CFLAGS"
10067 fi
10068
10069 found="no"
10070
10071 if test $found = "no" ; then
10072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074 fi
10075
10076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10078 fi
10079
10080 CFLAGS="$CFLAGS -Wtrigraphs"
10081
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10083 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10084 cacheid=xorg_cv_cc_flag__Wtrigraphs
10085 if eval test \${$cacheid+y}
10086 then :
10087 printf %s "(cached) " >&6
10088 else case e in #(
10089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 int
10093 main (void)
10094 {
10095
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"
10101 then :
10102 eval $cacheid=yes
10103 else case e in #(
10104 e) eval $cacheid=no ;;
10105 esac
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10108 conftest$ac_exeext conftest.$ac_ext ;;
10109 esac
10110 fi
10111
10112
10113 CFLAGS="$xorg_testset_save_CFLAGS"
10114
10115 eval supported=\$$cacheid
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10117 printf "%s\n" "$supported" >&6; }
10118 if test "$supported" = "yes" ; then
10119 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10120 found="yes"
10121 fi
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138 xorg_testset_save_CFLAGS="$CFLAGS"
10139
10140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10145 then :
10146 printf %s "(cached) " >&6
10147 else case e in #(
10148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 int i;
10151 _ACEOF
10152 if ac_fn_c_try_compile "$LINENO"
10153 then :
10154 xorg_cv_cc_flag_unknown_warning_option=yes
10155 else case e in #(
10156 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10157 esac
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10160 esac
10161 fi
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10165 CFLAGS="$xorg_testset_save_CFLAGS"
10166 fi
10167
10168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171 fi
10172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10176 then :
10177 printf %s "(cached) " >&6
10178 else case e in #(
10179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int i;
10182 _ACEOF
10183 if ac_fn_c_try_compile "$LINENO"
10184 then :
10185 xorg_cv_cc_flag_unused_command_line_argument=yes
10186 else case e in #(
10187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10188 esac
10189 fi
10190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10191 esac
10192 fi
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10196 CFLAGS="$xorg_testset_save_CFLAGS"
10197 fi
10198
10199 found="no"
10200
10201 if test $found = "no" ; then
10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204 fi
10205
10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208 fi
10209
10210 CFLAGS="$CFLAGS -Warray-bounds"
10211
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10213 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10214 cacheid=xorg_cv_cc_flag__Warray_bounds
10215 if eval test \${$cacheid+y}
10216 then :
10217 printf %s "(cached) " >&6
10218 else case e in #(
10219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 int i;
10222 int
10223 main (void)
10224 {
10225
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"
10231 then :
10232 eval $cacheid=yes
10233 else case e in #(
10234 e) eval $cacheid=no ;;
10235 esac
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10238 conftest$ac_exeext conftest.$ac_ext ;;
10239 esac
10240 fi
10241
10242
10243 CFLAGS="$xorg_testset_save_CFLAGS"
10244
10245 eval supported=\$$cacheid
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10247 printf "%s\n" "$supported" >&6; }
10248 if test "$supported" = "yes" ; then
10249 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10250 found="yes"
10251 fi
10252 fi
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268 xorg_testset_save_CFLAGS="$CFLAGS"
10269
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10274 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10275 then :
10276 printf %s "(cached) " >&6
10277 else case e in #(
10278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 int i;
10281 _ACEOF
10282 if ac_fn_c_try_compile "$LINENO"
10283 then :
10284 xorg_cv_cc_flag_unknown_warning_option=yes
10285 else case e in #(
10286 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10287 esac
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10290 esac
10291 fi
10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10295 CFLAGS="$xorg_testset_save_CFLAGS"
10296 fi
10297
10298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301 fi
10302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10306 then :
10307 printf %s "(cached) " >&6
10308 else case e in #(
10309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 int i;
10312 _ACEOF
10313 if ac_fn_c_try_compile "$LINENO"
10314 then :
10315 xorg_cv_cc_flag_unused_command_line_argument=yes
10316 else case e in #(
10317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10318 esac
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10321 esac
10322 fi
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10324 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10326 CFLAGS="$xorg_testset_save_CFLAGS"
10327 fi
10328
10329 found="no"
10330
10331 if test $found = "no" ; then
10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334 fi
10335
10336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10338 fi
10339
10340 CFLAGS="$CFLAGS -Wwrite-strings"
10341
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10343 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10344 cacheid=xorg_cv_cc_flag__Wwrite_strings
10345 if eval test \${$cacheid+y}
10346 then :
10347 printf %s "(cached) " >&6
10348 else case e in #(
10349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 int i;
10352 int
10353 main (void)
10354 {
10355
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"
10361 then :
10362 eval $cacheid=yes
10363 else case e in #(
10364 e) eval $cacheid=no ;;
10365 esac
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10368 conftest$ac_exeext conftest.$ac_ext ;;
10369 esac
10370 fi
10371
10372
10373 CFLAGS="$xorg_testset_save_CFLAGS"
10374
10375 eval supported=\$$cacheid
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10377 printf "%s\n" "$supported" >&6; }
10378 if test "$supported" = "yes" ; then
10379 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10380 found="yes"
10381 fi
10382 fi
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398 xorg_testset_save_CFLAGS="$CFLAGS"
10399
10400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10405 then :
10406 printf %s "(cached) " >&6
10407 else case e in #(
10408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 int i;
10411 _ACEOF
10412 if ac_fn_c_try_compile "$LINENO"
10413 then :
10414 xorg_cv_cc_flag_unknown_warning_option=yes
10415 else case e in #(
10416 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10417 esac
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10420 esac
10421 fi
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10425 CFLAGS="$xorg_testset_save_CFLAGS"
10426 fi
10427
10428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10431 fi
10432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else case e in #(
10439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 int i;
10442 _ACEOF
10443 if ac_fn_c_try_compile "$LINENO"
10444 then :
10445 xorg_cv_cc_flag_unused_command_line_argument=yes
10446 else case e in #(
10447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10448 esac
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10451 esac
10452 fi
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10456 CFLAGS="$xorg_testset_save_CFLAGS"
10457 fi
10458
10459 found="no"
10460
10461 if test $found = "no" ; then
10462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10464 fi
10465
10466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10468 fi
10469
10470 CFLAGS="$CFLAGS -Waddress"
10471
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10473 printf %s "checking if $CC supports -Waddress... " >&6; }
10474 cacheid=xorg_cv_cc_flag__Waddress
10475 if eval test \${$cacheid+y}
10476 then :
10477 printf %s "(cached) " >&6
10478 else case e in #(
10479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 int i;
10482 int
10483 main (void)
10484 {
10485
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"
10491 then :
10492 eval $cacheid=yes
10493 else case e in #(
10494 e) eval $cacheid=no ;;
10495 esac
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10498 conftest$ac_exeext conftest.$ac_ext ;;
10499 esac
10500 fi
10501
10502
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505 eval supported=\$$cacheid
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10507 printf "%s\n" "$supported" >&6; }
10508 if test "$supported" = "yes" ; then
10509 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10510 found="yes"
10511 fi
10512 fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528 xorg_testset_save_CFLAGS="$CFLAGS"
10529
10530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10534 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10535 then :
10536 printf %s "(cached) " >&6
10537 else case e in #(
10538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 int i;
10541 _ACEOF
10542 if ac_fn_c_try_compile "$LINENO"
10543 then :
10544 xorg_cv_cc_flag_unknown_warning_option=yes
10545 else case e in #(
10546 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10547 esac
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10550 esac
10551 fi
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10555 CFLAGS="$xorg_testset_save_CFLAGS"
10556 fi
10557
10558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10561 fi
10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10566 then :
10567 printf %s "(cached) " >&6
10568 else case e in #(
10569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 int i;
10572 _ACEOF
10573 if ac_fn_c_try_compile "$LINENO"
10574 then :
10575 xorg_cv_cc_flag_unused_command_line_argument=yes
10576 else case e in #(
10577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10578 esac
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10581 esac
10582 fi
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10586 CFLAGS="$xorg_testset_save_CFLAGS"
10587 fi
10588
10589 found="no"
10590
10591 if test $found = "no" ; then
10592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10594 fi
10595
10596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10598 fi
10599
10600 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10601
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10603 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10604 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10605 if eval test \${$cacheid+y}
10606 then :
10607 printf %s "(cached) " >&6
10608 else case e in #(
10609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 int i;
10612 int
10613 main (void)
10614 {
10615
10616 ;
10617 return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"
10621 then :
10622 eval $cacheid=yes
10623 else case e in #(
10624 e) eval $cacheid=no ;;
10625 esac
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10628 conftest$ac_exeext conftest.$ac_ext ;;
10629 esac
10630 fi
10631
10632
10633 CFLAGS="$xorg_testset_save_CFLAGS"
10634
10635 eval supported=\$$cacheid
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10637 printf "%s\n" "$supported" >&6; }
10638 if test "$supported" = "yes" ; then
10639 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10640 found="yes"
10641 fi
10642 fi
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658 xorg_testset_save_CFLAGS="$CFLAGS"
10659
10660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10664 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10665 then :
10666 printf %s "(cached) " >&6
10667 else case e in #(
10668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 int i;
10671 _ACEOF
10672 if ac_fn_c_try_compile "$LINENO"
10673 then :
10674 xorg_cv_cc_flag_unknown_warning_option=yes
10675 else case e in #(
10676 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10677 esac
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10680 esac
10681 fi
10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10685 CFLAGS="$xorg_testset_save_CFLAGS"
10686 fi
10687
10688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10691 fi
10692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10696 then :
10697 printf %s "(cached) " >&6
10698 else case e in #(
10699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10701 int i;
10702 _ACEOF
10703 if ac_fn_c_try_compile "$LINENO"
10704 then :
10705 xorg_cv_cc_flag_unused_command_line_argument=yes
10706 else case e in #(
10707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10708 esac
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10711 esac
10712 fi
10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10716 CFLAGS="$xorg_testset_save_CFLAGS"
10717 fi
10718
10719 found="no"
10720
10721 if test $found = "no" ; then
10722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10724 fi
10725
10726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10728 fi
10729
10730 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10731
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10733 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10734 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10735 if eval test \${$cacheid+y}
10736 then :
10737 printf %s "(cached) " >&6
10738 else case e in #(
10739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10741 int i;
10742 int
10743 main (void)
10744 {
10745
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"
10751 then :
10752 eval $cacheid=yes
10753 else case e in #(
10754 e) eval $cacheid=no ;;
10755 esac
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10758 conftest$ac_exeext conftest.$ac_ext ;;
10759 esac
10760 fi
10761
10762
10763 CFLAGS="$xorg_testset_save_CFLAGS"
10764
10765 eval supported=\$$cacheid
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10767 printf "%s\n" "$supported" >&6; }
10768 if test "$supported" = "yes" ; then
10769 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10770 found="yes"
10771 fi
10772 fi
10773
10774
10775 fi
10776
10777
10778
10779
10780
10781
10782
10783 CWARNFLAGS="$BASE_CFLAGS"
10784 if test "x$GCC" = xyes ; then
10785 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10786 fi
10787
10788
10789
10790
10791
10792
10793
10794
10795 # Check whether --enable-strict-compilation was given.
10796 if test ${enable_strict_compilation+y}
10797 then :
10798 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10799 else case e in #(
10800 e) STRICT_COMPILE=no ;;
10801 esac
10802 fi
10803
10804
10805
10806
10807
10808
10809 STRICT_CFLAGS=""
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823 xorg_testset_save_CFLAGS="$CFLAGS"
10824
10825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10830 then :
10831 printf %s "(cached) " >&6
10832 else case e in #(
10833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 int i;
10836 _ACEOF
10837 if ac_fn_c_try_compile "$LINENO"
10838 then :
10839 xorg_cv_cc_flag_unknown_warning_option=yes
10840 else case e in #(
10841 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10842 esac
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10845 esac
10846 fi
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10848 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10850 CFLAGS="$xorg_testset_save_CFLAGS"
10851 fi
10852
10853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10856 fi
10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10861 then :
10862 printf %s "(cached) " >&6
10863 else case e in #(
10864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866 int i;
10867 _ACEOF
10868 if ac_fn_c_try_compile "$LINENO"
10869 then :
10870 xorg_cv_cc_flag_unused_command_line_argument=yes
10871 else case e in #(
10872 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10873 esac
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10876 esac
10877 fi
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10881 CFLAGS="$xorg_testset_save_CFLAGS"
10882 fi
10883
10884 found="no"
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 -pedantic"
10896
10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10898 printf %s "checking if $CC supports -pedantic... " >&6; }
10899 cacheid=xorg_cv_cc_flag__pedantic
10900 if eval test \${$cacheid+y}
10901 then :
10902 printf %s "(cached) " >&6
10903 else case e in #(
10904 e) 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 case e in #(
10919 e) eval $cacheid=no ;;
10920 esac
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10923 conftest$ac_exeext conftest.$ac_ext ;;
10924 esac
10925 fi
10926
10927
10928 CFLAGS="$xorg_testset_save_CFLAGS"
10929
10930 eval supported=\$$cacheid
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10932 printf "%s\n" "$supported" >&6; }
10933 if test "$supported" = "yes" ; then
10934 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10935 found="yes"
10936 fi
10937 fi
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953 xorg_testset_save_CFLAGS="$CFLAGS"
10954
10955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 int i;
10966 _ACEOF
10967 if ac_fn_c_try_compile "$LINENO"
10968 then :
10969 xorg_cv_cc_flag_unknown_warning_option=yes
10970 else case e in #(
10971 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10972 esac
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10975 esac
10976 fi
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10980 CFLAGS="$xorg_testset_save_CFLAGS"
10981 fi
10982
10983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10986 fi
10987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10991 then :
10992 printf %s "(cached) " >&6
10993 else case e in #(
10994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 int i;
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"
10999 then :
11000 xorg_cv_cc_flag_unused_command_line_argument=yes
11001 else case e in #(
11002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11003 esac
11004 fi
11005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11006 esac
11007 fi
11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11011 CFLAGS="$xorg_testset_save_CFLAGS"
11012 fi
11013
11014 found="no"
11015
11016 if test $found = "no" ; then
11017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11019 fi
11020
11021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11023 fi
11024
11025 CFLAGS="$CFLAGS -Werror"
11026
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11028 printf %s "checking if $CC supports -Werror... " >&6; }
11029 cacheid=xorg_cv_cc_flag__Werror
11030 if eval test \${$cacheid+y}
11031 then :
11032 printf %s "(cached) " >&6
11033 else case e in #(
11034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 int i;
11037 int
11038 main (void)
11039 {
11040
11041 ;
11042 return 0;
11043 }
11044 _ACEOF
11045 if ac_fn_c_try_link "$LINENO"
11046 then :
11047 eval $cacheid=yes
11048 else case e in #(
11049 e) eval $cacheid=no ;;
11050 esac
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11053 conftest$ac_exeext conftest.$ac_ext ;;
11054 esac
11055 fi
11056
11057
11058 CFLAGS="$xorg_testset_save_CFLAGS"
11059
11060 eval supported=\$$cacheid
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11062 printf "%s\n" "$supported" >&6; }
11063 if test "$supported" = "yes" ; then
11064 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11065 found="yes"
11066 fi
11067 fi
11068
11069 if test $found = "no" ; then
11070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11072 fi
11073
11074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11076 fi
11077
11078 CFLAGS="$CFLAGS -errwarn"
11079
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11081 printf %s "checking if $CC supports -errwarn... " >&6; }
11082 cacheid=xorg_cv_cc_flag__errwarn
11083 if eval test \${$cacheid+y}
11084 then :
11085 printf %s "(cached) " >&6
11086 else case e in #(
11087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089 int i;
11090 int
11091 main (void)
11092 {
11093
11094 ;
11095 return 0;
11096 }
11097 _ACEOF
11098 if ac_fn_c_try_link "$LINENO"
11099 then :
11100 eval $cacheid=yes
11101 else case e in #(
11102 e) eval $cacheid=no ;;
11103 esac
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11106 conftest$ac_exeext conftest.$ac_ext ;;
11107 esac
11108 fi
11109
11110
11111 CFLAGS="$xorg_testset_save_CFLAGS"
11112
11113 eval supported=\$$cacheid
11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11115 printf "%s\n" "$supported" >&6; }
11116 if test "$supported" = "yes" ; then
11117 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11118 found="yes"
11119 fi
11120 fi
11121
11122
11123
11124 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11125 # activate it with -Werror, so we add it here explicitly.
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 xorg_testset_save_CFLAGS="$CFLAGS"
11140
11141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11146 then :
11147 printf %s "(cached) " >&6
11148 else case e in #(
11149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151 int i;
11152 _ACEOF
11153 if ac_fn_c_try_compile "$LINENO"
11154 then :
11155 xorg_cv_cc_flag_unknown_warning_option=yes
11156 else case e in #(
11157 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11158 esac
11159 fi
11160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11161 esac
11162 fi
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11166 CFLAGS="$xorg_testset_save_CFLAGS"
11167 fi
11168
11169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11172 fi
11173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11177 then :
11178 printf %s "(cached) " >&6
11179 else case e in #(
11180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 int i;
11183 _ACEOF
11184 if ac_fn_c_try_compile "$LINENO"
11185 then :
11186 xorg_cv_cc_flag_unused_command_line_argument=yes
11187 else case e in #(
11188 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11189 esac
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11192 esac
11193 fi
11194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11195 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11197 CFLAGS="$xorg_testset_save_CFLAGS"
11198 fi
11199
11200 found="no"
11201
11202 if test $found = "no" ; then
11203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11205 fi
11206
11207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11209 fi
11210
11211 CFLAGS="$CFLAGS -Werror=attributes"
11212
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11214 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11215 cacheid=xorg_cv_cc_flag__Werror_attributes
11216 if eval test \${$cacheid+y}
11217 then :
11218 printf %s "(cached) " >&6
11219 else case e in #(
11220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 int i;
11223 int
11224 main (void)
11225 {
11226
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 if ac_fn_c_try_link "$LINENO"
11232 then :
11233 eval $cacheid=yes
11234 else case e in #(
11235 e) eval $cacheid=no ;;
11236 esac
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11239 conftest$ac_exeext conftest.$ac_ext ;;
11240 esac
11241 fi
11242
11243
11244 CFLAGS="$xorg_testset_save_CFLAGS"
11245
11246 eval supported=\$$cacheid
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11248 printf "%s\n" "$supported" >&6; }
11249 if test "$supported" = "yes" ; then
11250 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11251 found="yes"
11252 fi
11253 fi
11254
11255
11256
11257 if test "x$STRICT_COMPILE" = "xyes"; then
11258 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11259 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11260 fi
11261
11262
11263
11264
11265
11266
11267
11268
11269 cat >>confdefs.h <<_ACEOF
11270 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11271 _ACEOF
11272
11273 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11274 if test "x$PVM" = "x"; then
11275 PVM="0"
11276 fi
11277
11278 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11279
11280 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11281 if test "x$PVP" = "x"; then
11282 PVP="0"
11283 fi
11284
11285 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11286
11287
11288
11289 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11290 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11291 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11292 touch \$(top_srcdir)/ChangeLog; \
11293 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11294
11295
11296
11297
11298 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11299 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11300 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11301 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11302 touch \$(top_srcdir)/INSTALL; \
11303 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11304
11305
11306
11307
11308
11309
11310 case $host_os in
11311 solaris*)
11312 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11313 # check for a man page file found in later versions that use
11314 # traditional section numbers instead
11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11316 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11317 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11318 then :
11319 printf %s "(cached) " >&6
11320 else case e in #(
11321 e) test "$cross_compiling" = yes &&
11322 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11323 if test -r "/usr/share/man/man7/attributes.7"; then
11324 ac_cv_file__usr_share_man_man7_attributes_7=yes
11325 else
11326 ac_cv_file__usr_share_man_man7_attributes_7=no
11327 fi ;;
11328 esac
11329 fi
11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11331 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11332 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11333 then :
11334 SYSV_MAN_SECTIONS=false
11335 else case e in #(
11336 e) SYSV_MAN_SECTIONS=true ;;
11337 esac
11338 fi
11339
11340 ;;
11341 *) SYSV_MAN_SECTIONS=false ;;
11342 esac
11343
11344 if test x$APP_MAN_SUFFIX = x ; then
11345 APP_MAN_SUFFIX=1
11346 fi
11347 if test x$APP_MAN_DIR = x ; then
11348 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11349 fi
11350
11351 if test x$LIB_MAN_SUFFIX = x ; then
11352 LIB_MAN_SUFFIX=3
11353 fi
11354 if test x$LIB_MAN_DIR = x ; then
11355 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11356 fi
11357
11358 if test x$FILE_MAN_SUFFIX = x ; then
11359 case $SYSV_MAN_SECTIONS in
11360 true) FILE_MAN_SUFFIX=4 ;;
11361 *) FILE_MAN_SUFFIX=5 ;;
11362 esac
11363 fi
11364 if test x$FILE_MAN_DIR = x ; then
11365 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11366 fi
11367
11368 if test x$MISC_MAN_SUFFIX = x ; then
11369 case $SYSV_MAN_SECTIONS in
11370 true) MISC_MAN_SUFFIX=5 ;;
11371 *) MISC_MAN_SUFFIX=7 ;;
11372 esac
11373 fi
11374 if test x$MISC_MAN_DIR = x ; then
11375 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11376 fi
11377
11378 if test x$DRIVER_MAN_SUFFIX = x ; then
11379 case $SYSV_MAN_SECTIONS in
11380 true) DRIVER_MAN_SUFFIX=7 ;;
11381 *) DRIVER_MAN_SUFFIX=4 ;;
11382 esac
11383 fi
11384 if test x$DRIVER_MAN_DIR = x ; then
11385 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11386 fi
11387
11388 if test x$ADMIN_MAN_SUFFIX = x ; then
11389 case $SYSV_MAN_SECTIONS in
11390 true) ADMIN_MAN_SUFFIX=1m ;;
11391 *) ADMIN_MAN_SUFFIX=8 ;;
11392 esac
11393 fi
11394 if test x$ADMIN_MAN_DIR = x ; then
11395 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11396 fi
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412 XORG_MAN_PAGE="X Version 11"
11413
11414 MAN_SUBSTS="\
11415 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11416 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11417 -e 's|__xservername__|Xorg|g' \
11418 -e 's|__xconfigfile__|xorg.conf|g' \
11419 -e 's|__projectroot__|\$(prefix)|g' \
11420 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11421 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11422 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11423 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11424 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11425 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11426 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11427
11428
11429
11430 # Check whether --enable-silent-rules was given.
11431 if test ${enable_silent_rules+y}
11432 then :
11433 enableval=$enable_silent_rules;
11434 fi
11435
11436 case $enable_silent_rules in # (((
11437 yes) AM_DEFAULT_VERBOSITY=0;;
11438 no) AM_DEFAULT_VERBOSITY=1;;
11439 *) AM_DEFAULT_VERBOSITY=0;;
11440 esac
11441 am_make=${MAKE-make}
11442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11443 printf %s "checking whether $am_make supports nested variables... " >&6; }
11444 if test ${am_cv_make_support_nested_variables+y}
11445 then :
11446 printf %s "(cached) " >&6
11447 else case e in #(
11448 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11449 BAR0=false
11450 BAR1=true
11451 V=1
11452 am__doit:
11453 @$(TRUE)
11454 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11455 am_cv_make_support_nested_variables=yes
11456 else
11457 am_cv_make_support_nested_variables=no
11458 fi ;;
11459 esac
11460 fi
11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11462 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11463 if test $am_cv_make_support_nested_variables = yes; then
11464 AM_V='$(V)'
11465 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11466 else
11467 AM_V=$AM_DEFAULT_VERBOSITY
11468 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11469 fi
11470 AM_BACKSLASH='\'
11471
11472
11473
11474
11475 # Checks for typedefs, structures, and compiler characteristics.
11476 # Check whether --enable-largefile was given.
11477 if test ${enable_largefile+y}
11478 then :
11479 enableval=$enable_largefile;
11480 fi
11481 if test "$enable_largefile,$enable_year2038" != no,no
11482 then :
11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11484 printf %s "checking for $CC option to enable large file support... " >&6; }
11485 if test ${ac_cv_sys_largefile_opts+y}
11486 then :
11487 printf %s "(cached) " >&6
11488 else case e in #(
11489 e) ac_save_CC="$CC"
11490 ac_opt_found=no
11491 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11492 if test x"$ac_opt" != x"none needed"
11493 then :
11494 CC="$ac_save_CC $ac_opt"
11495 fi
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498 #include <sys/types.h>
11499 #ifndef FTYPE
11500 # define FTYPE off_t
11501 #endif
11502 /* Check that FTYPE can represent 2**63 - 1 correctly.
11503 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11504 since some C++ compilers masquerading as C compilers
11505 incorrectly reject 9223372036854775807. */
11506 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11507 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11508 && LARGE_FTYPE % 2147483647 == 1)
11509 ? 1 : -1];
11510 int
11511 main (void)
11512 {
11513
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_compile "$LINENO"
11519 then :
11520 if test x"$ac_opt" = x"none needed"
11521 then :
11522 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11523 CC="$CC -DFTYPE=ino_t"
11524 if ac_fn_c_try_compile "$LINENO"
11525 then :
11526
11527 else case e in #(
11528 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11529 if ac_fn_c_try_compile "$LINENO"
11530 then :
11531 ac_opt='-D_FILE_OFFSET_BITS=64'
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11534 esac
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext conftest.beam
11537 fi
11538 ac_cv_sys_largefile_opts=$ac_opt
11539 ac_opt_found=yes
11540 fi
11541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11542 test $ac_opt_found = no || break
11543 done
11544 CC="$ac_save_CC"
11545
11546 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11547 esac
11548 fi
11549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11550 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11551
11552 ac_have_largefile=yes
11553 case $ac_cv_sys_largefile_opts in #(
11554 "none needed") :
11555 ;; #(
11556 "supported through gnulib") :
11557 ;; #(
11558 "support not detected") :
11559 ac_have_largefile=no ;; #(
11560 "-D_FILE_OFFSET_BITS=64") :
11561
11562 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11563 ;; #(
11564 "-D_LARGE_FILES=1") :
11565
11566 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11567 ;; #(
11568 "-n32") :
11569 CC="$CC -n32" ;; #(
11570 *) :
11571 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11572 esac
11573
11574 if test "$enable_year2038" != no
11575 then :
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11577 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11578 if test ${ac_cv_sys_year2038_opts+y}
11579 then :
11580 printf %s "(cached) " >&6
11581 else case e in #(
11582 e) ac_save_CPPFLAGS="$CPPFLAGS"
11583 ac_opt_found=no
11584 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11585 if test x"$ac_opt" != x"none needed"
11586 then :
11587 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11588 fi
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11591
11592 #include <time.h>
11593 /* Check that time_t can represent 2**32 - 1 correctly. */
11594 #define LARGE_TIME_T \\
11595 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11596 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11597 && LARGE_TIME_T % 65537 == 0)
11598 ? 1 : -1];
11599
11600 int
11601 main (void)
11602 {
11603
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_compile "$LINENO"
11609 then :
11610 ac_cv_sys_year2038_opts="$ac_opt"
11611 ac_opt_found=yes
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11614 test $ac_opt_found = no || break
11615 done
11616 CPPFLAGS="$ac_save_CPPFLAGS"
11617 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11618 esac
11619 fi
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11621 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11622
11623 ac_have_year2038=yes
11624 case $ac_cv_sys_year2038_opts in #(
11625 "none needed") :
11626 ;; #(
11627 "support not detected") :
11628 ac_have_year2038=no ;; #(
11629 "-D_TIME_BITS=64") :
11630
11631 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11632 ;; #(
11633 "-D__MINGW_USE_VC2005_COMPAT") :
11634
11635 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11636 ;; #(
11637 "-U_USE_32_BIT_TIME_T"*) :
11638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11639 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11640 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11641 will stop working after mid-January 2038. Remove
11642 _USE_32BIT_TIME_T from the compiler flags.
11643 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11644 *) :
11645 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11646 esac
11647
11648 fi
11649
11650 fi
11651
11652 # Checks for pkg-config packages
11653
11654 pkg_failed=no
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMESSAGE" >&5
11656 printf %s "checking for XMESSAGE... " >&6; }
11657
11658 if test -n "$XMESSAGE_CFLAGS"; then
11659 pkg_cv_XMESSAGE_CFLAGS="$XMESSAGE_CFLAGS"
11660 elif test -n "$PKG_CONFIG"; then
11661 if test -n "$PKG_CONFIG" && \
11662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
11663 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
11664 ac_status=$?
11665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666 test $ac_status = 0; }; then
11667 pkg_cv_XMESSAGE_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
11668 test "x$?" != "x0" && pkg_failed=yes
11669 else
11670 pkg_failed=yes
11671 fi
11672 else
11673 pkg_failed=untried
11674 fi
11675 if test -n "$XMESSAGE_LIBS"; then
11676 pkg_cv_XMESSAGE_LIBS="$XMESSAGE_LIBS"
11677 elif test -n "$PKG_CONFIG"; then
11678 if test -n "$PKG_CONFIG" && \
11679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
11680 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
11681 ac_status=$?
11682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11683 test $ac_status = 0; }; then
11684 pkg_cv_XMESSAGE_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
11685 test "x$?" != "x0" && pkg_failed=yes
11686 else
11687 pkg_failed=yes
11688 fi
11689 else
11690 pkg_failed=untried
11691 fi
11692
11693
11694
11695 if test $pkg_failed = yes; then
11696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 printf "%s\n" "no" >&6; }
11698
11699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11700 _pkg_short_errors_supported=yes
11701 else
11702 _pkg_short_errors_supported=no
11703 fi
11704 if test $_pkg_short_errors_supported = yes; then
11705 XMESSAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1`
11706 else
11707 XMESSAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1`
11708 fi
11709 # Put the nasty error message in config.log where it belongs
11710 echo "$XMESSAGE_PKG_ERRORS" >&5
11711
11712 as_fn_error $? "Package requirements (xaw7) were not met:
11713
11714 $XMESSAGE_PKG_ERRORS
11715
11716 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11717 installed software in a non-standard prefix.
11718
11719 Alternatively, you may set the environment variables XMESSAGE_CFLAGS
11720 and XMESSAGE_LIBS to avoid the need to call pkg-config.
11721 See the pkg-config man page for more details." "$LINENO" 5
11722 elif test $pkg_failed = untried; then
11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 printf "%s\n" "no" >&6; }
11725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11726 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11727 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11728 is in your PATH or set the PKG_CONFIG environment variable to the full
11729 path to pkg-config.
11730
11731 Alternatively, you may set the environment variables XMESSAGE_CFLAGS
11732 and XMESSAGE_LIBS to avoid the need to call pkg-config.
11733 See the pkg-config man page for more details.
11734
11735 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11736 See 'config.log' for more details" "$LINENO" 5; }
11737 else
11738 XMESSAGE_CFLAGS=$pkg_cv_XMESSAGE_CFLAGS
11739 XMESSAGE_LIBS=$pkg_cv_XMESSAGE_LIBS
11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 printf "%s\n" "yes" >&6; }
11742
11743 fi
11744
11745
11746 pkg_failed=no
11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11748 printf %s "checking for APPDEFS... " >&6; }
11749
11750 if test -n "$APPDEFS_CFLAGS"; then
11751 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11752 elif test -n "$PKG_CONFIG"; then
11753 if test -n "$PKG_CONFIG" && \
11754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11755 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11756 ac_status=$?
11757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758 test $ac_status = 0; }; then
11759 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11760 test "x$?" != "x0" && pkg_failed=yes
11761 else
11762 pkg_failed=yes
11763 fi
11764 else
11765 pkg_failed=untried
11766 fi
11767 if test -n "$APPDEFS_LIBS"; then
11768 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11769 elif test -n "$PKG_CONFIG"; then
11770 if test -n "$PKG_CONFIG" && \
11771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11772 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11773 ac_status=$?
11774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; }; then
11776 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11777 test "x$?" != "x0" && pkg_failed=yes
11778 else
11779 pkg_failed=yes
11780 fi
11781 else
11782 pkg_failed=untried
11783 fi
11784
11785
11786
11787 if test $pkg_failed = yes; then
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 printf "%s\n" "no" >&6; }
11790
11791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11792 _pkg_short_errors_supported=yes
11793 else
11794 _pkg_short_errors_supported=no
11795 fi
11796 if test $_pkg_short_errors_supported = yes; then
11797 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11798 else
11799 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11800 fi
11801 # Put the nasty error message in config.log where it belongs
11802 echo "$APPDEFS_PKG_ERRORS" >&5
11803
11804 as_fn_error $? "Package requirements (xt) were not met:
11805
11806 $APPDEFS_PKG_ERRORS
11807
11808 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11809 installed software in a non-standard prefix.
11810
11811 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11812 and APPDEFS_LIBS to avoid the need to call pkg-config.
11813 See the pkg-config man page for more details." "$LINENO" 5
11814 elif test $pkg_failed = untried; then
11815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 printf "%s\n" "no" >&6; }
11817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11819 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11820 is in your PATH or set the PKG_CONFIG environment variable to the full
11821 path to pkg-config.
11822
11823 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11824 and APPDEFS_LIBS to avoid the need to call pkg-config.
11825 See the pkg-config man page for more details.
11826
11827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11828 See 'config.log' for more details" "$LINENO" 5; }
11829 else
11830 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11831 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833 printf "%s\n" "yes" >&6; }
11834
11835 fi
11836 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11837
11838 # Check whether --with-appdefaultdir was given.
11839 if test ${with_appdefaultdir+y}
11840 then :
11841 withval=$with_appdefaultdir; appdefaultdir="$withval"
11842 else case e in #(
11843 e) appdefaultdir="${xt_appdefaultdir}" ;;
11844 esac
11845 fi
11846
11847
11848
11849
11850 ac_config_files="$ac_config_files Makefile man/Makefile"
11851
11852 cat >confcache <<\_ACEOF
11853 # This file is a shell script that caches the results of configure
11854 # tests run on this system so they can be shared between configure
11855 # scripts and configure runs, see configure's option --config-cache.
11856 # It is not useful on other systems. If it contains results you don't
11857 # want to keep, you may remove or edit it.
11858 #
11859 # config.status only pays attention to the cache file if you give it
11860 # the --recheck option to rerun configure.
11861 #
11862 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11863 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11864 # following values.
11865
11866 _ACEOF
11867
11868 # The following way of writing the cache mishandles newlines in values,
11869 # but we know of no workaround that is simple, portable, and efficient.
11870 # So, we kill variables containing newlines.
11871 # Ultrix sh set writes to stderr and can't be redirected directly,
11872 # and sets the high bit in the cache file unless we assign to the vars.
11873 (
11874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11875 eval ac_val=\$$ac_var
11876 case $ac_val in #(
11877 *${as_nl}*)
11878 case $ac_var in #(
11879 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11880 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11881 esac
11882 case $ac_var in #(
11883 _ | IFS | as_nl) ;; #(
11884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11885 *) { eval $ac_var=; unset $ac_var;} ;;
11886 esac ;;
11887 esac
11888 done
11889
11890 (set) 2>&1 |
11891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11892 *${as_nl}ac_space=\ *)
11893 # 'set' does not quote correctly, so add quotes: double-quote
11894 # substitution turns \\\\ into \\, and sed turns \\ into \.
11895 sed -n \
11896 "s/'/'\\\\''/g;
11897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11898 ;; #(
11899 *)
11900 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11902 ;;
11903 esac |
11904 sort
11905 ) |
11906 sed '
11907 /^ac_cv_env_/b end
11908 t clear
11909 :clear
11910 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11911 t end
11912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11913 :end' >>confcache
11914 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11915 if test -w "$cache_file"; then
11916 if test "x$cache_file" != "x/dev/null"; then
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11918 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11919 if test ! -f "$cache_file" || test -h "$cache_file"; then
11920 cat confcache >"$cache_file"
11921 else
11922 case $cache_file in #(
11923 */* | ?:*)
11924 mv -f confcache "$cache_file"$$ &&
11925 mv -f "$cache_file"$$ "$cache_file" ;; #(
11926 *)
11927 mv -f confcache "$cache_file" ;;
11928 esac
11929 fi
11930 fi
11931 else
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11933 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11934 fi
11935 fi
11936 rm -f confcache
11937
11938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11939 # Let make expand exec_prefix.
11940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11941
11942 DEFS=-DHAVE_CONFIG_H
11943
11944 ac_libobjs=
11945 ac_ltlibobjs=
11946 U=
11947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11948 # 1. Remove the extension, and $U if already installed.
11949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11950 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11952 # will be set to the directory where LIBOBJS objects are built.
11953 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11954 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11955 done
11956 LIBOBJS=$ac_libobjs
11957
11958 LTLIBOBJS=$ac_ltlibobjs
11959
11960
11961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11962 printf %s "checking that generated files are newer than configure... " >&6; }
11963 if test -n "$am_sleep_pid"; then
11964 # Hide warnings about reused PIDs.
11965 wait $am_sleep_pid 2>/dev/null
11966 fi
11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11968 printf "%s\n" "done" >&6; }
11969 if test -n "$EXEEXT"; then
11970 am__EXEEXT_TRUE=
11971 am__EXEEXT_FALSE='#'
11972 else
11973 am__EXEEXT_TRUE='#'
11974 am__EXEEXT_FALSE=
11975 fi
11976
11977 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11978 as_fn_error $? "conditional \"AMDEP\" was never defined.
11979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11980 fi
11981 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11982 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11984 fi
11985 # Check whether --enable-year2038 was given.
11986 if test ${enable_year2038+y}
11987 then :
11988 enableval=$enable_year2038;
11989 fi
11990
11991
11992 : "${CONFIG_STATUS=./config.status}"
11993 ac_write_fail=0
11994 ac_clean_files_save=$ac_clean_files
11995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11997 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11998 as_write_fail=0
11999 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12000 #! $SHELL
12001 # Generated by $as_me.
12002 # Run this file to recreate the current configuration.
12003 # Compiler output produced by configure, useful for debugging
12004 # configure, is in config.log if it exists.
12005
12006 debug=false
12007 ac_cs_recheck=false
12008 ac_cs_silent=false
12009
12010 SHELL=\${CONFIG_SHELL-$SHELL}
12011 export SHELL
12012 _ASEOF
12013 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12014 ## -------------------- ##
12015 ## M4sh Initialization. ##
12016 ## -------------------- ##
12017
12018 # Be more Bourne compatible
12019 DUALCASE=1; export DUALCASE # for MKS sh
12020 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12021 then :
12022 emulate sh
12023 NULLCMD=:
12024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12025 # is contrary to our usage. Disable this feature.
12026 alias -g '${1+"$@"}'='"$@"'
12027 setopt NO_GLOB_SUBST
12028 else case e in #(
12029 e) case `(set -o) 2>/dev/null` in #(
12030 *posix*) :
12031 set -o posix ;; #(
12032 *) :
12033 ;;
12034 esac ;;
12035 esac
12036 fi
12037
12038
12039
12040 # Reset variables that may have inherited troublesome values from
12041 # the environment.
12042
12043 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12044 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12045 # side effect of setting IFS to empty, thus disabling word splitting.)
12046 # Quoting is to prevent editors from complaining about space-tab.
12047 as_nl='
12048 '
12049 export as_nl
12050 IFS=" "" $as_nl"
12051
12052 PS1='$ '
12053 PS2='> '
12054 PS4='+ '
12055
12056 # Ensure predictable behavior from utilities with locale-dependent output.
12057 LC_ALL=C
12058 export LC_ALL
12059 LANGUAGE=C
12060 export LANGUAGE
12061
12062 # We cannot yet rely on "unset" to work, but we need these variables
12063 # to be unset--not just set to an empty or harmless value--now, to
12064 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12065 # also avoids known problems related to "unset" and subshell syntax
12066 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12067 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12068 do eval test \${$as_var+y} \
12069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12070 done
12071
12072 # Ensure that fds 0, 1, and 2 are open.
12073 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12074 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12075 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12076
12077 # The user is always right.
12078 if ${PATH_SEPARATOR+false} :; then
12079 PATH_SEPARATOR=:
12080 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12081 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12082 PATH_SEPARATOR=';'
12083 }
12084 fi
12085
12086
12087 # Find who we are. Look in the path if we contain no directory separator.
12088 as_myself=
12089 case $0 in #((
12090 *[\\/]* ) as_myself=$0 ;;
12091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094 IFS=$as_save_IFS
12095 case $as_dir in #(((
12096 '') as_dir=./ ;;
12097 */) ;;
12098 *) as_dir=$as_dir/ ;;
12099 esac
12100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12101 done
12102 IFS=$as_save_IFS
12103
12104 ;;
12105 esac
12106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12107 # in which case we are not to be found in the path.
12108 if test "x$as_myself" = x; then
12109 as_myself=$0
12110 fi
12111 if test ! -f "$as_myself"; then
12112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12113 exit 1
12114 fi
12115
12116
12117
12118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12119 # ----------------------------------------
12120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12122 # script with STATUS, using 1 if that was 0.
12123 as_fn_error ()
12124 {
12125 as_status=$1; test $as_status -eq 0 && as_status=1
12126 if test "$4"; then
12127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12129 fi
12130 printf "%s\n" "$as_me: error: $2" >&2
12131 as_fn_exit $as_status
12132 } # as_fn_error
12133
12134
12135 # as_fn_set_status STATUS
12136 # -----------------------
12137 # Set $? to STATUS, without forking.
12138 as_fn_set_status ()
12139 {
12140 return $1
12141 } # as_fn_set_status
12142
12143 # as_fn_exit STATUS
12144 # -----------------
12145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12146 as_fn_exit ()
12147 {
12148 set +e
12149 as_fn_set_status $1
12150 exit $1
12151 } # as_fn_exit
12152
12153 # as_fn_unset VAR
12154 # ---------------
12155 # Portably unset VAR.
12156 as_fn_unset ()
12157 {
12158 { eval $1=; unset $1;}
12159 }
12160 as_unset=as_fn_unset
12161
12162 # as_fn_append VAR VALUE
12163 # ----------------------
12164 # Append the text in VALUE to the end of the definition contained in VAR. Take
12165 # advantage of any shell optimizations that allow amortized linear growth over
12166 # repeated appends, instead of the typical quadratic growth present in naive
12167 # implementations.
12168 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12169 then :
12170 eval 'as_fn_append ()
12171 {
12172 eval $1+=\$2
12173 }'
12174 else case e in #(
12175 e) as_fn_append ()
12176 {
12177 eval $1=\$$1\$2
12178 } ;;
12179 esac
12180 fi # as_fn_append
12181
12182 # as_fn_arith ARG...
12183 # ------------------
12184 # Perform arithmetic evaluation on the ARGs, and store the result in the
12185 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12186 # must be portable across $(()) and expr.
12187 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12188 then :
12189 eval 'as_fn_arith ()
12190 {
12191 as_val=$(( $* ))
12192 }'
12193 else case e in #(
12194 e) as_fn_arith ()
12195 {
12196 as_val=`expr "$@" || test $? -eq 1`
12197 } ;;
12198 esac
12199 fi # as_fn_arith
12200
12201
12202 if expr a : '\(a\)' >/dev/null 2>&1 &&
12203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12204 as_expr=expr
12205 else
12206 as_expr=false
12207 fi
12208
12209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12210 as_basename=basename
12211 else
12212 as_basename=false
12213 fi
12214
12215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12216 as_dirname=dirname
12217 else
12218 as_dirname=false
12219 fi
12220
12221 as_me=`$as_basename -- "$0" ||
12222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12223 X"$0" : 'X\(//\)$' \| \
12224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12225 printf "%s\n" X/"$0" |
12226 sed '/^.*\/\([^/][^/]*\)\/*$/{
12227 s//\1/
12228 q
12229 }
12230 /^X\/\(\/\/\)$/{
12231 s//\1/
12232 q
12233 }
12234 /^X\/\(\/\).*/{
12235 s//\1/
12236 q
12237 }
12238 s/.*/./; q'`
12239
12240 # Avoid depending upon Character Ranges.
12241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12244 as_cr_digits='0123456789'
12245 as_cr_alnum=$as_cr_Letters$as_cr_digits
12246
12247
12248 # Determine whether it's possible to make 'echo' print without a newline.
12249 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12250 # for compatibility with existing Makefiles.
12251 ECHO_C= ECHO_N= ECHO_T=
12252 case `echo -n x` in #(((((
12253 -n*)
12254 case `echo 'xy\c'` in
12255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12256 xy) ECHO_C='\c';;
12257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12258 ECHO_T=' ';;
12259 esac;;
12260 *)
12261 ECHO_N='-n';;
12262 esac
12263
12264 # For backward compatibility with old third-party macros, we provide
12265 # the shell variables $as_echo and $as_echo_n. New code should use
12266 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12267 as_echo='printf %s\n'
12268 as_echo_n='printf %s'
12269
12270 rm -f conf$$ conf$$.exe conf$$.file
12271 if test -d conf$$.dir; then
12272 rm -f conf$$.dir/conf$$.file
12273 else
12274 rm -f conf$$.dir
12275 mkdir conf$$.dir 2>/dev/null
12276 fi
12277 if (echo >conf$$.file) 2>/dev/null; then
12278 if ln -s conf$$.file conf$$ 2>/dev/null; then
12279 as_ln_s='ln -s'
12280 # ... but there are two gotchas:
12281 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12282 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12283 # In both cases, we have to default to 'cp -pR'.
12284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12285 as_ln_s='cp -pR'
12286 elif ln conf$$.file conf$$ 2>/dev/null; then
12287 as_ln_s=ln
12288 else
12289 as_ln_s='cp -pR'
12290 fi
12291 else
12292 as_ln_s='cp -pR'
12293 fi
12294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12295 rmdir conf$$.dir 2>/dev/null
12296
12297
12298 # as_fn_mkdir_p
12299 # -------------
12300 # Create "$as_dir" as a directory, including parents if necessary.
12301 as_fn_mkdir_p ()
12302 {
12303
12304 case $as_dir in #(
12305 -*) as_dir=./$as_dir;;
12306 esac
12307 test -d "$as_dir" || eval $as_mkdir_p || {
12308 as_dirs=
12309 while :; do
12310 case $as_dir in #(
12311 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12312 *) as_qdir=$as_dir;;
12313 esac
12314 as_dirs="'$as_qdir' $as_dirs"
12315 as_dir=`$as_dirname -- "$as_dir" ||
12316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12317 X"$as_dir" : 'X\(//\)[^/]' \| \
12318 X"$as_dir" : 'X\(//\)$' \| \
12319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12320 printf "%s\n" X"$as_dir" |
12321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12322 s//\1/
12323 q
12324 }
12325 /^X\(\/\/\)[^/].*/{
12326 s//\1/
12327 q
12328 }
12329 /^X\(\/\/\)$/{
12330 s//\1/
12331 q
12332 }
12333 /^X\(\/\).*/{
12334 s//\1/
12335 q
12336 }
12337 s/.*/./; q'`
12338 test -d "$as_dir" && break
12339 done
12340 test -z "$as_dirs" || eval "mkdir $as_dirs"
12341 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12342
12343
12344 } # as_fn_mkdir_p
12345 if mkdir -p . 2>/dev/null; then
12346 as_mkdir_p='mkdir -p "$as_dir"'
12347 else
12348 test -d ./-p && rmdir ./-p
12349 as_mkdir_p=false
12350 fi
12351
12352
12353 # as_fn_executable_p FILE
12354 # -----------------------
12355 # Test if FILE is an executable regular file.
12356 as_fn_executable_p ()
12357 {
12358 test -f "$1" && test -x "$1"
12359 } # as_fn_executable_p
12360 as_test_x='test -x'
12361 as_executable_p=as_fn_executable_p
12362
12363 # Sed expression to map a string onto a valid CPP name.
12364 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12365 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12366
12367 # Sed expression to map a string onto a valid variable name.
12368 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12369 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12370
12371
12372 exec 6>&1
12373 ## ----------------------------------- ##
12374 ## Main body of $CONFIG_STATUS script. ##
12375 ## ----------------------------------- ##
12376 _ASEOF
12377 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12378
12379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12380 # Save the log message, to keep $0 and so on meaningful, and to
12381 # report actual input values of CONFIG_FILES etc. instead of their
12382 # values after options handling.
12383 ac_log="
12384 This file was extended by xmessage $as_me 1.0.7, which was
12385 generated by GNU Autoconf 2.72. Invocation command line was
12386
12387 CONFIG_FILES = $CONFIG_FILES
12388 CONFIG_HEADERS = $CONFIG_HEADERS
12389 CONFIG_LINKS = $CONFIG_LINKS
12390 CONFIG_COMMANDS = $CONFIG_COMMANDS
12391 $ $0 $@
12392
12393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12394 "
12395
12396 _ACEOF
12397
12398 case $ac_config_files in *"
12399 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12400 esac
12401
12402 case $ac_config_headers in *"
12403 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12404 esac
12405
12406
12407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12408 # Files that config.status was made for.
12409 config_files="$ac_config_files"
12410 config_headers="$ac_config_headers"
12411 config_commands="$ac_config_commands"
12412
12413 _ACEOF
12414
12415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416 ac_cs_usage="\
12417 '$as_me' instantiates files and other configuration actions
12418 from templates according to the current configuration. Unless the files
12419 and actions are specified as TAGs, all are instantiated by default.
12420
12421 Usage: $0 [OPTION]... [TAG]...
12422
12423 -h, --help print this help, then exit
12424 -V, --version print version number and configuration settings, then exit
12425 --config print configuration, then exit
12426 -q, --quiet, --silent
12427 do not print progress messages
12428 -d, --debug don't remove temporary files
12429 --recheck update $as_me by reconfiguring in the same conditions
12430 --file=FILE[:TEMPLATE]
12431 instantiate the configuration file FILE
12432 --header=FILE[:TEMPLATE]
12433 instantiate the configuration header FILE
12434
12435 Configuration files:
12436 $config_files
12437
12438 Configuration headers:
12439 $config_headers
12440
12441 Configuration commands:
12442 $config_commands
12443
12444 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmessage/-/issues>."
12445
12446 _ACEOF
12447 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12448 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12450 ac_cs_config='$ac_cs_config_escaped'
12451 ac_cs_version="\\
12452 xmessage config.status 1.0.7
12453 configured by $0, generated by GNU Autoconf 2.72,
12454 with options \\"\$ac_cs_config\\"
12455
12456 Copyright (C) 2023 Free Software Foundation, Inc.
12457 This config.status script is free software; the Free Software Foundation
12458 gives unlimited permission to copy, distribute and modify it."
12459
12460 ac_pwd='$ac_pwd'
12461 srcdir='$srcdir'
12462 INSTALL='$INSTALL'
12463 MKDIR_P='$MKDIR_P'
12464 AWK='$AWK'
12465 test -n "\$AWK" || AWK=awk
12466 _ACEOF
12467
12468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12469 # The default lists apply if the user does not specify any file.
12470 ac_need_defaults=:
12471 while test $# != 0
12472 do
12473 case $1 in
12474 --*=?*)
12475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12477 ac_shift=:
12478 ;;
12479 --*=)
12480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12481 ac_optarg=
12482 ac_shift=:
12483 ;;
12484 *)
12485 ac_option=$1
12486 ac_optarg=$2
12487 ac_shift=shift
12488 ;;
12489 esac
12490
12491 case $ac_option in
12492 # Handling of the options.
12493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12494 ac_cs_recheck=: ;;
12495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12496 printf "%s\n" "$ac_cs_version"; exit ;;
12497 --config | --confi | --conf | --con | --co | --c )
12498 printf "%s\n" "$ac_cs_config"; exit ;;
12499 --debug | --debu | --deb | --de | --d | -d )
12500 debug=: ;;
12501 --file | --fil | --fi | --f )
12502 $ac_shift
12503 case $ac_optarg in
12504 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12505 '') as_fn_error $? "missing file argument" ;;
12506 esac
12507 as_fn_append CONFIG_FILES " '$ac_optarg'"
12508 ac_need_defaults=false;;
12509 --header | --heade | --head | --hea )
12510 $ac_shift
12511 case $ac_optarg in
12512 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12513 esac
12514 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12515 ac_need_defaults=false;;
12516 --he | --h)
12517 # Conflict between --help and --header
12518 as_fn_error $? "ambiguous option: '$1'
12519 Try '$0 --help' for more information.";;
12520 --help | --hel | -h )
12521 printf "%s\n" "$ac_cs_usage"; exit ;;
12522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12523 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12524 ac_cs_silent=: ;;
12525
12526 # This is an error.
12527 -*) as_fn_error $? "unrecognized option: '$1'
12528 Try '$0 --help' for more information." ;;
12529
12530 *) as_fn_append ac_config_targets " $1"
12531 ac_need_defaults=false ;;
12532
12533 esac
12534 shift
12535 done
12536
12537 ac_configure_extra_args=
12538
12539 if $ac_cs_silent; then
12540 exec 6>/dev/null
12541 ac_configure_extra_args="$ac_configure_extra_args --silent"
12542 fi
12543
12544 _ACEOF
12545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12546 if \$ac_cs_recheck; then
12547 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12548 shift
12549 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12550 CONFIG_SHELL='$SHELL'
12551 export CONFIG_SHELL
12552 exec "\$@"
12553 fi
12554
12555 _ACEOF
12556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557 exec 5>>config.log
12558 {
12559 echo
12560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12561 ## Running $as_me. ##
12562 _ASBOX
12563 printf "%s\n" "$ac_log"
12564 } >&5
12565
12566 _ACEOF
12567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12568 #
12569 # INIT-COMMANDS
12570 #
12571 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12572
12573 _ACEOF
12574
12575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12576
12577 # Handling of arguments.
12578 for ac_config_target in $ac_config_targets
12579 do
12580 case $ac_config_target in
12581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12583 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12584 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12585
12586 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12587 esac
12588 done
12589
12590
12591 # If the user did not use the arguments to specify the items to instantiate,
12592 # then the envvar interface is used. Set only those that are not.
12593 # We use the long form for the default assignment because of an extremely
12594 # bizarre bug on SunOS 4.1.3.
12595 if $ac_need_defaults; then
12596 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12597 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12598 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12599 fi
12600
12601 # Have a temporary directory for convenience. Make it in the build tree
12602 # simply because there is no reason against having it here, and in addition,
12603 # creating and moving files from /tmp can sometimes cause problems.
12604 # Hook for its removal unless debugging.
12605 # Note that there is a small window in which the directory will not be cleaned:
12606 # after its creation but before its name has been assigned to '$tmp'.
12607 $debug ||
12608 {
12609 tmp= ac_tmp=
12610 trap 'exit_status=$?
12611 : "${ac_tmp:=$tmp}"
12612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12613 ' 0
12614 trap 'as_fn_exit 1' 1 2 13 15
12615 }
12616 # Create a (secure) tmp directory for tmp files.
12617
12618 {
12619 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12620 test -d "$tmp"
12621 } ||
12622 {
12623 tmp=./conf$$-$RANDOM
12624 (umask 077 && mkdir "$tmp")
12625 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12626 ac_tmp=$tmp
12627
12628 # Set up the scripts for CONFIG_FILES section.
12629 # No need to generate them if there are no CONFIG_FILES.
12630 # This happens for instance with './config.status config.h'.
12631 if test -n "$CONFIG_FILES"; then
12632
12633
12634 ac_cr=`echo X | tr X '\015'`
12635 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12636 # But we know of no other shell where ac_cr would be empty at this
12637 # point, so we can use a bashism as a fallback.
12638 if test "x$ac_cr" = x; then
12639 eval ac_cr=\$\'\\r\'
12640 fi
12641 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12642 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12643 ac_cs_awk_cr='\\r'
12644 else
12645 ac_cs_awk_cr=$ac_cr
12646 fi
12647
12648 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12649 _ACEOF
12650
12651
12652 {
12653 echo "cat >conf$$subs.awk <<_ACEOF" &&
12654 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12655 echo "_ACEOF"
12656 } >conf$$subs.sh ||
12657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12658 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12659 ac_delim='%!_!# '
12660 for ac_last_try in false false false false false :; do
12661 . ./conf$$subs.sh ||
12662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12663
12664 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12665 if test $ac_delim_n = $ac_delim_num; then
12666 break
12667 elif $ac_last_try; then
12668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12669 else
12670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12671 fi
12672 done
12673 rm -f conf$$subs.sh
12674
12675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12676 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12677 _ACEOF
12678 sed -n '
12679 h
12680 s/^/S["/; s/!.*/"]=/
12681 p
12682 g
12683 s/^[^!]*!//
12684 :repl
12685 t repl
12686 s/'"$ac_delim"'$//
12687 t delim
12688 :nl
12689 h
12690 s/\(.\{148\}\)..*/\1/
12691 t more1
12692 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12693 p
12694 n
12695 b repl
12696 :more1
12697 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12698 p
12699 g
12700 s/.\{148\}//
12701 t nl
12702 :delim
12703 h
12704 s/\(.\{148\}\)..*/\1/
12705 t more2
12706 s/["\\]/\\&/g; s/^/"/; s/$/"/
12707 p
12708 b
12709 :more2
12710 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12711 p
12712 g
12713 s/.\{148\}//
12714 t delim
12715 ' <conf$$subs.awk | sed '
12716 /^[^""]/{
12717 N
12718 s/\n//
12719 }
12720 ' >>$CONFIG_STATUS || ac_write_fail=1
12721 rm -f conf$$subs.awk
12722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12723 _ACAWK
12724 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12725 for (key in S) S_is_set[key] = 1
12726 FS = ""
12727
12728 }
12729 {
12730 line = $ 0
12731 nfields = split(line, field, "@")
12732 substed = 0
12733 len = length(field[1])
12734 for (i = 2; i < nfields; i++) {
12735 key = field[i]
12736 keylen = length(key)
12737 if (S_is_set[key]) {
12738 value = S[key]
12739 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12740 len += length(value) + length(field[++i])
12741 substed = 1
12742 } else
12743 len += 1 + keylen
12744 }
12745
12746 print line
12747 }
12748
12749 _ACAWK
12750 _ACEOF
12751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12752 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12753 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12754 else
12755 cat
12756 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12757 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12758 _ACEOF
12759
12760 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12761 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12762 # trailing colons and then remove the whole line if VPATH becomes empty
12763 # (actually we leave an empty line to preserve line numbers).
12764 if test "x$srcdir" = x.; then
12765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12766 h
12767 s///
12768 s/^/:/
12769 s/[ ]*$/:/
12770 s/:\$(srcdir):/:/g
12771 s/:\${srcdir}:/:/g
12772 s/:@srcdir@:/:/g
12773 s/^:*//
12774 s/:*$//
12775 x
12776 s/\(=[ ]*\).*/\1/
12777 G
12778 s/\n//
12779 s/^[^=]*=[ ]*$//
12780 }'
12781 fi
12782
12783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784 fi # test -n "$CONFIG_FILES"
12785
12786 # Set up the scripts for CONFIG_HEADERS section.
12787 # No need to generate them if there are no CONFIG_HEADERS.
12788 # This happens for instance with './config.status Makefile'.
12789 if test -n "$CONFIG_HEADERS"; then
12790 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12791 BEGIN {
12792 _ACEOF
12793
12794 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12795 # here-document in config.status, that substitutes the proper values into
12796 # config.h.in to produce config.h.
12797
12798 # Create a delimiter string that does not exist in confdefs.h, to ease
12799 # handling of long lines.
12800 ac_delim='%!_!# '
12801 for ac_last_try in false false :; do
12802 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12803 if test -z "$ac_tt"; then
12804 break
12805 elif $ac_last_try; then
12806 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12807 else
12808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12809 fi
12810 done
12811
12812 # For the awk script, D is an array of macro values keyed by name,
12813 # likewise P contains macro parameters if any. Preserve backslash
12814 # newline sequences.
12815
12816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12817 sed -n '
12818 s/.\{148\}/&'"$ac_delim"'/g
12819 t rset
12820 :rset
12821 s/^[ ]*#[ ]*define[ ][ ]*/ /
12822 t def
12823 d
12824 :def
12825 s/\\$//
12826 t bsnl
12827 s/["\\]/\\&/g
12828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12829 D["\1"]=" \3"/p
12830 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12831 d
12832 :bsnl
12833 s/["\\]/\\&/g
12834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12835 D["\1"]=" \3\\\\\\n"\\/p
12836 t cont
12837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12838 t cont
12839 d
12840 :cont
12841 n
12842 s/.\{148\}/&'"$ac_delim"'/g
12843 t clear
12844 :clear
12845 s/\\$//
12846 t bsnlc
12847 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12848 d
12849 :bsnlc
12850 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12851 b cont
12852 ' <confdefs.h | sed '
12853 s/'"$ac_delim"'/"\\\
12854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12855
12856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12857 for (key in D) D_is_set[key] = 1
12858 FS = ""
12859 }
12860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12861 line = \$ 0
12862 split(line, arg, " ")
12863 if (arg[1] == "#") {
12864 defundef = arg[2]
12865 mac1 = arg[3]
12866 } else {
12867 defundef = substr(arg[1], 2)
12868 mac1 = arg[2]
12869 }
12870 split(mac1, mac2, "(") #)
12871 macro = mac2[1]
12872 prefix = substr(line, 1, index(line, defundef) - 1)
12873 if (D_is_set[macro]) {
12874 # Preserve the white space surrounding the "#".
12875 print prefix "define", macro P[macro] D[macro]
12876 next
12877 } else {
12878 # Replace #undef with comments. This is necessary, for example,
12879 # in the case of _POSIX_SOURCE, which is predefined and required
12880 # on some systems where configure will not decide to define it.
12881 if (defundef == "undef") {
12882 print "/*", prefix defundef, macro, "*/"
12883 next
12884 }
12885 }
12886 }
12887 { print }
12888 _ACAWK
12889 _ACEOF
12890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12891 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12892 fi # test -n "$CONFIG_HEADERS"
12893
12894
12895 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12896 shift
12897 for ac_tag
12898 do
12899 case $ac_tag in
12900 :[FHLC]) ac_mode=$ac_tag; continue;;
12901 esac
12902 case $ac_mode$ac_tag in
12903 :[FHL]*:*);;
12904 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12905 :[FH]-) ac_tag=-:-;;
12906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12907 esac
12908 ac_save_IFS=$IFS
12909 IFS=:
12910 set x $ac_tag
12911 IFS=$ac_save_IFS
12912 shift
12913 ac_file=$1
12914 shift
12915
12916 case $ac_mode in
12917 :L) ac_source=$1;;
12918 :[FH])
12919 ac_file_inputs=
12920 for ac_f
12921 do
12922 case $ac_f in
12923 -) ac_f="$ac_tmp/stdin";;
12924 *) # Look for the file first in the build tree, then in the source tree
12925 # (if the path is not absolute). The absolute path cannot be DOS-style,
12926 # because $ac_f cannot contain ':'.
12927 test -f "$ac_f" ||
12928 case $ac_f in
12929 [\\/$]*) false;;
12930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12931 esac ||
12932 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12933 esac
12934 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12935 as_fn_append ac_file_inputs " '$ac_f'"
12936 done
12937
12938 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12939 # use $as_me), people would be surprised to read:
12940 # /* config.h. Generated by config.status. */
12941 configure_input='Generated from '`
12942 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12943 `' by configure.'
12944 if test x"$ac_file" != x-; then
12945 configure_input="$ac_file. $configure_input"
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12947 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12948 fi
12949 # Neutralize special characters interpreted by sed in replacement strings.
12950 case $configure_input in #(
12951 *\&* | *\|* | *\\* )
12952 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12954 *) ac_sed_conf_input=$configure_input;;
12955 esac
12956
12957 case $ac_tag in
12958 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12960 esac
12961 ;;
12962 esac
12963
12964 ac_dir=`$as_dirname -- "$ac_file" ||
12965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12966 X"$ac_file" : 'X\(//\)[^/]' \| \
12967 X"$ac_file" : 'X\(//\)$' \| \
12968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12969 printf "%s\n" X"$ac_file" |
12970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12971 s//\1/
12972 q
12973 }
12974 /^X\(\/\/\)[^/].*/{
12975 s//\1/
12976 q
12977 }
12978 /^X\(\/\/\)$/{
12979 s//\1/
12980 q
12981 }
12982 /^X\(\/\).*/{
12983 s//\1/
12984 q
12985 }
12986 s/.*/./; q'`
12987 as_dir="$ac_dir"; as_fn_mkdir_p
12988 ac_builddir=.
12989
12990 case "$ac_dir" in
12991 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12992 *)
12993 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12994 # A ".." for each directory in $ac_dir_suffix.
12995 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12996 case $ac_top_builddir_sub in
12997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12999 esac ;;
13000 esac
13001 ac_abs_top_builddir=$ac_pwd
13002 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13003 # for backward compatibility:
13004 ac_top_builddir=$ac_top_build_prefix
13005
13006 case $srcdir in
13007 .) # We are building in place.
13008 ac_srcdir=.
13009 ac_top_srcdir=$ac_top_builddir_sub
13010 ac_abs_top_srcdir=$ac_pwd ;;
13011 [\\/]* | ?:[\\/]* ) # Absolute name.
13012 ac_srcdir=$srcdir$ac_dir_suffix;
13013 ac_top_srcdir=$srcdir
13014 ac_abs_top_srcdir=$srcdir ;;
13015 *) # Relative name.
13016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13017 ac_top_srcdir=$ac_top_build_prefix$srcdir
13018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13019 esac
13020 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13021
13022
13023 case $ac_mode in
13024 :F)
13025 #
13026 # CONFIG_FILE
13027 #
13028
13029 case $INSTALL in
13030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13031 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13032 esac
13033 ac_MKDIR_P=$MKDIR_P
13034 case $MKDIR_P in
13035 [\\/$]* | ?:[\\/]* ) ;;
13036 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13037 esac
13038 _ACEOF
13039
13040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13041 # If the template does not know about datarootdir, expand it.
13042 # FIXME: This hack should be removed a few years after 2.60.
13043 ac_datarootdir_hack=; ac_datarootdir_seen=
13044 ac_sed_dataroot='
13045 /datarootdir/ {
13046 p
13047 q
13048 }
13049 /@datadir@/p
13050 /@docdir@/p
13051 /@infodir@/p
13052 /@localedir@/p
13053 /@mandir@/p'
13054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13055 *datarootdir*) ac_datarootdir_seen=yes;;
13056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13058 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13059 _ACEOF
13060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13061 ac_datarootdir_hack='
13062 s&@datadir@&$datadir&g
13063 s&@docdir@&$docdir&g
13064 s&@infodir@&$infodir&g
13065 s&@localedir@&$localedir&g
13066 s&@mandir@&$mandir&g
13067 s&\\\${datarootdir}&$datarootdir&g' ;;
13068 esac
13069 _ACEOF
13070
13071 # Neutralize VPATH when '$srcdir' = '.'.
13072 # Shell code in configure.ac might set extrasub.
13073 # FIXME: do we really want to maintain this feature?
13074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13075 ac_sed_extra="$ac_vpsub
13076 $extrasub
13077 _ACEOF
13078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13079 :t
13080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13081 s|@configure_input@|$ac_sed_conf_input|;t t
13082 s&@top_builddir@&$ac_top_builddir_sub&;t t
13083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13084 s&@srcdir@&$ac_srcdir&;t t
13085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13086 s&@top_srcdir@&$ac_top_srcdir&;t t
13087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13088 s&@builddir@&$ac_builddir&;t t
13089 s&@abs_builddir@&$ac_abs_builddir&;t t
13090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13091 s&@INSTALL@&$ac_INSTALL&;t t
13092 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13093 $ac_datarootdir_hack
13094 "
13095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13096 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13097
13098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13099 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13101 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13103 which seems to be undefined. Please make sure it is defined" >&5
13104 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13105 which seems to be undefined. Please make sure it is defined" >&2;}
13106
13107 rm -f "$ac_tmp/stdin"
13108 case $ac_file in
13109 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13110 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13111 esac \
13112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13113 ;;
13114 :H)
13115 #
13116 # CONFIG_HEADER
13117 #
13118 if test x"$ac_file" != x-; then
13119 {
13120 printf "%s\n" "/* $configure_input */" >&1 \
13121 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13122 } >"$ac_tmp/config.h" \
13123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13124 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13126 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13127 else
13128 rm -f "$ac_file"
13129 mv "$ac_tmp/config.h" "$ac_file" \
13130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13131 fi
13132 else
13133 printf "%s\n" "/* $configure_input */" >&1 \
13134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13135 || as_fn_error $? "could not create -" "$LINENO" 5
13136 fi
13137 # Compute "$ac_file"'s index in $config_headers.
13138 _am_arg="$ac_file"
13139 _am_stamp_count=1
13140 for _am_header in $config_headers :; do
13141 case $_am_header in
13142 $_am_arg | $_am_arg:* )
13143 break ;;
13144 * )
13145 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13146 esac
13147 done
13148 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13149 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13150 X"$_am_arg" : 'X\(//\)[^/]' \| \
13151 X"$_am_arg" : 'X\(//\)$' \| \
13152 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13153 printf "%s\n" X"$_am_arg" |
13154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13155 s//\1/
13156 q
13157 }
13158 /^X\(\/\/\)[^/].*/{
13159 s//\1/
13160 q
13161 }
13162 /^X\(\/\/\)$/{
13163 s//\1/
13164 q
13165 }
13166 /^X\(\/\).*/{
13167 s//\1/
13168 q
13169 }
13170 s/.*/./; q'`/stamp-h$_am_stamp_count
13171 ;;
13172
13173 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13174 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13175 ;;
13176 esac
13177
13178
13179 case $ac_file$ac_mode in
13180 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13181 # Older Autoconf quotes --file arguments for eval, but not when files
13182 # are listed without --file. Let's play safe and only enable the eval
13183 # if we detect the quoting.
13184 # TODO: see whether this extra hack can be removed once we start
13185 # requiring Autoconf 2.70 or later.
13186 case $CONFIG_FILES in #(
13187 *\'*) :
13188 eval set x "$CONFIG_FILES" ;; #(
13189 *) :
13190 set x $CONFIG_FILES ;; #(
13191 *) :
13192 ;;
13193 esac
13194 shift
13195 # Used to flag and report bootstrapping failures.
13196 am_rc=0
13197 for am_mf
13198 do
13199 # Strip MF so we end up with the name of the file.
13200 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13201 # Check whether this is an Automake generated Makefile which includes
13202 # dependency-tracking related rules and includes.
13203 # Grep'ing the whole file directly is not great: AIX grep has a line
13204 # limit of 2048, but all sed's we know have understand at least 4000.
13205 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13206 || continue
13207 am_dirpart=`$as_dirname -- "$am_mf" ||
13208 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13209 X"$am_mf" : 'X\(//\)[^/]' \| \
13210 X"$am_mf" : 'X\(//\)$' \| \
13211 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13212 printf "%s\n" X"$am_mf" |
13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13214 s//\1/
13215 q
13216 }
13217 /^X\(\/\/\)[^/].*/{
13218 s//\1/
13219 q
13220 }
13221 /^X\(\/\/\)$/{
13222 s//\1/
13223 q
13224 }
13225 /^X\(\/\).*/{
13226 s//\1/
13227 q
13228 }
13229 s/.*/./; q'`
13230 am_filepart=`$as_basename -- "$am_mf" ||
13231 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13232 X"$am_mf" : 'X\(//\)$' \| \
13233 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13234 printf "%s\n" X/"$am_mf" |
13235 sed '/^.*\/\([^/][^/]*\)\/*$/{
13236 s//\1/
13237 q
13238 }
13239 /^X\/\(\/\/\)$/{
13240 s//\1/
13241 q
13242 }
13243 /^X\/\(\/\).*/{
13244 s//\1/
13245 q
13246 }
13247 s/.*/./; q'`
13248 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13249 && sed -e '/# am--include-marker/d' "$am_filepart" \
13250 | $MAKE -f - am--depfiles" >&5
13251 (cd "$am_dirpart" \
13252 && sed -e '/# am--include-marker/d' "$am_filepart" \
13253 | $MAKE -f - am--depfiles) >&5 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } || am_rc=$?
13257 done
13258 if test $am_rc -ne 0; then
13259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13260 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13261 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13262 for automatic dependency tracking. If GNU make was not used, consider
13263 re-running the configure script with MAKE=\"gmake\" (or whatever is
13264 necessary). You can also try re-running configure with the
13265 '--disable-dependency-tracking' option to at least be able to build
13266 the package (albeit without support for automatic dependency tracking).
13267 See 'config.log' for more details" "$LINENO" 5; }
13268 fi
13269 { am_dirpart=; unset am_dirpart;}
13270 { am_filepart=; unset am_filepart;}
13271 { am_mf=; unset am_mf;}
13272 { am_rc=; unset am_rc;}
13273 rm -f conftest-deps.mk
13274 }
13275 ;;
13276
13277 esac
13278 done # for ac_tag
13279
13280
13281 as_fn_exit 0
13282 _ACEOF
13283 ac_clean_files=$ac_clean_files_save
13284
13285 test $ac_write_fail = 0 ||
13286 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13287
13288
13289 # configure is writing to config.log, and then calls config.status.
13290 # config.status does its own redirection, appending to config.log.
13291 # Unfortunately, on DOS this fails, as config.log is still kept open
13292 # by configure, so config.status won't be able to write to it; its
13293 # output is simply discarded. So we exec the FD to /dev/null,
13294 # effectively closing config.log, so it can be properly (re)opened and
13295 # appended to by config.status. When coming back to configure, we
13296 # need to make the FD available again.
13297 if test "$no_create" != yes; then
13298 ac_cs_success=:
13299 ac_config_status_args=
13300 test "$silent" = yes &&
13301 ac_config_status_args="$ac_config_status_args --quiet"
13302 exec 5>/dev/null
13303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13304 exec 5>>config.log
13305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13306 # would make configure fail if this is the last instruction.
13307 $ac_cs_success || as_fn_exit 1
13308 fi
13309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13311 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13312 fi
13313
13314
13315