configure revision 1.1.1.15 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xrandr 1.5.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190 test \$(( 1 + 1 )) = 2 || exit 1"
191 if (eval "$as_required") 2>/dev/null
192 then :
193 as_have_required=yes
194 else case e in #(
195 e) as_have_required=no ;;
196 esac
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else case e in #(
202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else case e in #(
236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi ;;
241 esac
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 case $# in # ((
262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
264 esac
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf '%s\n' "$0: This script requires a shell more modern than all"
274 printf '%s\n' "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and
280 $0: https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues
281 $0: about your system, including any error possibly output
282 $0: before this message. Then install a modern shell, or
283 $0: manually run the script under such a shell if you do
284 $0: have one."
285 fi
286 exit 1
287 fi ;;
288 esac
289 fi
290 fi
291 SHELL=${CONFIG_SHELL-/bin/sh}
292 export SHELL
293 # Unset more variables known to interfere with behavior of common tools.
294 CLICOLOR_FORCE= GREP_OPTIONS=
295 unset CLICOLOR_FORCE GREP_OPTIONS
296
297 ## --------------------- ##
298 ## M4sh Shell Functions. ##
299 ## --------------------- ##
300 # as_fn_unset VAR
301 # ---------------
302 # Portably unset VAR.
303 as_fn_unset ()
304 {
305 { eval $1=; unset $1;}
306 }
307 as_unset=as_fn_unset
308
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 printf '%s\n' X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
390 then :
391 eval 'as_fn_append ()
392 {
393 eval $1+=\$2
394 }'
395 else case e in #(
396 e) as_fn_append ()
397 {
398 eval $1=\$$1\$2
399 } ;;
400 esac
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
410 eval 'as_fn_arith ()
411 {
412 as_val=$(( $* ))
413 }'
414 else case e in #(
415 e) as_fn_arith ()
416 {
417 as_val=`expr "$@" || test $? -eq 1`
418 } ;;
419 esac
420 fi # as_fn_arith
421
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf '%s\n' "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf '%s\n' X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 t clear
496 :clear
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522 rm -f conf$$ conf$$.exe conf$$.file
523 if test -d conf$$.dir; then
524 rm -f conf$$.dir/conf$$.file
525 else
526 rm -f conf$$.dir
527 mkdir conf$$.dir 2>/dev/null
528 fi
529 if (echo >conf$$.file) 2>/dev/null; then
530 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s='ln -s'
532 # ... but there are two gotchas:
533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
535 # In both cases, we have to default to 'cp -pR'.
536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 as_ln_s='cp -pR'
538 elif ln conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s=ln
540 else
541 as_ln_s='cp -pR'
542 fi
543 else
544 as_ln_s='cp -pR'
545 fi
546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547 rmdir conf$$.dir 2>/dev/null
548
549 if mkdir -p . 2>/dev/null; then
550 as_mkdir_p='mkdir -p "$as_dir"'
551 else
552 test -d ./-p && rmdir ./-p
553 as_mkdir_p=false
554 fi
555
556 as_test_x='test -x'
557 as_executable_p=as_fn_executable_p
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
562
563 # Sed expression to map a string onto a valid variable name.
564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
566
567
568 test -n "$DJDIR" || exec 7<&0 </dev/null
569 exec 6>&1
570
571 # Name of the host.
572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573 # so uname gets run too.
574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576 #
577 # Initializations.
578 #
579 ac_default_prefix=/usr/local
580 ac_clean_CONFIG_STATUS=
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='xrandr'
591 PACKAGE_TARNAME='xrandr'
592 PACKAGE_VERSION='1.5.4'
593 PACKAGE_STRING='xrandr 1.5.4'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues'
595 PACKAGE_URL=''
596
597 ac_unique_file="Makefile.am"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stddef.h>
601 #ifdef HAVE_STDIO_H
602 # include <stdio.h>
603 #endif
604 #ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 #endif
607 #ifdef HAVE_STRING_H
608 # include <string.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_STRINGS_H
617 # include <strings.h>
618 #endif
619 #ifdef HAVE_SYS_TYPES_H
620 # include <sys/types.h>
621 #endif
622 #ifdef HAVE_SYS_STAT_H
623 # include <sys/stat.h>
624 #endif
625 #ifdef HAVE_UNISTD_H
626 # include <unistd.h>
627 #endif"
628
629 ac_header_c_list=
630 ac_subst_vars='am__EXEEXT_FALSE
631 am__EXEEXT_TRUE
632 LTLIBOBJS
633 LIBOBJS
634 XRANDR_LIBS
635 XRANDR_CFLAGS
636 MAN_SUBSTS
637 XORG_MAN_PAGE
638 ADMIN_MAN_DIR
639 DRIVER_MAN_DIR
640 MISC_MAN_DIR
641 FILE_MAN_DIR
642 LIB_MAN_DIR
643 APP_MAN_DIR
644 ADMIN_MAN_SUFFIX
645 DRIVER_MAN_SUFFIX
646 MISC_MAN_SUFFIX
647 FILE_MAN_SUFFIX
648 LIB_MAN_SUFFIX
649 APP_MAN_SUFFIX
650 SED
651 host_os
652 host_vendor
653 host_cpu
654 host
655 build_os
656 build_vendor
657 build_cpu
658 build
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 am__xargs_n
684 am__rm_f_notfound
685 AM_BACKSLASH
686 AM_DEFAULT_VERBOSITY
687 AM_DEFAULT_V
688 AM_V
689 CSCOPE
690 ETAGS
691 CTAGS
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 runstatedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL
754 am__quote'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_dependency_tracking
760 enable_selective_werror
761 enable_strict_compilation
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
774 XRANDR_CFLAGS
775 XRANDR_LIBS'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 runstatedir='${localstatedir}/run'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: '$ac_useropt'"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: '$ac_useropt'"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -runstatedir | --runstatedir | --runstatedi | --runstated \
1066 | --runstate | --runstat | --runsta | --runst | --runs \
1067 | --run | --ru | --r)
1068 ac_prev=runstatedir ;;
1069 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1070 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1071 | --run=* | --ru=* | --r=*)
1072 runstatedir=$ac_optarg ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: '$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: '$ac_option'
1170 Try '$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir runstatedir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: '$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 printf '%s\n' X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 'configure' configures xrandr 1.5.4 to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print 'checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for '--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or '..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, 'make install' will install all the files in
1351 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than '$ac_default_prefix' using '--prefix',
1353 for instance '--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/xrandr]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of xrandr 1.5.4:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-silent-rules less verbose build output (undo: "make V=1")
1404 --disable-silent-rules verbose build output (undo: "make V=0")
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
1409 --disable-selective-werror
1410 Turn off selective compiler errors. (default:
1411 enabled)
1412 --enable-strict-compilation
1413 Enable all warnings from compiler and make them
1414 errors (default: disabled)
1415
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 PKG_CONFIG path to pkg-config utility
1425 PKG_CONFIG_PATH
1426 directories to add to pkg-config's search path
1427 PKG_CONFIG_LIBDIR
1428 path overriding pkg-config's built-in search path
1429 XRANDR_CFLAGS
1430 C compiler flags for XRANDR, overriding pkg-config
1431 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1432
1433 Use these variables to override the choices made by 'configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1435
1436 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>.
1437 _ACEOF
1438 ac_status=$?
1439 fi
1440
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
1447 ac_builddir=.
1448
1449 case "$ac_dir" in
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *)
1452 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 esac ;;
1459 esac
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1464
1465 case $srcdir in
1466 .) # We are building in place.
1467 ac_srcdir=.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1474 *) # Relative name.
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 esac
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for configure.gnu first; this name is used for a wrapper for
1483 # Metaconfig's "Configure" on case-insensitive file systems.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 xrandr configure 1.5.4
1501 generated by GNU Autoconf 2.73
1502
1503 Copyright (C) 2026 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507 exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext conftest.beam
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 printf '%s\n' "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext
1540 then :
1541 ac_retval=0
1542 else case e in #(
1543 e) printf '%s\n' "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1 ;;
1547 esac
1548 fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552 } # ac_fn_c_try_compile
1553
1554 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1555 # ------------------------------------------------------------------
1556 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1557 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1558 ac_fn_check_decl ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 as_decl_name=`echo $2|sed 's/ *(.*//'`
1562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1563 printf %s "checking whether $as_decl_name is declared... " >&6; }
1564 if eval test \${$3+y}
1565 then :
1566 printf %s "(cached) " >&6
1567 else case e in #(
1568 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1569 eval ac_save_FLAGS=\$$6
1570 as_fn_append $6 " $5"
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572 /* end confdefs.h. */
1573 $4
1574 int
1575 main (void)
1576 {
1577 #ifndef $as_decl_name
1578 #ifdef __cplusplus
1579 (void) $as_decl_use;
1580 #else
1581 (void) $as_decl_name;
1582 #endif
1583 #endif
1584
1585 ;
1586 return 0;
1587 }
1588 _ACEOF
1589 if ac_fn_c_try_compile "$LINENO"
1590 then :
1591 eval "$3=yes"
1592 else case e in #(
1593 e) eval "$3=no" ;;
1594 esac
1595 fi
1596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1597 eval $6=\$ac_save_FLAGS
1598 ;;
1599 esac
1600 fi
1601 eval ac_res=\$$3
1602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 printf '%s\n' "$ac_res" >&6; }
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606 } # ac_fn_check_decl
1607
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 printf %s "checking for $2... " >&6; }
1617 if eval test \${$3+y}
1618 then :
1619 printf %s "(cached) " >&6
1620 else case e in #(
1621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 #include <$2>
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 esac
1635 fi
1636 eval ac_res=\$$3
1637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 printf '%s\n' "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_c_check_header_compile
1642
1643 # ac_fn_c_try_link LINENO
1644 # -----------------------
1645 # Try to link conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_link ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1650 if { { ac_try="$ac_link"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 printf '%s\n' "$ac_try_echo"; } >&5
1657 (eval "$ac_link") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest$ac_exeext && {
1669 test "$cross_compiling" = yes ||
1670 test -x conftest$ac_exeext
1671 }
1672 then :
1673 ac_retval=0
1674 else case e in #(
1675 e) printf '%s\n' "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1 ;;
1679 esac
1680 fi
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_link
1690 ac_configure_args_raw=
1691 for ac_arg
1692 do
1693 case $ac_arg in
1694 *\'*)
1695 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1696 esac
1697 as_fn_append ac_configure_args_raw " '$ac_arg'"
1698 done
1699
1700 case $ac_configure_args_raw in
1701 *$as_nl*)
1702 ac_safe_unquote= ;;
1703 *)
1704 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1705 ac_unsafe_a="$ac_unsafe_z#~"
1706 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1707 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1708 esac
1709
1710 cat >config.log <<_ACEOF
1711 This file contains any messages produced by compilers while
1712 running configure, to aid debugging if configure makes a mistake.
1713
1714 It was created by xrandr $as_me 1.5.4, which was
1715 generated by GNU Autoconf 2.73. Invocation command line was
1716
1717 $ $0$ac_configure_args_raw
1718
1719 _ACEOF
1720 exec 5>>config.log
1721 {
1722 cat <<_ASUNAME
1723 ## --------- ##
1724 ## Platform. ##
1725 ## --------- ##
1726
1727 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1728 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1729 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1730 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1731 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1732
1733 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1734 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1735
1736 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1737 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1738 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1739 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1740 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1741 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1742 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1743
1744 _ASUNAME
1745
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749 IFS=$as_save_IFS
1750 case $as_dir in #(((
1751 '') as_dir=./ ;;
1752 */) ;;
1753 *) as_dir=$as_dir/ ;;
1754 esac
1755 printf '%s\n' "PATH: $as_dir"
1756 done
1757 IFS=$as_save_IFS
1758
1759 } >&5
1760
1761 cat >&5 <<_ACEOF
1762
1763
1764 ## ----------- ##
1765 ## Core tests. ##
1766 ## ----------- ##
1767
1768 _ACEOF
1769
1770
1771 # Keep a trace of the command line.
1772 # Strip out --no-create and --no-recursion so they do not pile up.
1773 # Strip out --silent because we don't want to record it for future runs.
1774 # Also quote any args containing shell meta-characters.
1775 # Make two passes to allow for proper duplicate-argument suppression.
1776 ac_configure_args=
1777 ac_configure_args0=
1778 ac_configure_args1=
1779 ac_must_keep_next=false
1780 for ac_pass in 1 2
1781 do
1782 for ac_arg
1783 do
1784 case $ac_arg in
1785 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787 | -silent | --silent | --silen | --sile | --sil)
1788 continue ;;
1789 *\'*)
1790 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 esac
1792 case $ac_pass in
1793 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1794 2)
1795 as_fn_append ac_configure_args1 " '$ac_arg'"
1796 if test $ac_must_keep_next = true; then
1797 ac_must_keep_next=false # Got value, back to normal.
1798 else
1799 case $ac_arg in
1800 *=* | --config-cache | -C | -disable-* | --disable-* \
1801 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803 | -with-* | --with-* | -without-* | --without-* | --x)
1804 case "$ac_configure_args0 " in
1805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806 esac
1807 ;;
1808 -* ) ac_must_keep_next=true ;;
1809 esac
1810 fi
1811 as_fn_append ac_configure_args " '$ac_arg'"
1812 ;;
1813 esac
1814 done
1815 done
1816 { ac_configure_args0=; unset ac_configure_args0;}
1817 { ac_configure_args1=; unset ac_configure_args1;}
1818
1819 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1820 ac_cache_dump ()
1821 {
1822 # The following way of writing the cache mishandles newlines in values,
1823 # but we know of no workaround that is simple, portable, and efficient.
1824 # So, we kill variables containing newlines.
1825 # Ultrix sh set writes to stderr and can't be redirected directly,
1826 # and sets the high bit in the cache file unless we assign to the vars.
1827 (
1828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1829 eval ac_val=\$$ac_var
1830 case $ac_val in #(
1831 *${as_nl}*)
1832 case $ac_var in #(
1833 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1834 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1835 esac
1836 case $ac_var in #(
1837 _ | IFS | as_nl) ;; #(
1838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1839 *) { eval $ac_var=; unset $ac_var;} ;;
1840 esac ;;
1841 esac
1842 done
1843
1844 (set) 2>&1 |
1845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1846 *${as_nl}ac_space=\ *)
1847 # 'set' does not quote correctly, so add quotes: double-quote
1848 # substitution turns \\\\ into \\, and sed turns \\ into \.
1849 sed -n \
1850 "s/'/'\\\\''/g;
1851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1852 ;; #(
1853 *)
1854 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1856 ;;
1857 esac |
1858 sort
1859 )
1860 }
1861
1862 # Print debugging info to stdout.
1863 ac_dump_debugging_info ()
1864 {
1865 echo
1866
1867 printf '%s\n' "## ---------------- ##
1868 ## Cache variables. ##
1869 ## ---------------- ##"
1870 echo
1871 ac_cache_dump
1872 echo
1873
1874 printf '%s\n' "## ----------------- ##
1875 ## Output variables. ##
1876 ## ----------------- ##"
1877 echo
1878 for ac_var in $ac_subst_vars
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1883 esac
1884 printf '%s\n' "$ac_var='$ac_val'"
1885 done | sort
1886 echo
1887
1888 if test -n "$ac_subst_files"; then
1889 printf '%s\n' "## ------------------- ##
1890 ## File substitutions. ##
1891 ## ------------------- ##"
1892 echo
1893 for ac_var in $ac_subst_files
1894 do
1895 eval ac_val=\$$ac_var
1896 case $ac_val in
1897 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1898 esac
1899 printf '%s\n' "$ac_var='$ac_val'"
1900 done | sort
1901 echo
1902 fi
1903
1904 if test -s confdefs.h; then
1905 printf '%s\n' "## ----------- ##
1906 ## confdefs.h. ##
1907 ## ----------- ##"
1908 echo
1909 cat confdefs.h
1910 echo
1911 fi
1912 test "$ac_signal" != 0 &&
1913 printf '%s\n' "$as_me: caught signal $ac_signal"
1914 printf '%s\n' "$as_me: exit $exit_status"
1915 }
1916
1917 # When interrupted or exit'd, cleanup temporary files, and complete
1918 # config.log.
1919 ac_exit_trap ()
1920 {
1921 exit_status=
1922 # Sanitize IFS.
1923 IFS=" "" $as_nl"
1924 # Save into config.log some information that might help in debugging.
1925 ac_dump_debugging_info >&5
1926 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 exit $exit_status
1929 }
1930
1931 trap 'ac_exit_trap $?' 0
1932 for ac_signal in 1 2 13 15; do
1933 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1934 done
1935 ac_signal=0
1936
1937 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1938 rm -f -r conftest* confdefs.h
1939
1940 printf '%s\n' "/* confdefs.h */" > confdefs.h
1941
1942 # Predefined preprocessor variables.
1943
1944 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1945
1946 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1947
1948 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1949
1950 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1951
1952 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1953
1954 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1955
1956
1957 # Let the site file select an alternate cache file if it wants to.
1958 # Prefer an explicitly selected file to automatically selected ones.
1959 if test -n "$CONFIG_SITE"; then
1960 ac_site_files="$CONFIG_SITE"
1961 elif test "x$prefix" != xNONE; then
1962 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1963 else
1964 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1965 fi
1966
1967 for ac_site_file in $ac_site_files
1968 do
1969 case $ac_site_file in #(
1970 */*) :
1971 ;; #(
1972 *) :
1973 ac_site_file=./$ac_site_file ;;
1974 esac
1975 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file" \
1980 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1981 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
1982 as_fn_error $? "failed to load site script $ac_site_file
1983 See 'config.log' for more details" "$LINENO" 5; }
1984 fi
1985 done
1986
1987 if test -r "$cache_file"; then
1988 # Some versions of bash will fail to source /dev/null (special files
1989 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1990 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
1993 case $cache_file in
1994 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995 *) . "./$cache_file";;
1996 esac
1997 fi
1998 else
1999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2001 >$cache_file
2002 fi
2003
2004 # Test code for whether the C compiler supports C23 (global declarations)
2005 ac_c_conftest_c23_globals='
2006 /* Does the compiler advertise conformance to C17 or earlier?
2007 Although GCC 14 does not do that, even with -std=gnu23,
2008 it is close enough, and defines __STDC_VERSION == 202000L. */
2009 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2010 # error "Compiler advertises conformance to C17 or earlier"
2011 #endif
2012
2013 // Check alignas.
2014 char alignas (double) c23_aligned_as_double;
2015 char alignas (0) c23_no_special_alignment;
2016 extern char c23_aligned_as_int;
2017 char alignas (0) alignas (int) c23_aligned_as_int;
2018
2019 // Check alignof.
2020 enum
2021 {
2022 c23_int_alignment = alignof (int),
2023 c23_int_array_alignment = alignof (int[100]),
2024 c23_char_alignment = alignof (char)
2025 };
2026 static_assert (0 < -alignof (int), "alignof is signed");
2027
2028 int function_with_unnamed_parameter (int) { return 0; }
2029
2030 void c23_noreturn ();
2031
2032 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2033 The parens pacify GCC 15. */
2034 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2035
2036 bool check_that_bool_works = true | false | !nullptr;
2037 #if !true
2038 # error "true does not work in #if"
2039 #endif
2040 #if false
2041 #elifdef __STDC_VERSION__
2042 #else
2043 # error "#elifdef does not work"
2044 #endif
2045
2046 #ifndef __has_c_attribute
2047 # error "__has_c_attribute not defined"
2048 #endif
2049
2050 #ifndef __has_include
2051 # error "__has_include not defined"
2052 #endif
2053
2054 #define LPAREN() (
2055 #define FORTY_TWO(x) 42
2056 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2057 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2058
2059 static_assert (0b101010 == 42);
2060 static_assert (0B101010 == 42);
2061 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2062 static_assert (0.500'\''000'\''000 == 0.5);
2063
2064 enum unsignedish : unsigned int { uione = 1 };
2065 static_assert (0 < -uione);
2066
2067 #include <stddef.h>
2068 constexpr nullptr_t null_pointer = nullptr;
2069
2070 static typeof (1 + 1L) two () { return 2; }
2071 static long int three () { return 3; }
2072 '
2073
2074 # Test code for whether the C compiler supports C23 (body of main).
2075 ac_c_conftest_c23_main='
2076 {
2077 label_before_declaration:
2078 int arr[10] = {};
2079 if (arr[0])
2080 goto label_before_declaration;
2081 if (!arr[0])
2082 goto label_at_end_of_block;
2083 label_at_end_of_block:
2084 }
2085 ok |= !null_pointer;
2086 ok |= two != three;
2087 '
2088
2089 # Test code for whether the C compiler supports C23 (complete).
2090 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2091
2092 int
2093 main (int, char **)
2094 {
2095 int ok = 0;
2096 ${ac_c_conftest_c23_main}
2097 return ok;
2098 }
2099 "
2100
2101 # Test code for whether the C compiler supports C89 (global declarations)
2102 ac_c_conftest_c89_globals='
2103 /* Do not test the value of __STDC__, because some compilers define it to 0
2104 or do not define it, while otherwise adequately conforming. */
2105
2106 #include <stddef.h>
2107 #include <stdarg.h>
2108 struct stat;
2109 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2110 struct buf { int x; };
2111 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (char **p, int i)
2113 {
2114 return p[i];
2115 }
2116 static char *f (char * (*g) (char **, int), char **p, ...)
2117 {
2118 char *s;
2119 va_list v;
2120 va_start (v,p);
2121 s = g (p, va_arg (v,int));
2122 va_end (v);
2123 return s;
2124 }
2125
2126 /* C89 style stringification. */
2127 #define noexpand_stringify(a) #a
2128 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2129
2130 /* C89 style token pasting. Exercises some of the corner cases that
2131 e.g. old MSVC gets wrong, but not very hard. */
2132 #define noexpand_concat(a,b) a##b
2133 #define expand_concat(a,b) noexpand_concat(a,b)
2134 extern int vA;
2135 extern int vbee;
2136 #define aye A
2137 #define bee B
2138 int *pvA = &expand_concat(v,aye);
2139 int *pvbee = &noexpand_concat(v,bee);
2140
2141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2142 function prototypes and stuff, but not \xHH hex character constants.
2143 These do not provoke an error unfortunately, instead are silently treated
2144 as an "x". The following induces an error, until -std is added to get
2145 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2146 array size at least. It is necessary to write \x00 == 0 to get something
2147 that is true only with -std. */
2148 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2149
2150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2151 inside strings and character constants. */
2152 #define FOO(x) '\''x'\''
2153 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2154
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2159 int, int);'
2160
2161 # Test code for whether the C compiler supports C89 (body of main).
2162 ac_c_conftest_c89_main='
2163 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2164 '
2165
2166 # Test code for whether the C compiler supports C99 (global declarations)
2167 ac_c_conftest_c99_globals='
2168 /* Does the compiler advertise C99 conformance? */
2169 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2170 # error "Compiler does not advertise C99 conformance"
2171 #endif
2172
2173 // See if C++-style comments work.
2174
2175 #include <stdbool.h>
2176 extern int puts (const char *);
2177 extern int printf (const char *, ...);
2178 extern int dprintf (int, const char *, ...);
2179 extern void *malloc (size_t);
2180 extern void free (void *);
2181
2182 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2183 // dprintf is used instead of fprintf to avoid needing to declare
2184 // FILE and stderr, and "aND" is used instead of "and" to work around
2185 // GCC bug 40564 which is irrelevant here.
2186 #define debug(...) dprintf (2, __VA_ARGS__)
2187 #define showlist(...) puts (#__VA_ARGS__)
2188 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2189 static void
2190 test_varargs_macros (void)
2191 {
2192 int x = 1234;
2193 int y = 5678;
2194 debug ("Flag");
2195 debug ("X = %d\n", x);
2196 showlist (The first, second, aND third items.);
2197 report (x>y, "x is %d but y is %d", x, y);
2198 }
2199
2200 // Check long long types.
2201 #define BIG64 18446744073709551615ull
2202 #define BIG32 4294967295ul
2203 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2204 #if !BIG_OK
2205 #error "your preprocessor is broken"
2206 #endif
2207 #if BIG_OK
2208 #else
2209 #error "your preprocessor is broken"
2210 #endif
2211 static long long int bignum = -9223372036854775807LL;
2212 static unsigned long long int ubignum = BIG64;
2213
2214 struct incomplete_array
2215 {
2216 int datasize;
2217 double data[];
2218 };
2219
2220 struct named_init {
2221 int number;
2222 const wchar_t *name;
2223 double average;
2224 };
2225
2226 typedef const char *ccp;
2227
2228 static inline int
2229 test_restrict (ccp restrict text)
2230 {
2231 // Iterate through items via the restricted pointer.
2232 // Also check for declarations in for loops.
2233 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2234 continue;
2235 return 0;
2236 }
2237
2238 // Check varargs and va_copy.
2239 static bool
2240 test_varargs (const char *format, ...)
2241 {
2242 va_list args;
2243 va_start (args, format);
2244 va_list args_copy;
2245 va_copy (args_copy, args);
2246
2247 const char *str = "";
2248 int number = 0;
2249 float fnumber = 0;
2250
2251 while (*format)
2252 {
2253 switch (*format++)
2254 {
2255 case '\''s'\'': // string
2256 str = va_arg (args_copy, const char *);
2257 break;
2258 case '\''d'\'': // int
2259 number = va_arg (args_copy, int);
2260 break;
2261 case '\''f'\'': // float
2262 fnumber = va_arg (args_copy, double);
2263 break;
2264 default:
2265 break;
2266 }
2267 }
2268 va_end (args_copy);
2269 va_end (args);
2270
2271 return *str && number && fnumber;
2272 }
2273 '
2274
2275 # Test code for whether the C compiler supports C99 (body of main).
2276 ac_c_conftest_c99_main='
2277 // Check bool.
2278 _Bool success = false;
2279 success |= (argc != 0);
2280
2281 // Check restrict.
2282 if (test_restrict ("String literal") == 0)
2283 success = true;
2284 const char *restrict newvar = "Another string";
2285
2286 // Check varargs.
2287 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2288 test_varargs_macros ();
2289
2290 // Check flexible array members.
2291 static struct incomplete_array *volatile incomplete_array_pointer;
2292 struct incomplete_array *ia = incomplete_array_pointer;
2293 ia->datasize = 10;
2294 for (int i = 0; i < ia->datasize; ++i)
2295 ia->data[i] = i * 1.234;
2296 // Work around memory leak warnings.
2297 free (ia);
2298
2299 // Check named initializers.
2300 struct named_init ni = {
2301 .number = 34,
2302 .name = L"Test wide string",
2303 .average = 543.34343,
2304 };
2305
2306 ni.number = 58;
2307
2308 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2309 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2310
2311 // work around unused variable warnings
2312 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2313 || ni.number != 58);
2314 '
2315
2316 # Test code for whether the C compiler supports C11 (global declarations)
2317 ac_c_conftest_c11_globals='
2318 /* Does the compiler advertise C11 conformance? */
2319 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2320 # error "Compiler does not advertise C11 conformance"
2321 #endif
2322
2323 // Check _Alignas.
2324 char _Alignas (double) aligned_as_double;
2325 char _Alignas (0) no_special_alignment;
2326 extern char aligned_as_int;
2327 char _Alignas (0) _Alignas (int) aligned_as_int;
2328
2329 // Check _Alignof.
2330 enum
2331 {
2332 int_alignment = _Alignof (int),
2333 int_array_alignment = _Alignof (int[100]),
2334 char_alignment = _Alignof (char)
2335 };
2336 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2337
2338 // Check _Noreturn.
2339 int _Noreturn does_not_return (void) { for (;;) continue; }
2340
2341 // Check _Static_assert.
2342 struct test_static_assert
2343 {
2344 int x;
2345 _Static_assert (sizeof (int) <= sizeof (long int),
2346 "_Static_assert does not work in struct");
2347 long int y;
2348 };
2349
2350 // Check UTF-8 literals.
2351 #define u8 syntax error!
2352 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2353
2354 // Check duplicate typedefs.
2355 typedef long *long_ptr;
2356 typedef long int *long_ptr;
2357 typedef long_ptr long_ptr;
2358
2359 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2360 struct anonymous
2361 {
2362 union {
2363 struct { int i; int j; };
2364 struct { int k; long int l; } w;
2365 };
2366 int m;
2367 } v1;
2368 '
2369
2370 # Test code for whether the C compiler supports C11 (body of main).
2371 ac_c_conftest_c11_main='
2372 _Static_assert ((offsetof (struct anonymous, i)
2373 == offsetof (struct anonymous, w.k)),
2374 "Anonymous union alignment botch");
2375 v1.i = 2;
2376 v1.w.k = 5;
2377 ok |= v1.i != 5;
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (complete).
2381 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2382 ${ac_c_conftest_c99_globals}
2383 ${ac_c_conftest_c11_globals}
2384
2385 int
2386 main (int argc, char **argv)
2387 {
2388 int ok = 0;
2389 ${ac_c_conftest_c89_main}
2390 ${ac_c_conftest_c99_main}
2391 ${ac_c_conftest_c11_main}
2392 return ok;
2393 }
2394 "
2395
2396 # Test code for whether the C compiler supports C99 (complete).
2397 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2398 ${ac_c_conftest_c99_globals}
2399
2400 int
2401 main (int argc, char **argv)
2402 {
2403 int ok = 0;
2404 ${ac_c_conftest_c89_main}
2405 ${ac_c_conftest_c99_main}
2406 return ok;
2407 }
2408 "
2409
2410 # Test code for whether the C compiler supports C89 (complete).
2411 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2412
2413 int
2414 main (int argc, char **argv)
2415 {
2416 int ok = 0;
2417 ${ac_c_conftest_c89_main}
2418 return ok;
2419 }
2420 "
2421
2422 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2423 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2424 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2425 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2426 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2427 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2428 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2429 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2430 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2431
2432 # Auxiliary files required by this configure script.
2433 ac_aux_files="config.guess config.sub compile missing install-sh"
2434
2435 # Locations in which to look for auxiliary files.
2436 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2437
2438 # Search for a directory containing all of the required auxiliary files,
2439 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2440 # If we don't find one directory that contains all the files we need,
2441 # we report the set of missing files from the *first* directory in
2442 # $ac_aux_dir_candidates and give up.
2443 ac_missing_aux_files=""
2444 ac_first_candidate=:
2445 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 as_found=false
2448 for as_dir in $ac_aux_dir_candidates
2449 do
2450 IFS=$as_save_IFS
2451 case $as_dir in #(((
2452 '') as_dir=./ ;;
2453 */) ;;
2454 *) as_dir=$as_dir/ ;;
2455 esac
2456 as_found=:
2457
2458 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2459 ac_aux_dir_found=yes
2460 ac_install_sh=
2461 for ac_aux in $ac_aux_files
2462 do
2463 # As a special case, if "install-sh" is required, that requirement
2464 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2465 # and $ac_install_sh is set appropriately for whichever one is found.
2466 if test x"$ac_aux" = x"install-sh"
2467 then
2468 if test -f "${as_dir}install-sh"; then
2469 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2470 ac_install_sh="${as_dir}install-sh -c"
2471 elif test -f "${as_dir}install.sh"; then
2472 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2473 ac_install_sh="${as_dir}install.sh -c"
2474 elif test -f "${as_dir}shtool"; then
2475 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2476 ac_install_sh="${as_dir}shtool install -c"
2477 else
2478 ac_aux_dir_found=no
2479 if $ac_first_candidate; then
2480 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2481 else
2482 break
2483 fi
2484 fi
2485 else
2486 if test -f "${as_dir}${ac_aux}"; then
2487 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2488 else
2489 ac_aux_dir_found=no
2490 if $ac_first_candidate; then
2491 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2492 else
2493 break
2494 fi
2495 fi
2496 fi
2497 done
2498 if test "$ac_aux_dir_found" = yes; then
2499 ac_aux_dir="$as_dir"
2500 break
2501 fi
2502 ac_first_candidate=false
2503
2504 as_found=false
2505 done
2506 IFS=$as_save_IFS
2507 if $as_found
2508 then :
2509
2510 else case e in #(
2511 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2512 esac
2513 fi
2514
2515
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 if test -f "${ac_aux_dir}config.guess"; then
2521 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2522 fi
2523 if test -f "${ac_aux_dir}config.sub"; then
2524 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2525 fi
2526 if test -f "$ac_aux_dir/configure"; then
2527 ac_configure="$SHELL ${ac_aux_dir}configure"
2528 fi
2529
2530 # Check that the precious variables saved in the cache have kept the same
2531 # value.
2532 ac_cache_corrupted=false
2533 for ac_var in $ac_precious_vars; do
2534 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2535 eval ac_new_set=\$ac_env_${ac_var}_set
2536 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2537 eval ac_new_val=\$ac_env_${ac_var}_value
2538 case $ac_old_set,$ac_new_set in
2539 set,)
2540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2541 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,set)
2544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2545 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2546 ac_cache_corrupted=: ;;
2547 ,);;
2548 *)
2549 if test "x$ac_old_val" != "x$ac_new_val"; then
2550 # differences in whitespace do not lead to failure.
2551 ac_old_val_w=
2552 for ac_val in x $ac_old_val; do
2553 ac_old_val_w="$ac_old_val_w $ac_val"
2554 done
2555 ac_new_val_w=
2556 for ac_val in x $ac_new_val; do
2557 ac_new_val_w="$ac_new_val_w $ac_val"
2558 done
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2561 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted=:
2563 else
2564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2565 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\$ac_old_val
2567 fi
2568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2569 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2571 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2572 fi;;
2573 esac
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2576 case $ac_new_val in
2577 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *) ac_arg=$ac_var=$ac_new_val ;;
2579 esac
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 esac
2584 fi
2585 done
2586 if $ac_cache_corrupted; then
2587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2588 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2592 and start over" "$LINENO" 5
2593 fi
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2597
2598
2599 # Determine whether it's possible to make 'echo' print without a newline.
2600 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2601 # for compatibility with existing Makefiles.
2602 ECHO_C= ECHO_N= ECHO_T=
2603 case `echo -n x` in #(((((
2604 -n*)
2605 case `echo 'xy\c'` in
2606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2607 xy) ECHO_C='\c';;
2608 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2609 ECHO_T=' ';;
2610 esac;;
2611 *)
2612 ECHO_N='-n';;
2613 esac
2614
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2620
2621
2622
2623 ac_config_headers="$ac_config_headers config.h"
2624
2625
2626 # Initialize Automake
2627 am__api_version='1.18'
2628
2629
2630
2631 # Find a good install program. We prefer a C program (faster),
2632 # so one script is as good as another. But avoid the broken or
2633 # incompatible versions:
2634 # SysV /etc/install, /usr/sbin/install
2635 # SunOS /usr/etc/install
2636 # IRIX /sbin/install
2637 # AIX /bin/install
2638 # AmigaOS /C/install, which installs bootblocks on floppy discs
2639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2642 # OS/2's system install, which has a completely different semantic
2643 # ./install, which can be erroneously created by make from ./install.sh.
2644 # Reject install programs that cannot install multiple files.
2645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2646 printf %s "checking for a BSD-compatible install... " >&6; }
2647 if test -z "$INSTALL"; then
2648 if test ${ac_cv_path_install+y}
2649 then :
2650 printf %s "(cached) " >&6
2651 else case e in #(
2652 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 case $as_dir in #(((
2657 '') as_dir=./ ;;
2658 */) ;;
2659 *) as_dir=$as_dir/ ;;
2660 esac
2661 # Account for fact that we put trailing slashes in our PATH walk.
2662 case $as_dir in #((
2663 ./ | /[cC]/* | \
2664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2666 /usr/ucb/* ) ;;
2667 *)
2668 # OSF/1 and SCO ODT 3.0 have their own names for install.
2669 # Don't use installbsd from OSF/1 since it installs stuff as root
2670 # by default.
2671 for ac_prog in ginstall scoinst install; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2674 if test $ac_prog = install &&
2675 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # AIX install. It has an incompatible calling convention.
2677 :
2678 elif test $ac_prog = install &&
2679 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680 # program-specific install script used by HP pwplus--don't use.
2681 :
2682 else
2683 rm -rf conftest.one conftest.two conftest.dir
2684 echo one > conftest.one
2685 echo two > conftest.two
2686 mkdir conftest.dir
2687 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2688 test -s conftest.one && test -s conftest.two &&
2689 test -s conftest.dir/conftest.one &&
2690 test -s conftest.dir/conftest.two
2691 then
2692 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2693 break 3
2694 fi
2695 fi
2696 fi
2697 done
2698 done
2699 ;;
2700 esac
2701
2702 done
2703 IFS=$as_save_IFS
2704
2705 rm -rf conftest.one conftest.two conftest.dir
2706 ;;
2707 esac
2708 fi
2709 if test ${ac_cv_path_install+y}; then
2710 INSTALL=$ac_cv_path_install
2711 else
2712 # As a last resort, use the slow shell script. Don't cache a
2713 # value for INSTALL within a source directory, because that will
2714 # break other packages using the cache if that directory is
2715 # removed, or if the value is a relative name.
2716 INSTALL=$ac_install_sh
2717 fi
2718 fi
2719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2720 printf '%s\n' "$INSTALL" >&6; }
2721
2722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2723 # It thinks the first close brace ends the variable substitution.
2724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2725
2726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2727
2728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2729
2730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2731 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2732 if test ${am_cv_sleep_fractional_seconds+y}
2733 then :
2734 printf %s "(cached) " >&6
2735 else case e in #(
2736 e) if sleep 0.001 2>/dev/null
2737 then :
2738 am_cv_sleep_fractional_seconds=yes
2739 else case e in #(
2740 e) am_cv_sleep_fractional_seconds=no ;;
2741 esac
2742 fi
2743 ;;
2744 esac
2745 fi
2746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2747 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
2748
2749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2750 printf %s "checking filesystem timestamp resolution... " >&6; }
2751 if test ${am_cv_filesystem_timestamp_resolution+y}
2752 then :
2753 printf %s "(cached) " >&6
2754 else case e in #(
2755 e) # Default to the worst case.
2756 am_cv_filesystem_timestamp_resolution=2
2757
2758 # Only try to go finer than 1 sec if sleep can do it.
2759 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2760 # - 1 sec is not much of a win compared to 2 sec, and
2761 # - it takes 2 seconds to perform the test whether 1 sec works.
2762 #
2763 # Instead, just use the default 2s on platforms that have 1s resolution,
2764 # accept the extra 1s delay when using $sleep in the Automake tests, in
2765 # exchange for not incurring the 2s delay for running the test for all
2766 # packages.
2767 #
2768 am_try_resolutions=
2769 if test "$am_cv_sleep_fractional_seconds" = yes; then
2770 # Even a millisecond often causes a bunch of false positives,
2771 # so just try a hundredth of a second. The time saved between .001 and
2772 # .01 is not terribly consequential.
2773 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2774 fi
2775
2776 # In order to catch current-generation FAT out, we must *modify* files
2777 # that already exist; the *creation* timestamp is finer. Use names
2778 # that make ls -t sort them differently when they have equal
2779 # timestamps than when they have distinct timestamps, keeping
2780 # in mind that ls -t prints the *newest* file first.
2781 rm -f conftest.ts?
2782 : > conftest.ts1
2783 : > conftest.ts2
2784 : > conftest.ts3
2785
2786 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2787 # clobber the current shell's arguments. (Outer-level square brackets
2788 # are removed by m4; they're present so that m4 does not expand
2789 # <dollar><star>; be careful, easy to get confused.)
2790 if (
2791 set X `ls -t conftest.ts[12]` &&
2792 {
2793 test "$*" != "X conftest.ts1 conftest.ts2" ||
2794 test "$*" != "X conftest.ts2 conftest.ts1";
2795 }
2796 ); then :; else
2797 # If neither matched, then we have a broken ls. This can happen
2798 # if, for instance, CONFIG_SHELL is bash and it inherits a
2799 # broken ls alias from the environment. This has actually
2800 # happened. Such a system could not be considered "sane".
2801 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2802 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2803 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2804 as_fn_error $? "ls -t produces unexpected output.
2805 Make sure there is not a broken ls alias in your environment.
2806 See 'config.log' for more details" "$LINENO" 5; }
2807 fi
2808
2809 for am_try_res in $am_try_resolutions; do
2810 # Any one fine-grained sleep might happen to cross the boundary
2811 # between two values of a coarser actual resolution, but if we do
2812 # two fine-grained sleeps in a row, at least one of them will fall
2813 # entirely within a coarse interval.
2814 echo alpha > conftest.ts1
2815 sleep $am_try_res
2816 echo beta > conftest.ts2
2817 sleep $am_try_res
2818 echo gamma > conftest.ts3
2819
2820 # We assume that 'ls -t' will make use of high-resolution
2821 # timestamps if the operating system supports them at all.
2822 if (set X `ls -t conftest.ts?` &&
2823 test "$2" = conftest.ts3 &&
2824 test "$3" = conftest.ts2 &&
2825 test "$4" = conftest.ts1); then
2826 #
2827 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2828 # because we don't need to test make.
2829 make_ok=true
2830 if test $am_try_res != 1; then
2831 # But if we've succeeded so far with a subsecond resolution, we
2832 # have one more thing to check: make. It can happen that
2833 # everything else supports the subsecond mtimes, but make doesn't;
2834 # notably on macOS, which ships make 3.81 from 2006 (the last one
2835 # released under GPLv2). https://bugs.gnu.org/68808
2836 #
2837 # We test $MAKE if it is defined in the environment, else "make".
2838 # It might get overridden later, but our hope is that in practice
2839 # it does not matter: it is the system "make" which is (by far)
2840 # the most likely to be broken, whereas if the user overrides it,
2841 # probably they did so with a better, or at least not worse, make.
2842 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2843 #
2844 # Create a Makefile (real tab character here):
2845 rm -f conftest.mk
2846 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2847 echo ' touch conftest.ts2' >>conftest.mk
2848 #
2849 # Now, running
2850 # touch conftest.ts1; touch conftest.ts2; make
2851 # should touch ts1 because ts2 is newer. This could happen by luck,
2852 # but most often, it will fail if make's support is insufficient. So
2853 # test for several consecutive successes.
2854 #
2855 # (We reuse conftest.ts[12] because we still want to modify existing
2856 # files, not create new ones, per above.)
2857 n=0
2858 make=${MAKE-make}
2859 until test $n -eq 3; do
2860 echo one > conftest.ts1
2861 sleep $am_try_res
2862 echo two > conftest.ts2 # ts2 should now be newer than ts1
2863 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2864 make_ok=false
2865 break # out of $n loop
2866 fi
2867 n=`expr $n + 1`
2868 done
2869 fi
2870 #
2871 if $make_ok; then
2872 # Everything we know to check worked out, so call this resolution good.
2873 am_cv_filesystem_timestamp_resolution=$am_try_res
2874 break # out of $am_try_res loop
2875 fi
2876 # Otherwise, we'll go on to check the next resolution.
2877 fi
2878 done
2879 rm -f conftest.ts?
2880 # (end _am_filesystem_timestamp_resolution)
2881 ;;
2882 esac
2883 fi
2884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2885 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
2886
2887 # This check should not be cached, as it may vary across builds of
2888 # different projects.
2889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2890 printf %s "checking whether build environment is sane... " >&6; }
2891 # Reject unsafe characters in $srcdir or the absolute working directory
2892 # name. Accept space and tab only in the latter.
2893 am_lf='
2894 '
2895 case `pwd` in
2896 *[\\\"\#\$\&\'\`$am_lf]*)
2897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 printf '%s\n' "no" >&6; }
2899 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2900 esac
2901 case $srcdir in
2902 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2903 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 printf '%s\n' "no" >&6; }
2905 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2906 esac
2907
2908 # Do 'set' in a subshell so we don't clobber the current shell's
2909 # arguments. Must try -L first in case configure is actually a
2910 # symlink; some systems play weird games with the mod time of symlinks
2911 # (eg FreeBSD returns the mod time of the symlink's containing
2912 # directory).
2913 am_build_env_is_sane=no
2914 am_has_slept=no
2915 rm -f conftest.file
2916 for am_try in 1 2; do
2917 echo "timestamp, slept: $am_has_slept" > conftest.file
2918 if (
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2921 # -L didn't work.
2922 set X `ls -t "$srcdir/configure" conftest.file`
2923 fi
2924 test "$2" = conftest.file
2925 ); then
2926 am_build_env_is_sane=yes
2927 break
2928 fi
2929 # Just in case.
2930 sleep "$am_cv_filesystem_timestamp_resolution"
2931 am_has_slept=yes
2932 done
2933
2934 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2935 printf '%s\n' "$am_build_env_is_sane" >&6; }
2936 if test "$am_build_env_is_sane" = no; then
2937 as_fn_error $? "newly created file is older than distributed files!
2938 Check your system clock" "$LINENO" 5
2939 fi
2940
2941 # If we didn't sleep, we still need to ensure time stamps of config.status and
2942 # generated files are strictly newer.
2943 am_sleep_pid=
2944 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2945 then :
2946
2947 else case e in #(
2948 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2949 am_sleep_pid=$!
2950 ;;
2951 esac
2952 fi
2953
2954 rm -f conftest.file
2955
2956 test "$program_prefix" != NONE &&
2957 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2958 # Use a double $ so make ignores it.
2959 test "$program_suffix" != NONE &&
2960 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2961 # Double any \ or $.
2962 # By default was 's,x,x', remove it if useless.
2963 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2964 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
2965
2966
2967 # Expand $ac_aux_dir to an absolute path.
2968 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2969
2970
2971 if test x"${MISSING+set}" != xset; then
2972 MISSING="\${SHELL} '$am_aux_dir/missing'"
2973 fi
2974 # Use eval to expand $SHELL
2975 if eval "$MISSING --is-lightweight"; then
2976 am_missing_run="$MISSING "
2977 else
2978 am_missing_run=
2979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2980 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2981 fi
2982
2983 if test x"${install_sh+set}" != xset; then
2984 case $am_aux_dir in
2985 *\ * | *\ *)
2986 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2987 *)
2988 install_sh="\${SHELL} $am_aux_dir/install-sh"
2989 esac
2990 fi
2991
2992 # Installed binaries are usually stripped using 'strip' when the user
2993 # run "make install-strip". However 'strip' might not be the right
2994 # tool to use in cross-compilation environments, therefore Automake
2995 # will honor the 'STRIP' environment variable to overrule this program.
2996 if test "$cross_compiling" != no; then
2997 if test -n "$ac_tool_prefix"; then
2998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2999 set dummy ${ac_tool_prefix}strip; ac_word=$2
3000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 printf %s "checking for $ac_word... " >&6; }
3002 if test ${ac_cv_prog_STRIP+y}
3003 then :
3004 printf %s "(cached) " >&6
3005 else case e in #(
3006 e) if test -n "$STRIP"; then
3007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 case $as_dir in #(((
3014 '') as_dir=./ ;;
3015 */) ;;
3016 *) as_dir=$as_dir/ ;;
3017 esac
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3021 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024 done
3025 done
3026 IFS=$as_save_IFS
3027
3028 fi ;;
3029 esac
3030 fi
3031 STRIP=$ac_cv_prog_STRIP
3032 if test -n "$STRIP"; then
3033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3034 printf '%s\n' "$STRIP" >&6; }
3035 else
3036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 printf '%s\n' "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$ac_cv_prog_STRIP"; then
3043 ac_ct_STRIP=$STRIP
3044 # Extract the first word of "strip", so it can be a program name with args.
3045 set dummy strip; ac_word=$2
3046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 printf %s "checking for $ac_word... " >&6; }
3048 if test ${ac_cv_prog_ac_ct_STRIP+y}
3049 then :
3050 printf %s "(cached) " >&6
3051 else case e in #(
3052 e) if test -n "$ac_ct_STRIP"; then
3053 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 case $as_dir in #(((
3060 '') as_dir=./ ;;
3061 */) ;;
3062 *) as_dir=$as_dir/ ;;
3063 esac
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_ac_ct_STRIP="strip"
3067 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi ;;
3075 esac
3076 fi
3077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3078 if test -n "$ac_ct_STRIP"; then
3079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3080 printf '%s\n' "$ac_ct_STRIP" >&6; }
3081 else
3082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 printf '%s\n' "no" >&6; }
3084 fi
3085
3086 if test "x$ac_ct_STRIP" = x; then
3087 STRIP=":"
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 STRIP=$ac_ct_STRIP
3096 fi
3097 else
3098 STRIP="$ac_cv_prog_STRIP"
3099 fi
3100
3101 fi
3102 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3103
3104
3105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3106 printf %s "checking for a race-free mkdir -p... " >&6; }
3107 if test -z "$MKDIR_P"; then
3108 if test ${ac_cv_path_mkdir+y}
3109 then :
3110 printf %s "(cached) " >&6
3111 else case e in #(
3112 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3114 do
3115 IFS=$as_save_IFS
3116 case $as_dir in #(((
3117 '') as_dir=./ ;;
3118 */) ;;
3119 *) as_dir=$as_dir/ ;;
3120 esac
3121 for ac_prog in mkdir gmkdir; do
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3124 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3125 'mkdir ('*'coreutils) '* | \
3126 *'BusyBox '* | \
3127 'mkdir (fileutils) '4.1*)
3128 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3129 break 3;;
3130 esac
3131 done
3132 done
3133 done
3134 IFS=$as_save_IFS
3135 ;;
3136 esac
3137 fi
3138
3139 test -d ./--version && rmdir ./--version
3140 if test ${ac_cv_path_mkdir+y}; then
3141 MKDIR_P="$ac_cv_path_mkdir -p"
3142 else
3143 # As a last resort, use plain mkdir -p,
3144 # in the hope it doesn't have the bugs of ancient mkdir.
3145 MKDIR_P='mkdir -p'
3146 fi
3147 fi
3148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3149 printf '%s\n' "$MKDIR_P" >&6; }
3150
3151 for ac_prog in gawk mawk nawk awk 'busybox awk'
3152 do
3153 # Extract the first word of "$ac_prog", so it can be a program name with args.
3154 set dummy $ac_prog; ac_word=$2
3155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 printf %s "checking for $ac_word... " >&6; }
3157 if test ${ac_cv_prog_AWK+y}
3158 then :
3159 printf %s "(cached) " >&6
3160 else case e in #(
3161 e) if test -n "$AWK"; then
3162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 case $as_dir in #(((
3169 '') as_dir=./ ;;
3170 */) ;;
3171 *) as_dir=$as_dir/ ;;
3172 esac
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_AWK="$ac_prog"
3176 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi ;;
3184 esac
3185 fi
3186 AWK=$ac_cv_prog_AWK
3187 if test -n "$AWK"; then
3188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3189 printf '%s\n' "$AWK" >&6; }
3190 else
3191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 printf '%s\n' "no" >&6; }
3193 fi
3194
3195
3196 test -n "$AWK" && break
3197 done
3198
3199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3200 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3201 set x ${MAKE-make}
3202 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3203 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3204 then :
3205 printf %s "(cached) " >&6
3206 else case e in #(
3207 e) cat >conftest.make <<\_ACEOF
3208 SHELL = /bin/sh
3209 all:
3210 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
3211 _ACEOF
3212 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3214 *@@@%%%=?*=@@@%%%*)
3215 eval ac_cv_prog_make_${ac_make}_set=yes;;
3216 *)
3217 eval ac_cv_prog_make_${ac_make}_set=no;;
3218 esac
3219 rm -f conftest.make ;;
3220 esac
3221 fi
3222 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3223 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 printf '%s\n' "yes" >&6; }
3225 SET_MAKE=
3226 else
3227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 printf '%s\n' "no" >&6; }
3229 SET_MAKE="MAKE=${MAKE-make}"
3230 fi
3231
3232 rm -rf .tst 2>/dev/null
3233 mkdir .tst 2>/dev/null
3234 if test -d .tst; then
3235 am__leading_dot=.
3236 else
3237 am__leading_dot=_
3238 fi
3239 rmdir .tst 2>/dev/null
3240
3241 AM_DEFAULT_VERBOSITY=1
3242 # Check whether --enable-silent-rules was given.
3243 if test ${enable_silent_rules+y}
3244 then :
3245 enableval=$enable_silent_rules;
3246 fi
3247
3248 am_make=${MAKE-make}
3249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3250 printf %s "checking whether $am_make supports nested variables... " >&6; }
3251 if test ${am_cv_make_support_nested_variables+y}
3252 then :
3253 printf %s "(cached) " >&6
3254 else case e in #(
3255 e) if printf '%s\n' 'TRUE=$(BAR$(V))
3256 BAR0=false
3257 BAR1=true
3258 V=1
3259 am__doit:
3260 @$(TRUE)
3261 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3262 am_cv_make_support_nested_variables=yes
3263 else
3264 am_cv_make_support_nested_variables=no
3265 fi ;;
3266 esac
3267 fi
3268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3269 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
3270 AM_BACKSLASH='\'
3271
3272 am__rm_f_notfound=
3273 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3274 then :
3275
3276 else case e in #(
3277 e) am__rm_f_notfound='""' ;;
3278 esac
3279 fi
3280
3281
3282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3283 printf %s "checking xargs -n works... " >&6; }
3284 if test ${am_cv_xargs_n_works+y}
3285 then :
3286 printf %s "(cached) " >&6
3287 else case e in #(
3288 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3289 3"
3290 then :
3291 am_cv_xargs_n_works=yes
3292 else case e in #(
3293 e) am_cv_xargs_n_works=no ;;
3294 esac
3295 fi ;;
3296 esac
3297 fi
3298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3299 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
3300 if test "$am_cv_xargs_n_works" = yes
3301 then :
3302 am__xargs_n='xargs -n'
3303 else case e in #(
3304 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3305 ;;
3306 esac
3307 fi
3308
3309 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3310 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3311 # is not polluted with repeated "-I."
3312 am__isrc=' -I$(srcdir)'
3313 # test to see if srcdir already configured
3314 if test -f $srcdir/config.status; then
3315 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3316 fi
3317 fi
3318
3319 # test whether we have cygpath
3320 if test -z "$CYGPATH_W"; then
3321 if (cygpath --version) >/dev/null 2>/dev/null; then
3322 CYGPATH_W='cygpath -w'
3323 else
3324 CYGPATH_W=echo
3325 fi
3326 fi
3327
3328
3329 # Define the identity of the package.
3330 PACKAGE='xrandr'
3331 VERSION='1.5.4'
3332
3333
3334 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3335
3336
3337 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
3338
3339 # Some tools Automake needs.
3340
3341 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3342
3343
3344 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3345
3346
3347 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3348
3349
3350 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3351
3352
3353 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3354
3355 # For better backward compatibility. To be removed once Automake 1.9.x
3356 # dies out for good. For more background, see:
3357 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3358 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3359 mkdir_p='$(MKDIR_P)'
3360
3361 # We need awk for the "check" target (and possibly the TAP driver). The
3362 # system "awk" is bad on some platforms.
3363 # Always define AMTAR for backward compatibility. Yes, it's still used
3364 # in the wild :-( We should find a proper way to deprecate it ...
3365 AMTAR='$${TAR-tar}'
3366
3367
3368 # We'll loop over all known methods to create a tar archive until one works.
3369 _am_tools='gnutar plaintar pax cpio none'
3370
3371 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3372 # There is notably a 21 bits limit for the UID and the GID. In fact,
3373 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3374 # and bug#13588).
3375 am_max_uid=2097151 # 2^21 - 1
3376 am_max_gid=$am_max_uid
3377 # The $UID and $GID variables are not portable, so we need to resort
3378 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3379 # below are definitely unexpected, so allow the users to see them
3380 # (that is, avoid stderr redirection).
3381 am_uid=`id -u || echo unknown`
3382 am_gid=`id -g || echo unknown`
3383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3384 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3385 if test x$am_uid = xunknown; then
3386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3387 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3388 elif test $am_uid -le $am_max_uid; then
3389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390 printf '%s\n' "yes" >&6; }
3391 else
3392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 printf '%s\n' "no" >&6; }
3394 _am_tools=none
3395 fi
3396 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3397 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3398 if test x$gm_gid = xunknown; then
3399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3400 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3401 elif test $am_gid -le $am_max_gid; then
3402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 printf '%s\n' "yes" >&6; }
3404 else
3405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 printf '%s\n' "no" >&6; }
3407 _am_tools=none
3408 fi
3409
3410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3411 printf %s "checking how to create a ustar tar archive... " >&6; }
3412
3413 # Go ahead even if we have the value already cached. We do so because we
3414 # need to set the values for the 'am__tar' and 'am__untar' variables.
3415 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3416
3417 for _am_tool in $_am_tools; do
3418 case $_am_tool in
3419 gnutar)
3420 for _am_tar in tar gnutar gtar; do
3421 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3422 ($_am_tar --version) >&5 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } && break
3426 done
3427 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3428 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3429 am__untar="$_am_tar -xf -"
3430 ;;
3431 plaintar)
3432 # Must skip GNU tar: if it does not support --format= it doesn't create
3433 # ustar tarball either.
3434 (tar --version) >/dev/null 2>&1 && continue
3435 am__tar='tar chf - "$$tardir"'
3436 am__tar_='tar chf - "$tardir"'
3437 am__untar='tar xf -'
3438 ;;
3439 pax)
3440 am__tar='pax -L -x ustar -w "$$tardir"'
3441 am__tar_='pax -L -x ustar -w "$tardir"'
3442 am__untar='pax -r'
3443 ;;
3444 cpio)
3445 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3446 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3447 am__untar='cpio -i -H ustar -d'
3448 ;;
3449 none)
3450 am__tar=false
3451 am__tar_=false
3452 am__untar=false
3453 ;;
3454 esac
3455
3456 # If the value was cached, stop now. We just wanted to have am__tar
3457 # and am__untar set.
3458 test -n "${am_cv_prog_tar_ustar}" && break
3459
3460 # tar/untar a dummy directory, and stop if the command works.
3461 rm -rf conftest.dir
3462 mkdir conftest.dir
3463 echo GrepMe > conftest.dir/file
3464 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3465 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }
3469 rm -rf conftest.dir
3470 if test -s conftest.tar; then
3471 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3472 ($am__untar <conftest.tar) >&5 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3477 (cat conftest.dir/file) >&5 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }
3481 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3482 fi
3483 done
3484 rm -rf conftest.dir
3485
3486 if test ${am_cv_prog_tar_ustar+y}
3487 then :
3488 printf %s "(cached) " >&6
3489 else case e in #(
3490 e) am_cv_prog_tar_ustar=$_am_tool ;;
3491 esac
3492 fi
3493
3494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3495 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
3496
3497
3498
3499
3500
3501 # Variables for tags utilities; see am/tags.am
3502 if test -z "$CTAGS"; then
3503 CTAGS=ctags
3504 fi
3505
3506 if test -z "$ETAGS"; then
3507 ETAGS=etags
3508 fi
3509
3510 if test -z "$CSCOPE"; then
3511 CSCOPE=cscope
3512 fi
3513
3514
3515
3516
3517
3518
3519
3520
3521 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545 DEPDIR="${am__leading_dot}deps"
3546
3547 ac_config_commands="$ac_config_commands depfiles"
3548
3549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3550 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3551 cat > confinc.mk << 'END'
3552 am__doit:
3553 @echo this is the am__doit target >confinc.out
3554 .PHONY: am__doit
3555 END
3556 am__include="#"
3557 am__quote=
3558 # BSD make does it like this.
3559 echo '.include "confinc.mk" # ignored' > confmf.BSD
3560 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3561 echo 'include confinc.mk # ignored' > confmf.GNU
3562 _am_result=no
3563 for s in GNU BSD; do
3564 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3565 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 case $?:`cat confinc.out 2>/dev/null` in #(
3570 '0:this is the am__doit target') :
3571 case $s in #(
3572 BSD) :
3573 am__include='.include' am__quote='"' ;; #(
3574 *) :
3575 am__include='include' am__quote='' ;;
3576 esac ;; #(
3577 *) :
3578 ;;
3579 esac
3580 if test "$am__include" != "#"; then
3581 _am_result="yes ($s style)"
3582 break
3583 fi
3584 done
3585 rm -f confinc.* confmf.*
3586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3587 printf '%s\n' "${_am_result}" >&6; }
3588
3589 # Check whether --enable-dependency-tracking was given.
3590 if test ${enable_dependency_tracking+y}
3591 then :
3592 enableval=$enable_dependency_tracking;
3593 fi
3594
3595 if test "x$enable_dependency_tracking" != xno; then
3596 am_depcomp="$ac_aux_dir/depcomp"
3597 AMDEPBACKSLASH='\'
3598 am__nodep='_no'
3599 fi
3600 if test "x$enable_dependency_tracking" != xno; then
3601 AMDEP_TRUE=
3602 AMDEP_FALSE='#'
3603 else
3604 AMDEP_TRUE='#'
3605 AMDEP_FALSE=
3606 fi
3607
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 printf %s "checking for $ac_word... " >&6; }
3619 if test ${ac_cv_prog_CC+y}
3620 then :
3621 printf %s "(cached) " >&6
3622 else case e in #(
3623 e) if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629 IFS=$as_save_IFS
3630 case $as_dir in #(((
3631 '') as_dir=./ ;;
3632 */) ;;
3633 *) as_dir=$as_dir/ ;;
3634 esac
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3638 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi ;;
3646 esac
3647 fi
3648 CC=$ac_cv_prog_CC
3649 if test -n "$CC"; then
3650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 printf '%s\n' "$CC" >&6; }
3652 else
3653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 printf '%s\n' "no" >&6; }
3655 fi
3656
3657
3658 fi
3659 if test -z "$ac_cv_prog_CC"; then
3660 ac_ct_CC=$CC
3661 # Extract the first word of "gcc", so it can be a program name with args.
3662 set dummy gcc; ac_word=$2
3663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 printf %s "checking for $ac_word... " >&6; }
3665 if test ${ac_cv_prog_ac_ct_CC+y}
3666 then :
3667 printf %s "(cached) " >&6
3668 else case e in #(
3669 e) if test -n "$ac_ct_CC"; then
3670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 case $as_dir in #(((
3677 '') as_dir=./ ;;
3678 */) ;;
3679 *) as_dir=$as_dir/ ;;
3680 esac
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_ac_ct_CC="gcc"
3684 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi ;;
3692 esac
3693 fi
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 printf '%s\n' "$ac_ct_CC" >&6; }
3698 else
3699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 printf '%s\n' "no" >&6; }
3701 fi
3702
3703 if test "x$ac_ct_CC" = x; then
3704 CC=""
3705 else
3706 case $cross_compiling:$ac_tool_warned in
3707 yes:)
3708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3711 esac
3712 CC=$ac_ct_CC
3713 fi
3714 else
3715 CC="$ac_cv_prog_CC"
3716 fi
3717
3718 if test -z "$CC"; then
3719 if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}cc; ac_word=$2
3722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 printf %s "checking for $ac_word... " >&6; }
3724 if test ${ac_cv_prog_CC+y}
3725 then :
3726 printf %s "(cached) " >&6
3727 else case e in #(
3728 e) if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 case $as_dir in #(((
3736 '') as_dir=./ ;;
3737 */) ;;
3738 *) as_dir=$as_dir/ ;;
3739 esac
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_CC="${ac_tool_prefix}cc"
3743 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746 done
3747 done
3748 IFS=$as_save_IFS
3749
3750 fi ;;
3751 esac
3752 fi
3753 CC=$ac_cv_prog_CC
3754 if test -n "$CC"; then
3755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3756 printf '%s\n' "$CC" >&6; }
3757 else
3758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 printf '%s\n' "no" >&6; }
3760 fi
3761
3762
3763 fi
3764 fi
3765 if test -z "$CC"; then
3766 # Extract the first word of "cc", so it can be a program name with args.
3767 set dummy cc; ac_word=$2
3768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 printf %s "checking for $ac_word... " >&6; }
3770 if test ${ac_cv_prog_CC+y}
3771 then :
3772 printf %s "(cached) " >&6
3773 else case e in #(
3774 e) if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 ac_prog_rejected=no
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781 IFS=$as_save_IFS
3782 case $as_dir in #(((
3783 '') as_dir=./ ;;
3784 */) ;;
3785 *) as_dir=$as_dir/ ;;
3786 esac
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3790 ac_prog_rejected=yes
3791 continue
3792 fi
3793 ac_cv_prog_CC="cc"
3794 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 if test $ac_prog_rejected = yes; then
3802 # We found a bogon in the path, so make sure we never use it.
3803 set dummy $ac_cv_prog_CC
3804 shift
3805 if test $# != 0; then
3806 # We chose a different compiler from the bogus one.
3807 # However, it has the same basename, so the bogon will be chosen
3808 # first if we set CC to just the basename; use the full file name.
3809 shift
3810 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3811 fi
3812 fi
3813 fi ;;
3814 esac
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 printf '%s\n' "$CC" >&6; }
3820 else
3821 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf '%s\n' "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$CC"; then
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in cl.exe
3830 do
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 printf %s "checking for $ac_word... " >&6; }
3835 if test ${ac_cv_prog_CC+y}
3836 then :
3837 printf %s "(cached) " >&6
3838 else case e in #(
3839 e) if test -n "$CC"; then
3840 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 case $as_dir in #(((
3847 '') as_dir=./ ;;
3848 */) ;;
3849 *) as_dir=$as_dir/ ;;
3850 esac
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3854 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi ;;
3862 esac
3863 fi
3864 CC=$ac_cv_prog_CC
3865 if test -n "$CC"; then
3866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3867 printf '%s\n' "$CC" >&6; }
3868 else
3869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 printf '%s\n' "no" >&6; }
3871 fi
3872
3873
3874 test -n "$CC" && break
3875 done
3876 fi
3877 if test -z "$CC"; then
3878 ac_ct_CC=$CC
3879 for ac_prog in cl.exe
3880 do
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 printf %s "checking for $ac_word... " >&6; }
3885 if test ${ac_cv_prog_ac_ct_CC+y}
3886 then :
3887 printf %s "(cached) " >&6
3888 else case e in #(
3889 e) if test -n "$ac_ct_CC"; then
3890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 case $as_dir in #(((
3897 '') as_dir=./ ;;
3898 */) ;;
3899 *) as_dir=$as_dir/ ;;
3900 esac
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_ac_ct_CC="$ac_prog"
3904 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907 done
3908 done
3909 IFS=$as_save_IFS
3910
3911 fi ;;
3912 esac
3913 fi
3914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3915 if test -n "$ac_ct_CC"; then
3916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3917 printf '%s\n' "$ac_ct_CC" >&6; }
3918 else
3919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 printf '%s\n' "no" >&6; }
3921 fi
3922
3923
3924 test -n "$ac_ct_CC" && break
3925 done
3926
3927 if test "x$ac_ct_CC" = x; then
3928 CC=""
3929 else
3930 case $cross_compiling:$ac_tool_warned in
3931 yes:)
3932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3933 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3934 ac_tool_warned=yes ;;
3935 esac
3936 CC=$ac_ct_CC
3937 fi
3938 fi
3939
3940 fi
3941 if test -z "$CC"; then
3942 if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3944 set dummy ${ac_tool_prefix}clang; ac_word=$2
3945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 printf %s "checking for $ac_word... " >&6; }
3947 if test ${ac_cv_prog_CC+y}
3948 then :
3949 printf %s "(cached) " >&6
3950 else case e in #(
3951 e) if test -n "$CC"; then
3952 ac_cv_prog_CC="$CC" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 case $as_dir in #(((
3959 '') as_dir=./ ;;
3960 */) ;;
3961 *) as_dir=$as_dir/ ;;
3962 esac
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_CC="${ac_tool_prefix}clang"
3966 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969 done
3970 done
3971 IFS=$as_save_IFS
3972
3973 fi ;;
3974 esac
3975 fi
3976 CC=$ac_cv_prog_CC
3977 if test -n "$CC"; then
3978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 printf '%s\n' "$CC" >&6; }
3980 else
3981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 printf '%s\n' "no" >&6; }
3983 fi
3984
3985
3986 fi
3987 if test -z "$ac_cv_prog_CC"; then
3988 ac_ct_CC=$CC
3989 # Extract the first word of "clang", so it can be a program name with args.
3990 set dummy clang; ac_word=$2
3991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 printf %s "checking for $ac_word... " >&6; }
3993 if test ${ac_cv_prog_ac_ct_CC+y}
3994 then :
3995 printf %s "(cached) " >&6
3996 else case e in #(
3997 e) if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 case $as_dir in #(((
4005 '') as_dir=./ ;;
4006 */) ;;
4007 *) as_dir=$as_dir/ ;;
4008 esac
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_ac_ct_CC="clang"
4012 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015 done
4016 done
4017 IFS=$as_save_IFS
4018
4019 fi ;;
4020 esac
4021 fi
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 printf '%s\n' "$ac_ct_CC" >&6; }
4026 else
4027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 printf '%s\n' "no" >&6; }
4029 fi
4030
4031 if test "x$ac_ct_CC" = x; then
4032 CC=""
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 CC=$ac_ct_CC
4041 fi
4042 else
4043 CC="$ac_cv_prog_CC"
4044 fi
4045
4046 fi
4047
4048
4049 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4050 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4051 as_fn_error $? "no acceptable C compiler found in \$PATH
4052 See 'config.log' for more details" "$LINENO" 5; }
4053
4054 # Provide some information about the compiler.
4055 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4056 set X $ac_compile
4057 ac_compiler=$2
4058 for ac_option in --version -v -V -qversion -version; do
4059 { { ac_try="$ac_compiler $ac_option >&5"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 printf '%s\n' "$ac_try_echo"; } >&5
4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4067 ac_status=$?
4068 if test -s conftest.err; then
4069 sed '10a\
4070 ... rest of stderr output deleted ...
4071 10q' conftest.err >conftest.er1
4072 cat conftest.er1 >&5
4073 fi
4074 rm -f conftest.er1 conftest.err
4075 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077 done
4078
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081
4082 int
4083 main (void)
4084 {
4085
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 ac_clean_files_save=$ac_clean_files
4091 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4092 # Try to create an executable without -o first, disregard a.out.
4093 # It will help us diagnose broken compilers, and finding out an intuition
4094 # of exeext.
4095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4096 printf %s "checking whether the C compiler works... " >&6; }
4097 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4098
4099 # The possible output files:
4100 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4101
4102 ac_rmfiles=
4103 for ac_file in $ac_files
4104 do
4105 case $ac_file in
4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4107 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4108 esac
4109 done
4110 rm -f $ac_rmfiles
4111
4112 if { { ac_try="$ac_link_default"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 printf '%s\n' "$ac_try_echo"; } >&5
4119 (eval "$ac_link_default") 2>&5
4120 ac_status=$?
4121 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }
4123 then :
4124 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4125 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4126 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4127 # so that the user can short-circuit this test for compilers unknown to
4128 # Autoconf.
4129 for ac_file in $ac_files ''
4130 do
4131 test -f "$ac_file" || continue
4132 case $ac_file in
4133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4134 ;;
4135 [ab].out )
4136 # We found the default executable, but exeext='' is most
4137 # certainly right.
4138 break;;
4139 *.* )
4140 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4141 then :; else
4142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4143 fi
4144 # We set ac_cv_exeext here because the later test for it is not
4145 # safe: cross compilers may not add the suffix if given an '-o'
4146 # argument, so we may need to know it at that point already.
4147 # Even if this section looks crufty: it has the advantage of
4148 # actually working.
4149 break;;
4150 * )
4151 break;;
4152 esac
4153 done
4154 test "$ac_cv_exeext" = no && ac_cv_exeext=
4155
4156 else case e in #(
4157 e) ac_file='' ;;
4158 esac
4159 fi
4160 if test -z "$ac_file"
4161 then :
4162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf '%s\n' "no" >&6; }
4164 printf '%s\n' "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4168 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4169 as_fn_error 77 "C compiler cannot create executables
4170 See 'config.log' for more details" "$LINENO" 5; }
4171 else case e in #(
4172 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4173 printf '%s\n' "yes" >&6; } ;;
4174 esac
4175 fi
4176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4177 printf %s "checking for C compiler default output file name... " >&6; }
4178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4179 printf '%s\n' "$ac_file" >&6; }
4180 ac_exeext=$ac_cv_exeext
4181
4182 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4183 ac_clean_files=$ac_clean_files_save
4184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4185 printf %s "checking for suffix of executables... " >&6; }
4186 if { { ac_try="$ac_link"
4187 case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190 esac
4191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4192 printf '%s\n' "$ac_try_echo"; } >&5
4193 (eval "$ac_link") 2>&5
4194 ac_status=$?
4195 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }
4197 then :
4198 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4199 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4200 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4201 # 'rm'.
4202 for ac_file in conftest.exe conftest conftest.*; do
4203 test -f "$ac_file" || continue
4204 case $ac_file in
4205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4207 break;;
4208 * ) break;;
4209 esac
4210 done
4211 else case e in #(
4212 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4213 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4214 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4215 See 'config.log' for more details" "$LINENO" 5; } ;;
4216 esac
4217 fi
4218 rm -f conftest conftest$ac_cv_exeext
4219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4220 printf '%s\n' "$ac_cv_exeext" >&6; }
4221
4222 rm -f conftest.$ac_ext
4223 EXEEXT=$ac_cv_exeext
4224 ac_exeext=$EXEEXT
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <stdio.h>
4228 int
4229 main (void)
4230 {
4231 FILE *f = fopen ("conftest.out", "w");
4232 if (!f)
4233 return 1;
4234 return ferror (f) || fclose (f) != 0;
4235
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 ac_clean_files="$ac_clean_files conftest.out"
4241 # Check that the compiler produces executables we can run. If not, either
4242 # the compiler is broken, or we cross compile.
4243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4244 printf %s "checking whether we are cross compiling... " >&6; }
4245 if test "$cross_compiling" != yes; then
4246 { { ac_try="$ac_link"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 printf '%s\n' "$ac_try_echo"; } >&5
4253 (eval "$ac_link") 2>&5
4254 ac_status=$?
4255 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }
4257 if { ac_try='./conftest$ac_cv_exeext'
4258 { { case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261 esac
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 printf '%s\n' "$ac_try_echo"; } >&5
4264 (eval "$ac_try") 2>&5
4265 ac_status=$?
4266 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267 test $ac_status = 0; }; }; then
4268 cross_compiling=no
4269 else
4270 if test "$cross_compiling" = maybe; then
4271 cross_compiling=yes
4272 else
4273 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4274 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4275 as_fn_error 77 "cannot run C compiled programs.
4276 If you meant to cross compile, use '--host'.
4277 See 'config.log' for more details" "$LINENO" 5; }
4278 fi
4279 fi
4280 fi
4281 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4282 printf '%s\n' "$cross_compiling" >&6; }
4283
4284 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4285 conftest.o conftest.obj conftest.out
4286 ac_clean_files=$ac_clean_files_save
4287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4288 printf %s "checking for suffix of object files... " >&6; }
4289 if test ${ac_cv_objext+y}
4290 then :
4291 printf %s "(cached) " >&6
4292 else case e in #(
4293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295
4296 int
4297 main (void)
4298 {
4299
4300 ;
4301 return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.o conftest.obj
4305 if { { ac_try="$ac_compile"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 printf '%s\n' "$ac_try_echo"; } >&5
4312 (eval "$ac_compile") 2>&5
4313 ac_status=$?
4314 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316 then :
4317 for ac_file in conftest.o conftest.obj conftest.*; do
4318 test -f "$ac_file" || continue;
4319 case $ac_file in
4320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4322 break;;
4323 esac
4324 done
4325 else case e in #(
4326 e) printf '%s\n' "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4330 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4331 as_fn_error $? "cannot compute suffix of object files: cannot compile
4332 See 'config.log' for more details" "$LINENO" 5; } ;;
4333 esac
4334 fi
4335 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4336 esac
4337 fi
4338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4339 printf '%s\n' "$ac_cv_objext" >&6; }
4340 OBJEXT=$ac_cv_objext
4341 ac_objext=$OBJEXT
4342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4343 printf %s "checking whether the compiler supports GNU C... " >&6; }
4344 if test ${ac_cv_c_compiler_gnu+y}
4345 then :
4346 printf %s "(cached) " >&6
4347 else case e in #(
4348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main (void)
4353 {
4354 #ifndef __GNUC__
4355 choke me
4356 #endif
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"
4363 then :
4364 ac_compiler_gnu=yes
4365 else case e in #(
4366 e) ac_compiler_gnu=no ;;
4367 esac
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4371 ;;
4372 esac
4373 fi
4374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4375 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378 if test $ac_compiler_gnu = yes; then
4379 GCC=yes
4380 else
4381 GCC=
4382 fi
4383 ac_test_CFLAGS=${CFLAGS+y}
4384 ac_save_CFLAGS=$CFLAGS
4385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4386 printf %s "checking whether $CC accepts -g... " >&6; }
4387 if test ${ac_cv_prog_cc_g+y}
4388 then :
4389 printf %s "(cached) " >&6
4390 else case e in #(
4391 e) ac_save_c_werror_flag=$ac_c_werror_flag
4392 ac_c_werror_flag=yes
4393 ac_cv_prog_cc_g=no
4394 CFLAGS="-g"
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397
4398 int
4399 main (void)
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"
4407 then :
4408 ac_cv_prog_cc_g=yes
4409 else case e in #(
4410 e) CFLAGS=""
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main (void)
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_compile "$LINENO"
4423 then :
4424
4425 else case e in #(
4426 e) ac_c_werror_flag=$ac_save_c_werror_flag
4427 CFLAGS="-g"
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430
4431 int
4432 main (void)
4433 {
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 if ac_fn_c_try_compile "$LINENO"
4440 then :
4441 ac_cv_prog_cc_g=yes
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4444 esac
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4447 esac
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4450 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4451 esac
4452 fi
4453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4454 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
4455 if test $ac_test_CFLAGS; then
4456 CFLAGS=$ac_save_CFLAGS
4457 elif test $ac_cv_prog_cc_g = yes; then
4458 if test "$GCC" = yes; then
4459 CFLAGS="-g -O2"
4460 else
4461 CFLAGS="-g"
4462 fi
4463 else
4464 if test "$GCC" = yes; then
4465 CFLAGS="-O2"
4466 else
4467 CFLAGS=
4468 fi
4469 fi
4470 ac_prog_cc_stdc=no
4471 if test x$ac_prog_cc_stdc = xno
4472 then :
4473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
4474 printf %s "checking for $CC option to enable C23 features... " >&6; }
4475 if test ${ac_cv_prog_cc_c23+y}
4476 then :
4477 printf %s "(cached) " >&6
4478 else case e in #(
4479 e) ac_cv_prog_cc_c23=no
4480 ac_save_CC=$CC
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 $ac_c_conftest_c23_program
4484 _ACEOF
4485 for ac_arg in '' -std=gnu23
4486 do
4487 CC="$ac_save_CC $ac_arg"
4488 if ac_fn_c_try_compile "$LINENO"
4489 then :
4490 ac_cv_prog_cc_c23=$ac_arg
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.beam
4493 test "x$ac_cv_prog_cc_c23" != "xno" && break
4494 done
4495 rm -f conftest.$ac_ext
4496 CC=$ac_save_CC ;;
4497 esac
4498 fi
4499
4500 if test "x$ac_cv_prog_cc_c23" = xno
4501 then :
4502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4503 printf '%s\n' "unsupported" >&6; }
4504 else case e in #(
4505 e) if test "x$ac_cv_prog_cc_c23" = x
4506 then :
4507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4508 printf '%s\n' "none needed" >&6; }
4509 else case e in #(
4510 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
4511 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
4512 CC="$CC $ac_cv_prog_cc_c23" ;;
4513 esac
4514 fi
4515 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
4516 ac_prog_cc_stdc=c23 ;;
4517 esac
4518 fi
4519 fi
4520 if test x$ac_prog_cc_stdc = xno
4521 then :
4522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4523 printf %s "checking for $CC option to enable C11 features... " >&6; }
4524 if test ${ac_cv_prog_cc_c11+y}
4525 then :
4526 printf %s "(cached) " >&6
4527 else case e in #(
4528 e) ac_cv_prog_cc_c11=no
4529 ac_save_CC=$CC
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 $ac_c_conftest_c11_program
4533 _ACEOF
4534 for ac_arg in '' -std=gnu11 -std:c11
4535 do
4536 CC="$ac_save_CC $ac_arg"
4537 if ac_fn_c_try_compile "$LINENO"
4538 then :
4539 ac_cv_prog_cc_c11=$ac_arg
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext conftest.beam
4542 test "x$ac_cv_prog_cc_c11" != "xno" && break
4543 done
4544 rm -f conftest.$ac_ext
4545 CC=$ac_save_CC ;;
4546 esac
4547 fi
4548
4549 if test "x$ac_cv_prog_cc_c11" = xno
4550 then :
4551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4552 printf '%s\n' "unsupported" >&6; }
4553 else case e in #(
4554 e) if test "x$ac_cv_prog_cc_c11" = x
4555 then :
4556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4557 printf '%s\n' "none needed" >&6; }
4558 else case e in #(
4559 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4560 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
4561 CC="$CC $ac_cv_prog_cc_c11" ;;
4562 esac
4563 fi
4564 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4565 ac_prog_cc_stdc=c11 ;;
4566 esac
4567 fi
4568 fi
4569 if test x$ac_prog_cc_stdc = xno
4570 then :
4571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4572 printf %s "checking for $CC option to enable C99 features... " >&6; }
4573 if test ${ac_cv_prog_cc_c99+y}
4574 then :
4575 printf %s "(cached) " >&6
4576 else case e in #(
4577 e) ac_cv_prog_cc_c99=no
4578 ac_save_CC=$CC
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 $ac_c_conftest_c99_program
4582 _ACEOF
4583 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4584 do
4585 CC="$ac_save_CC $ac_arg"
4586 if ac_fn_c_try_compile "$LINENO"
4587 then :
4588 ac_cv_prog_cc_c99=$ac_arg
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.beam
4591 test "x$ac_cv_prog_cc_c99" != "xno" && break
4592 done
4593 rm -f conftest.$ac_ext
4594 CC=$ac_save_CC ;;
4595 esac
4596 fi
4597
4598 if test "x$ac_cv_prog_cc_c99" = xno
4599 then :
4600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4601 printf '%s\n' "unsupported" >&6; }
4602 else case e in #(
4603 e) if test "x$ac_cv_prog_cc_c99" = x
4604 then :
4605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606 printf '%s\n' "none needed" >&6; }
4607 else case e in #(
4608 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4609 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
4610 CC="$CC $ac_cv_prog_cc_c99" ;;
4611 esac
4612 fi
4613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4614 ac_prog_cc_stdc=c99 ;;
4615 esac
4616 fi
4617 fi
4618 if test x$ac_prog_cc_stdc = xno
4619 then :
4620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4621 printf %s "checking for $CC option to enable C89 features... " >&6; }
4622 if test ${ac_cv_prog_cc_c89+y}
4623 then :
4624 printf %s "(cached) " >&6
4625 else case e in #(
4626 e) ac_cv_prog_cc_c89=no
4627 ac_save_CC=$CC
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 $ac_c_conftest_c89_program
4631 _ACEOF
4632 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4633 do
4634 CC="$ac_save_CC $ac_arg"
4635 if ac_fn_c_try_compile "$LINENO"
4636 then :
4637 ac_cv_prog_cc_c89=$ac_arg
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam
4640 test "x$ac_cv_prog_cc_c89" != "xno" && break
4641 done
4642 rm -f conftest.$ac_ext
4643 CC=$ac_save_CC ;;
4644 esac
4645 fi
4646
4647 if test "x$ac_cv_prog_cc_c89" = xno
4648 then :
4649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4650 printf '%s\n' "unsupported" >&6; }
4651 else case e in #(
4652 e) if test "x$ac_cv_prog_cc_c89" = x
4653 then :
4654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 printf '%s\n' "none needed" >&6; }
4656 else case e in #(
4657 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4658 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
4659 CC="$CC $ac_cv_prog_cc_c89" ;;
4660 esac
4661 fi
4662 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4663 ac_prog_cc_stdc=c89 ;;
4664 esac
4665 fi
4666 fi
4667
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4681 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4682 if test ${am_cv_prog_cc_c_o+y}
4683 then :
4684 printf %s "(cached) " >&6
4685 else case e in #(
4686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688
4689 int
4690 main (void)
4691 {
4692
4693 ;
4694 return 0;
4695 }
4696 _ACEOF
4697 # Make sure it works both with $CC and with simple cc.
4698 # Following AC_PROG_CC_C_O, we do the test twice because some
4699 # compilers refuse to overwrite an existing .o file with -o,
4700 # though they will create one.
4701 am_cv_prog_cc_c_o=yes
4702 for am_i in 1 2; do
4703 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4704 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } \
4708 && test -f conftest2.$ac_objext; then
4709 : OK
4710 else
4711 am_cv_prog_cc_c_o=no
4712 break
4713 fi
4714 done
4715 # aligned with autoconf, so not including core; see bug#72225.
4716 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4717 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4718 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4719 unset am_i ;;
4720 esac
4721 fi
4722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4723 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
4724 if test "$am_cv_prog_cc_c_o" != yes; then
4725 # Losing compiler, so override with the script.
4726 # FIXME: It is wrong to rewrite CC.
4727 # But if we don't then we get into trouble of one sort or another.
4728 # A longer-term fix would be to have automake use am__CC in this case,
4729 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4730 CC="$am_aux_dir/compile $CC"
4731 fi
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738
4739 depcc="$CC" am_compiler_list=
4740
4741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4742 printf %s "checking dependency style of $depcc... " >&6; }
4743 if test ${am_cv_CC_dependencies_compiler_type+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else case e in #(
4747 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4748 # We make a subdir and do the tests there. Otherwise we can end up
4749 # making bogus files that we don't know about and never remove. For
4750 # instance it was reported that on HP-UX the gcc test will end up
4751 # making a dummy file named 'D' -- because '-MD' means "put the output
4752 # in D".
4753 rm -rf conftest.dir
4754 mkdir conftest.dir
4755 # Copy depcomp to subdir because otherwise we won't find it if we're
4756 # using a relative directory.
4757 cp "$am_depcomp" conftest.dir
4758 cd conftest.dir
4759 # We will build objects and dependencies in a subdirectory because
4760 # it helps to detect inapplicable dependency modes. For instance
4761 # both Tru64's cc and ICC support -MD to output dependencies as a
4762 # side effect of compilation, but ICC will put the dependencies in
4763 # the current directory while Tru64 will put them in the object
4764 # directory.
4765 mkdir sub
4766
4767 am_cv_CC_dependencies_compiler_type=none
4768 if test "$am_compiler_list" = ""; then
4769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4770 fi
4771 am__universal=false
4772 case " $depcc " in #(
4773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4774 esac
4775
4776 for depmode in $am_compiler_list; do
4777 # Setup a source with many dependencies, because some compilers
4778 # like to wrap large dependency lists on column 80 (with \), and
4779 # we should not choose a depcomp mode which is confused by this.
4780 #
4781 # We need to recreate these files for each test, as the compiler may
4782 # overwrite some of them when testing with obscure command lines.
4783 # This happens at least with the AIX C compiler.
4784 : > sub/conftest.c
4785 for i in 1 2 3 4 5 6; do
4786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4788 # Solaris 10 /bin/sh.
4789 echo '/* dummy */' > sub/conftst$i.h
4790 done
4791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4792
4793 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4794 # mode. It turns out that the SunPro C++ compiler does not properly
4795 # handle '-M -o', and we need to detect this. Also, some Intel
4796 # versions had trouble with output in subdirs.
4797 am__obj=sub/conftest.${OBJEXT-o}
4798 am__minus_obj="-o $am__obj"
4799 case $depmode in
4800 gcc)
4801 # This depmode causes a compiler race in universal mode.
4802 test "$am__universal" = false || continue
4803 ;;
4804 nosideeffect)
4805 # After this tag, mechanisms are not by side-effect, so they'll
4806 # only be used when explicitly requested.
4807 if test "x$enable_dependency_tracking" = xyes; then
4808 continue
4809 else
4810 break
4811 fi
4812 ;;
4813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4814 # This compiler won't grok '-c -o', but also, the minuso test has
4815 # not run yet. These depmodes are late enough in the game, and
4816 # so weak that their functioning should not be impacted.
4817 am__obj=conftest.${OBJEXT-o}
4818 am__minus_obj=
4819 ;;
4820 none) break ;;
4821 esac
4822 if depmode=$depmode \
4823 source=sub/conftest.c object=$am__obj \
4824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4826 >/dev/null 2>conftest.err &&
4827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4831 # icc doesn't choke on unknown options, it will just issue warnings
4832 # or remarks (even with -Werror). So we grep stderr for any message
4833 # that says an option was ignored or not supported.
4834 # When given -MP, icc 7.0 and 7.1 complain thus:
4835 # icc: Command line warning: ignoring option '-M'; no argument required
4836 # The diagnosis changed in icc 8.0:
4837 # icc: Command line remark: option '-MP' not supported
4838 if (grep 'ignoring option' conftest.err ||
4839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4840 am_cv_CC_dependencies_compiler_type=$depmode
4841 break
4842 fi
4843 fi
4844 done
4845
4846 cd ..
4847 rm -rf conftest.dir
4848 else
4849 am_cv_CC_dependencies_compiler_type=none
4850 fi
4851 ;;
4852 esac
4853 fi
4854 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4855 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
4856 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4857
4858 if
4859 test "x$enable_dependency_tracking" != xno \
4860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4861 am__fastdepCC_TRUE=
4862 am__fastdepCC_FALSE='#'
4863 else
4864 am__fastdepCC_TRUE='#'
4865 am__fastdepCC_FALSE=
4866 fi
4867
4868
4869
4870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
4871 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
4872 if test ${ac_cv_c_undeclared_builtin_options+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else case e in #(
4876 e) ac_save_CFLAGS=$CFLAGS
4877 ac_cv_c_undeclared_builtin_options='cannot detect'
4878 for ac_arg in '' -fno-builtin; do
4879 CFLAGS="$ac_save_CFLAGS $ac_arg"
4880 # This test program should *not* compile successfully.
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883
4884 int
4885 main (void)
4886 {
4887 (void) strchr;
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"
4893 then :
4894
4895 else case e in #(
4896 e) # This test program should compile successfully.
4897 # No library function is consistently available on
4898 # freestanding implementations, so test against a dummy
4899 # declaration. Include always-available headers on the
4900 # off chance that they somehow elicit warnings.
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 #include <float.h>
4904 #include <limits.h>
4905 #include <stdarg.h>
4906 #include <stddef.h>
4907 extern void ac_decl (int, char *);
4908
4909 int
4910 main (void)
4911 {
4912 (void) ac_decl (0, (char *) 0);
4913 (void) ac_decl;
4914
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"
4920 then :
4921 if test x"$ac_arg" = x
4922 then :
4923 ac_cv_c_undeclared_builtin_options='none needed'
4924 else case e in #(
4925 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4926 esac
4927 fi
4928 break
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4931 esac
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4934 done
4935 CFLAGS=$ac_save_CFLAGS
4936 ;;
4937 esac
4938 fi
4939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4940 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
4941 case $ac_cv_c_undeclared_builtin_options in #(
4942 'cannot detect') :
4943 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4944 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4945 as_fn_error $? "cannot make $CC report undeclared builtins
4946 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4947 'none needed') :
4948 ac_c_undeclared_builtin_options='' ;; #(
4949 *) :
4950 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4951 esac
4952
4953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
4954 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
4955 if test ${ac_cv_c_future_darwin_options+y}
4956 then :
4957 printf %s "(cached) " >&6
4958 else case e in #(
4959 e) ac_compile_saved="$ac_compile"
4960 ac_compile="$ac_compile -Werror=unguarded-availability-new"
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #if ! (defined __APPLE__ && defined __MACH__)
4964 #error "-Werror=unguarded-availability-new not needed here"
4965 #endif
4966
4967 int
4968 main (void)
4969 {
4970
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_compile "$LINENO"
4976 then :
4977 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
4978 else case e in #(
4979 e) ac_cv_c_future_darwin_options='none needed' ;;
4980 esac
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4983 ac_compile="$ac_compile_saved"
4984 ;;
4985 esac
4986 fi
4987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
4988 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
4989 case $ac_cv_c_future_darwin_options in #(
4990 'none needed') :
4991 ac_c_future_darwin_options='' ;; #(
4992 *) :
4993 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
4994 esac
4995
4996 ac_header= ac_cache=
4997 for ac_item in $ac_header_c_list
4998 do
4999 if test $ac_cache; then
5000 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5001 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5002 printf '%s\n' "#define $ac_item 1" >> confdefs.h
5003 fi
5004 ac_header= ac_cache=
5005 elif test $ac_header; then
5006 ac_cache=$ac_item
5007 else
5008 ac_header=$ac_item
5009 fi
5010 done
5011
5012
5013
5014
5015
5016
5017
5018
5019 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5020 then :
5021
5022 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
5023
5024 fi
5025
5026
5027
5028
5029 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5030 if test "x$ac_cv_have_decl___clang__" = xyes
5031 then :
5032 CLANGCC="yes"
5033 else case e in #(
5034 e) CLANGCC="no" ;;
5035 esac
5036 fi
5037 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5038 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5039 then :
5040 INTELCC="yes"
5041 else case e in #(
5042 e) INTELCC="no" ;;
5043 esac
5044 fi
5045 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5046 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5047 then :
5048 SUNCC="yes"
5049 else case e in #(
5050 e) SUNCC="no" ;;
5051 esac
5052 fi
5053
5054
5055
5056
5057
5058
5059
5060
5061 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5062 if test -n "$ac_tool_prefix"; then
5063 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5064 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 printf %s "checking for $ac_word... " >&6; }
5067 if test ${ac_cv_path_PKG_CONFIG+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else case e in #(
5071 e) case $PKG_CONFIG in
5072 [\\/]* | ?:[\\/]*)
5073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5074 ;;
5075 *)
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 case $as_dir in #(((
5081 '') as_dir=./ ;;
5082 */) ;;
5083 *) as_dir=$as_dir/ ;;
5084 esac
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5087 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5088 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 ;;
5096 esac ;;
5097 esac
5098 fi
5099 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5100 if test -n "$PKG_CONFIG"; then
5101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5102 printf '%s\n' "$PKG_CONFIG" >&6; }
5103 else
5104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 printf '%s\n' "no" >&6; }
5106 fi
5107
5108
5109 fi
5110 if test -z "$ac_cv_path_PKG_CONFIG"; then
5111 ac_pt_PKG_CONFIG=$PKG_CONFIG
5112 # Extract the first word of "pkg-config", so it can be a program name with args.
5113 set dummy pkg-config; ac_word=$2
5114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 printf %s "checking for $ac_word... " >&6; }
5116 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5117 then :
5118 printf %s "(cached) " >&6
5119 else case e in #(
5120 e) case $ac_pt_PKG_CONFIG in
5121 [\\/]* | ?:[\\/]*)
5122 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5123 ;;
5124 *)
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128 IFS=$as_save_IFS
5129 case $as_dir in #(((
5130 '') as_dir=./ ;;
5131 */) ;;
5132 *) as_dir=$as_dir/ ;;
5133 esac
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5136 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5137 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 ;;
5145 esac ;;
5146 esac
5147 fi
5148 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5149 if test -n "$ac_pt_PKG_CONFIG"; then
5150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5151 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5152 else
5153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 printf '%s\n' "no" >&6; }
5155 fi
5156
5157 if test "x$ac_pt_PKG_CONFIG" = x; then
5158 PKG_CONFIG=""
5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161 yes:)
5162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164 ac_tool_warned=yes ;;
5165 esac
5166 PKG_CONFIG=$ac_pt_PKG_CONFIG
5167 fi
5168 else
5169 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5170 fi
5171
5172 fi
5173 if test -n "$PKG_CONFIG"; then
5174 _pkg_min_version=0.9.0
5175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5176 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5177 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5179 printf '%s\n' "yes" >&6; }
5180 else
5181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf '%s\n' "no" >&6; }
5183 PKG_CONFIG=""
5184 fi
5185 fi
5186
5187
5188 # Make sure we can run config.sub.
5189 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5190 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5191
5192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5193 printf %s "checking build system type... " >&6; }
5194 if test ${ac_cv_build+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else case e in #(
5198 e) ac_build_alias=$build_alias
5199 test "x$ac_build_alias" = x &&
5200 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5201 test "x$ac_build_alias" = x &&
5202 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5203 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5204 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5205 ;;
5206 esac
5207 fi
5208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5209 printf '%s\n' "$ac_cv_build" >&6; }
5210 case $ac_cv_build in
5211 *-*-*) ;;
5212 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213 esac
5214 build=$ac_cv_build
5215 ac_save_IFS=$IFS; IFS='-'
5216 set x $ac_cv_build
5217 shift
5218 build_cpu=$1
5219 build_vendor=$2
5220 shift; shift
5221 # Remember, the first character of IFS is used to create $*,
5222 # except with old shells:
5223 build_os=$*
5224 IFS=$ac_save_IFS
5225 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5226
5227
5228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5229 printf %s "checking host system type... " >&6; }
5230 if test ${ac_cv_host+y}
5231 then :
5232 printf %s "(cached) " >&6
5233 else case e in #(
5234 e) if test "x$host_alias" = x; then
5235 ac_cv_host=$ac_cv_build
5236 else
5237 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5238 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5239 fi
5240 ;;
5241 esac
5242 fi
5243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5244 printf '%s\n' "$ac_cv_host" >&6; }
5245 case $ac_cv_host in
5246 *-*-*) ;;
5247 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5248 esac
5249 host=$ac_cv_host
5250 ac_save_IFS=$IFS; IFS='-'
5251 set x $ac_cv_host
5252 shift
5253 host_cpu=$1
5254 host_vendor=$2
5255 shift; shift
5256 # Remember, the first character of IFS is used to create $*,
5257 # except with old shells:
5258 host_os=$*
5259 IFS=$ac_save_IFS
5260 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5261
5262
5263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5264 printf %s "checking for a sed that does not truncate output... " >&6; }
5265 if test ${ac_cv_path_SED+y}
5266 then :
5267 printf %s "(cached) " >&6
5268 else case e in #(
5269 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5270 for ac_i in 1 2 3 4 5 6 7; do
5271 ac_script="$ac_script$as_nl$ac_script"
5272 done
5273 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5274 { ac_script=; unset ac_script;}
5275 if test -z "$SED"; then
5276 ac_path_SED_found=false
5277 # Loop through the user's path and test for each of PROGNAME-LIST
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 case $as_dir in #(((
5283 '') as_dir=./ ;;
5284 */) ;;
5285 *) as_dir=$as_dir/ ;;
5286 esac
5287 for ac_prog in sed gsed
5288 do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5291 as_fn_executable_p "$ac_path_SED" || continue
5292 # Check for GNU ac_path_SED and select it if it is found.
5293 # Check for GNU $ac_path_SED
5294 case `"$ac_path_SED" --version 2>&1` in #(
5295 *GNU*)
5296 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5297 #(
5298 *)
5299 ac_count=0
5300 printf %s 0123456789 >"conftest.in"
5301 while :
5302 do
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 printf '%s\n' '' >> "conftest.nl"
5307 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 as_fn_arith $ac_count + 1 && ac_count=$as_val
5310 if test $ac_count -gt ${ac_path_SED_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_SED="$ac_path_SED"
5313 ac_path_SED_max=$ac_count
5314 fi
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319 esac
5320
5321 $ac_path_SED_found && break 3
5322 done
5323 done
5324 done
5325 IFS=$as_save_IFS
5326 if test -z "$ac_cv_path_SED"; then
5327 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5328 fi
5329 else
5330 ac_cv_path_SED=$SED
5331 fi
5332 ;;
5333 esac
5334 fi
5335 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5336 printf '%s\n' "$ac_cv_path_SED" >&6; }
5337 SED="$ac_cv_path_SED"
5338 rm -f conftest.sed
5339
5340
5341
5342
5343
5344
5345 # Check whether --enable-selective-werror was given.
5346 if test ${enable_selective_werror+y}
5347 then :
5348 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5349 else case e in #(
5350 e) SELECTIVE_WERROR=yes ;;
5351 esac
5352 fi
5353
5354
5355
5356
5357
5358 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5359 if test "x$SUNCC" = "xyes"; then
5360 BASE_CFLAGS="-v"
5361 else
5362 BASE_CFLAGS=""
5363 fi
5364
5365 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 xorg_testset_save_CFLAGS="$CFLAGS"
5380
5381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5386 then :
5387 printf %s "(cached) " >&6
5388 else case e in #(
5389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 int i;
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"
5394 then :
5395 xorg_cv_cc_flag_unknown_warning_option=yes
5396 else case e in #(
5397 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5398 esac
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5401 esac
5402 fi
5403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406 CFLAGS="$xorg_testset_save_CFLAGS"
5407 fi
5408
5409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412 fi
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else case e in #(
5420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 int i;
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"
5425 then :
5426 xorg_cv_cc_flag_unused_command_line_argument=yes
5427 else case e in #(
5428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5429 esac
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5432 esac
5433 fi
5434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 found="no"
5441
5442 if test $found = "no" ; then
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 fi
5446
5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449 fi
5450
5451 CFLAGS="$CFLAGS -Wall"
5452
5453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5454 printf %s "checking if $CC supports -Wall... " >&6; }
5455 cacheid=xorg_cv_cc_flag__Wall
5456 if eval test \${$cacheid+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else case e in #(
5460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 int i;
5463 int
5464 main (void)
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"
5472 then :
5473 eval $cacheid=yes
5474 else case e in #(
5475 e) eval $cacheid=no ;;
5476 esac
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5479 conftest$ac_exeext conftest.$ac_ext ;;
5480 esac
5481 fi
5482
5483
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485
5486 eval supported=\$$cacheid
5487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5488 printf '%s\n' "$supported" >&6; }
5489 if test "$supported" = "yes" ; then
5490 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5491 found="yes"
5492 fi
5493 fi
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 xorg_testset_save_CFLAGS="$CFLAGS"
5510
5511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5516 then :
5517 printf %s "(cached) " >&6
5518 else case e in #(
5519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"
5524 then :
5525 xorg_cv_cc_flag_unknown_warning_option=yes
5526 else case e in #(
5527 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5528 esac
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5531 esac
5532 fi
5533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5534 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5536 CFLAGS="$xorg_testset_save_CFLAGS"
5537 fi
5538
5539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5542 fi
5543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5547 then :
5548 printf %s "(cached) " >&6
5549 else case e in #(
5550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 int i;
5553 _ACEOF
5554 if ac_fn_c_try_compile "$LINENO"
5555 then :
5556 xorg_cv_cc_flag_unused_command_line_argument=yes
5557 else case e in #(
5558 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5559 esac
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5562 esac
5563 fi
5564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5565 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5567 CFLAGS="$xorg_testset_save_CFLAGS"
5568 fi
5569
5570 found="no"
5571
5572 if test $found = "no" ; then
5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5575 fi
5576
5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5579 fi
5580
5581 CFLAGS="$CFLAGS -Wpointer-arith"
5582
5583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5584 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5585 cacheid=xorg_cv_cc_flag__Wpointer_arith
5586 if eval test \${$cacheid+y}
5587 then :
5588 printf %s "(cached) " >&6
5589 else case e in #(
5590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 int i;
5593 int
5594 main (void)
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_link "$LINENO"
5602 then :
5603 eval $cacheid=yes
5604 else case e in #(
5605 e) eval $cacheid=no ;;
5606 esac
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5609 conftest$ac_exeext conftest.$ac_ext ;;
5610 esac
5611 fi
5612
5613
5614 CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616 eval supported=\$$cacheid
5617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618 printf '%s\n' "$supported" >&6; }
5619 if test "$supported" = "yes" ; then
5620 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5621 found="yes"
5622 fi
5623 fi
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 xorg_testset_save_CFLAGS="$CFLAGS"
5640
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5645 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else case e in #(
5649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"
5654 then :
5655 xorg_cv_cc_flag_unknown_warning_option=yes
5656 else case e in #(
5657 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5658 esac
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5661 esac
5662 fi
5663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5664 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5666 CFLAGS="$xorg_testset_save_CFLAGS"
5667 fi
5668
5669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672 fi
5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5674 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5675 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5676 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5677 then :
5678 printf %s "(cached) " >&6
5679 else case e in #(
5680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 int i;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"
5685 then :
5686 xorg_cv_cc_flag_unused_command_line_argument=yes
5687 else case e in #(
5688 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5689 esac
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5692 esac
5693 fi
5694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5695 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5697 CFLAGS="$xorg_testset_save_CFLAGS"
5698 fi
5699
5700 found="no"
5701
5702 if test $found = "no" ; then
5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5705 fi
5706
5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709 fi
5710
5711 CFLAGS="$CFLAGS -Wmissing-declarations"
5712
5713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5714 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5715 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5716 if eval test \${$cacheid+y}
5717 then :
5718 printf %s "(cached) " >&6
5719 else case e in #(
5720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int i;
5723 int
5724 main (void)
5725 {
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_link "$LINENO"
5732 then :
5733 eval $cacheid=yes
5734 else case e in #(
5735 e) eval $cacheid=no ;;
5736 esac
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5739 conftest$ac_exeext conftest.$ac_ext ;;
5740 esac
5741 fi
5742
5743
5744 CFLAGS="$xorg_testset_save_CFLAGS"
5745
5746 eval supported=\$$cacheid
5747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5748 printf '%s\n' "$supported" >&6; }
5749 if test "$supported" = "yes" ; then
5750 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5751 found="yes"
5752 fi
5753 fi
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 xorg_testset_save_CFLAGS="$CFLAGS"
5770
5771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else case e in #(
5779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 int i;
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"
5784 then :
5785 xorg_cv_cc_flag_unknown_warning_option=yes
5786 else case e in #(
5787 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5788 esac
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5791 esac
5792 fi
5793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5794 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5796 CFLAGS="$xorg_testset_save_CFLAGS"
5797 fi
5798
5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802 fi
5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5805 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5806 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5807 then :
5808 printf %s "(cached) " >&6
5809 else case e in #(
5810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 int i;
5813 _ACEOF
5814 if ac_fn_c_try_compile "$LINENO"
5815 then :
5816 xorg_cv_cc_flag_unused_command_line_argument=yes
5817 else case e in #(
5818 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5819 esac
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5822 esac
5823 fi
5824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5825 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5828 fi
5829
5830 found="no"
5831
5832 if test $found = "no" ; then
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835 fi
5836
5837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5839 fi
5840
5841 CFLAGS="$CFLAGS -Wformat=2"
5842
5843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5844 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5845 cacheid=xorg_cv_cc_flag__Wformat_2
5846 if eval test \${$cacheid+y}
5847 then :
5848 printf %s "(cached) " >&6
5849 else case e in #(
5850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 int i;
5853 int
5854 main (void)
5855 {
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 if ac_fn_c_try_link "$LINENO"
5862 then :
5863 eval $cacheid=yes
5864 else case e in #(
5865 e) eval $cacheid=no ;;
5866 esac
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5869 conftest$ac_exeext conftest.$ac_ext ;;
5870 esac
5871 fi
5872
5873
5874 CFLAGS="$xorg_testset_save_CFLAGS"
5875
5876 eval supported=\$$cacheid
5877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5878 printf '%s\n' "$supported" >&6; }
5879 if test "$supported" = "yes" ; then
5880 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5881 found="yes"
5882 fi
5883 fi
5884
5885 if test $found = "no" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889
5890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892 fi
5893
5894 CFLAGS="$CFLAGS -Wformat"
5895
5896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5897 printf %s "checking if $CC supports -Wformat... " >&6; }
5898 cacheid=xorg_cv_cc_flag__Wformat
5899 if eval test \${$cacheid+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else case e in #(
5903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 int
5907 main (void)
5908 {
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_link "$LINENO"
5915 then :
5916 eval $cacheid=yes
5917 else case e in #(
5918 e) eval $cacheid=no ;;
5919 esac
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5922 conftest$ac_exeext conftest.$ac_ext ;;
5923 esac
5924 fi
5925
5926
5927 CFLAGS="$xorg_testset_save_CFLAGS"
5928
5929 eval supported=\$$cacheid
5930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5931 printf '%s\n' "$supported" >&6; }
5932 if test "$supported" = "yes" ; then
5933 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5934 found="yes"
5935 fi
5936 fi
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 xorg_testset_save_CFLAGS="$CFLAGS"
5955
5956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5961 then :
5962 printf %s "(cached) " >&6
5963 else case e in #(
5964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int i;
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"
5969 then :
5970 xorg_cv_cc_flag_unknown_warning_option=yes
5971 else case e in #(
5972 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5973 esac
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5976 esac
5977 fi
5978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5979 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5981 CFLAGS="$xorg_testset_save_CFLAGS"
5982 fi
5983
5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 fi
5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5992 then :
5993 printf %s "(cached) " >&6
5994 else case e in #(
5995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 int i;
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"
6000 then :
6001 xorg_cv_cc_flag_unused_command_line_argument=yes
6002 else case e in #(
6003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6004 esac
6005 fi
6006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6007 esac
6008 fi
6009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012 CFLAGS="$xorg_testset_save_CFLAGS"
6013 fi
6014
6015 found="no"
6016
6017 if test $found = "no" ; then
6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 fi
6021
6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 fi
6025
6026 CFLAGS="$CFLAGS -Wstrict-prototypes"
6027
6028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6029 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6030 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6031 if eval test \${$cacheid+y}
6032 then :
6033 printf %s "(cached) " >&6
6034 else case e in #(
6035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 int i;
6038 int
6039 main (void)
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"
6047 then :
6048 eval $cacheid=yes
6049 else case e in #(
6050 e) eval $cacheid=no ;;
6051 esac
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6054 conftest$ac_exeext conftest.$ac_ext ;;
6055 esac
6056 fi
6057
6058
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060
6061 eval supported=\$$cacheid
6062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6063 printf '%s\n' "$supported" >&6; }
6064 if test "$supported" = "yes" ; then
6065 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6066 found="yes"
6067 fi
6068 fi
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 xorg_testset_save_CFLAGS="$CFLAGS"
6085
6086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6090 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6091 then :
6092 printf %s "(cached) " >&6
6093 else case e in #(
6094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"
6099 then :
6100 xorg_cv_cc_flag_unknown_warning_option=yes
6101 else case e in #(
6102 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6103 esac
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6106 esac
6107 fi
6108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112 fi
6113
6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6122 then :
6123 printf %s "(cached) " >&6
6124 else case e in #(
6125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 int i;
6128 _ACEOF
6129 if ac_fn_c_try_compile "$LINENO"
6130 then :
6131 xorg_cv_cc_flag_unused_command_line_argument=yes
6132 else case e in #(
6133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6134 esac
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6137 esac
6138 fi
6139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6140 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6142 CFLAGS="$xorg_testset_save_CFLAGS"
6143 fi
6144
6145 found="no"
6146
6147 if test $found = "no" ; then
6148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150 fi
6151
6152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6154 fi
6155
6156 CFLAGS="$CFLAGS -Wmissing-prototypes"
6157
6158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6159 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6160 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6161 if eval test \${$cacheid+y}
6162 then :
6163 printf %s "(cached) " >&6
6164 else case e in #(
6165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 int i;
6168 int
6169 main (void)
6170 {
6171
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"
6177 then :
6178 eval $cacheid=yes
6179 else case e in #(
6180 e) eval $cacheid=no ;;
6181 esac
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6184 conftest$ac_exeext conftest.$ac_ext ;;
6185 esac
6186 fi
6187
6188
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191 eval supported=\$$cacheid
6192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193 printf '%s\n' "$supported" >&6; }
6194 if test "$supported" = "yes" ; then
6195 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6196 found="yes"
6197 fi
6198 fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6221 then :
6222 printf %s "(cached) " >&6
6223 else case e in #(
6224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"
6229 then :
6230 xorg_cv_cc_flag_unknown_warning_option=yes
6231 else case e in #(
6232 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6233 esac
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6236 esac
6237 fi
6238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6239 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242 fi
6243
6244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247 fi
6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6252 then :
6253 printf %s "(cached) " >&6
6254 else case e in #(
6255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 int i;
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"
6260 then :
6261 xorg_cv_cc_flag_unused_command_line_argument=yes
6262 else case e in #(
6263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6264 esac
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6267 esac
6268 fi
6269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6270 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6272 CFLAGS="$xorg_testset_save_CFLAGS"
6273 fi
6274
6275 found="no"
6276
6277 if test $found = "no" ; then
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 fi
6281
6282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6284 fi
6285
6286 CFLAGS="$CFLAGS -Wnested-externs"
6287
6288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6289 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6290 cacheid=xorg_cv_cc_flag__Wnested_externs
6291 if eval test \${$cacheid+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else case e in #(
6295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 int i;
6298 int
6299 main (void)
6300 {
6301
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"
6307 then :
6308 eval $cacheid=yes
6309 else case e in #(
6310 e) eval $cacheid=no ;;
6311 esac
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6314 conftest$ac_exeext conftest.$ac_ext ;;
6315 esac
6316 fi
6317
6318
6319 CFLAGS="$xorg_testset_save_CFLAGS"
6320
6321 eval supported=\$$cacheid
6322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6323 printf '%s\n' "$supported" >&6; }
6324 if test "$supported" = "yes" ; then
6325 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6326 found="yes"
6327 fi
6328 fi
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 xorg_testset_save_CFLAGS="$CFLAGS"
6345
6346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6350 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else case e in #(
6354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"
6359 then :
6360 xorg_cv_cc_flag_unknown_warning_option=yes
6361 else case e in #(
6362 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6363 esac
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6366 esac
6367 fi
6368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6369 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6371 CFLAGS="$xorg_testset_save_CFLAGS"
6372 fi
6373
6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377 fi
6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6382 then :
6383 printf %s "(cached) " >&6
6384 else case e in #(
6385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"
6390 then :
6391 xorg_cv_cc_flag_unused_command_line_argument=yes
6392 else case e in #(
6393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6394 esac
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6397 esac
6398 fi
6399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6400 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6402 CFLAGS="$xorg_testset_save_CFLAGS"
6403 fi
6404
6405 found="no"
6406
6407 if test $found = "no" ; then
6408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6410 fi
6411
6412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6414 fi
6415
6416 CFLAGS="$CFLAGS -Wbad-function-cast"
6417
6418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6419 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6420 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6421 if eval test \${$cacheid+y}
6422 then :
6423 printf %s "(cached) " >&6
6424 else case e in #(
6425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 int i;
6428 int
6429 main (void)
6430 {
6431
6432 ;
6433 return 0;
6434 }
6435 _ACEOF
6436 if ac_fn_c_try_link "$LINENO"
6437 then :
6438 eval $cacheid=yes
6439 else case e in #(
6440 e) eval $cacheid=no ;;
6441 esac
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6444 conftest$ac_exeext conftest.$ac_ext ;;
6445 esac
6446 fi
6447
6448
6449 CFLAGS="$xorg_testset_save_CFLAGS"
6450
6451 eval supported=\$$cacheid
6452 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6453 printf '%s\n' "$supported" >&6; }
6454 if test "$supported" = "yes" ; then
6455 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6456 found="yes"
6457 fi
6458 fi
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474 xorg_testset_save_CFLAGS="$CFLAGS"
6475
6476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6479 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6480 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6481 then :
6482 printf %s "(cached) " >&6
6483 else case e in #(
6484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 int i;
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"
6489 then :
6490 xorg_cv_cc_flag_unknown_warning_option=yes
6491 else case e in #(
6492 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6493 esac
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6496 esac
6497 fi
6498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6499 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6501 CFLAGS="$xorg_testset_save_CFLAGS"
6502 fi
6503
6504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507 fi
6508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6510 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6511 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6512 then :
6513 printf %s "(cached) " >&6
6514 else case e in #(
6515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6517 int i;
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"
6520 then :
6521 xorg_cv_cc_flag_unused_command_line_argument=yes
6522 else case e in #(
6523 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6524 esac
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6527 esac
6528 fi
6529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6530 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6532 CFLAGS="$xorg_testset_save_CFLAGS"
6533 fi
6534
6535 found="no"
6536
6537 if test $found = "no" ; then
6538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540 fi
6541
6542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6544 fi
6545
6546 CFLAGS="$CFLAGS -Wold-style-definition"
6547
6548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6549 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6550 cacheid=xorg_cv_cc_flag__Wold_style_definition
6551 if eval test \${$cacheid+y}
6552 then :
6553 printf %s "(cached) " >&6
6554 else case e in #(
6555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557 int i;
6558 int
6559 main (void)
6560 {
6561
6562 ;
6563 return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_link "$LINENO"
6567 then :
6568 eval $cacheid=yes
6569 else case e in #(
6570 e) eval $cacheid=no ;;
6571 esac
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6574 conftest$ac_exeext conftest.$ac_ext ;;
6575 esac
6576 fi
6577
6578
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6580
6581 eval supported=\$$cacheid
6582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6583 printf '%s\n' "$supported" >&6; }
6584 if test "$supported" = "yes" ; then
6585 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6586 found="yes"
6587 fi
6588 fi
6589
6590 if test $found = "no" ; then
6591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593 fi
6594
6595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597 fi
6598
6599 CFLAGS="$CFLAGS -fd"
6600
6601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6602 printf %s "checking if $CC supports -fd... " >&6; }
6603 cacheid=xorg_cv_cc_flag__fd
6604 if eval test \${$cacheid+y}
6605 then :
6606 printf %s "(cached) " >&6
6607 else case e in #(
6608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 int
6612 main (void)
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"
6620 then :
6621 eval $cacheid=yes
6622 else case e in #(
6623 e) eval $cacheid=no ;;
6624 esac
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6627 conftest$ac_exeext conftest.$ac_ext ;;
6628 esac
6629 fi
6630
6631
6632 CFLAGS="$xorg_testset_save_CFLAGS"
6633
6634 eval supported=\$$cacheid
6635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6636 printf '%s\n' "$supported" >&6; }
6637 if test "$supported" = "yes" ; then
6638 BASE_CFLAGS="$BASE_CFLAGS -fd"
6639 found="yes"
6640 fi
6641 fi
6642
6643
6644
6645
6646
6647 # This chunk adds additional warnings that could catch undesired effects.
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661 xorg_testset_save_CFLAGS="$CFLAGS"
6662
6663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6667 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6668 then :
6669 printf %s "(cached) " >&6
6670 else case e in #(
6671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int i;
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"
6676 then :
6677 xorg_cv_cc_flag_unknown_warning_option=yes
6678 else case e in #(
6679 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6680 esac
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6683 esac
6684 fi
6685 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6686 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6688 CFLAGS="$xorg_testset_save_CFLAGS"
6689 fi
6690
6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694 fi
6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"
6707 then :
6708 xorg_cv_cc_flag_unused_command_line_argument=yes
6709 else case e in #(
6710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6711 esac
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714 esac
6715 fi
6716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720 fi
6721
6722 found="no"
6723
6724 if test $found = "no" ; then
6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727 fi
6728
6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731 fi
6732
6733 CFLAGS="$CFLAGS -Wunused"
6734
6735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6736 printf %s "checking if $CC supports -Wunused... " >&6; }
6737 cacheid=xorg_cv_cc_flag__Wunused
6738 if eval test \${$cacheid+y}
6739 then :
6740 printf %s "(cached) " >&6
6741 else case e in #(
6742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int i;
6745 int
6746 main (void)
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"
6754 then :
6755 eval $cacheid=yes
6756 else case e in #(
6757 e) eval $cacheid=no ;;
6758 esac
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6761 conftest$ac_exeext conftest.$ac_ext ;;
6762 esac
6763 fi
6764
6765
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768 eval supported=\$$cacheid
6769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770 printf '%s\n' "$supported" >&6; }
6771 if test "$supported" = "yes" ; then
6772 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6773 found="yes"
6774 fi
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6798 then :
6799 printf %s "(cached) " >&6
6800 else case e in #(
6801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"
6806 then :
6807 xorg_cv_cc_flag_unknown_warning_option=yes
6808 else case e in #(
6809 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6810 esac
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6813 esac
6814 fi
6815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6816 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6818 CFLAGS="$xorg_testset_save_CFLAGS"
6819 fi
6820
6821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824 fi
6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else case e in #(
6832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 int i;
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"
6837 then :
6838 xorg_cv_cc_flag_unused_command_line_argument=yes
6839 else case e in #(
6840 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6841 esac
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6844 esac
6845 fi
6846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849 CFLAGS="$xorg_testset_save_CFLAGS"
6850 fi
6851
6852 found="no"
6853
6854 if test $found = "no" ; then
6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857 fi
6858
6859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861 fi
6862
6863 CFLAGS="$CFLAGS -Wuninitialized"
6864
6865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6866 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6867 cacheid=xorg_cv_cc_flag__Wuninitialized
6868 if eval test \${$cacheid+y}
6869 then :
6870 printf %s "(cached) " >&6
6871 else case e in #(
6872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int i;
6875 int
6876 main (void)
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"
6884 then :
6885 eval $cacheid=yes
6886 else case e in #(
6887 e) eval $cacheid=no ;;
6888 esac
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6891 conftest$ac_exeext conftest.$ac_ext ;;
6892 esac
6893 fi
6894
6895
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897
6898 eval supported=\$$cacheid
6899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6900 printf '%s\n' "$supported" >&6; }
6901 if test "$supported" = "yes" ; then
6902 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6903 found="yes"
6904 fi
6905 fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 xorg_testset_save_CFLAGS="$CFLAGS"
6922
6923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6927 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else case e in #(
6931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"
6936 then :
6937 xorg_cv_cc_flag_unknown_warning_option=yes
6938 else case e in #(
6939 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6940 esac
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6943 esac
6944 fi
6945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6946 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6948 CFLAGS="$xorg_testset_save_CFLAGS"
6949 fi
6950
6951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954 fi
6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6957 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6958 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else case e in #(
6962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 int i;
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"
6967 then :
6968 xorg_cv_cc_flag_unused_command_line_argument=yes
6969 else case e in #(
6970 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6971 esac
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6974 esac
6975 fi
6976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980 fi
6981
6982 found="no"
6983
6984 if test $found = "no" ; then
6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 fi
6988
6989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 fi
6992
6993 CFLAGS="$CFLAGS -Wshadow"
6994
6995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6996 printf %s "checking if $CC supports -Wshadow... " >&6; }
6997 cacheid=xorg_cv_cc_flag__Wshadow
6998 if eval test \${$cacheid+y}
6999 then :
7000 printf %s "(cached) " >&6
7001 else case e in #(
7002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 int i;
7005 int
7006 main (void)
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"
7014 then :
7015 eval $cacheid=yes
7016 else case e in #(
7017 e) eval $cacheid=no ;;
7018 esac
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7021 conftest$ac_exeext conftest.$ac_ext ;;
7022 esac
7023 fi
7024
7025
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028 eval supported=\$$cacheid
7029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030 printf '%s\n' "$supported" >&6; }
7031 if test "$supported" = "yes" ; then
7032 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7033 found="yes"
7034 fi
7035 fi
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 xorg_testset_save_CFLAGS="$CFLAGS"
7052
7053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7058 then :
7059 printf %s "(cached) " >&6
7060 else case e in #(
7061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 int i;
7064 _ACEOF
7065 if ac_fn_c_try_compile "$LINENO"
7066 then :
7067 xorg_cv_cc_flag_unknown_warning_option=yes
7068 else case e in #(
7069 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7070 esac
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7073 esac
7074 fi
7075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7076 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7079 fi
7080
7081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084 fi
7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else case e in #(
7092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"
7097 then :
7098 xorg_cv_cc_flag_unused_command_line_argument=yes
7099 else case e in #(
7100 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7101 esac
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7104 esac
7105 fi
7106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109 CFLAGS="$xorg_testset_save_CFLAGS"
7110 fi
7111
7112 found="no"
7113
7114 if test $found = "no" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118
7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121 fi
7122
7123 CFLAGS="$CFLAGS -Wmissing-noreturn"
7124
7125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7126 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7127 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7128 if eval test \${$cacheid+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else case e in #(
7132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 int
7136 main (void)
7137 {
7138
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 if ac_fn_c_try_link "$LINENO"
7144 then :
7145 eval $cacheid=yes
7146 else case e in #(
7147 e) eval $cacheid=no ;;
7148 esac
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7151 conftest$ac_exeext conftest.$ac_ext ;;
7152 esac
7153 fi
7154
7155
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157
7158 eval supported=\$$cacheid
7159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7160 printf '%s\n' "$supported" >&6; }
7161 if test "$supported" = "yes" ; then
7162 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7163 found="yes"
7164 fi
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 xorg_testset_save_CFLAGS="$CFLAGS"
7182
7183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7188 then :
7189 printf %s "(cached) " >&6
7190 else case e in #(
7191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 int i;
7194 _ACEOF
7195 if ac_fn_c_try_compile "$LINENO"
7196 then :
7197 xorg_cv_cc_flag_unknown_warning_option=yes
7198 else case e in #(
7199 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7200 esac
7201 fi
7202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7203 esac
7204 fi
7205 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7206 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214 fi
7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7219 then :
7220 printf %s "(cached) " >&6
7221 else case e in #(
7222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 int i;
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"
7227 then :
7228 xorg_cv_cc_flag_unused_command_line_argument=yes
7229 else case e in #(
7230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7231 esac
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7234 esac
7235 fi
7236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7237 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240 fi
7241
7242 found="no"
7243
7244 if test $found = "no" ; then
7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247 fi
7248
7249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7251 fi
7252
7253 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7254
7255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7256 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7257 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7258 if eval test \${$cacheid+y}
7259 then :
7260 printf %s "(cached) " >&6
7261 else case e in #(
7262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7264 int i;
7265 int
7266 main (void)
7267 {
7268
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"
7274 then :
7275 eval $cacheid=yes
7276 else case e in #(
7277 e) eval $cacheid=no ;;
7278 esac
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7281 conftest$ac_exeext conftest.$ac_ext ;;
7282 esac
7283 fi
7284
7285
7286 CFLAGS="$xorg_testset_save_CFLAGS"
7287
7288 eval supported=\$$cacheid
7289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290 printf '%s\n' "$supported" >&6; }
7291 if test "$supported" = "yes" ; then
7292 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7293 found="yes"
7294 fi
7295 fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311 xorg_testset_save_CFLAGS="$CFLAGS"
7312
7313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7318 then :
7319 printf %s "(cached) " >&6
7320 else case e in #(
7321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 int i;
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"
7326 then :
7327 xorg_cv_cc_flag_unknown_warning_option=yes
7328 else case e in #(
7329 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7330 esac
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7333 esac
7334 fi
7335 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7336 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7338 CFLAGS="$xorg_testset_save_CFLAGS"
7339 fi
7340
7341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344 fi
7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7349 then :
7350 printf %s "(cached) " >&6
7351 else case e in #(
7352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 int i;
7355 _ACEOF
7356 if ac_fn_c_try_compile "$LINENO"
7357 then :
7358 xorg_cv_cc_flag_unused_command_line_argument=yes
7359 else case e in #(
7360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7361 esac
7362 fi
7363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7364 esac
7365 fi
7366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7370 fi
7371
7372 found="no"
7373
7374 if test $found = "no" ; then
7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377 fi
7378
7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381 fi
7382
7383 CFLAGS="$CFLAGS -Wredundant-decls"
7384
7385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7386 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7387 cacheid=xorg_cv_cc_flag__Wredundant_decls
7388 if eval test \${$cacheid+y}
7389 then :
7390 printf %s "(cached) " >&6
7391 else case e in #(
7392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 int i;
7395 int
7396 main (void)
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"
7404 then :
7405 eval $cacheid=yes
7406 else case e in #(
7407 e) eval $cacheid=no ;;
7408 esac
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7411 conftest$ac_exeext conftest.$ac_ext ;;
7412 esac
7413 fi
7414
7415
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417
7418 eval supported=\$$cacheid
7419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7420 printf '%s\n' "$supported" >&6; }
7421 if test "$supported" = "yes" ; then
7422 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7423 found="yes"
7424 fi
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 xorg_testset_save_CFLAGS="$CFLAGS"
7442
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7447 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else case e in #(
7451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 int i;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"
7456 then :
7457 xorg_cv_cc_flag_unknown_warning_option=yes
7458 else case e in #(
7459 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7460 esac
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7463 esac
7464 fi
7465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7466 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7469 fi
7470
7471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474 fi
7475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7479 then :
7480 printf %s "(cached) " >&6
7481 else case e in #(
7482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 int i;
7485 _ACEOF
7486 if ac_fn_c_try_compile "$LINENO"
7487 then :
7488 xorg_cv_cc_flag_unused_command_line_argument=yes
7489 else case e in #(
7490 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7491 esac
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7494 esac
7495 fi
7496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7497 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7499 CFLAGS="$xorg_testset_save_CFLAGS"
7500 fi
7501
7502 found="no"
7503
7504 if test $found = "no" ; then
7505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7507 fi
7508
7509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511 fi
7512
7513 CFLAGS="$CFLAGS -Wlogical-op"
7514
7515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7516 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7517 cacheid=xorg_cv_cc_flag__Wlogical_op
7518 if eval test \${$cacheid+y}
7519 then :
7520 printf %s "(cached) " >&6
7521 else case e in #(
7522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 int i;
7525 int
7526 main (void)
7527 {
7528
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_link "$LINENO"
7534 then :
7535 eval $cacheid=yes
7536 else case e in #(
7537 e) eval $cacheid=no ;;
7538 esac
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7541 conftest$ac_exeext conftest.$ac_ext ;;
7542 esac
7543 fi
7544
7545
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547
7548 eval supported=\$$cacheid
7549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7550 printf '%s\n' "$supported" >&6; }
7551 if test "$supported" = "yes" ; then
7552 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7553 found="yes"
7554 fi
7555 fi
7556
7557
7558
7559 # These are currently disabled because they are noisy. They will be enabled
7560 # in the future once the codebase is sufficiently modernized to silence
7561 # them. For now, I don't want them to drown out the other warnings.
7562 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7563 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7564 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7565
7566 # Turn some warnings into errors, so we don't accidentally get successful builds
7567 # when there are problems that should be fixed.
7568
7569 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583 xorg_testset_save_CFLAGS="$CFLAGS"
7584
7585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7589 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else case e in #(
7593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"
7598 then :
7599 xorg_cv_cc_flag_unknown_warning_option=yes
7600 else case e in #(
7601 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7602 esac
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7605 esac
7606 fi
7607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7608 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611 fi
7612
7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 fi
7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7621 then :
7622 printf %s "(cached) " >&6
7623 else case e in #(
7624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 int i;
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"
7629 then :
7630 xorg_cv_cc_flag_unused_command_line_argument=yes
7631 else case e in #(
7632 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7633 esac
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7636 esac
7637 fi
7638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7639 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7641 CFLAGS="$xorg_testset_save_CFLAGS"
7642 fi
7643
7644 found="no"
7645
7646 if test $found = "no" ; then
7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649 fi
7650
7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7653 fi
7654
7655 CFLAGS="$CFLAGS -Werror=implicit"
7656
7657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7658 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7659 cacheid=xorg_cv_cc_flag__Werror_implicit
7660 if eval test \${$cacheid+y}
7661 then :
7662 printf %s "(cached) " >&6
7663 else case e in #(
7664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 int i;
7667 int
7668 main (void)
7669 {
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_link "$LINENO"
7676 then :
7677 eval $cacheid=yes
7678 else case e in #(
7679 e) eval $cacheid=no ;;
7680 esac
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7683 conftest$ac_exeext conftest.$ac_ext ;;
7684 esac
7685 fi
7686
7687
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7689
7690 eval supported=\$$cacheid
7691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7692 printf '%s\n' "$supported" >&6; }
7693 if test "$supported" = "yes" ; then
7694 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7695 found="yes"
7696 fi
7697 fi
7698
7699 if test $found = "no" ; then
7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703
7704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706 fi
7707
7708 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7709
7710 { 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
7711 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7712 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7713 if eval test \${$cacheid+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else case e in #(
7717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int i;
7720 int
7721 main (void)
7722 {
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_link "$LINENO"
7729 then :
7730 eval $cacheid=yes
7731 else case e in #(
7732 e) eval $cacheid=no ;;
7733 esac
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7736 conftest$ac_exeext conftest.$ac_ext ;;
7737 esac
7738 fi
7739
7740
7741 CFLAGS="$xorg_testset_save_CFLAGS"
7742
7743 eval supported=\$$cacheid
7744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7745 printf '%s\n' "$supported" >&6; }
7746 if test "$supported" = "yes" ; then
7747 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7748 found="yes"
7749 fi
7750 fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 xorg_testset_save_CFLAGS="$CFLAGS"
7767
7768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7772 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7773 then :
7774 printf %s "(cached) " >&6
7775 else case e in #(
7776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 int i;
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"
7781 then :
7782 xorg_cv_cc_flag_unknown_warning_option=yes
7783 else case e in #(
7784 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7785 esac
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7788 esac
7789 fi
7790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794 fi
7795
7796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799 fi
7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7804 then :
7805 printf %s "(cached) " >&6
7806 else case e in #(
7807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"
7812 then :
7813 xorg_cv_cc_flag_unused_command_line_argument=yes
7814 else case e in #(
7815 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7816 esac
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7819 esac
7820 fi
7821 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7822 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7824 CFLAGS="$xorg_testset_save_CFLAGS"
7825 fi
7826
7827 found="no"
7828
7829 if test $found = "no" ; then
7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832 fi
7833
7834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7836 fi
7837
7838 CFLAGS="$CFLAGS -Werror=nonnull"
7839
7840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7841 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7842 cacheid=xorg_cv_cc_flag__Werror_nonnull
7843 if eval test \${$cacheid+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else case e in #(
7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 int i;
7850 int
7851 main (void)
7852 {
7853
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"
7859 then :
7860 eval $cacheid=yes
7861 else case e in #(
7862 e) eval $cacheid=no ;;
7863 esac
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7866 conftest$ac_exeext conftest.$ac_ext ;;
7867 esac
7868 fi
7869
7870
7871 CFLAGS="$xorg_testset_save_CFLAGS"
7872
7873 eval supported=\$$cacheid
7874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7875 printf '%s\n' "$supported" >&6; }
7876 if test "$supported" = "yes" ; then
7877 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7878 found="yes"
7879 fi
7880 fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 xorg_testset_save_CFLAGS="$CFLAGS"
7897
7898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7901 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7902 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7903 then :
7904 printf %s "(cached) " >&6
7905 else case e in #(
7906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 int i;
7909 _ACEOF
7910 if ac_fn_c_try_compile "$LINENO"
7911 then :
7912 xorg_cv_cc_flag_unknown_warning_option=yes
7913 else case e in #(
7914 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7915 esac
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7918 esac
7919 fi
7920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7921 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7923 CFLAGS="$xorg_testset_save_CFLAGS"
7924 fi
7925
7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929 fi
7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else case e in #(
7937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"
7942 then :
7943 xorg_cv_cc_flag_unused_command_line_argument=yes
7944 else case e in #(
7945 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7946 esac
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7949 esac
7950 fi
7951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7952 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 found="no"
7958
7959 if test $found = "no" ; then
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 fi
7963
7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 fi
7967
7968 CFLAGS="$CFLAGS -Werror=init-self"
7969
7970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7971 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7972 cacheid=xorg_cv_cc_flag__Werror_init_self
7973 if eval test \${$cacheid+y}
7974 then :
7975 printf %s "(cached) " >&6
7976 else case e in #(
7977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 int i;
7980 int
7981 main (void)
7982 {
7983
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_link "$LINENO"
7989 then :
7990 eval $cacheid=yes
7991 else case e in #(
7992 e) eval $cacheid=no ;;
7993 esac
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7996 conftest$ac_exeext conftest.$ac_ext ;;
7997 esac
7998 fi
7999
8000
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003 eval supported=\$$cacheid
8004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005 printf '%s\n' "$supported" >&6; }
8006 if test "$supported" = "yes" ; then
8007 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8008 found="yes"
8009 fi
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else case e in #(
8036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 int i;
8039 _ACEOF
8040 if ac_fn_c_try_compile "$LINENO"
8041 then :
8042 xorg_cv_cc_flag_unknown_warning_option=yes
8043 else case e in #(
8044 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8045 esac
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8048 esac
8049 fi
8050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8051 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8053 CFLAGS="$xorg_testset_save_CFLAGS"
8054 fi
8055
8056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059 fi
8060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else case e in #(
8067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int i;
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"
8072 then :
8073 xorg_cv_cc_flag_unused_command_line_argument=yes
8074 else case e in #(
8075 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8076 esac
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8079 esac
8080 fi
8081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 found="no"
8088
8089 if test $found = "no" ; then
8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 fi
8093
8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096 fi
8097
8098 CFLAGS="$CFLAGS -Werror=main"
8099
8100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8101 printf %s "checking if $CC supports -Werror=main... " >&6; }
8102 cacheid=xorg_cv_cc_flag__Werror_main
8103 if eval test \${$cacheid+y}
8104 then :
8105 printf %s "(cached) " >&6
8106 else case e in #(
8107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 int
8111 main (void)
8112 {
8113
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"
8119 then :
8120 eval $cacheid=yes
8121 else case e in #(
8122 e) eval $cacheid=no ;;
8123 esac
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8126 conftest$ac_exeext conftest.$ac_ext ;;
8127 esac
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 printf '%s\n' "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8138 found="yes"
8139 fi
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else case e in #(
8166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"
8171 then :
8172 xorg_cv_cc_flag_unknown_warning_option=yes
8173 else case e in #(
8174 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8175 esac
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8178 esac
8179 fi
8180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8181 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8183 CFLAGS="$xorg_testset_save_CFLAGS"
8184 fi
8185
8186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 fi
8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8194 then :
8195 printf %s "(cached) " >&6
8196 else case e in #(
8197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 int i;
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"
8202 then :
8203 xorg_cv_cc_flag_unused_command_line_argument=yes
8204 else case e in #(
8205 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8206 esac
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8209 esac
8210 fi
8211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8212 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8214 CFLAGS="$xorg_testset_save_CFLAGS"
8215 fi
8216
8217 found="no"
8218
8219 if test $found = "no" ; then
8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222 fi
8223
8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226 fi
8227
8228 CFLAGS="$CFLAGS -Werror=missing-braces"
8229
8230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8231 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8232 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8233 if eval test \${$cacheid+y}
8234 then :
8235 printf %s "(cached) " >&6
8236 else case e in #(
8237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 int
8241 main (void)
8242 {
8243
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"
8249 then :
8250 eval $cacheid=yes
8251 else case e in #(
8252 e) eval $cacheid=no ;;
8253 esac
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8256 conftest$ac_exeext conftest.$ac_ext ;;
8257 esac
8258 fi
8259
8260
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263 eval supported=\$$cacheid
8264 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265 printf '%s\n' "$supported" >&6; }
8266 if test "$supported" = "yes" ; then
8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8268 found="yes"
8269 fi
8270 fi
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 xorg_testset_save_CFLAGS="$CFLAGS"
8287
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8291 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8292 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8293 then :
8294 printf %s "(cached) " >&6
8295 else case e in #(
8296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 int i;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"
8301 then :
8302 xorg_cv_cc_flag_unknown_warning_option=yes
8303 else case e in #(
8304 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8305 esac
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8308 esac
8309 fi
8310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319 fi
8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else case e in #(
8327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 _ACEOF
8331 if ac_fn_c_try_compile "$LINENO"
8332 then :
8333 xorg_cv_cc_flag_unused_command_line_argument=yes
8334 else case e in #(
8335 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8336 esac
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8339 esac
8340 fi
8341 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8342 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8344 CFLAGS="$xorg_testset_save_CFLAGS"
8345 fi
8346
8347 found="no"
8348
8349 if test $found = "no" ; then
8350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8352 fi
8353
8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356 fi
8357
8358 CFLAGS="$CFLAGS -Werror=sequence-point"
8359
8360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8361 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8362 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8363 if eval test \${$cacheid+y}
8364 then :
8365 printf %s "(cached) " >&6
8366 else case e in #(
8367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 int i;
8370 int
8371 main (void)
8372 {
8373
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_link "$LINENO"
8379 then :
8380 eval $cacheid=yes
8381 else case e in #(
8382 e) eval $cacheid=no ;;
8383 esac
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8386 conftest$ac_exeext conftest.$ac_ext ;;
8387 esac
8388 fi
8389
8390
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393 eval supported=\$$cacheid
8394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395 printf '%s\n' "$supported" >&6; }
8396 if test "$supported" = "yes" ; then
8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8398 found="yes"
8399 fi
8400 fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416 xorg_testset_save_CFLAGS="$CFLAGS"
8417
8418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8421 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8422 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else case e in #(
8426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 int i;
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"
8431 then :
8432 xorg_cv_cc_flag_unknown_warning_option=yes
8433 else case e in #(
8434 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8435 esac
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8438 esac
8439 fi
8440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8441 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8443 CFLAGS="$xorg_testset_save_CFLAGS"
8444 fi
8445
8446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449 fi
8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8454 then :
8455 printf %s "(cached) " >&6
8456 else case e in #(
8457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 int i;
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"
8462 then :
8463 xorg_cv_cc_flag_unused_command_line_argument=yes
8464 else case e in #(
8465 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8466 esac
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8469 esac
8470 fi
8471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8472 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8474 CFLAGS="$xorg_testset_save_CFLAGS"
8475 fi
8476
8477 found="no"
8478
8479 if test $found = "no" ; then
8480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482 fi
8483
8484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8486 fi
8487
8488 CFLAGS="$CFLAGS -Werror=return-type"
8489
8490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8491 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8492 cacheid=xorg_cv_cc_flag__Werror_return_type
8493 if eval test \${$cacheid+y}
8494 then :
8495 printf %s "(cached) " >&6
8496 else case e in #(
8497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 int i;
8500 int
8501 main (void)
8502 {
8503
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"
8509 then :
8510 eval $cacheid=yes
8511 else case e in #(
8512 e) eval $cacheid=no ;;
8513 esac
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8516 conftest$ac_exeext conftest.$ac_ext ;;
8517 esac
8518 fi
8519
8520
8521 CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523 eval supported=\$$cacheid
8524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8525 printf '%s\n' "$supported" >&6; }
8526 if test "$supported" = "yes" ; then
8527 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8528 found="yes"
8529 fi
8530 fi
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8542
8543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8544 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8545 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8546 if eval test \${$cacheid+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else case e in #(
8550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 int i;
8553 int
8554 main (void)
8555 {
8556
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_c_try_link "$LINENO"
8562 then :
8563 eval $cacheid=yes
8564 else case e in #(
8565 e) eval $cacheid=no ;;
8566 esac
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8569 conftest$ac_exeext conftest.$ac_ext ;;
8570 esac
8571 fi
8572
8573
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576 eval supported=\$$cacheid
8577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578 printf '%s\n' "$supported" >&6; }
8579 if test "$supported" = "yes" ; then
8580 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8581 found="yes"
8582 fi
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8606 then :
8607 printf %s "(cached) " >&6
8608 else case e in #(
8609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"
8614 then :
8615 xorg_cv_cc_flag_unknown_warning_option=yes
8616 else case e in #(
8617 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8618 esac
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8621 esac
8622 fi
8623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8624 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8626 CFLAGS="$xorg_testset_save_CFLAGS"
8627 fi
8628
8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632 fi
8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8637 then :
8638 printf %s "(cached) " >&6
8639 else case e in #(
8640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"
8645 then :
8646 xorg_cv_cc_flag_unused_command_line_argument=yes
8647 else case e in #(
8648 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8649 esac
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8652 esac
8653 fi
8654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 found="no"
8661
8662 if test $found = "no" ; then
8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 fi
8666
8667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669 fi
8670
8671 CFLAGS="$CFLAGS -Werror=trigraphs"
8672
8673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8674 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8675 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8676 if eval test \${$cacheid+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else case e in #(
8680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 int i;
8683 int
8684 main (void)
8685 {
8686
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 if ac_fn_c_try_link "$LINENO"
8692 then :
8693 eval $cacheid=yes
8694 else case e in #(
8695 e) eval $cacheid=no ;;
8696 esac
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8699 conftest$ac_exeext conftest.$ac_ext ;;
8700 esac
8701 fi
8702
8703
8704 CFLAGS="$xorg_testset_save_CFLAGS"
8705
8706 eval supported=\$$cacheid
8707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8708 printf '%s\n' "$supported" >&6; }
8709 if test "$supported" = "yes" ; then
8710 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8711 found="yes"
8712 fi
8713 fi
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729 xorg_testset_save_CFLAGS="$CFLAGS"
8730
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8735 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8736 then :
8737 printf %s "(cached) " >&6
8738 else case e in #(
8739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 int i;
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"
8744 then :
8745 xorg_cv_cc_flag_unknown_warning_option=yes
8746 else case e in #(
8747 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8748 esac
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8751 esac
8752 fi
8753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756 CFLAGS="$xorg_testset_save_CFLAGS"
8757 fi
8758
8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else case e in #(
8770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772 int i;
8773 _ACEOF
8774 if ac_fn_c_try_compile "$LINENO"
8775 then :
8776 xorg_cv_cc_flag_unused_command_line_argument=yes
8777 else case e in #(
8778 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8779 esac
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8782 esac
8783 fi
8784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8785 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788 fi
8789
8790 found="no"
8791
8792 if test $found = "no" ; then
8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8795 fi
8796
8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799 fi
8800
8801 CFLAGS="$CFLAGS -Werror=array-bounds"
8802
8803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8804 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8805 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8806 if eval test \${$cacheid+y}
8807 then :
8808 printf %s "(cached) " >&6
8809 else case e in #(
8810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 int i;
8813 int
8814 main (void)
8815 {
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"
8822 then :
8823 eval $cacheid=yes
8824 else case e in #(
8825 e) eval $cacheid=no ;;
8826 esac
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8829 conftest$ac_exeext conftest.$ac_ext ;;
8830 esac
8831 fi
8832
8833
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836 eval supported=\$$cacheid
8837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838 printf '%s\n' "$supported" >&6; }
8839 if test "$supported" = "yes" ; then
8840 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8841 found="yes"
8842 fi
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8866 then :
8867 printf %s "(cached) " >&6
8868 else case e in #(
8869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 int i;
8872 _ACEOF
8873 if ac_fn_c_try_compile "$LINENO"
8874 then :
8875 xorg_cv_cc_flag_unknown_warning_option=yes
8876 else case e in #(
8877 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8878 esac
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8881 esac
8882 fi
8883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8884 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8892 fi
8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else case e in #(
8900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"
8905 then :
8906 xorg_cv_cc_flag_unused_command_line_argument=yes
8907 else case e in #(
8908 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8909 esac
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8912 esac
8913 fi
8914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917 CFLAGS="$xorg_testset_save_CFLAGS"
8918 fi
8919
8920 found="no"
8921
8922 if test $found = "no" ; then
8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929 fi
8930
8931 CFLAGS="$CFLAGS -Werror=write-strings"
8932
8933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8934 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8935 cacheid=xorg_cv_cc_flag__Werror_write_strings
8936 if eval test \${$cacheid+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else case e in #(
8940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 int
8944 main (void)
8945 {
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"
8952 then :
8953 eval $cacheid=yes
8954 else case e in #(
8955 e) eval $cacheid=no ;;
8956 esac
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8959 conftest$ac_exeext conftest.$ac_ext ;;
8960 esac
8961 fi
8962
8963
8964 CFLAGS="$xorg_testset_save_CFLAGS"
8965
8966 eval supported=\$$cacheid
8967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968 printf '%s\n' "$supported" >&6; }
8969 if test "$supported" = "yes" ; then
8970 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8971 found="yes"
8972 fi
8973 fi
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 xorg_testset_save_CFLAGS="$CFLAGS"
8990
8991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8995 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8996 then :
8997 printf %s "(cached) " >&6
8998 else case e in #(
8999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 int i;
9002 _ACEOF
9003 if ac_fn_c_try_compile "$LINENO"
9004 then :
9005 xorg_cv_cc_flag_unknown_warning_option=yes
9006 else case e in #(
9007 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9008 esac
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9011 esac
9012 fi
9013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9014 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9016 CFLAGS="$xorg_testset_save_CFLAGS"
9017 fi
9018
9019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022 fi
9023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9024 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9027 then :
9028 printf %s "(cached) " >&6
9029 else case e in #(
9030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 int i;
9033 _ACEOF
9034 if ac_fn_c_try_compile "$LINENO"
9035 then :
9036 xorg_cv_cc_flag_unused_command_line_argument=yes
9037 else case e in #(
9038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9039 esac
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9042 esac
9043 fi
9044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9045 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9048 fi
9049
9050 found="no"
9051
9052 if test $found = "no" ; then
9053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055 fi
9056
9057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059 fi
9060
9061 CFLAGS="$CFLAGS -Werror=address"
9062
9063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9064 printf %s "checking if $CC supports -Werror=address... " >&6; }
9065 cacheid=xorg_cv_cc_flag__Werror_address
9066 if eval test \${$cacheid+y}
9067 then :
9068 printf %s "(cached) " >&6
9069 else case e in #(
9070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 int i;
9073 int
9074 main (void)
9075 {
9076
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_c_try_link "$LINENO"
9082 then :
9083 eval $cacheid=yes
9084 else case e in #(
9085 e) eval $cacheid=no ;;
9086 esac
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9089 conftest$ac_exeext conftest.$ac_ext ;;
9090 esac
9091 fi
9092
9093
9094 CFLAGS="$xorg_testset_save_CFLAGS"
9095
9096 eval supported=\$$cacheid
9097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9098 printf '%s\n' "$supported" >&6; }
9099 if test "$supported" = "yes" ; then
9100 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9101 found="yes"
9102 fi
9103 fi
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119 xorg_testset_save_CFLAGS="$CFLAGS"
9120
9121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9125 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9126 then :
9127 printf %s "(cached) " >&6
9128 else case e in #(
9129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 int i;
9132 _ACEOF
9133 if ac_fn_c_try_compile "$LINENO"
9134 then :
9135 xorg_cv_cc_flag_unknown_warning_option=yes
9136 else case e in #(
9137 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9138 esac
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9141 esac
9142 fi
9143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9144 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9146 CFLAGS="$xorg_testset_save_CFLAGS"
9147 fi
9148
9149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152 fi
9153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9154 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9157 then :
9158 printf %s "(cached) " >&6
9159 else case e in #(
9160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 int i;
9163 _ACEOF
9164 if ac_fn_c_try_compile "$LINENO"
9165 then :
9166 xorg_cv_cc_flag_unused_command_line_argument=yes
9167 else case e in #(
9168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9169 esac
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9172 esac
9173 fi
9174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9175 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9177 CFLAGS="$xorg_testset_save_CFLAGS"
9178 fi
9179
9180 found="no"
9181
9182 if test $found = "no" ; then
9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 fi
9186
9187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9189 fi
9190
9191 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9192
9193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9194 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9195 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9196 if eval test \${$cacheid+y}
9197 then :
9198 printf %s "(cached) " >&6
9199 else case e in #(
9200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 int i;
9203 int
9204 main (void)
9205 {
9206
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_link "$LINENO"
9212 then :
9213 eval $cacheid=yes
9214 else case e in #(
9215 e) eval $cacheid=no ;;
9216 esac
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9219 conftest$ac_exeext conftest.$ac_ext ;;
9220 esac
9221 fi
9222
9223
9224 CFLAGS="$xorg_testset_save_CFLAGS"
9225
9226 eval supported=\$$cacheid
9227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9228 printf '%s\n' "$supported" >&6; }
9229 if test "$supported" = "yes" ; then
9230 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9231 found="yes"
9232 fi
9233 fi
9234
9235 if test $found = "no" ; then
9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238 fi
9239
9240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242 fi
9243
9244 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9245
9246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9247 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9248 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9249 if eval test \${$cacheid+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else case e in #(
9253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 int i;
9256 int
9257 main (void)
9258 {
9259
9260 ;
9261 return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"
9265 then :
9266 eval $cacheid=yes
9267 else case e in #(
9268 e) eval $cacheid=no ;;
9269 esac
9270 fi
9271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9272 conftest$ac_exeext conftest.$ac_ext ;;
9273 esac
9274 fi
9275
9276
9277 CFLAGS="$xorg_testset_save_CFLAGS"
9278
9279 eval supported=\$$cacheid
9280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9281 printf '%s\n' "$supported" >&6; }
9282 if test "$supported" = "yes" ; then
9283 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9284 found="yes"
9285 fi
9286 fi
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 xorg_testset_save_CFLAGS="$CFLAGS"
9303
9304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9309 then :
9310 printf %s "(cached) " >&6
9311 else case e in #(
9312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 int i;
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"
9317 then :
9318 xorg_cv_cc_flag_unknown_warning_option=yes
9319 else case e in #(
9320 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9321 esac
9322 fi
9323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9324 esac
9325 fi
9326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9327 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9329 CFLAGS="$xorg_testset_save_CFLAGS"
9330 fi
9331
9332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335 fi
9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9340 then :
9341 printf %s "(cached) " >&6
9342 else case e in #(
9343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 int i;
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"
9348 then :
9349 xorg_cv_cc_flag_unused_command_line_argument=yes
9350 else case e in #(
9351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9352 esac
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9355 esac
9356 fi
9357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361 fi
9362
9363 found="no"
9364
9365 if test $found = "no" ; then
9366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368 fi
9369
9370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 fi
9373
9374 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9375
9376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9377 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9378 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9379 if eval test \${$cacheid+y}
9380 then :
9381 printf %s "(cached) " >&6
9382 else case e in #(
9383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 int i;
9386 int
9387 main (void)
9388 {
9389
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 if ac_fn_c_try_link "$LINENO"
9395 then :
9396 eval $cacheid=yes
9397 else case e in #(
9398 e) eval $cacheid=no ;;
9399 esac
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9402 conftest$ac_exeext conftest.$ac_ext ;;
9403 esac
9404 fi
9405
9406
9407 CFLAGS="$xorg_testset_save_CFLAGS"
9408
9409 eval supported=\$$cacheid
9410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9411 printf '%s\n' "$supported" >&6; }
9412 if test "$supported" = "yes" ; then
9413 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9414 found="yes"
9415 fi
9416 fi
9417
9418 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9419 else
9420 { 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
9421 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;}
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435 xorg_testset_save_CFLAGS="$CFLAGS"
9436
9437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9441 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9442 then :
9443 printf %s "(cached) " >&6
9444 else case e in #(
9445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 int i;
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"
9450 then :
9451 xorg_cv_cc_flag_unknown_warning_option=yes
9452 else case e in #(
9453 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9454 esac
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9457 esac
9458 fi
9459 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9460 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9462 CFLAGS="$xorg_testset_save_CFLAGS"
9463 fi
9464
9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468 fi
9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9473 then :
9474 printf %s "(cached) " >&6
9475 else case e in #(
9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 int i;
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"
9481 then :
9482 xorg_cv_cc_flag_unused_command_line_argument=yes
9483 else case e in #(
9484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9485 esac
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9488 esac
9489 fi
9490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494 fi
9495
9496 found="no"
9497
9498 if test $found = "no" ; then
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 fi
9502
9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505 fi
9506
9507 CFLAGS="$CFLAGS -Wimplicit"
9508
9509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9510 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9511 cacheid=xorg_cv_cc_flag__Wimplicit
9512 if eval test \${$cacheid+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else case e in #(
9516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 int
9520 main (void)
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"
9528 then :
9529 eval $cacheid=yes
9530 else case e in #(
9531 e) eval $cacheid=no ;;
9532 esac
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9535 conftest$ac_exeext conftest.$ac_ext ;;
9536 esac
9537 fi
9538
9539
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542 eval supported=\$$cacheid
9543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544 printf '%s\n' "$supported" >&6; }
9545 if test "$supported" = "yes" ; then
9546 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9547 found="yes"
9548 fi
9549 fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9572 then :
9573 printf %s "(cached) " >&6
9574 else case e in #(
9575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 int i;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"
9580 then :
9581 xorg_cv_cc_flag_unknown_warning_option=yes
9582 else case e in #(
9583 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9584 esac
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9587 esac
9588 fi
9589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598 fi
9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"
9611 then :
9612 xorg_cv_cc_flag_unused_command_line_argument=yes
9613 else case e in #(
9614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9615 esac
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618 esac
9619 fi
9620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9621 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9625
9626 found="no"
9627
9628 if test $found = "no" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632
9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635 fi
9636
9637 CFLAGS="$CFLAGS -Wnonnull"
9638
9639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9640 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9641 cacheid=xorg_cv_cc_flag__Wnonnull
9642 if eval test \${$cacheid+y}
9643 then :
9644 printf %s "(cached) " >&6
9645 else case e in #(
9646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 int i;
9649 int
9650 main (void)
9651 {
9652
9653 ;
9654 return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"
9658 then :
9659 eval $cacheid=yes
9660 else case e in #(
9661 e) eval $cacheid=no ;;
9662 esac
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9665 conftest$ac_exeext conftest.$ac_ext ;;
9666 esac
9667 fi
9668
9669
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671
9672 eval supported=\$$cacheid
9673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9674 printf '%s\n' "$supported" >&6; }
9675 if test "$supported" = "yes" ; then
9676 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9677 found="yes"
9678 fi
9679 fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695 xorg_testset_save_CFLAGS="$CFLAGS"
9696
9697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9701 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9702 then :
9703 printf %s "(cached) " >&6
9704 else case e in #(
9705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 int i;
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"
9710 then :
9711 xorg_cv_cc_flag_unknown_warning_option=yes
9712 else case e in #(
9713 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9714 esac
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9717 esac
9718 fi
9719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722 CFLAGS="$xorg_testset_save_CFLAGS"
9723 fi
9724
9725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728 fi
9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9733 then :
9734 printf %s "(cached) " >&6
9735 else case e in #(
9736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 _ACEOF
9740 if ac_fn_c_try_compile "$LINENO"
9741 then :
9742 xorg_cv_cc_flag_unused_command_line_argument=yes
9743 else case e in #(
9744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9745 esac
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9748 esac
9749 fi
9750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9751 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754 fi
9755
9756 found="no"
9757
9758 if test $found = "no" ; then
9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761 fi
9762
9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9765 fi
9766
9767 CFLAGS="$CFLAGS -Winit-self"
9768
9769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9770 printf %s "checking if $CC supports -Winit-self... " >&6; }
9771 cacheid=xorg_cv_cc_flag__Winit_self
9772 if eval test \${$cacheid+y}
9773 then :
9774 printf %s "(cached) " >&6
9775 else case e in #(
9776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 int i;
9779 int
9780 main (void)
9781 {
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"
9788 then :
9789 eval $cacheid=yes
9790 else case e in #(
9791 e) eval $cacheid=no ;;
9792 esac
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9795 conftest$ac_exeext conftest.$ac_ext ;;
9796 esac
9797 fi
9798
9799
9800 CFLAGS="$xorg_testset_save_CFLAGS"
9801
9802 eval supported=\$$cacheid
9803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9804 printf '%s\n' "$supported" >&6; }
9805 if test "$supported" = "yes" ; then
9806 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9807 found="yes"
9808 fi
9809 fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 xorg_testset_save_CFLAGS="$CFLAGS"
9826
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9832 then :
9833 printf %s "(cached) " >&6
9834 else case e in #(
9835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 int i;
9838 _ACEOF
9839 if ac_fn_c_try_compile "$LINENO"
9840 then :
9841 xorg_cv_cc_flag_unknown_warning_option=yes
9842 else case e in #(
9843 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9844 esac
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9847 esac
9848 fi
9849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853 fi
9854
9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 fi
9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9863 then :
9864 printf %s "(cached) " >&6
9865 else case e in #(
9866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 int i;
9869 _ACEOF
9870 if ac_fn_c_try_compile "$LINENO"
9871 then :
9872 xorg_cv_cc_flag_unused_command_line_argument=yes
9873 else case e in #(
9874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9875 esac
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9878 esac
9879 fi
9880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 found="no"
9887
9888 if test $found = "no" ; then
9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891 fi
9892
9893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895 fi
9896
9897 CFLAGS="$CFLAGS -Wmain"
9898
9899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9900 printf %s "checking if $CC supports -Wmain... " >&6; }
9901 cacheid=xorg_cv_cc_flag__Wmain
9902 if eval test \${$cacheid+y}
9903 then :
9904 printf %s "(cached) " >&6
9905 else case e in #(
9906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 int i;
9909 int
9910 main (void)
9911 {
9912
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"
9918 then :
9919 eval $cacheid=yes
9920 else case e in #(
9921 e) eval $cacheid=no ;;
9922 esac
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9925 conftest$ac_exeext conftest.$ac_ext ;;
9926 esac
9927 fi
9928
9929
9930 CFLAGS="$xorg_testset_save_CFLAGS"
9931
9932 eval supported=\$$cacheid
9933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9934 printf '%s\n' "$supported" >&6; }
9935 if test "$supported" = "yes" ; then
9936 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9937 found="yes"
9938 fi
9939 fi
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955 xorg_testset_save_CFLAGS="$CFLAGS"
9956
9957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9962 then :
9963 printf %s "(cached) " >&6
9964 else case e in #(
9965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 int i;
9968 _ACEOF
9969 if ac_fn_c_try_compile "$LINENO"
9970 then :
9971 xorg_cv_cc_flag_unknown_warning_option=yes
9972 else case e in #(
9973 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9974 esac
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9977 esac
9978 fi
9979 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9982 CFLAGS="$xorg_testset_save_CFLAGS"
9983 fi
9984
9985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988 fi
9989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9990 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9993 then :
9994 printf %s "(cached) " >&6
9995 else case e in #(
9996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 int i;
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"
10001 then :
10002 xorg_cv_cc_flag_unused_command_line_argument=yes
10003 else case e in #(
10004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10005 esac
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10008 esac
10009 fi
10010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013 CFLAGS="$xorg_testset_save_CFLAGS"
10014 fi
10015
10016 found="no"
10017
10018 if test $found = "no" ; then
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 fi
10022
10023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025 fi
10026
10027 CFLAGS="$CFLAGS -Wmissing-braces"
10028
10029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10030 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10031 cacheid=xorg_cv_cc_flag__Wmissing_braces
10032 if eval test \${$cacheid+y}
10033 then :
10034 printf %s "(cached) " >&6
10035 else case e in #(
10036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 int i;
10039 int
10040 main (void)
10041 {
10042
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 if ac_fn_c_try_link "$LINENO"
10048 then :
10049 eval $cacheid=yes
10050 else case e in #(
10051 e) eval $cacheid=no ;;
10052 esac
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10055 conftest$ac_exeext conftest.$ac_ext ;;
10056 esac
10057 fi
10058
10059
10060 CFLAGS="$xorg_testset_save_CFLAGS"
10061
10062 eval supported=\$$cacheid
10063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10064 printf '%s\n' "$supported" >&6; }
10065 if test "$supported" = "yes" ; then
10066 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10067 found="yes"
10068 fi
10069 fi
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 xorg_testset_save_CFLAGS="$CFLAGS"
10086
10087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10092 then :
10093 printf %s "(cached) " >&6
10094 else case e in #(
10095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 int i;
10098 _ACEOF
10099 if ac_fn_c_try_compile "$LINENO"
10100 then :
10101 xorg_cv_cc_flag_unknown_warning_option=yes
10102 else case e in #(
10103 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10104 esac
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10107 esac
10108 fi
10109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10110 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10112 CFLAGS="$xorg_testset_save_CFLAGS"
10113 fi
10114
10115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 fi
10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else case e in #(
10126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"
10131 then :
10132 xorg_cv_cc_flag_unused_command_line_argument=yes
10133 else case e in #(
10134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10135 esac
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138 esac
10139 fi
10140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10141 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10143 CFLAGS="$xorg_testset_save_CFLAGS"
10144 fi
10145
10146 found="no"
10147
10148 if test $found = "no" ; then
10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151 fi
10152
10153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155 fi
10156
10157 CFLAGS="$CFLAGS -Wsequence-point"
10158
10159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10160 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10161 cacheid=xorg_cv_cc_flag__Wsequence_point
10162 if eval test \${$cacheid+y}
10163 then :
10164 printf %s "(cached) " >&6
10165 else case e in #(
10166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168 int i;
10169 int
10170 main (void)
10171 {
10172
10173 ;
10174 return 0;
10175 }
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"
10178 then :
10179 eval $cacheid=yes
10180 else case e in #(
10181 e) eval $cacheid=no ;;
10182 esac
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10185 conftest$ac_exeext conftest.$ac_ext ;;
10186 esac
10187 fi
10188
10189
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191
10192 eval supported=\$$cacheid
10193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10194 printf '%s\n' "$supported" >&6; }
10195 if test "$supported" = "yes" ; then
10196 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10197 found="yes"
10198 fi
10199 fi
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215 xorg_testset_save_CFLAGS="$CFLAGS"
10216
10217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10222 then :
10223 printf %s "(cached) " >&6
10224 else case e in #(
10225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 int i;
10228 _ACEOF
10229 if ac_fn_c_try_compile "$LINENO"
10230 then :
10231 xorg_cv_cc_flag_unknown_warning_option=yes
10232 else case e in #(
10233 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10234 esac
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10237 esac
10238 fi
10239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10240 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10242 CFLAGS="$xorg_testset_save_CFLAGS"
10243 fi
10244
10245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248 fi
10249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10250 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10253 then :
10254 printf %s "(cached) " >&6
10255 else case e in #(
10256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"
10261 then :
10262 xorg_cv_cc_flag_unused_command_line_argument=yes
10263 else case e in #(
10264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10265 esac
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10268 esac
10269 fi
10270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10271 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10273 CFLAGS="$xorg_testset_save_CFLAGS"
10274 fi
10275
10276 found="no"
10277
10278 if test $found = "no" ; then
10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281 fi
10282
10283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285 fi
10286
10287 CFLAGS="$CFLAGS -Wreturn-type"
10288
10289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10290 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10291 cacheid=xorg_cv_cc_flag__Wreturn_type
10292 if eval test \${$cacheid+y}
10293 then :
10294 printf %s "(cached) " >&6
10295 else case e in #(
10296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 int i;
10299 int
10300 main (void)
10301 {
10302
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"
10308 then :
10309 eval $cacheid=yes
10310 else case e in #(
10311 e) eval $cacheid=no ;;
10312 esac
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10315 conftest$ac_exeext conftest.$ac_ext ;;
10316 esac
10317 fi
10318
10319
10320 CFLAGS="$xorg_testset_save_CFLAGS"
10321
10322 eval supported=\$$cacheid
10323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10324 printf '%s\n' "$supported" >&6; }
10325 if test "$supported" = "yes" ; then
10326 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10327 found="yes"
10328 fi
10329 fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345 xorg_testset_save_CFLAGS="$CFLAGS"
10346
10347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10351 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10352 then :
10353 printf %s "(cached) " >&6
10354 else case e in #(
10355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 int i;
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"
10360 then :
10361 xorg_cv_cc_flag_unknown_warning_option=yes
10362 else case e in #(
10363 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10364 esac
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10367 esac
10368 fi
10369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10370 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10372 CFLAGS="$xorg_testset_save_CFLAGS"
10373 fi
10374
10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10381 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10382 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10383 then :
10384 printf %s "(cached) " >&6
10385 else case e in #(
10386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int i;
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"
10391 then :
10392 xorg_cv_cc_flag_unused_command_line_argument=yes
10393 else case e in #(
10394 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10395 esac
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10398 esac
10399 fi
10400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10401 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10403 CFLAGS="$xorg_testset_save_CFLAGS"
10404 fi
10405
10406 found="no"
10407
10408 if test $found = "no" ; then
10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411 fi
10412
10413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10415 fi
10416
10417 CFLAGS="$CFLAGS -Wtrigraphs"
10418
10419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10420 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10421 cacheid=xorg_cv_cc_flag__Wtrigraphs
10422 if eval test \${$cacheid+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else case e in #(
10426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 int i;
10429 int
10430 main (void)
10431 {
10432
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"
10438 then :
10439 eval $cacheid=yes
10440 else case e in #(
10441 e) eval $cacheid=no ;;
10442 esac
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10445 conftest$ac_exeext conftest.$ac_ext ;;
10446 esac
10447 fi
10448
10449
10450 CFLAGS="$xorg_testset_save_CFLAGS"
10451
10452 eval supported=\$$cacheid
10453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10454 printf '%s\n' "$supported" >&6; }
10455 if test "$supported" = "yes" ; then
10456 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10457 found="yes"
10458 fi
10459 fi
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475 xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else case e in #(
10485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 int i;
10488 _ACEOF
10489 if ac_fn_c_try_compile "$LINENO"
10490 then :
10491 xorg_cv_cc_flag_unknown_warning_option=yes
10492 else case e in #(
10493 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10494 esac
10495 fi
10496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10497 esac
10498 fi
10499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10500 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10502 CFLAGS="$xorg_testset_save_CFLAGS"
10503 fi
10504
10505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508 fi
10509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10511 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10512 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10513 then :
10514 printf %s "(cached) " >&6
10515 else case e in #(
10516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 int i;
10519 _ACEOF
10520 if ac_fn_c_try_compile "$LINENO"
10521 then :
10522 xorg_cv_cc_flag_unused_command_line_argument=yes
10523 else case e in #(
10524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10525 esac
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10528 esac
10529 fi
10530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10531 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10533 CFLAGS="$xorg_testset_save_CFLAGS"
10534 fi
10535
10536 found="no"
10537
10538 if test $found = "no" ; then
10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10541 fi
10542
10543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10545 fi
10546
10547 CFLAGS="$CFLAGS -Warray-bounds"
10548
10549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10550 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10551 cacheid=xorg_cv_cc_flag__Warray_bounds
10552 if eval test \${$cacheid+y}
10553 then :
10554 printf %s "(cached) " >&6
10555 else case e in #(
10556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 int i;
10559 int
10560 main (void)
10561 {
10562
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"
10568 then :
10569 eval $cacheid=yes
10570 else case e in #(
10571 e) eval $cacheid=no ;;
10572 esac
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10575 conftest$ac_exeext conftest.$ac_ext ;;
10576 esac
10577 fi
10578
10579
10580 CFLAGS="$xorg_testset_save_CFLAGS"
10581
10582 eval supported=\$$cacheid
10583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10584 printf '%s\n' "$supported" >&6; }
10585 if test "$supported" = "yes" ; then
10586 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10587 found="yes"
10588 fi
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 xorg_testset_save_CFLAGS="$CFLAGS"
10606
10607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10611 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10612 then :
10613 printf %s "(cached) " >&6
10614 else case e in #(
10615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 int i;
10618 _ACEOF
10619 if ac_fn_c_try_compile "$LINENO"
10620 then :
10621 xorg_cv_cc_flag_unknown_warning_option=yes
10622 else case e in #(
10623 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10624 esac
10625 fi
10626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10627 esac
10628 fi
10629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10630 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10632 CFLAGS="$xorg_testset_save_CFLAGS"
10633 fi
10634
10635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638 fi
10639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else case e in #(
10646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 int i;
10649 _ACEOF
10650 if ac_fn_c_try_compile "$LINENO"
10651 then :
10652 xorg_cv_cc_flag_unused_command_line_argument=yes
10653 else case e in #(
10654 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10655 esac
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10658 esac
10659 fi
10660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10661 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10663 CFLAGS="$xorg_testset_save_CFLAGS"
10664 fi
10665
10666 found="no"
10667
10668 if test $found = "no" ; then
10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10671 fi
10672
10673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10675 fi
10676
10677 CFLAGS="$CFLAGS -Wwrite-strings"
10678
10679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10680 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10681 cacheid=xorg_cv_cc_flag__Wwrite_strings
10682 if eval test \${$cacheid+y}
10683 then :
10684 printf %s "(cached) " >&6
10685 else case e in #(
10686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 int i;
10689 int
10690 main (void)
10691 {
10692
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"
10698 then :
10699 eval $cacheid=yes
10700 else case e in #(
10701 e) eval $cacheid=no ;;
10702 esac
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705 conftest$ac_exeext conftest.$ac_ext ;;
10706 esac
10707 fi
10708
10709
10710 CFLAGS="$xorg_testset_save_CFLAGS"
10711
10712 eval supported=\$$cacheid
10713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10714 printf '%s\n' "$supported" >&6; }
10715 if test "$supported" = "yes" ; then
10716 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10717 found="yes"
10718 fi
10719 fi
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735 xorg_testset_save_CFLAGS="$CFLAGS"
10736
10737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10740 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10741 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10742 then :
10743 printf %s "(cached) " >&6
10744 else case e in #(
10745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 int i;
10748 _ACEOF
10749 if ac_fn_c_try_compile "$LINENO"
10750 then :
10751 xorg_cv_cc_flag_unknown_warning_option=yes
10752 else case e in #(
10753 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10754 esac
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10757 esac
10758 fi
10759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10760 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10762 CFLAGS="$xorg_testset_save_CFLAGS"
10763 fi
10764
10765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10768 fi
10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10770 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10773 then :
10774 printf %s "(cached) " >&6
10775 else case e in #(
10776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 int i;
10779 _ACEOF
10780 if ac_fn_c_try_compile "$LINENO"
10781 then :
10782 xorg_cv_cc_flag_unused_command_line_argument=yes
10783 else case e in #(
10784 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10785 esac
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10788 esac
10789 fi
10790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10791 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10793 CFLAGS="$xorg_testset_save_CFLAGS"
10794 fi
10795
10796 found="no"
10797
10798 if test $found = "no" ; then
10799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10801 fi
10802
10803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10805 fi
10806
10807 CFLAGS="$CFLAGS -Waddress"
10808
10809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10810 printf %s "checking if $CC supports -Waddress... " >&6; }
10811 cacheid=xorg_cv_cc_flag__Waddress
10812 if eval test \${$cacheid+y}
10813 then :
10814 printf %s "(cached) " >&6
10815 else case e in #(
10816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 int i;
10819 int
10820 main (void)
10821 {
10822
10823 ;
10824 return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"
10828 then :
10829 eval $cacheid=yes
10830 else case e in #(
10831 e) eval $cacheid=no ;;
10832 esac
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10835 conftest$ac_exeext conftest.$ac_ext ;;
10836 esac
10837 fi
10838
10839
10840 CFLAGS="$xorg_testset_save_CFLAGS"
10841
10842 eval supported=\$$cacheid
10843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10844 printf '%s\n' "$supported" >&6; }
10845 if test "$supported" = "yes" ; then
10846 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10847 found="yes"
10848 fi
10849 fi
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865 xorg_testset_save_CFLAGS="$CFLAGS"
10866
10867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10870 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10871 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10872 then :
10873 printf %s "(cached) " >&6
10874 else case e in #(
10875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 int i;
10878 _ACEOF
10879 if ac_fn_c_try_compile "$LINENO"
10880 then :
10881 xorg_cv_cc_flag_unknown_warning_option=yes
10882 else case e in #(
10883 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10884 esac
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10887 esac
10888 fi
10889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10890 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10892 CFLAGS="$xorg_testset_save_CFLAGS"
10893 fi
10894
10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10898 fi
10899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10901 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10902 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10903 then :
10904 printf %s "(cached) " >&6
10905 else case e in #(
10906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 int i;
10909 _ACEOF
10910 if ac_fn_c_try_compile "$LINENO"
10911 then :
10912 xorg_cv_cc_flag_unused_command_line_argument=yes
10913 else case e in #(
10914 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10915 esac
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10918 esac
10919 fi
10920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10921 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10923 CFLAGS="$xorg_testset_save_CFLAGS"
10924 fi
10925
10926 found="no"
10927
10928 if test $found = "no" ; then
10929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10931 fi
10932
10933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10935 fi
10936
10937 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10938
10939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10940 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10941 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10942 if eval test \${$cacheid+y}
10943 then :
10944 printf %s "(cached) " >&6
10945 else case e in #(
10946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 int i;
10949 int
10950 main (void)
10951 {
10952
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"
10958 then :
10959 eval $cacheid=yes
10960 else case e in #(
10961 e) eval $cacheid=no ;;
10962 esac
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10965 conftest$ac_exeext conftest.$ac_ext ;;
10966 esac
10967 fi
10968
10969
10970 CFLAGS="$xorg_testset_save_CFLAGS"
10971
10972 eval supported=\$$cacheid
10973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10974 printf '%s\n' "$supported" >&6; }
10975 if test "$supported" = "yes" ; then
10976 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10977 found="yes"
10978 fi
10979 fi
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995 xorg_testset_save_CFLAGS="$CFLAGS"
10996
10997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11001 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11002 then :
11003 printf %s "(cached) " >&6
11004 else case e in #(
11005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 int i;
11008 _ACEOF
11009 if ac_fn_c_try_compile "$LINENO"
11010 then :
11011 xorg_cv_cc_flag_unknown_warning_option=yes
11012 else case e in #(
11013 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11014 esac
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11017 esac
11018 fi
11019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11020 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11022 CFLAGS="$xorg_testset_save_CFLAGS"
11023 fi
11024
11025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11028 fi
11029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11032 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11033 then :
11034 printf %s "(cached) " >&6
11035 else case e in #(
11036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11038 int i;
11039 _ACEOF
11040 if ac_fn_c_try_compile "$LINENO"
11041 then :
11042 xorg_cv_cc_flag_unused_command_line_argument=yes
11043 else case e in #(
11044 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11045 esac
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11048 esac
11049 fi
11050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11051 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11053 CFLAGS="$xorg_testset_save_CFLAGS"
11054 fi
11055
11056 found="no"
11057
11058 if test $found = "no" ; then
11059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11061 fi
11062
11063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11065 fi
11066
11067 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11068
11069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11070 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11071 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11072 if eval test \${$cacheid+y}
11073 then :
11074 printf %s "(cached) " >&6
11075 else case e in #(
11076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078 int i;
11079 int
11080 main (void)
11081 {
11082
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"
11088 then :
11089 eval $cacheid=yes
11090 else case e in #(
11091 e) eval $cacheid=no ;;
11092 esac
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11095 conftest$ac_exeext conftest.$ac_ext ;;
11096 esac
11097 fi
11098
11099
11100 CFLAGS="$xorg_testset_save_CFLAGS"
11101
11102 eval supported=\$$cacheid
11103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11104 printf '%s\n' "$supported" >&6; }
11105 if test "$supported" = "yes" ; then
11106 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11107 found="yes"
11108 fi
11109 fi
11110
11111
11112 fi
11113
11114
11115
11116
11117
11118
11119
11120 CWARNFLAGS="$BASE_CFLAGS"
11121 if test "x$GCC" = xyes ; then
11122 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11123 fi
11124
11125
11126
11127
11128
11129
11130
11131
11132 # Check whether --enable-strict-compilation was given.
11133 if test ${enable_strict_compilation+y}
11134 then :
11135 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11136 else case e in #(
11137 e) STRICT_COMPILE=no ;;
11138 esac
11139 fi
11140
11141
11142
11143
11144
11145
11146 STRICT_CFLAGS=""
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 xorg_testset_save_CFLAGS="$CFLAGS"
11161
11162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11166 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11167 then :
11168 printf %s "(cached) " >&6
11169 else case e in #(
11170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 int i;
11173 _ACEOF
11174 if ac_fn_c_try_compile "$LINENO"
11175 then :
11176 xorg_cv_cc_flag_unknown_warning_option=yes
11177 else case e in #(
11178 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11179 esac
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11182 esac
11183 fi
11184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11185 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11187 CFLAGS="$xorg_testset_save_CFLAGS"
11188 fi
11189
11190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11193 fi
11194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11196 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11197 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11198 then :
11199 printf %s "(cached) " >&6
11200 else case e in #(
11201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 int i;
11204 _ACEOF
11205 if ac_fn_c_try_compile "$LINENO"
11206 then :
11207 xorg_cv_cc_flag_unused_command_line_argument=yes
11208 else case e in #(
11209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11210 esac
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11213 esac
11214 fi
11215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11216 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11218 CFLAGS="$xorg_testset_save_CFLAGS"
11219 fi
11220
11221 found="no"
11222
11223 if test $found = "no" ; then
11224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11226 fi
11227
11228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11230 fi
11231
11232 CFLAGS="$CFLAGS -pedantic"
11233
11234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11235 printf %s "checking if $CC supports -pedantic... " >&6; }
11236 cacheid=xorg_cv_cc_flag__pedantic
11237 if eval test \${$cacheid+y}
11238 then :
11239 printf %s "(cached) " >&6
11240 else case e in #(
11241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243 int i;
11244 int
11245 main (void)
11246 {
11247
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"
11253 then :
11254 eval $cacheid=yes
11255 else case e in #(
11256 e) eval $cacheid=no ;;
11257 esac
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11260 conftest$ac_exeext conftest.$ac_ext ;;
11261 esac
11262 fi
11263
11264
11265 CFLAGS="$xorg_testset_save_CFLAGS"
11266
11267 eval supported=\$$cacheid
11268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11269 printf '%s\n' "$supported" >&6; }
11270 if test "$supported" = "yes" ; then
11271 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11272 found="yes"
11273 fi
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290 xorg_testset_save_CFLAGS="$CFLAGS"
11291
11292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11294 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11296 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11297 then :
11298 printf %s "(cached) " >&6
11299 else case e in #(
11300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 int i;
11303 _ACEOF
11304 if ac_fn_c_try_compile "$LINENO"
11305 then :
11306 xorg_cv_cc_flag_unknown_warning_option=yes
11307 else case e in #(
11308 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11309 esac
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11312 esac
11313 fi
11314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11315 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11317 CFLAGS="$xorg_testset_save_CFLAGS"
11318 fi
11319
11320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11323 fi
11324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11326 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11327 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11328 then :
11329 printf %s "(cached) " >&6
11330 else case e in #(
11331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333 int i;
11334 _ACEOF
11335 if ac_fn_c_try_compile "$LINENO"
11336 then :
11337 xorg_cv_cc_flag_unused_command_line_argument=yes
11338 else case e in #(
11339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11340 esac
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11343 esac
11344 fi
11345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11346 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11348 CFLAGS="$xorg_testset_save_CFLAGS"
11349 fi
11350
11351 found="no"
11352
11353 if test $found = "no" ; then
11354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11356 fi
11357
11358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11360 fi
11361
11362 CFLAGS="$CFLAGS -Werror"
11363
11364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11365 printf %s "checking if $CC supports -Werror... " >&6; }
11366 cacheid=xorg_cv_cc_flag__Werror
11367 if eval test \${$cacheid+y}
11368 then :
11369 printf %s "(cached) " >&6
11370 else case e in #(
11371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373 int i;
11374 int
11375 main (void)
11376 {
11377
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"
11383 then :
11384 eval $cacheid=yes
11385 else case e in #(
11386 e) eval $cacheid=no ;;
11387 esac
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11390 conftest$ac_exeext conftest.$ac_ext ;;
11391 esac
11392 fi
11393
11394
11395 CFLAGS="$xorg_testset_save_CFLAGS"
11396
11397 eval supported=\$$cacheid
11398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11399 printf '%s\n' "$supported" >&6; }
11400 if test "$supported" = "yes" ; then
11401 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11402 found="yes"
11403 fi
11404 fi
11405
11406 if test $found = "no" ; then
11407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11409 fi
11410
11411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11413 fi
11414
11415 CFLAGS="$CFLAGS -errwarn"
11416
11417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11418 printf %s "checking if $CC supports -errwarn... " >&6; }
11419 cacheid=xorg_cv_cc_flag__errwarn
11420 if eval test \${$cacheid+y}
11421 then :
11422 printf %s "(cached) " >&6
11423 else case e in #(
11424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 int i;
11427 int
11428 main (void)
11429 {
11430
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"
11436 then :
11437 eval $cacheid=yes
11438 else case e in #(
11439 e) eval $cacheid=no ;;
11440 esac
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11443 conftest$ac_exeext conftest.$ac_ext ;;
11444 esac
11445 fi
11446
11447
11448 CFLAGS="$xorg_testset_save_CFLAGS"
11449
11450 eval supported=\$$cacheid
11451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11452 printf '%s\n' "$supported" >&6; }
11453 if test "$supported" = "yes" ; then
11454 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11455 found="yes"
11456 fi
11457 fi
11458
11459
11460
11461 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11462 # activate it with -Werror, so we add it here explicitly.
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476 xorg_testset_save_CFLAGS="$CFLAGS"
11477
11478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11483 then :
11484 printf %s "(cached) " >&6
11485 else case e in #(
11486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11488 int i;
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"
11491 then :
11492 xorg_cv_cc_flag_unknown_warning_option=yes
11493 else case e in #(
11494 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11495 esac
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11498 esac
11499 fi
11500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11501 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11503 CFLAGS="$xorg_testset_save_CFLAGS"
11504 fi
11505
11506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11509 fi
11510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11514 then :
11515 printf %s "(cached) " >&6
11516 else case e in #(
11517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 int i;
11520 _ACEOF
11521 if ac_fn_c_try_compile "$LINENO"
11522 then :
11523 xorg_cv_cc_flag_unused_command_line_argument=yes
11524 else case e in #(
11525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11526 esac
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11529 esac
11530 fi
11531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11532 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11534 CFLAGS="$xorg_testset_save_CFLAGS"
11535 fi
11536
11537 found="no"
11538
11539 if test $found = "no" ; then
11540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11542 fi
11543
11544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11546 fi
11547
11548 CFLAGS="$CFLAGS -Werror=attributes"
11549
11550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11551 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11552 cacheid=xorg_cv_cc_flag__Werror_attributes
11553 if eval test \${$cacheid+y}
11554 then :
11555 printf %s "(cached) " >&6
11556 else case e in #(
11557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 int i;
11560 int
11561 main (void)
11562 {
11563
11564 ;
11565 return 0;
11566 }
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"
11569 then :
11570 eval $cacheid=yes
11571 else case e in #(
11572 e) eval $cacheid=no ;;
11573 esac
11574 fi
11575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11576 conftest$ac_exeext conftest.$ac_ext ;;
11577 esac
11578 fi
11579
11580
11581 CFLAGS="$xorg_testset_save_CFLAGS"
11582
11583 eval supported=\$$cacheid
11584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11585 printf '%s\n' "$supported" >&6; }
11586 if test "$supported" = "yes" ; then
11587 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11588 found="yes"
11589 fi
11590 fi
11591
11592
11593
11594 if test "x$STRICT_COMPILE" = "xyes"; then
11595 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11596 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11597 fi
11598
11599
11600
11601
11602
11603
11604
11605
11606 cat >>confdefs.h <<_ACEOF
11607 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11608 _ACEOF
11609
11610 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11611 if test "x$PVM" = "x"; then
11612 PVM="0"
11613 fi
11614
11615 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11616
11617 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11618 if test "x$PVP" = "x"; then
11619 PVP="0"
11620 fi
11621
11622 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11623
11624
11625
11626 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11627 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11628 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11629 touch \$(top_srcdir)/ChangeLog; \
11630 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11631
11632
11633
11634
11635 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11636 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11637 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11638 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11639 touch \$(top_srcdir)/INSTALL; \
11640 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11641
11642
11643
11644
11645
11646
11647 case $host_os in
11648 solaris*)
11649 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11650 # check for a man page file found in later versions that use
11651 # traditional section numbers instead
11652 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11653 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11654 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11655 then :
11656 printf %s "(cached) " >&6
11657 else case e in #(
11658 e) test "$cross_compiling" = yes &&
11659 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11660 if test -r "/usr/share/man/man7/attributes.7"; then
11661 ac_cv_file__usr_share_man_man7_attributes_7=yes
11662 else
11663 ac_cv_file__usr_share_man_man7_attributes_7=no
11664 fi ;;
11665 esac
11666 fi
11667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11668 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11669 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11670 then :
11671 SYSV_MAN_SECTIONS=false
11672 else case e in #(
11673 e) SYSV_MAN_SECTIONS=true ;;
11674 esac
11675 fi
11676
11677 ;;
11678 *) SYSV_MAN_SECTIONS=false ;;
11679 esac
11680
11681 if test x$APP_MAN_SUFFIX = x ; then
11682 APP_MAN_SUFFIX=1
11683 fi
11684 if test x$APP_MAN_DIR = x ; then
11685 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11686 fi
11687
11688 if test x$LIB_MAN_SUFFIX = x ; then
11689 LIB_MAN_SUFFIX=3
11690 fi
11691 if test x$LIB_MAN_DIR = x ; then
11692 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11693 fi
11694
11695 if test x$FILE_MAN_SUFFIX = x ; then
11696 case $SYSV_MAN_SECTIONS in
11697 true) FILE_MAN_SUFFIX=4 ;;
11698 *) FILE_MAN_SUFFIX=5 ;;
11699 esac
11700 fi
11701 if test x$FILE_MAN_DIR = x ; then
11702 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11703 fi
11704
11705 if test x$MISC_MAN_SUFFIX = x ; then
11706 case $SYSV_MAN_SECTIONS in
11707 true) MISC_MAN_SUFFIX=5 ;;
11708 *) MISC_MAN_SUFFIX=7 ;;
11709 esac
11710 fi
11711 if test x$MISC_MAN_DIR = x ; then
11712 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11713 fi
11714
11715 if test x$DRIVER_MAN_SUFFIX = x ; then
11716 case $SYSV_MAN_SECTIONS in
11717 true) DRIVER_MAN_SUFFIX=7 ;;
11718 *) DRIVER_MAN_SUFFIX=4 ;;
11719 esac
11720 fi
11721 if test x$DRIVER_MAN_DIR = x ; then
11722 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11723 fi
11724
11725 if test x$ADMIN_MAN_SUFFIX = x ; then
11726 case $SYSV_MAN_SECTIONS in
11727 true) ADMIN_MAN_SUFFIX=1m ;;
11728 *) ADMIN_MAN_SUFFIX=8 ;;
11729 esac
11730 fi
11731 if test x$ADMIN_MAN_DIR = x ; then
11732 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11733 fi
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749 XORG_MAN_PAGE="X Version 11"
11750
11751 MAN_SUBSTS="\
11752 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11753 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11754 -e 's|__xservername__|Xorg|g' \
11755 -e 's|__xconfigfile__|xorg.conf|g' \
11756 -e 's|__projectroot__|\$(prefix)|g' \
11757 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11758 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11759 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11760 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11761 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11762 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11763 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11764
11765
11766
11767
11768 AM_DEFAULT_VERBOSITY=0
11769
11770
11771
11772
11773
11774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
11775 printf %s "checking for floor in -lm... " >&6; }
11776 if test ${ac_cv_lib_m_floor+y}
11777 then :
11778 printf %s "(cached) " >&6
11779 else case e in #(
11780 e) ac_check_lib_save_LIBS=$LIBS
11781 LIBS="-lm $LIBS"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply.
11788 The 'extern "C"' is for builds by C++ compilers;
11789 although this is not generally supported in C code supporting it here
11790 has little cost and some practical benefit (sr 110532). */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 char floor (void);
11795 int
11796 main (void)
11797 {
11798 return floor ();
11799 ;
11800 return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_link "$LINENO"
11804 then :
11805 ac_cv_lib_m_floor=yes
11806 else case e in #(
11807 e) ac_cv_lib_m_floor=no ;;
11808 esac
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS ;;
11813 esac
11814 fi
11815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
11816 printf '%s\n' "$ac_cv_lib_m_floor" >&6; }
11817 if test "x$ac_cv_lib_m_floor" = xyes
11818 then :
11819 printf '%s\n' "#define HAVE_LIBM 1" >>confdefs.h
11820
11821 LIBS="-lm $LIBS"
11822
11823 fi
11824
11825
11826 # Checks for pkg-config packages
11827
11828 pkg_failed=no
11829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
11830 printf %s "checking for XRANDR... " >&6; }
11831
11832 if test -n "$XRANDR_CFLAGS"; then
11833 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
11834 elif test -n "$PKG_CONFIG"; then
11835 if test -n "$PKG_CONFIG" && \
11836 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5 xrender x11 xproto >= 7.0.17\""; } >&5
11837 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5 xrender x11 xproto >= 7.0.17") 2>&5
11838 ac_status=$?
11839 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11840 test $ac_status = 0; }; then
11841 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>/dev/null`
11842 test "x$?" != "x0" && pkg_failed=yes
11843 else
11844 pkg_failed=yes
11845 fi
11846 else
11847 pkg_failed=untried
11848 fi
11849 if test -n "$XRANDR_LIBS"; then
11850 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
11851 elif test -n "$PKG_CONFIG"; then
11852 if test -n "$PKG_CONFIG" && \
11853 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.5 xrender x11 xproto >= 7.0.17\""; } >&5
11854 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.5 xrender x11 xproto >= 7.0.17") 2>&5
11855 ac_status=$?
11856 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11857 test $ac_status = 0; }; then
11858 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>/dev/null`
11859 test "x$?" != "x0" && pkg_failed=yes
11860 else
11861 pkg_failed=yes
11862 fi
11863 else
11864 pkg_failed=untried
11865 fi
11866
11867
11868
11869 if test $pkg_failed = yes; then
11870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 printf '%s\n' "no" >&6; }
11872
11873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11874 _pkg_short_errors_supported=yes
11875 else
11876 _pkg_short_errors_supported=no
11877 fi
11878 if test $_pkg_short_errors_supported = yes; then
11879 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>&1`
11880 else
11881 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.5 xrender x11 xproto >= 7.0.17" 2>&1`
11882 fi
11883 # Put the nasty error message in config.log where it belongs
11884 echo "$XRANDR_PKG_ERRORS" >&5
11885
11886 as_fn_error $? "Package requirements (xrandr >= 1.5 xrender x11 xproto >= 7.0.17) were not met:
11887
11888 $XRANDR_PKG_ERRORS
11889
11890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891 installed software in a non-standard prefix.
11892
11893 Alternatively, you may set the environment variables XRANDR_CFLAGS
11894 and XRANDR_LIBS to avoid the need to call pkg-config.
11895 See the pkg-config man page for more details." "$LINENO" 5
11896 elif test $pkg_failed = untried; then
11897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 printf '%s\n' "no" >&6; }
11899 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11900 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
11901 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11902 is in your PATH or set the PKG_CONFIG environment variable to the full
11903 path to pkg-config.
11904
11905 Alternatively, you may set the environment variables XRANDR_CFLAGS
11906 and XRANDR_LIBS to avoid the need to call pkg-config.
11907 See the pkg-config man page for more details.
11908
11909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910 See 'config.log' for more details" "$LINENO" 5; }
11911 else
11912 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
11913 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
11914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 printf '%s\n' "yes" >&6; }
11916
11917 fi
11918
11919 ac_config_files="$ac_config_files Makefile man/Makefile"
11920
11921 cat >confcache <<\_ACEOF
11922 # This file is a shell script that caches the results of configure
11923 # tests run on this system so they can be shared between configure
11924 # scripts and configure runs, see configure's option --config-cache.
11925 # It is not useful on other systems. If it contains results you don't
11926 # want to keep, you may remove or edit it.
11927 #
11928 # config.status only pays attention to the cache file if you give it
11929 # the --recheck option to rerun configure.
11930 #
11931 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11932 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11933 # following values.
11934
11935 _ACEOF
11936
11937 ac_cache_dump |
11938 sed '
11939 /^ac_cv_env_/b end
11940 t clear
11941 :clear
11942 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11943 t end
11944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11945 :end' >>confcache
11946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11947 if test -w "$cache_file"; then
11948 if test "x$cache_file" != "x/dev/null"; then
11949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11950 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
11951 if test ! -f "$cache_file" || test -h "$cache_file"; then
11952 cat confcache >"$cache_file"
11953 else
11954 case $cache_file in #(
11955 */* | ?:*)
11956 mv -f confcache "$cache_file"$$ &&
11957 mv -f "$cache_file"$$ "$cache_file" ;; #(
11958 *)
11959 mv -f confcache "$cache_file" ;;
11960 esac
11961 fi
11962 fi
11963 else
11964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11965 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
11966 fi
11967 fi
11968 rm -f confcache
11969
11970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11971 # Let make expand exec_prefix.
11972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11973
11974 DEFS=-DHAVE_CONFIG_H
11975
11976 ac_libobjs=
11977 ac_ltlibobjs=
11978 U=
11979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11980 # 1. Remove the extension, and $U if already installed.
11981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11982 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
11983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11984 # will be set to the directory where LIBOBJS objects are built.
11985 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11986 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11987 done
11988 LIBOBJS=$ac_libobjs
11989
11990 LTLIBOBJS=$ac_ltlibobjs
11991
11992
11993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11994 printf %s "checking that generated files are newer than configure... " >&6; }
11995 if test -n "$am_sleep_pid"; then
11996 # Hide warnings about reused PIDs.
11997 wait $am_sleep_pid 2>/dev/null
11998 fi
11999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12000 printf '%s\n' "done" >&6; }
12001 case $enable_silent_rules in # (((
12002 yes) AM_DEFAULT_VERBOSITY=0;;
12003 no) AM_DEFAULT_VERBOSITY=1;;
12004 esac
12005 if test $am_cv_make_support_nested_variables = yes; then
12006 AM_V='$(V)'
12007 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12008 else
12009 AM_V=$AM_DEFAULT_VERBOSITY
12010 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12011 fi
12012
12013 if test -n "$EXEEXT"; then
12014 am__EXEEXT_TRUE=
12015 am__EXEEXT_FALSE='#'
12016 else
12017 am__EXEEXT_TRUE='#'
12018 am__EXEEXT_FALSE=
12019 fi
12020
12021 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12022 as_fn_error $? "conditional \"AMDEP\" was never defined.
12023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12024 fi
12025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12028 fi
12029
12030 : "${CONFIG_STATUS=./config.status}"
12031 case $CONFIG_STATUS in #(
12032 -*) :
12033 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12034 */*) :
12035 ;; #(
12036 *) :
12037 CONFIG_STATUS=./$CONFIG_STATUS ;;
12038 esac
12039
12040 ac_write_fail=0
12041 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12043 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12044 as_write_fail=0
12045 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12046 #! $SHELL
12047 # Generated by $as_me.
12048 # Run this file to recreate the current configuration.
12049 # Compiler output produced by configure, useful for debugging
12050 # configure, is in config.log if it exists.
12051
12052 debug=false
12053 ac_cs_recheck=false
12054 ac_cs_silent=false
12055
12056 SHELL=\${CONFIG_SHELL-$SHELL}
12057 export SHELL
12058 _ASEOF
12059 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12060 ## -------------------- ##
12061 ## M4sh Initialization. ##
12062 ## -------------------- ##
12063
12064 # Be more Bourne compatible
12065 DUALCASE=1; export DUALCASE # for MKS sh
12066 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12067 then :
12068 emulate sh
12069 NULLCMD=:
12070 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12071 # contradicts POSIX and common usage. Disable this.
12072 alias -g '${1+"$@"}'='"$@"'
12073 setopt NO_GLOB_SUBST
12074 else case e in #(
12075 e) case `(set -o) 2>/dev/null` in #(
12076 *posix*) :
12077 set -o posix ;; #(
12078 *) :
12079 ;;
12080 esac ;;
12081 esac
12082 fi
12083
12084
12085
12086 # Reset variables that may have inherited troublesome values from
12087 # the environment.
12088
12089 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12090 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12091 # side effect of setting IFS to empty, thus disabling word splitting.)
12092 # Quoting is to prevent editors from complaining about space-tab.
12093 as_nl='
12094 '
12095 export as_nl
12096 IFS=" "" $as_nl"
12097
12098 PS1='$ '
12099 PS2='> '
12100 PS4='+ '
12101
12102 # Ensure predictable behavior from utilities with locale-dependent output.
12103 LC_ALL=C
12104 export LC_ALL
12105 LANGUAGE=C
12106 export LANGUAGE
12107
12108 # We cannot yet rely on "unset" to work, but we need these variables
12109 # to be unset--not just set to an empty or harmless value--now, to
12110 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12111 # also avoids known problems related to "unset" and subshell syntax
12112 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12113 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12114 do eval test \${$as_var+y} \
12115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12116 done
12117
12118 # Ensure that fds 0, 1, and 2 are open.
12119 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12120 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12121 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12122
12123 # The user is always right.
12124 if ${PATH_SEPARATOR+false} :; then
12125 PATH_SEPARATOR=:
12126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12128 PATH_SEPARATOR=';'
12129 }
12130 fi
12131
12132
12133 # Find who we are. Look in the path if we contain no directory separator.
12134 as_myself=
12135 case $0 in #((
12136 *[\\/]* ) as_myself=$0 ;;
12137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140 IFS=$as_save_IFS
12141 case $as_dir in #(((
12142 '') as_dir=./ ;;
12143 */) ;;
12144 *) as_dir=$as_dir/ ;;
12145 esac
12146 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12147 done
12148 IFS=$as_save_IFS
12149
12150 ;;
12151 esac
12152 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12153 # in which case we are not to be found in the path.
12154 if test "x$as_myself" = x; then
12155 as_myself=$0
12156 fi
12157 if test ! -f "$as_myself"; then
12158 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12159 exit 1
12160 fi
12161
12162
12163
12164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12165 # ----------------------------------------
12166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12168 # script with STATUS, using 1 if that was 0.
12169 as_fn_error ()
12170 {
12171 as_status=$1; test $as_status -eq 0 && as_status=1
12172 if test "$4"; then
12173 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12174 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12175 fi
12176 printf '%s\n' "$as_me: error: $2" >&2
12177 as_fn_exit $as_status
12178 } # as_fn_error
12179
12180
12181 # as_fn_set_status STATUS
12182 # -----------------------
12183 # Set $? to STATUS, without forking.
12184 as_fn_set_status ()
12185 {
12186 return $1
12187 } # as_fn_set_status
12188
12189 # as_fn_exit STATUS
12190 # -----------------
12191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12192 as_fn_exit ()
12193 {
12194 set +e
12195 as_fn_set_status $1
12196 exit $1
12197 } # as_fn_exit
12198
12199 # as_fn_unset VAR
12200 # ---------------
12201 # Portably unset VAR.
12202 as_fn_unset ()
12203 {
12204 { eval $1=; unset $1;}
12205 }
12206 as_unset=as_fn_unset
12207
12208 # as_fn_append VAR VALUE
12209 # ----------------------
12210 # Append the text in VALUE to the end of the definition contained in VAR. Take
12211 # advantage of any shell optimizations that allow amortized linear growth over
12212 # repeated appends, instead of the typical quadratic growth present in naive
12213 # implementations.
12214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12215 then :
12216 eval 'as_fn_append ()
12217 {
12218 eval $1+=\$2
12219 }'
12220 else case e in #(
12221 e) as_fn_append ()
12222 {
12223 eval $1=\$$1\$2
12224 } ;;
12225 esac
12226 fi # as_fn_append
12227
12228 # as_fn_arith ARG...
12229 # ------------------
12230 # Perform arithmetic evaluation on the ARGs, and store the result in the
12231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12232 # must be portable across $(()) and expr.
12233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12234 then :
12235 eval 'as_fn_arith ()
12236 {
12237 as_val=$(( $* ))
12238 }'
12239 else case e in #(
12240 e) as_fn_arith ()
12241 {
12242 as_val=`expr "$@" || test $? -eq 1`
12243 } ;;
12244 esac
12245 fi # as_fn_arith
12246
12247
12248 if expr a : '\(a\)' >/dev/null 2>&1 &&
12249 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12250 as_expr=expr
12251 else
12252 as_expr=false
12253 fi
12254
12255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12256 as_basename=basename
12257 else
12258 as_basename=false
12259 fi
12260
12261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12262 as_dirname=dirname
12263 else
12264 as_dirname=false
12265 fi
12266
12267 as_me=`$as_basename -- "$0" ||
12268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12269 X"$0" : 'X\(//\)$' \| \
12270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12271 printf '%s\n' X/"$0" |
12272 sed '/^.*\/\([^/][^/]*\)\/*$/{
12273 s//\1/
12274 q
12275 }
12276 /^X\/\(\/\/\)$/{
12277 s//\1/
12278 q
12279 }
12280 /^X\/\(\/\).*/{
12281 s//\1/
12282 q
12283 }
12284 s/.*/./; q'`
12285
12286 # Avoid depending upon Character Ranges.
12287 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12290 as_cr_digits='0123456789'
12291 as_cr_alnum=$as_cr_Letters$as_cr_digits
12292
12293 rm -f conf$$ conf$$.exe conf$$.file
12294 if test -d conf$$.dir; then
12295 rm -f conf$$.dir/conf$$.file
12296 else
12297 rm -f conf$$.dir
12298 mkdir conf$$.dir 2>/dev/null
12299 fi
12300 if (echo >conf$$.file) 2>/dev/null; then
12301 if ln -s conf$$.file conf$$ 2>/dev/null; then
12302 as_ln_s='ln -s'
12303 # ... but there are two gotchas:
12304 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12305 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12306 # In both cases, we have to default to 'cp -pR'.
12307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12308 as_ln_s='cp -pR'
12309 elif ln conf$$.file conf$$ 2>/dev/null; then
12310 as_ln_s=ln
12311 else
12312 as_ln_s='cp -pR'
12313 fi
12314 else
12315 as_ln_s='cp -pR'
12316 fi
12317 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12318 rmdir conf$$.dir 2>/dev/null
12319
12320
12321 # as_fn_mkdir_p
12322 # -------------
12323 # Create "$as_dir" as a directory, including parents if necessary.
12324 as_fn_mkdir_p ()
12325 {
12326
12327 case $as_dir in #(
12328 -*) as_dir=./$as_dir;;
12329 esac
12330 test -d "$as_dir" || eval $as_mkdir_p || {
12331 as_dirs=
12332 while :; do
12333 case $as_dir in #(
12334 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12335 *) as_qdir=$as_dir;;
12336 esac
12337 as_dirs="'$as_qdir' $as_dirs"
12338 as_dir=`$as_dirname -- "$as_dir" ||
12339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12340 X"$as_dir" : 'X\(//\)[^/]' \| \
12341 X"$as_dir" : 'X\(//\)$' \| \
12342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12343 printf '%s\n' X"$as_dir" |
12344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12345 s//\1/
12346 q
12347 }
12348 /^X\(\/\/\)[^/].*/{
12349 s//\1/
12350 q
12351 }
12352 /^X\(\/\/\)$/{
12353 s//\1/
12354 q
12355 }
12356 /^X\(\/\).*/{
12357 s//\1/
12358 q
12359 }
12360 s/.*/./; q'`
12361 test -d "$as_dir" && break
12362 done
12363 test -z "$as_dirs" || eval "mkdir $as_dirs"
12364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12365
12366
12367 } # as_fn_mkdir_p
12368 if mkdir -p . 2>/dev/null; then
12369 as_mkdir_p='mkdir -p "$as_dir"'
12370 else
12371 test -d ./-p && rmdir ./-p
12372 as_mkdir_p=false
12373 fi
12374
12375
12376 # as_fn_executable_p FILE
12377 # -----------------------
12378 # Test if FILE is an executable regular file.
12379 as_fn_executable_p ()
12380 {
12381 test -f "$1" && test -x "$1"
12382 } # as_fn_executable_p
12383 as_test_x='test -x'
12384 as_executable_p=as_fn_executable_p
12385
12386 # Sed expression to map a string onto a valid CPP name.
12387 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12388 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12389
12390 # Sed expression to map a string onto a valid variable name.
12391 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12392 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12393
12394
12395 exec 6>&1
12396 ## ------------------------------------- ##
12397 ## Main body of "$CONFIG_STATUS" script. ##
12398 ## ------------------------------------- ##
12399 _ASEOF
12400 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
12401
12402 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12403 # Save the log message, to keep $0 and so on meaningful, and to
12404 # report actual input values of CONFIG_FILES etc. instead of their
12405 # values after options handling.
12406 ac_log="
12407 This file was extended by xrandr $as_me 1.5.4, which was
12408 generated by GNU Autoconf 2.73. Invocation command line was
12409
12410 CONFIG_FILES = $CONFIG_FILES
12411 CONFIG_HEADERS = $CONFIG_HEADERS
12412 CONFIG_LINKS = $CONFIG_LINKS
12413 CONFIG_COMMANDS = $CONFIG_COMMANDS
12414 $ $0 $@
12415
12416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12417 "
12418
12419 _ACEOF
12420
12421 case $ac_config_files in *"
12422 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12423 esac
12424
12425 case $ac_config_headers in *"
12426 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12427 esac
12428
12429
12430 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12431 # Files that config.status was made for.
12432 config_files="$ac_config_files"
12433 config_headers="$ac_config_headers"
12434 config_commands="$ac_config_commands"
12435
12436 _ACEOF
12437
12438 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12439 ac_cs_usage="\
12440 '$as_me' instantiates files and other configuration actions
12441 from templates according to the current configuration. Unless the files
12442 and actions are specified as TAGs, all are instantiated by default.
12443
12444 Usage: $0 [OPTION]... [TAG]...
12445
12446 -h, --help print this help, then exit
12447 -V, --version print version number and configuration settings, then exit
12448 --config print configuration, then exit
12449 -q, --quiet, --silent
12450 do not print progress messages
12451 -d, --debug don't remove temporary files
12452 --recheck update $as_me by reconfiguring in the same conditions
12453 --file=FILE[:TEMPLATE]
12454 instantiate the configuration file FILE
12455 --header=FILE[:TEMPLATE]
12456 instantiate the configuration header FILE
12457
12458 Configuration files:
12459 $config_files
12460
12461 Configuration headers:
12462 $config_headers
12463
12464 Configuration commands:
12465 $config_commands
12466
12467 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrandr/-/issues>."
12468
12469 _ACEOF
12470 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
12471 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12472 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12473 ac_cs_config='$ac_cs_config_escaped'
12474 ac_cs_version="\\
12475 xrandr config.status 1.5.4
12476 configured by $0, generated by GNU Autoconf 2.73,
12477 with options \\"\$ac_cs_config\\"
12478
12479 Copyright (C) 2026 Free Software Foundation, Inc.
12480 This config.status script is free software; the Free Software Foundation
12481 gives unlimited permission to copy, distribute and modify it."
12482
12483 ac_pwd='$ac_pwd'
12484 srcdir='$srcdir'
12485 INSTALL='$INSTALL'
12486 MKDIR_P='$MKDIR_P'
12487 AWK='$AWK'
12488 test -n "\$AWK" || {
12489 awk '' </dev/null ||
12490 as_fn_error \$? "try installing gawk"
12491 AWK=awk
12492 }
12493 _ACEOF
12494
12495 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12496 # The default lists apply if the user does not specify any file.
12497 ac_need_defaults=:
12498 while test $# != 0
12499 do
12500 case $1 in
12501 --*=?*)
12502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12503 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12504 ac_shift=:
12505 ;;
12506 --*=)
12507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12508 ac_optarg=
12509 ac_shift=:
12510 ;;
12511 *)
12512 ac_option=$1
12513 ac_optarg=$2
12514 ac_shift=shift
12515 ;;
12516 esac
12517
12518 case $ac_option in
12519 # Handling of the options.
12520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12521 ac_cs_recheck=: ;;
12522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12523 printf '%s\n' "$ac_cs_version"; exit ;;
12524 --config | --confi | --conf | --con | --co | --c )
12525 printf '%s\n' "$ac_cs_config"; exit ;;
12526 --debug | --debu | --deb | --de | --d | -d )
12527 debug=: ;;
12528 --file | --fil | --fi | --f )
12529 $ac_shift
12530 case $ac_optarg in
12531 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12532 '') as_fn_error $? "missing file argument" ;;
12533 esac
12534 as_fn_append CONFIG_FILES " '$ac_optarg'"
12535 ac_need_defaults=false;;
12536 --header | --heade | --head | --hea )
12537 $ac_shift
12538 case $ac_optarg in
12539 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12540 esac
12541 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12542 ac_need_defaults=false;;
12543 --he | --h)
12544 # Conflict between --help and --header
12545 as_fn_error $? "ambiguous option: '$1'
12546 Try '$0 --help' for more information.";;
12547 --help | --hel | -h )
12548 printf '%s\n' "$ac_cs_usage"; exit ;;
12549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12551 ac_cs_silent=: ;;
12552
12553 # This is an error.
12554 -*) as_fn_error $? "unrecognized option: '$1'
12555 Try '$0 --help' for more information." ;;
12556
12557 *) as_fn_append ac_config_targets " $1"
12558 ac_need_defaults=false ;;
12559
12560 esac
12561 shift
12562 done
12563
12564 ac_configure_extra_args=
12565
12566 if $ac_cs_silent; then
12567 exec 6>/dev/null
12568 ac_configure_extra_args="$ac_configure_extra_args --silent"
12569 fi
12570
12571 _ACEOF
12572 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12573 if \$ac_cs_recheck; then
12574 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12575 shift
12576 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
12577 CONFIG_SHELL='$SHELL'
12578 export CONFIG_SHELL
12579 exec "\$@"
12580 fi
12581
12582 _ACEOF
12583 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12584 exec 5>>config.log
12585 {
12586 echo
12587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12588 ## Running $as_me. ##
12589 _ASBOX
12590 printf '%s\n' "$ac_log"
12591 } >&5
12592
12593 _ACEOF
12594 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12595 #
12596 # INIT-COMMANDS
12597 #
12598 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12599
12600 _ACEOF
12601
12602 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12603
12604 # Handling of arguments.
12605 for ac_config_target in $ac_config_targets
12606 do
12607 case $ac_config_target in
12608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12611 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12612
12613 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12614 esac
12615 done
12616
12617
12618 # If the user did not use the arguments to specify the items to instantiate,
12619 # then the envvar interface is used. Set only those that are not.
12620 # We use the long form for the default assignment because of an extremely
12621 # bizarre bug on SunOS 4.1.3.
12622 if $ac_need_defaults; then
12623 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12624 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12625 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12626 fi
12627
12628 # Have a temporary directory for convenience. Make it in the build tree
12629 # simply because there is no reason against having it here, and in addition,
12630 # creating and moving files from /tmp can sometimes cause problems.
12631 # Hook for its removal unless debugging.
12632 # Note that there is a small window in which the directory will not be cleaned:
12633 # after its creation but before its name has been assigned to '$tmp'.
12634 $debug ||
12635 {
12636 tmp= ac_tmp=
12637 trap 'exit_status=$?
12638 : "${ac_tmp:=$tmp}"
12639 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12640 ' 0
12641 trap 'as_fn_exit 1' 1 2 13 15
12642 }
12643 # Create a (secure) tmp directory for tmp files.
12644
12645 {
12646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12647 test -d "$tmp"
12648 } ||
12649 {
12650 tmp=./conf$$-$RANDOM
12651 (umask 077 && mkdir "$tmp")
12652 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12653 ac_tmp=$tmp
12654
12655 # Set up the scripts for CONFIG_FILES section.
12656 # No need to generate them if there are no CONFIG_FILES.
12657 # This happens for instance with './config.status config.h'.
12658 if test -n "$CONFIG_FILES"; then
12659
12660
12661 ac_cr=`echo X | tr X '\015'`
12662 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12663 # But we know of no other shell where ac_cr would be empty at this
12664 # point, so we can use a bashism as a fallback.
12665 if test "x$ac_cr" = x; then
12666 eval ac_cr=\$\'\\r\'
12667 fi
12668 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12669 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12670 ac_cs_awk_cr='\\r'
12671 else
12672 ac_cs_awk_cr=$ac_cr
12673 fi
12674
12675 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12676 _ACEOF
12677
12678
12679 {
12680 echo "cat >conf$$subs.awk <<_ACEOF" &&
12681 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12682 echo "_ACEOF"
12683 } >conf$$subs.sh ||
12684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12685 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
12686 ac_delim='%!_!# '
12687 for ac_last_try in false false false false false :; do
12688 . ./conf$$subs.sh ||
12689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12690
12691 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
12692 if test $ac_delim_n = $ac_delim_num; then
12693 break
12694 elif $ac_last_try; then
12695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12696 else
12697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12698 fi
12699 done
12700 rm -f conf$$subs.sh
12701
12702 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12703 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12704 _ACEOF
12705 sed -n '
12706 h
12707 s/^/S["/; s/!.*/"]=/
12708 p
12709 g
12710 s/^[^!]*!//
12711 :repl
12712 t repl
12713 s/'"$ac_delim"'$//
12714 t delim
12715 :nl
12716 h
12717 s/\(.\{148\}\)..*/\1/
12718 t more1
12719 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12720 p
12721 n
12722 b repl
12723 :more1
12724 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12725 p
12726 g
12727 s/.\{148\}//
12728 t nl
12729 :delim
12730 h
12731 s/\(.\{148\}\)..*/\1/
12732 t more2
12733 s/["\\]/\\&/g; s/^/"/; s/$/"/
12734 p
12735 b
12736 :more2
12737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12738 p
12739 g
12740 s/.\{148\}//
12741 t delim
12742 ' <conf$$subs.awk | sed '
12743 /^[^""]/{
12744 N
12745 s/\n//
12746 }
12747 ' >>"$CONFIG_STATUS" || ac_write_fail=1
12748 rm -f conf$$subs.awk
12749 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12750 _ACAWK
12751 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12752 for (key in S) S_is_set[key] = 1
12753 FS = ""
12754
12755 }
12756 {
12757 line = $ 0
12758 nfields = split(line, field, "@")
12759 substed = 0
12760 len = length(field[1])
12761 for (i = 2; i < nfields; i++) {
12762 key = field[i]
12763 keylen = length(key)
12764 if (S_is_set[key]) {
12765 value = S[key]
12766 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12767 len += length(value) + length(field[++i])
12768 substed = 1
12769 } else
12770 len += 1 + keylen
12771 }
12772
12773 print line
12774 }
12775
12776 _ACAWK
12777 _ACEOF
12778 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12779 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12781 else
12782 cat
12783 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12784 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12785 _ACEOF
12786
12787 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12788 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12789 # trailing colons and then remove the whole line if VPATH becomes empty
12790 # (actually we leave an empty line to preserve line numbers).
12791 if test "x$srcdir" = x.; then
12792 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12793 h
12794 s///
12795 s/^/:/
12796 s/[ ]*$/:/
12797 s/:\$(srcdir):/:/g
12798 s/:\${srcdir}:/:/g
12799 s/:@srcdir@:/:/g
12800 s/^:*//
12801 s/:*$//
12802 x
12803 s/\(=[ ]*\).*/\1/
12804 G
12805 s/\n//
12806 s/^[^=]*=[ ]*$//
12807 }'
12808 fi
12809
12810 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12811 fi # test -n "$CONFIG_FILES"
12812
12813 # Set up the scripts for CONFIG_HEADERS section.
12814 # No need to generate them if there are no CONFIG_HEADERS.
12815 # This happens for instance with './config.status Makefile'.
12816 if test -n "$CONFIG_HEADERS"; then
12817 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12818 BEGIN {
12819 _ACEOF
12820
12821 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12822 # here-document in config.status, that substitutes the proper values into
12823 # config.h.in to produce config.h.
12824
12825 # Create a delimiter string that does not exist in confdefs.h, to ease
12826 # handling of long lines.
12827 ac_delim='%!_!# '
12828 for ac_last_try in false false :; do
12829 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12830 if test -z "$ac_tt"; then
12831 break
12832 elif $ac_last_try; then
12833 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12834 else
12835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12836 fi
12837 done
12838
12839 # For the awk script, D is an array of macro values keyed by name,
12840 # likewise P contains macro parameters if any. Preserve backslash
12841 # newline sequences.
12842
12843 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12844 sed -n '
12845 s/.\{148\}/&'"$ac_delim"'/g
12846 t rset
12847 :rset
12848 s/^[ ]*#[ ]*define[ ][ ]*/ /
12849 t def
12850 d
12851 :def
12852 s/\\$//
12853 t bsnl
12854 s/["\\]/\\&/g
12855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12856 D["\1"]=" \3"/p
12857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12858 d
12859 :bsnl
12860 s/["\\]/\\&/g
12861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12862 D["\1"]=" \3\\\\\\n"\\/p
12863 t cont
12864 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12865 t cont
12866 d
12867 :cont
12868 n
12869 s/.\{148\}/&'"$ac_delim"'/g
12870 t clear
12871 :clear
12872 s/\\$//
12873 t bsnlc
12874 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12875 d
12876 :bsnlc
12877 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12878 b cont
12879 ' <confdefs.h | sed '
12880 s/'"$ac_delim"'/"\\\
12881 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
12882
12883 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12884 for (key in D) D_is_set[key] = 1
12885 FS = ""
12886 }
12887 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12888 line = \$ 0
12889 split(line, arg, " ")
12890 if (arg[1] == "#") {
12891 defundef = arg[2]
12892 mac1 = arg[3]
12893 } else {
12894 defundef = substr(arg[1], 2)
12895 mac1 = arg[2]
12896 }
12897 split(mac1, mac2, "(") #)
12898 macro = mac2[1]
12899 prefix = substr(line, 1, index(line, defundef) - 1)
12900 if (D_is_set[macro]) {
12901 suffix = P[macro] D[macro]
12902 while (suffix ~ /[\t ]$/) {
12903 suffix = substr(suffix, 1, length(suffix) - 1)
12904 }
12905 # Preserve the white space surrounding the "#".
12906 print prefix "define", macro suffix
12907 next
12908 } else {
12909 # Replace #undef with comments. This is necessary, for example,
12910 # in the case of _POSIX_SOURCE, which is predefined and required
12911 # on some systems where configure will not decide to define it.
12912 if (defundef == "undef") {
12913 print "/*", prefix defundef, macro, "*/"
12914 next
12915 }
12916 }
12917 }
12918 { print }
12919 _ACAWK
12920 _ACEOF
12921 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12922 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12923 fi # test -n "$CONFIG_HEADERS"
12924
12925
12926 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12927 shift
12928 for ac_tag
12929 do
12930 case $ac_tag in
12931 :[FHLC]) ac_mode=$ac_tag; continue;;
12932 esac
12933 case $ac_mode$ac_tag in
12934 :[FHL]*:*);;
12935 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12936 :[FH]-) ac_tag=-:-;;
12937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12938 esac
12939 ac_save_IFS=$IFS
12940 IFS=:
12941 set x $ac_tag
12942 IFS=$ac_save_IFS
12943 shift
12944 ac_file=$1
12945 shift
12946
12947 case $ac_mode in
12948 :L) ac_source=$1;;
12949 :[FH])
12950 ac_file_inputs=
12951 for ac_f
12952 do
12953 case $ac_f in
12954 -) ac_f="$ac_tmp/stdin";;
12955 *) # Look for the file first in the build tree, then in the source tree
12956 # (if the path is not absolute). The absolute path cannot be DOS-style,
12957 # because $ac_f cannot contain ':'.
12958 test -f "$ac_f" ||
12959 case $ac_f in
12960 [\\/$]*) false;;
12961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12962 esac ||
12963 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12964 esac
12965 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12966 as_fn_append ac_file_inputs " '$ac_f'"
12967 done
12968
12969 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12970 # use $as_me), people would be surprised to read:
12971 # /* config.h. Generated by config.status. */
12972 configure_input='Generated from '`
12973 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12974 `' by configure.'
12975 if test x"$ac_file" != x-; then
12976 configure_input="$ac_file. $configure_input"
12977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12978 printf '%s\n' "$as_me: creating $ac_file" >&6;}
12979 fi
12980 # Neutralize special characters interpreted by sed in replacement strings.
12981 case $configure_input in #(
12982 *\&* | *\|* | *\\* )
12983 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
12984 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12985 *) ac_sed_conf_input=$configure_input;;
12986 esac
12987
12988 case $ac_tag in
12989 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12991 esac
12992 ;;
12993 esac
12994
12995 ac_dir=`$as_dirname -- "$ac_file" ||
12996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997 X"$ac_file" : 'X\(//\)[^/]' \| \
12998 X"$ac_file" : 'X\(//\)$' \| \
12999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13000 printf '%s\n' X"$ac_file" |
13001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13002 s//\1/
13003 q
13004 }
13005 /^X\(\/\/\)[^/].*/{
13006 s//\1/
13007 q
13008 }
13009 /^X\(\/\/\)$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\(\/\).*/{
13014 s//\1/
13015 q
13016 }
13017 s/.*/./; q'`
13018 as_dir="$ac_dir"; as_fn_mkdir_p
13019 ac_builddir=.
13020
13021 case "$ac_dir" in
13022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13023 *)
13024 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13025 # A ".." for each directory in $ac_dir_suffix.
13026 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13027 case $ac_top_builddir_sub in
13028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13030 esac ;;
13031 esac
13032 ac_abs_top_builddir=$ac_pwd
13033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13034 # for backward compatibility:
13035 ac_top_builddir=$ac_top_build_prefix
13036
13037 case $srcdir in
13038 .) # We are building in place.
13039 ac_srcdir=.
13040 ac_top_srcdir=$ac_top_builddir_sub
13041 ac_abs_top_srcdir=$ac_pwd ;;
13042 [\\/]* | ?:[\\/]* ) # Absolute name.
13043 ac_srcdir=$srcdir$ac_dir_suffix;
13044 ac_top_srcdir=$srcdir
13045 ac_abs_top_srcdir=$srcdir ;;
13046 *) # Relative name.
13047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13048 ac_top_srcdir=$ac_top_build_prefix$srcdir
13049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13050 esac
13051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13052
13053
13054 case $ac_mode in
13055 :F)
13056 #
13057 # CONFIG_FILE
13058 #
13059
13060 case $INSTALL in
13061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13063 esac
13064 ac_MKDIR_P=$MKDIR_P
13065 case $MKDIR_P in
13066 [\\/$]* | ?:[\\/]* ) ;;
13067 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13068 esac
13069 _ACEOF
13070
13071 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13072 # If the template does not know about datarootdir, expand it.
13073 # FIXME: This hack should be removed a few years after 2.60.
13074 ac_datarootdir_hack=; ac_datarootdir_seen=
13075 ac_sed_dataroot='
13076 /datarootdir/ {
13077 p
13078 q
13079 }
13080 /@datadir@/p
13081 /@docdir@/p
13082 /@infodir@/p
13083 /@localedir@/p
13084 /@mandir@/p'
13085 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13086 *datarootdir*) ac_datarootdir_seen=yes;;
13087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13089 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13090 _ACEOF
13091 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13092 ac_datarootdir_hack='
13093 s&@datadir@&$datadir&g
13094 s&@docdir@&$docdir&g
13095 s&@infodir@&$infodir&g
13096 s&@localedir@&$localedir&g
13097 s&@mandir@&$mandir&g
13098 s&\\\${datarootdir}&$datarootdir&g' ;;
13099 esac
13100 _ACEOF
13101
13102 # Neutralize VPATH when '$srcdir' = '.'.
13103 # Shell code in configure.ac might set extrasub.
13104 # FIXME: do we really want to maintain this feature?
13105 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13106 ac_sed_extra="$ac_vpsub
13107 $extrasub
13108 _ACEOF
13109 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13110 :t
13111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13112 s|@configure_input@|$ac_sed_conf_input|;t t
13113 s&@top_builddir@&$ac_top_builddir_sub&;t t
13114 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13115 s&@srcdir@&$ac_srcdir&;t t
13116 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13117 s&@top_srcdir@&$ac_top_srcdir&;t t
13118 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13119 s&@builddir@&$ac_builddir&;t t
13120 s&@abs_builddir@&$ac_abs_builddir&;t t
13121 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13122 s&@INSTALL@&$ac_INSTALL&;t t
13123 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13124 $ac_datarootdir_hack
13125 "
13126 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13127 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13128
13129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13130 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13132 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13134 which seems to be undefined. Please make sure it is defined" >&5
13135 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13136 which seems to be undefined. Please make sure it is defined" >&2;}
13137
13138 rm -f "$ac_tmp/stdin"
13139 case $ac_file in
13140 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13141 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13142 esac \
13143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13144 ;;
13145 :H)
13146 #
13147 # CONFIG_HEADER
13148 #
13149 if test x"$ac_file" != x-; then
13150 {
13151 printf '%s\n' "/* $configure_input */" >&1 \
13152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13153 } >"$ac_tmp/config.h" \
13154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13155 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13157 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13158 else
13159 rm -f "$ac_file"
13160 mv "$ac_tmp/config.h" "$ac_file" \
13161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13162 fi
13163 else
13164 printf '%s\n' "/* $configure_input */" >&1 \
13165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13166 || as_fn_error $? "could not create -" "$LINENO" 5
13167 fi
13168 # Compute "$ac_file"'s index in $config_headers.
13169 _am_arg="$ac_file"
13170 _am_stamp_count=1
13171 for _am_header in $config_headers :; do
13172 case $_am_header in
13173 $_am_arg | $_am_arg:* )
13174 break ;;
13175 * )
13176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13177 esac
13178 done
13179 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13180 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13181 X"$_am_arg" : 'X\(//\)[^/]' \| \
13182 X"$_am_arg" : 'X\(//\)$' \| \
13183 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13184 printf '%s\n' X"$_am_arg" |
13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13186 s//\1/
13187 q
13188 }
13189 /^X\(\/\/\)[^/].*/{
13190 s//\1/
13191 q
13192 }
13193 /^X\(\/\/\)$/{
13194 s//\1/
13195 q
13196 }
13197 /^X\(\/\).*/{
13198 s//\1/
13199 q
13200 }
13201 s/.*/./; q'`/stamp-h$_am_stamp_count
13202 ;;
13203
13204 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13205 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13206 ;;
13207 esac
13208
13209
13210 case $ac_file$ac_mode in
13211 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13212 # Older Autoconf quotes --file arguments for eval, but not when files
13213 # are listed without --file. Let's play safe and only enable the eval
13214 # if we detect the quoting.
13215 # TODO: see whether this extra hack can be removed once we start
13216 # requiring Autoconf 2.70 or later.
13217 case $CONFIG_FILES in #(
13218 *\'*) :
13219 eval set x "$CONFIG_FILES" ;; #(
13220 *) :
13221 set x $CONFIG_FILES ;; #(
13222 *) :
13223 ;;
13224 esac
13225 shift
13226 # Used to flag and report bootstrapping failures.
13227 am_rc=0
13228 for am_mf
13229 do
13230 # Strip MF so we end up with the name of the file.
13231 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13232 # Check whether this is an Automake generated Makefile which includes
13233 # dependency-tracking related rules and includes.
13234 # Grep'ing the whole file directly is not great: AIX grep has a line
13235 # limit of 2048, but all sed's we know have understand at least 4000.
13236 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13237 || continue
13238 am_dirpart=`$as_dirname -- "$am_mf" ||
13239 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13240 X"$am_mf" : 'X\(//\)[^/]' \| \
13241 X"$am_mf" : 'X\(//\)$' \| \
13242 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13243 printf '%s\n' X"$am_mf" |
13244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13245 s//\1/
13246 q
13247 }
13248 /^X\(\/\/\)[^/].*/{
13249 s//\1/
13250 q
13251 }
13252 /^X\(\/\/\)$/{
13253 s//\1/
13254 q
13255 }
13256 /^X\(\/\).*/{
13257 s//\1/
13258 q
13259 }
13260 s/.*/./; q'`
13261 am_filepart=`$as_basename -- "$am_mf" ||
13262 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13263 X"$am_mf" : 'X\(//\)$' \| \
13264 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13265 printf '%s\n' X/"$am_mf" |
13266 sed '/^.*\/\([^/][^/]*\)\/*$/{
13267 s//\1/
13268 q
13269 }
13270 /^X\/\(\/\/\)$/{
13271 s//\1/
13272 q
13273 }
13274 /^X\/\(\/\).*/{
13275 s//\1/
13276 q
13277 }
13278 s/.*/./; q'`
13279 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13280 && sed -e '/# am--include-marker/d' "$am_filepart" \
13281 | $MAKE -f - am--depfiles" >&5
13282 (cd "$am_dirpart" \
13283 && sed -e '/# am--include-marker/d' "$am_filepart" \
13284 | $MAKE -f - am--depfiles) >&5 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } || am_rc=$?
13288 done
13289 if test $am_rc -ne 0; then
13290 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13291 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13292 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13293 for automatic dependency tracking. If GNU make was not used, consider
13294 re-running the configure script with MAKE=\"gmake\" (or whatever is
13295 necessary). You can also try re-running configure with the
13296 '--disable-dependency-tracking' option to at least be able to build
13297 the package (albeit without support for automatic dependency tracking).
13298 See 'config.log' for more details" "$LINENO" 5; }
13299 fi
13300 { am_dirpart=; unset am_dirpart;}
13301 { am_filepart=; unset am_filepart;}
13302 { am_mf=; unset am_mf;}
13303 { am_rc=; unset am_rc;}
13304 rm -f conftest-deps.mk
13305 }
13306 ;;
13307
13308 esac
13309 done # for ac_tag
13310
13311
13312 as_fn_exit 0
13313 _ACEOF
13314 ac_clean_CONFIG_STATUS=
13315
13316 test $ac_write_fail = 0 ||
13317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13318
13319
13320 # configure is writing to config.log, and then calls config.status.
13321 # config.status does its own redirection, appending to config.log.
13322 # Unfortunately, on DOS this fails, as config.log is still kept open
13323 # by configure, so config.status won't be able to write to it; its
13324 # output is simply discarded. So we exec the FD to /dev/null,
13325 # effectively closing config.log, so it can be properly (re)opened and
13326 # appended to by config.status. When coming back to configure, we
13327 # need to make the FD available again.
13328 if test "$no_create" != yes; then
13329 ac_cs_success=:
13330 case $CONFIG_STATUS in #(
13331 -*) :
13332 ac_no_opts=-- ;; #(
13333 *) :
13334 ac_no_opts= ;;
13335 esac
13336 ac_config_status_args=
13337 test "$silent" = yes &&
13338 ac_config_status_args="$ac_config_status_args --quiet"
13339 exec 5>/dev/null
13340 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
13341 ac_cs_success=false
13342 exec 5>>config.log
13343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13344 # would make configure fail if this is the last instruction.
13345 $ac_cs_success || as_fn_exit 1
13346 fi
13347 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13349 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13350 fi
13351
13352
13353