configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xedit 1.2.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/-/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/xedit/-/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='xedit'
591 PACKAGE_TARNAME='xedit'
592 PACKAGE_VERSION='1.2.5'
593 PACKAGE_STRING='xedit 1.2.5'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xedit/-/issues'
595 PACKAGE_URL=''
596
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stddef.h>
600 #ifdef HAVE_STDIO_H
601 # include <stdio.h>
602 #endif
603 #ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 #endif
606 #ifdef HAVE_STRING_H
607 # include <string.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
617 #endif
618 #ifdef HAVE_SYS_TYPES_H
619 # include <sys/types.h>
620 #endif
621 #ifdef HAVE_SYS_STAT_H
622 # include <sys/stat.h>
623 #endif
624 #ifdef HAVE_UNISTD_H
625 # include <unistd.h>
626 #endif"
627
628 ac_header_c_list=
629 ac_subst_vars='am__EXEEXT_FALSE
630 am__EXEEXT_TRUE
631 LTLIBOBJS
632 LIBOBJS
633 appdefaultdir
634 APPDEFS_LIBS
635 APPDEFS_CFLAGS
636 NEED_UNSETENV_FALSE
637 NEED_UNSETENV_TRUE
638 NEED_REALPATH_FALSE
639 NEED_REALPATH_TRUE
640 LISPDIR
641 PKGDEPS_LIBS
642 PKGDEPS_CFLAGS
643 RANLIB
644 ac_ct_AR
645 AR
646 MAN_SUBSTS
647 XORG_MAN_PAGE
648 ADMIN_MAN_DIR
649 DRIVER_MAN_DIR
650 MISC_MAN_DIR
651 FILE_MAN_DIR
652 LIB_MAN_DIR
653 APP_MAN_DIR
654 ADMIN_MAN_SUFFIX
655 DRIVER_MAN_SUFFIX
656 MISC_MAN_SUFFIX
657 FILE_MAN_SUFFIX
658 LIB_MAN_SUFFIX
659 APP_MAN_SUFFIX
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 INSTALL_CMD
670 PKG_CONFIG_LIBDIR
671 PKG_CONFIG_PATH
672 PKG_CONFIG
673 CHANGELOG_CMD
674 STRICT_CFLAGS
675 CWARNFLAGS
676 BASE_CFLAGS
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 am__xargs_n
694 am__rm_f_notfound
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 CSCOPE
700 ETAGS
701 CTAGS
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 runstatedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL
764 am__quote'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_silent_rules
769 enable_dependency_tracking
770 enable_selective_werror
771 enable_strict_compilation
772 with_lispdir
773 with_appdefaultdir
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 PKG_CONFIG
784 PKG_CONFIG_PATH
785 PKG_CONFIG_LIBDIR
786 PKGDEPS_CFLAGS
787 PKGDEPS_LIBS
788 APPDEFS_CFLAGS
789 APPDEFS_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: '$ac_useropt'"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: '$ac_useropt'"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -runstatedir | --runstatedir | --runstatedi | --runstated \
1080 | --runstate | --runstat | --runsta | --runst | --runs \
1081 | --run | --ru | --r)
1082 ac_prev=runstatedir ;;
1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085 | --run=* | --ru=* | --r=*)
1086 runstatedir=$ac_optarg ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: '$ac_useropt'"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: '$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: '$ac_option'
1184 Try '$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir runstatedir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: '$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 printf '%s\n' X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 'configure' configures xedit 1.2.5 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print 'checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for '--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or '..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, 'make install' will install all the files in
1365 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than '$ac_default_prefix' using '--prefix',
1367 for instance '--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/xedit]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1393
1394 cat <<\_ACEOF
1395
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of xedit 1.2.5:";;
1410 esac
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --disable-selective-werror
1424 Turn off selective compiler errors. (default:
1425 enabled)
1426 --enable-strict-compilation
1427 Enable all warnings from compiler and make them
1428 errors (default: disabled)
1429
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-lispdir=PATH Directory to install lisp files (default:
1434 $libdir/X11/xedit/lisp)
1435 --with-appdefaultdir=<pathname>
1436 specify directory for app-defaults files (default is
1437 autodetected)
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 PKG_CONFIG path to pkg-config utility
1448 PKG_CONFIG_PATH
1449 directories to add to pkg-config's search path
1450 PKG_CONFIG_LIBDIR
1451 path overriding pkg-config's built-in search path
1452 PKGDEPS_CFLAGS
1453 C compiler flags for PKGDEPS, overriding pkg-config
1454 PKGDEPS_LIBS
1455 linker flags for PKGDEPS, overriding pkg-config
1456 APPDEFS_CFLAGS
1457 C compiler flags for APPDEFS, overriding pkg-config
1458 APPDEFS_LIBS
1459 linker flags for APPDEFS, overriding pkg-config
1460
1461 Use these variables to override the choices made by 'configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/-/issues>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for configure.gnu first; this name is used for a wrapper for
1511 # Metaconfig's "Configure" on case-insensitive file systems.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 xedit configure 1.2.5
1529 generated by GNU Autoconf 2.73
1530
1531 Copyright (C) 2026 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535 exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext conftest.beam
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 printf '%s\n' "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext
1568 then :
1569 ac_retval=0
1570 else case e in #(
1571 e) printf '%s\n' "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1 ;;
1575 esac
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1583 # ------------------------------------------------------------------
1584 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1585 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1586 ac_fn_check_decl ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 as_decl_name=`echo $2|sed 's/ *(.*//'`
1590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1591 printf %s "checking whether $as_decl_name is declared... " >&6; }
1592 if eval test \${$3+y}
1593 then :
1594 printf %s "(cached) " >&6
1595 else case e in #(
1596 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1597 eval ac_save_FLAGS=\$$6
1598 as_fn_append $6 " $5"
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1601 $4
1602 int
1603 main (void)
1604 {
1605 #ifndef $as_decl_name
1606 #ifdef __cplusplus
1607 (void) $as_decl_use;
1608 #else
1609 (void) $as_decl_name;
1610 #endif
1611 #endif
1612
1613 ;
1614 return 0;
1615 }
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"
1618 then :
1619 eval "$3=yes"
1620 else case e in #(
1621 e) eval "$3=no" ;;
1622 esac
1623 fi
1624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1625 eval $6=\$ac_save_FLAGS
1626 ;;
1627 esac
1628 fi
1629 eval ac_res=\$$3
1630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 printf '%s\n' "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_check_decl
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 printf %s "checking for $2... " >&6; }
1645 if eval test \${$3+y}
1646 then :
1647 printf %s "(cached) " >&6
1648 else case e in #(
1649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"
1655 then :
1656 eval "$3=yes"
1657 else case e in #(
1658 e) eval "$3=no" ;;
1659 esac
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1662 esac
1663 fi
1664 eval ac_res=\$$3
1665 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 printf '%s\n' "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 printf '%s\n' "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }
1700 then :
1701 ac_retval=0
1702 else case e in #(
1703 e) printf '%s\n' "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1 ;;
1707 esac
1708 fi
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_link
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 printf %s "checking for $2... " >&6; }
1727 if eval test \${$3+y}
1728 then :
1729 printf %s "(cached) " >&6
1730 else case e in #(
1731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (void); below. */
1739
1740 #include <limits.h>
1741 #undef $2
1742
1743 /* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746 #ifdef __cplusplus
1747 extern "C"
1748 #endif
1749 char $2 (void);
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined __stub_$2 || defined __stub___$2
1754 choke me
1755 #endif
1756
1757 int
1758 main (void)
1759 {
1760 return $2 ();
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_link "$LINENO"
1766 then :
1767 eval "$3=yes"
1768 else case e in #(
1769 e) eval "$3=no" ;;
1770 esac
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1773 conftest$ac_exeext conftest.$ac_ext ;;
1774 esac
1775 fi
1776 eval ac_res=\$$3
1777 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf '%s\n' "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_func
1782 ac_configure_args_raw=
1783 for ac_arg
1784 do
1785 case $ac_arg in
1786 *\'*)
1787 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 esac
1789 as_fn_append ac_configure_args_raw " '$ac_arg'"
1790 done
1791
1792 case $ac_configure_args_raw in
1793 *$as_nl*)
1794 ac_safe_unquote= ;;
1795 *)
1796 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1797 ac_unsafe_a="$ac_unsafe_z#~"
1798 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1799 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1800 esac
1801
1802 cat >config.log <<_ACEOF
1803 This file contains any messages produced by compilers while
1804 running configure, to aid debugging if configure makes a mistake.
1805
1806 It was created by xedit $as_me 1.2.5, which was
1807 generated by GNU Autoconf 2.73. Invocation command line was
1808
1809 $ $0$ac_configure_args_raw
1810
1811 _ACEOF
1812 exec 5>>config.log
1813 {
1814 cat <<_ASUNAME
1815 ## --------- ##
1816 ## Platform. ##
1817 ## --------- ##
1818
1819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824
1825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827
1828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1835
1836 _ASUNAME
1837
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841 IFS=$as_save_IFS
1842 case $as_dir in #(((
1843 '') as_dir=./ ;;
1844 */) ;;
1845 *) as_dir=$as_dir/ ;;
1846 esac
1847 printf '%s\n' "PATH: $as_dir"
1848 done
1849 IFS=$as_save_IFS
1850
1851 } >&5
1852
1853 cat >&5 <<_ACEOF
1854
1855
1856 ## ----------- ##
1857 ## Core tests. ##
1858 ## ----------- ##
1859
1860 _ACEOF
1861
1862
1863 # Keep a trace of the command line.
1864 # Strip out --no-create and --no-recursion so they do not pile up.
1865 # Strip out --silent because we don't want to record it for future runs.
1866 # Also quote any args containing shell meta-characters.
1867 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_configure_args=
1869 ac_configure_args0=
1870 ac_configure_args1=
1871 ac_must_keep_next=false
1872 for ac_pass in 1 2
1873 do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907 done
1908 { ac_configure_args0=; unset ac_configure_args0;}
1909 { ac_configure_args1=; unset ac_configure_args1;}
1910
1911 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1912 ac_cache_dump ()
1913 {
1914 # The following way of writing the cache mishandles newlines in values,
1915 # but we know of no workaround that is simple, portable, and efficient.
1916 # So, we kill variables containing newlines.
1917 # Ultrix sh set writes to stderr and can't be redirected directly,
1918 # and sets the high bit in the cache file unless we assign to the vars.
1919 (
1920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1921 eval ac_val=\$$ac_var
1922 case $ac_val in #(
1923 *${as_nl}*)
1924 case $ac_var in #(
1925 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1926 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1927 esac
1928 case $ac_var in #(
1929 _ | IFS | as_nl) ;; #(
1930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931 *) { eval $ac_var=; unset $ac_var;} ;;
1932 esac ;;
1933 esac
1934 done
1935
1936 (set) 2>&1 |
1937 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1939 # 'set' does not quote correctly, so add quotes: double-quote
1940 # substitution turns \\\\ into \\, and sed turns \\ into \.
1941 sed -n \
1942 "s/'/'\\\\''/g;
1943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1944 ;; #(
1945 *)
1946 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1948 ;;
1949 esac |
1950 sort
1951 )
1952 }
1953
1954 # Print debugging info to stdout.
1955 ac_dump_debugging_info ()
1956 {
1957 echo
1958
1959 printf '%s\n' "## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##"
1962 echo
1963 ac_cache_dump
1964 echo
1965
1966 printf '%s\n' "## ----------------- ##
1967 ## Output variables. ##
1968 ## ----------------- ##"
1969 echo
1970 for ac_var in $ac_subst_vars
1971 do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in
1974 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1975 esac
1976 printf '%s\n' "$ac_var='$ac_val'"
1977 done | sort
1978 echo
1979
1980 if test -n "$ac_subst_files"; then
1981 printf '%s\n' "## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##"
1984 echo
1985 for ac_var in $ac_subst_files
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1990 esac
1991 printf '%s\n' "$ac_var='$ac_val'"
1992 done | sort
1993 echo
1994 fi
1995
1996 if test -s confdefs.h; then
1997 printf '%s\n' "## ----------- ##
1998 ## confdefs.h. ##
1999 ## ----------- ##"
2000 echo
2001 cat confdefs.h
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
2005 printf '%s\n' "$as_me: caught signal $ac_signal"
2006 printf '%s\n' "$as_me: exit $exit_status"
2007 }
2008
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log.
2011 ac_exit_trap ()
2012 {
2013 exit_status=
2014 # Sanitize IFS.
2015 IFS=" "" $as_nl"
2016 # Save into config.log some information that might help in debugging.
2017 ac_dump_debugging_info >&5
2018 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021 }
2022
2023 trap 'ac_exit_trap $?' 0
2024 for ac_signal in 1 2 13 15; do
2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 done
2027 ac_signal=0
2028
2029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2030 rm -f -r conftest* confdefs.h
2031
2032 printf '%s\n' "/* confdefs.h */" > confdefs.h
2033
2034 # Predefined preprocessor variables.
2035
2036 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2037
2038 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2039
2040 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2041
2042 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2043
2044 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2045
2046 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2047
2048
2049 # Let the site file select an alternate cache file if it wants to.
2050 # Prefer an explicitly selected file to automatically selected ones.
2051 if test -n "$CONFIG_SITE"; then
2052 ac_site_files="$CONFIG_SITE"
2053 elif test "x$prefix" != xNONE; then
2054 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2055 else
2056 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2057 fi
2058
2059 for ac_site_file in $ac_site_files
2060 do
2061 case $ac_site_file in #(
2062 */*) :
2063 ;; #(
2064 *) :
2065 ac_site_file=./$ac_site_file ;;
2066 esac
2067 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2069 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2070 sed 's/^/| /' "$ac_site_file" >&5
2071 . "$ac_site_file" \
2072 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2073 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2074 as_fn_error $? "failed to load site script $ac_site_file
2075 See 'config.log' for more details" "$LINENO" 5; }
2076 fi
2077 done
2078
2079 if test -r "$cache_file"; then
2080 # Some versions of bash will fail to source /dev/null (special files
2081 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2082 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2083 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2084 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2085 case $cache_file in
2086 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2087 *) . "./$cache_file";;
2088 esac
2089 fi
2090 else
2091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2092 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2093 >$cache_file
2094 fi
2095
2096 # Test code for whether the C compiler supports C23 (global declarations)
2097 ac_c_conftest_c23_globals='
2098 /* Does the compiler advertise conformance to C17 or earlier?
2099 Although GCC 14 does not do that, even with -std=gnu23,
2100 it is close enough, and defines __STDC_VERSION == 202000L. */
2101 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2102 # error "Compiler advertises conformance to C17 or earlier"
2103 #endif
2104
2105 // Check alignas.
2106 char alignas (double) c23_aligned_as_double;
2107 char alignas (0) c23_no_special_alignment;
2108 extern char c23_aligned_as_int;
2109 char alignas (0) alignas (int) c23_aligned_as_int;
2110
2111 // Check alignof.
2112 enum
2113 {
2114 c23_int_alignment = alignof (int),
2115 c23_int_array_alignment = alignof (int[100]),
2116 c23_char_alignment = alignof (char)
2117 };
2118 static_assert (0 < -alignof (int), "alignof is signed");
2119
2120 int function_with_unnamed_parameter (int) { return 0; }
2121
2122 void c23_noreturn ();
2123
2124 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2125 The parens pacify GCC 15. */
2126 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2127
2128 bool check_that_bool_works = true | false | !nullptr;
2129 #if !true
2130 # error "true does not work in #if"
2131 #endif
2132 #if false
2133 #elifdef __STDC_VERSION__
2134 #else
2135 # error "#elifdef does not work"
2136 #endif
2137
2138 #ifndef __has_c_attribute
2139 # error "__has_c_attribute not defined"
2140 #endif
2141
2142 #ifndef __has_include
2143 # error "__has_include not defined"
2144 #endif
2145
2146 #define LPAREN() (
2147 #define FORTY_TWO(x) 42
2148 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2149 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2150
2151 static_assert (0b101010 == 42);
2152 static_assert (0B101010 == 42);
2153 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2154 static_assert (0.500'\''000'\''000 == 0.5);
2155
2156 enum unsignedish : unsigned int { uione = 1 };
2157 static_assert (0 < -uione);
2158
2159 #include <stddef.h>
2160 constexpr nullptr_t null_pointer = nullptr;
2161
2162 static typeof (1 + 1L) two () { return 2; }
2163 static long int three () { return 3; }
2164 '
2165
2166 # Test code for whether the C compiler supports C23 (body of main).
2167 ac_c_conftest_c23_main='
2168 {
2169 label_before_declaration:
2170 int arr[10] = {};
2171 if (arr[0])
2172 goto label_before_declaration;
2173 if (!arr[0])
2174 goto label_at_end_of_block;
2175 label_at_end_of_block:
2176 }
2177 ok |= !null_pointer;
2178 ok |= two != three;
2179 '
2180
2181 # Test code for whether the C compiler supports C23 (complete).
2182 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2183
2184 int
2185 main (int, char **)
2186 {
2187 int ok = 0;
2188 ${ac_c_conftest_c23_main}
2189 return ok;
2190 }
2191 "
2192
2193 # Test code for whether the C compiler supports C89 (global declarations)
2194 ac_c_conftest_c89_globals='
2195 /* Do not test the value of __STDC__, because some compilers define it to 0
2196 or do not define it, while otherwise adequately conforming. */
2197
2198 #include <stddef.h>
2199 #include <stdarg.h>
2200 struct stat;
2201 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2202 struct buf { int x; };
2203 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2204 static char *e (char **p, int i)
2205 {
2206 return p[i];
2207 }
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2209 {
2210 char *s;
2211 va_list v;
2212 va_start (v,p);
2213 s = g (p, va_arg (v,int));
2214 va_end (v);
2215 return s;
2216 }
2217
2218 /* C89 style stringification. */
2219 #define noexpand_stringify(a) #a
2220 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2221
2222 /* C89 style token pasting. Exercises some of the corner cases that
2223 e.g. old MSVC gets wrong, but not very hard. */
2224 #define noexpand_concat(a,b) a##b
2225 #define expand_concat(a,b) noexpand_concat(a,b)
2226 extern int vA;
2227 extern int vbee;
2228 #define aye A
2229 #define bee B
2230 int *pvA = &expand_concat(v,aye);
2231 int *pvbee = &noexpand_concat(v,bee);
2232
2233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2234 function prototypes and stuff, but not \xHH hex character constants.
2235 These do not provoke an error unfortunately, instead are silently treated
2236 as an "x". The following induces an error, until -std is added to get
2237 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2238 array size at least. It is necessary to write \x00 == 0 to get something
2239 that is true only with -std. */
2240 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2241
2242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2243 inside strings and character constants. */
2244 #define FOO(x) '\''x'\''
2245 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2246
2247 int test (int i, double x);
2248 struct s1 {int (*f) (int a);};
2249 struct s2 {int (*f) (double a);};
2250 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2251 int, int);'
2252
2253 # Test code for whether the C compiler supports C89 (body of main).
2254 ac_c_conftest_c89_main='
2255 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2256 '
2257
2258 # Test code for whether the C compiler supports C99 (global declarations)
2259 ac_c_conftest_c99_globals='
2260 /* Does the compiler advertise C99 conformance? */
2261 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2262 # error "Compiler does not advertise C99 conformance"
2263 #endif
2264
2265 // See if C++-style comments work.
2266
2267 #include <stdbool.h>
2268 extern int puts (const char *);
2269 extern int printf (const char *, ...);
2270 extern int dprintf (int, const char *, ...);
2271 extern void *malloc (size_t);
2272 extern void free (void *);
2273
2274 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2275 // dprintf is used instead of fprintf to avoid needing to declare
2276 // FILE and stderr, and "aND" is used instead of "and" to work around
2277 // GCC bug 40564 which is irrelevant here.
2278 #define debug(...) dprintf (2, __VA_ARGS__)
2279 #define showlist(...) puts (#__VA_ARGS__)
2280 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2281 static void
2282 test_varargs_macros (void)
2283 {
2284 int x = 1234;
2285 int y = 5678;
2286 debug ("Flag");
2287 debug ("X = %d\n", x);
2288 showlist (The first, second, aND third items.);
2289 report (x>y, "x is %d but y is %d", x, y);
2290 }
2291
2292 // Check long long types.
2293 #define BIG64 18446744073709551615ull
2294 #define BIG32 4294967295ul
2295 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2296 #if !BIG_OK
2297 #error "your preprocessor is broken"
2298 #endif
2299 #if BIG_OK
2300 #else
2301 #error "your preprocessor is broken"
2302 #endif
2303 static long long int bignum = -9223372036854775807LL;
2304 static unsigned long long int ubignum = BIG64;
2305
2306 struct incomplete_array
2307 {
2308 int datasize;
2309 double data[];
2310 };
2311
2312 struct named_init {
2313 int number;
2314 const wchar_t *name;
2315 double average;
2316 };
2317
2318 typedef const char *ccp;
2319
2320 static inline int
2321 test_restrict (ccp restrict text)
2322 {
2323 // Iterate through items via the restricted pointer.
2324 // Also check for declarations in for loops.
2325 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2326 continue;
2327 return 0;
2328 }
2329
2330 // Check varargs and va_copy.
2331 static bool
2332 test_varargs (const char *format, ...)
2333 {
2334 va_list args;
2335 va_start (args, format);
2336 va_list args_copy;
2337 va_copy (args_copy, args);
2338
2339 const char *str = "";
2340 int number = 0;
2341 float fnumber = 0;
2342
2343 while (*format)
2344 {
2345 switch (*format++)
2346 {
2347 case '\''s'\'': // string
2348 str = va_arg (args_copy, const char *);
2349 break;
2350 case '\''d'\'': // int
2351 number = va_arg (args_copy, int);
2352 break;
2353 case '\''f'\'': // float
2354 fnumber = va_arg (args_copy, double);
2355 break;
2356 default:
2357 break;
2358 }
2359 }
2360 va_end (args_copy);
2361 va_end (args);
2362
2363 return *str && number && fnumber;
2364 }
2365 '
2366
2367 # Test code for whether the C compiler supports C99 (body of main).
2368 ac_c_conftest_c99_main='
2369 // Check bool.
2370 _Bool success = false;
2371 success |= (argc != 0);
2372
2373 // Check restrict.
2374 if (test_restrict ("String literal") == 0)
2375 success = true;
2376 const char *restrict newvar = "Another string";
2377
2378 // Check varargs.
2379 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2380 test_varargs_macros ();
2381
2382 // Check flexible array members.
2383 static struct incomplete_array *volatile incomplete_array_pointer;
2384 struct incomplete_array *ia = incomplete_array_pointer;
2385 ia->datasize = 10;
2386 for (int i = 0; i < ia->datasize; ++i)
2387 ia->data[i] = i * 1.234;
2388 // Work around memory leak warnings.
2389 free (ia);
2390
2391 // Check named initializers.
2392 struct named_init ni = {
2393 .number = 34,
2394 .name = L"Test wide string",
2395 .average = 543.34343,
2396 };
2397
2398 ni.number = 58;
2399
2400 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2401 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2402
2403 // work around unused variable warnings
2404 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2405 || ni.number != 58);
2406 '
2407
2408 # Test code for whether the C compiler supports C11 (global declarations)
2409 ac_c_conftest_c11_globals='
2410 /* Does the compiler advertise C11 conformance? */
2411 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2412 # error "Compiler does not advertise C11 conformance"
2413 #endif
2414
2415 // Check _Alignas.
2416 char _Alignas (double) aligned_as_double;
2417 char _Alignas (0) no_special_alignment;
2418 extern char aligned_as_int;
2419 char _Alignas (0) _Alignas (int) aligned_as_int;
2420
2421 // Check _Alignof.
2422 enum
2423 {
2424 int_alignment = _Alignof (int),
2425 int_array_alignment = _Alignof (int[100]),
2426 char_alignment = _Alignof (char)
2427 };
2428 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2429
2430 // Check _Noreturn.
2431 int _Noreturn does_not_return (void) { for (;;) continue; }
2432
2433 // Check _Static_assert.
2434 struct test_static_assert
2435 {
2436 int x;
2437 _Static_assert (sizeof (int) <= sizeof (long int),
2438 "_Static_assert does not work in struct");
2439 long int y;
2440 };
2441
2442 // Check UTF-8 literals.
2443 #define u8 syntax error!
2444 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2445
2446 // Check duplicate typedefs.
2447 typedef long *long_ptr;
2448 typedef long int *long_ptr;
2449 typedef long_ptr long_ptr;
2450
2451 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2452 struct anonymous
2453 {
2454 union {
2455 struct { int i; int j; };
2456 struct { int k; long int l; } w;
2457 };
2458 int m;
2459 } v1;
2460 '
2461
2462 # Test code for whether the C compiler supports C11 (body of main).
2463 ac_c_conftest_c11_main='
2464 _Static_assert ((offsetof (struct anonymous, i)
2465 == offsetof (struct anonymous, w.k)),
2466 "Anonymous union alignment botch");
2467 v1.i = 2;
2468 v1.w.k = 5;
2469 ok |= v1.i != 5;
2470 '
2471
2472 # Test code for whether the C compiler supports C11 (complete).
2473 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2474 ${ac_c_conftest_c99_globals}
2475 ${ac_c_conftest_c11_globals}
2476
2477 int
2478 main (int argc, char **argv)
2479 {
2480 int ok = 0;
2481 ${ac_c_conftest_c89_main}
2482 ${ac_c_conftest_c99_main}
2483 ${ac_c_conftest_c11_main}
2484 return ok;
2485 }
2486 "
2487
2488 # Test code for whether the C compiler supports C99 (complete).
2489 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2490 ${ac_c_conftest_c99_globals}
2491
2492 int
2493 main (int argc, char **argv)
2494 {
2495 int ok = 0;
2496 ${ac_c_conftest_c89_main}
2497 ${ac_c_conftest_c99_main}
2498 return ok;
2499 }
2500 "
2501
2502 # Test code for whether the C compiler supports C89 (complete).
2503 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2504
2505 int
2506 main (int argc, char **argv)
2507 {
2508 int ok = 0;
2509 ${ac_c_conftest_c89_main}
2510 return ok;
2511 }
2512 "
2513
2514 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2515 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2516 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2517 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2518 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2519 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2520 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2521 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2522 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2523
2524 # Auxiliary files required by this configure script.
2525 ac_aux_files="ar-lib config.guess config.sub compile missing install-sh"
2526
2527 # Locations in which to look for auxiliary files.
2528 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2529
2530 # Search for a directory containing all of the required auxiliary files,
2531 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2532 # If we don't find one directory that contains all the files we need,
2533 # we report the set of missing files from the *first* directory in
2534 # $ac_aux_dir_candidates and give up.
2535 ac_missing_aux_files=""
2536 ac_first_candidate=:
2537 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 as_found=false
2540 for as_dir in $ac_aux_dir_candidates
2541 do
2542 IFS=$as_save_IFS
2543 case $as_dir in #(((
2544 '') as_dir=./ ;;
2545 */) ;;
2546 *) as_dir=$as_dir/ ;;
2547 esac
2548 as_found=:
2549
2550 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2551 ac_aux_dir_found=yes
2552 ac_install_sh=
2553 for ac_aux in $ac_aux_files
2554 do
2555 # As a special case, if "install-sh" is required, that requirement
2556 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2557 # and $ac_install_sh is set appropriately for whichever one is found.
2558 if test x"$ac_aux" = x"install-sh"
2559 then
2560 if test -f "${as_dir}install-sh"; then
2561 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2562 ac_install_sh="${as_dir}install-sh -c"
2563 elif test -f "${as_dir}install.sh"; then
2564 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2565 ac_install_sh="${as_dir}install.sh -c"
2566 elif test -f "${as_dir}shtool"; then
2567 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2568 ac_install_sh="${as_dir}shtool install -c"
2569 else
2570 ac_aux_dir_found=no
2571 if $ac_first_candidate; then
2572 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2573 else
2574 break
2575 fi
2576 fi
2577 else
2578 if test -f "${as_dir}${ac_aux}"; then
2579 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2580 else
2581 ac_aux_dir_found=no
2582 if $ac_first_candidate; then
2583 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2584 else
2585 break
2586 fi
2587 fi
2588 fi
2589 done
2590 if test "$ac_aux_dir_found" = yes; then
2591 ac_aux_dir="$as_dir"
2592 break
2593 fi
2594 ac_first_candidate=false
2595
2596 as_found=false
2597 done
2598 IFS=$as_save_IFS
2599 if $as_found
2600 then :
2601
2602 else case e in #(
2603 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2604 esac
2605 fi
2606
2607
2608 # These three variables are undocumented and unsupported,
2609 # and are intended to be withdrawn in a future Autoconf release.
2610 # They can cause serious problems if a builder's source tree is in a directory
2611 # whose full name contains unusual characters.
2612 if test -f "${ac_aux_dir}config.guess"; then
2613 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2614 fi
2615 if test -f "${ac_aux_dir}config.sub"; then
2616 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2617 fi
2618 if test -f "$ac_aux_dir/configure"; then
2619 ac_configure="$SHELL ${ac_aux_dir}configure"
2620 fi
2621
2622 # Check that the precious variables saved in the cache have kept the same
2623 # value.
2624 ac_cache_corrupted=false
2625 for ac_var in $ac_precious_vars; do
2626 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2627 eval ac_new_set=\$ac_env_${ac_var}_set
2628 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2629 eval ac_new_val=\$ac_env_${ac_var}_value
2630 case $ac_old_set,$ac_new_set in
2631 set,)
2632 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2633 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2635 ,set)
2636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2637 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2638 ac_cache_corrupted=: ;;
2639 ,);;
2640 *)
2641 if test "x$ac_old_val" != "x$ac_new_val"; then
2642 # differences in whitespace do not lead to failure.
2643 ac_old_val_w=
2644 for ac_val in x $ac_old_val; do
2645 ac_old_val_w="$ac_old_val_w $ac_val"
2646 done
2647 ac_new_val_w=
2648 for ac_val in x $ac_new_val; do
2649 ac_new_val_w="$ac_new_val_w $ac_val"
2650 done
2651 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2652 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2653 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2654 ac_cache_corrupted=:
2655 else
2656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2657 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2658 eval $ac_var=\$ac_old_val
2659 fi
2660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2661 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2663 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2664 fi;;
2665 esac
2666 # Pass precious variables to config.status.
2667 if test "$ac_new_set" = set; then
2668 case $ac_new_val in
2669 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2670 *) ac_arg=$ac_var=$ac_new_val ;;
2671 esac
2672 case " $ac_configure_args " in
2673 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2674 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675 esac
2676 fi
2677 done
2678 if $ac_cache_corrupted; then
2679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2680 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2682 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2683 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2684 and start over" "$LINENO" 5
2685 fi
2686 ## -------------------- ##
2687 ## Main body of script. ##
2688 ## -------------------- ##
2689
2690
2691 # Determine whether it's possible to make 'echo' print without a newline.
2692 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2693 # for compatibility with existing Makefiles.
2694 ECHO_C= ECHO_N= ECHO_T=
2695 case `echo -n x` in #(((((
2696 -n*)
2697 case `echo 'xy\c'` in
2698 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2699 xy) ECHO_C='\c';;
2700 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2701 ECHO_T=' ';;
2702 esac;;
2703 *)
2704 ECHO_N='-n';;
2705 esac
2706
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712
2713
2714 am__api_version='1.18'
2715
2716
2717
2718 # Find a good install program. We prefer a C program (faster),
2719 # so one script is as good as another. But avoid the broken or
2720 # incompatible versions:
2721 # SysV /etc/install, /usr/sbin/install
2722 # SunOS /usr/etc/install
2723 # IRIX /sbin/install
2724 # AIX /bin/install
2725 # AmigaOS /C/install, which installs bootblocks on floppy discs
2726 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2727 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2728 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2729 # OS/2's system install, which has a completely different semantic
2730 # ./install, which can be erroneously created by make from ./install.sh.
2731 # Reject install programs that cannot install multiple files.
2732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2733 printf %s "checking for a BSD-compatible install... " >&6; }
2734 if test -z "$INSTALL"; then
2735 if test ${ac_cv_path_install+y}
2736 then :
2737 printf %s "(cached) " >&6
2738 else case e in #(
2739 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 case $as_dir in #(((
2744 '') as_dir=./ ;;
2745 */) ;;
2746 *) as_dir=$as_dir/ ;;
2747 esac
2748 # Account for fact that we put trailing slashes in our PATH walk.
2749 case $as_dir in #((
2750 ./ | /[cC]/* | \
2751 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2752 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2753 /usr/ucb/* ) ;;
2754 *)
2755 # OSF/1 and SCO ODT 3.0 have their own names for install.
2756 # Don't use installbsd from OSF/1 since it installs stuff as root
2757 # by default.
2758 for ac_prog in ginstall scoinst install; do
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2761 if test $ac_prog = install &&
2762 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2763 # AIX install. It has an incompatible calling convention.
2764 :
2765 elif test $ac_prog = install &&
2766 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2767 # program-specific install script used by HP pwplus--don't use.
2768 :
2769 else
2770 rm -rf conftest.one conftest.two conftest.dir
2771 echo one > conftest.one
2772 echo two > conftest.two
2773 mkdir conftest.dir
2774 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2775 test -s conftest.one && test -s conftest.two &&
2776 test -s conftest.dir/conftest.one &&
2777 test -s conftest.dir/conftest.two
2778 then
2779 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2780 break 3
2781 fi
2782 fi
2783 fi
2784 done
2785 done
2786 ;;
2787 esac
2788
2789 done
2790 IFS=$as_save_IFS
2791
2792 rm -rf conftest.one conftest.two conftest.dir
2793 ;;
2794 esac
2795 fi
2796 if test ${ac_cv_path_install+y}; then
2797 INSTALL=$ac_cv_path_install
2798 else
2799 # As a last resort, use the slow shell script. Don't cache a
2800 # value for INSTALL within a source directory, because that will
2801 # break other packages using the cache if that directory is
2802 # removed, or if the value is a relative name.
2803 INSTALL=$ac_install_sh
2804 fi
2805 fi
2806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2807 printf '%s\n' "$INSTALL" >&6; }
2808
2809 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2810 # It thinks the first close brace ends the variable substitution.
2811 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2812
2813 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2814
2815 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2816
2817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2818 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2819 if test ${am_cv_sleep_fractional_seconds+y}
2820 then :
2821 printf %s "(cached) " >&6
2822 else case e in #(
2823 e) if sleep 0.001 2>/dev/null
2824 then :
2825 am_cv_sleep_fractional_seconds=yes
2826 else case e in #(
2827 e) am_cv_sleep_fractional_seconds=no ;;
2828 esac
2829 fi
2830 ;;
2831 esac
2832 fi
2833 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2834 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
2835
2836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2837 printf %s "checking filesystem timestamp resolution... " >&6; }
2838 if test ${am_cv_filesystem_timestamp_resolution+y}
2839 then :
2840 printf %s "(cached) " >&6
2841 else case e in #(
2842 e) # Default to the worst case.
2843 am_cv_filesystem_timestamp_resolution=2
2844
2845 # Only try to go finer than 1 sec if sleep can do it.
2846 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2847 # - 1 sec is not much of a win compared to 2 sec, and
2848 # - it takes 2 seconds to perform the test whether 1 sec works.
2849 #
2850 # Instead, just use the default 2s on platforms that have 1s resolution,
2851 # accept the extra 1s delay when using $sleep in the Automake tests, in
2852 # exchange for not incurring the 2s delay for running the test for all
2853 # packages.
2854 #
2855 am_try_resolutions=
2856 if test "$am_cv_sleep_fractional_seconds" = yes; then
2857 # Even a millisecond often causes a bunch of false positives,
2858 # so just try a hundredth of a second. The time saved between .001 and
2859 # .01 is not terribly consequential.
2860 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2861 fi
2862
2863 # In order to catch current-generation FAT out, we must *modify* files
2864 # that already exist; the *creation* timestamp is finer. Use names
2865 # that make ls -t sort them differently when they have equal
2866 # timestamps than when they have distinct timestamps, keeping
2867 # in mind that ls -t prints the *newest* file first.
2868 rm -f conftest.ts?
2869 : > conftest.ts1
2870 : > conftest.ts2
2871 : > conftest.ts3
2872
2873 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2874 # clobber the current shell's arguments. (Outer-level square brackets
2875 # are removed by m4; they're present so that m4 does not expand
2876 # <dollar><star>; be careful, easy to get confused.)
2877 if (
2878 set X `ls -t conftest.ts[12]` &&
2879 {
2880 test "$*" != "X conftest.ts1 conftest.ts2" ||
2881 test "$*" != "X conftest.ts2 conftest.ts1";
2882 }
2883 ); then :; else
2884 # If neither matched, then we have a broken ls. This can happen
2885 # if, for instance, CONFIG_SHELL is bash and it inherits a
2886 # broken ls alias from the environment. This has actually
2887 # happened. Such a system could not be considered "sane".
2888 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2889 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2890 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2891 as_fn_error $? "ls -t produces unexpected output.
2892 Make sure there is not a broken ls alias in your environment.
2893 See 'config.log' for more details" "$LINENO" 5; }
2894 fi
2895
2896 for am_try_res in $am_try_resolutions; do
2897 # Any one fine-grained sleep might happen to cross the boundary
2898 # between two values of a coarser actual resolution, but if we do
2899 # two fine-grained sleeps in a row, at least one of them will fall
2900 # entirely within a coarse interval.
2901 echo alpha > conftest.ts1
2902 sleep $am_try_res
2903 echo beta > conftest.ts2
2904 sleep $am_try_res
2905 echo gamma > conftest.ts3
2906
2907 # We assume that 'ls -t' will make use of high-resolution
2908 # timestamps if the operating system supports them at all.
2909 if (set X `ls -t conftest.ts?` &&
2910 test "$2" = conftest.ts3 &&
2911 test "$3" = conftest.ts2 &&
2912 test "$4" = conftest.ts1); then
2913 #
2914 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2915 # because we don't need to test make.
2916 make_ok=true
2917 if test $am_try_res != 1; then
2918 # But if we've succeeded so far with a subsecond resolution, we
2919 # have one more thing to check: make. It can happen that
2920 # everything else supports the subsecond mtimes, but make doesn't;
2921 # notably on macOS, which ships make 3.81 from 2006 (the last one
2922 # released under GPLv2). https://bugs.gnu.org/68808
2923 #
2924 # We test $MAKE if it is defined in the environment, else "make".
2925 # It might get overridden later, but our hope is that in practice
2926 # it does not matter: it is the system "make" which is (by far)
2927 # the most likely to be broken, whereas if the user overrides it,
2928 # probably they did so with a better, or at least not worse, make.
2929 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2930 #
2931 # Create a Makefile (real tab character here):
2932 rm -f conftest.mk
2933 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2934 echo ' touch conftest.ts2' >>conftest.mk
2935 #
2936 # Now, running
2937 # touch conftest.ts1; touch conftest.ts2; make
2938 # should touch ts1 because ts2 is newer. This could happen by luck,
2939 # but most often, it will fail if make's support is insufficient. So
2940 # test for several consecutive successes.
2941 #
2942 # (We reuse conftest.ts[12] because we still want to modify existing
2943 # files, not create new ones, per above.)
2944 n=0
2945 make=${MAKE-make}
2946 until test $n -eq 3; do
2947 echo one > conftest.ts1
2948 sleep $am_try_res
2949 echo two > conftest.ts2 # ts2 should now be newer than ts1
2950 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2951 make_ok=false
2952 break # out of $n loop
2953 fi
2954 n=`expr $n + 1`
2955 done
2956 fi
2957 #
2958 if $make_ok; then
2959 # Everything we know to check worked out, so call this resolution good.
2960 am_cv_filesystem_timestamp_resolution=$am_try_res
2961 break # out of $am_try_res loop
2962 fi
2963 # Otherwise, we'll go on to check the next resolution.
2964 fi
2965 done
2966 rm -f conftest.ts?
2967 # (end _am_filesystem_timestamp_resolution)
2968 ;;
2969 esac
2970 fi
2971 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2972 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
2973
2974 # This check should not be cached, as it may vary across builds of
2975 # different projects.
2976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2977 printf %s "checking whether build environment is sane... " >&6; }
2978 # Reject unsafe characters in $srcdir or the absolute working directory
2979 # name. Accept space and tab only in the latter.
2980 am_lf='
2981 '
2982 case `pwd` in
2983 *[\\\"\#\$\&\'\`$am_lf]*)
2984 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 printf '%s\n' "no" >&6; }
2986 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2987 esac
2988 case $srcdir in
2989 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2990 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 printf '%s\n' "no" >&6; }
2992 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2993 esac
2994
2995 # Do 'set' in a subshell so we don't clobber the current shell's
2996 # arguments. Must try -L first in case configure is actually a
2997 # symlink; some systems play weird games with the mod time of symlinks
2998 # (eg FreeBSD returns the mod time of the symlink's containing
2999 # directory).
3000 am_build_env_is_sane=no
3001 am_has_slept=no
3002 rm -f conftest.file
3003 for am_try in 1 2; do
3004 echo "timestamp, slept: $am_has_slept" > conftest.file
3005 if (
3006 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3007 if test "$*" = "X"; then
3008 # -L didn't work.
3009 set X `ls -t "$srcdir/configure" conftest.file`
3010 fi
3011 test "$2" = conftest.file
3012 ); then
3013 am_build_env_is_sane=yes
3014 break
3015 fi
3016 # Just in case.
3017 sleep "$am_cv_filesystem_timestamp_resolution"
3018 am_has_slept=yes
3019 done
3020
3021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3022 printf '%s\n' "$am_build_env_is_sane" >&6; }
3023 if test "$am_build_env_is_sane" = no; then
3024 as_fn_error $? "newly created file is older than distributed files!
3025 Check your system clock" "$LINENO" 5
3026 fi
3027
3028 # If we didn't sleep, we still need to ensure time stamps of config.status and
3029 # generated files are strictly newer.
3030 am_sleep_pid=
3031 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3032 then :
3033
3034 else case e in #(
3035 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3036 am_sleep_pid=$!
3037 ;;
3038 esac
3039 fi
3040
3041 rm -f conftest.file
3042
3043 test "$program_prefix" != NONE &&
3044 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3045 # Use a double $ so make ignores it.
3046 test "$program_suffix" != NONE &&
3047 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3048 # Double any \ or $.
3049 # By default was 's,x,x', remove it if useless.
3050 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3051 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
3052
3053
3054 # Expand $ac_aux_dir to an absolute path.
3055 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3056
3057
3058 if test x"${MISSING+set}" != xset; then
3059 MISSING="\${SHELL} '$am_aux_dir/missing'"
3060 fi
3061 # Use eval to expand $SHELL
3062 if eval "$MISSING --is-lightweight"; then
3063 am_missing_run="$MISSING "
3064 else
3065 am_missing_run=
3066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3067 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3068 fi
3069
3070 if test x"${install_sh+set}" != xset; then
3071 case $am_aux_dir in
3072 *\ * | *\ *)
3073 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3074 *)
3075 install_sh="\${SHELL} $am_aux_dir/install-sh"
3076 esac
3077 fi
3078
3079 # Installed binaries are usually stripped using 'strip' when the user
3080 # run "make install-strip". However 'strip' might not be the right
3081 # tool to use in cross-compilation environments, therefore Automake
3082 # will honor the 'STRIP' environment variable to overrule this program.
3083 if test "$cross_compiling" != no; then
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}strip; ac_word=$2
3087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 printf %s "checking for $ac_word... " >&6; }
3089 if test ${ac_cv_prog_STRIP+y}
3090 then :
3091 printf %s "(cached) " >&6
3092 else case e in #(
3093 e) if test -n "$STRIP"; then
3094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 case $as_dir in #(((
3101 '') as_dir=./ ;;
3102 */) ;;
3103 *) as_dir=$as_dir/ ;;
3104 esac
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3108 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi ;;
3116 esac
3117 fi
3118 STRIP=$ac_cv_prog_STRIP
3119 if test -n "$STRIP"; then
3120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3121 printf '%s\n' "$STRIP" >&6; }
3122 else
3123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 printf '%s\n' "no" >&6; }
3125 fi
3126
3127
3128 fi
3129 if test -z "$ac_cv_prog_STRIP"; then
3130 ac_ct_STRIP=$STRIP
3131 # Extract the first word of "strip", so it can be a program name with args.
3132 set dummy strip; ac_word=$2
3133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 printf %s "checking for $ac_word... " >&6; }
3135 if test ${ac_cv_prog_ac_ct_STRIP+y}
3136 then :
3137 printf %s "(cached) " >&6
3138 else case e in #(
3139 e) if test -n "$ac_ct_STRIP"; then
3140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145 IFS=$as_save_IFS
3146 case $as_dir in #(((
3147 '') as_dir=./ ;;
3148 */) ;;
3149 *) as_dir=$as_dir/ ;;
3150 esac
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_ac_ct_STRIP="strip"
3154 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi ;;
3162 esac
3163 fi
3164 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3165 if test -n "$ac_ct_STRIP"; then
3166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3167 printf '%s\n' "$ac_ct_STRIP" >&6; }
3168 else
3169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 printf '%s\n' "no" >&6; }
3171 fi
3172
3173 if test "x$ac_ct_STRIP" = x; then
3174 STRIP=":"
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3181 esac
3182 STRIP=$ac_ct_STRIP
3183 fi
3184 else
3185 STRIP="$ac_cv_prog_STRIP"
3186 fi
3187
3188 fi
3189 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3190
3191
3192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3193 printf %s "checking for a race-free mkdir -p... " >&6; }
3194 if test -z "$MKDIR_P"; then
3195 if test ${ac_cv_path_mkdir+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else case e in #(
3199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3201 do
3202 IFS=$as_save_IFS
3203 case $as_dir in #(((
3204 '') as_dir=./ ;;
3205 */) ;;
3206 *) as_dir=$as_dir/ ;;
3207 esac
3208 for ac_prog in mkdir gmkdir; do
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3211 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3212 'mkdir ('*'coreutils) '* | \
3213 *'BusyBox '* | \
3214 'mkdir (fileutils) '4.1*)
3215 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3216 break 3;;
3217 esac
3218 done
3219 done
3220 done
3221 IFS=$as_save_IFS
3222 ;;
3223 esac
3224 fi
3225
3226 test -d ./--version && rmdir ./--version
3227 if test ${ac_cv_path_mkdir+y}; then
3228 MKDIR_P="$ac_cv_path_mkdir -p"
3229 else
3230 # As a last resort, use plain mkdir -p,
3231 # in the hope it doesn't have the bugs of ancient mkdir.
3232 MKDIR_P='mkdir -p'
3233 fi
3234 fi
3235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3236 printf '%s\n' "$MKDIR_P" >&6; }
3237
3238 for ac_prog in gawk mawk nawk awk 'busybox awk'
3239 do
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 printf %s "checking for $ac_word... " >&6; }
3244 if test ${ac_cv_prog_AWK+y}
3245 then :
3246 printf %s "(cached) " >&6
3247 else case e in #(
3248 e) if test -n "$AWK"; then
3249 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 case $as_dir in #(((
3256 '') as_dir=./ ;;
3257 */) ;;
3258 *) as_dir=$as_dir/ ;;
3259 esac
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_AWK="$ac_prog"
3263 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi ;;
3271 esac
3272 fi
3273 AWK=$ac_cv_prog_AWK
3274 if test -n "$AWK"; then
3275 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3276 printf '%s\n' "$AWK" >&6; }
3277 else
3278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 printf '%s\n' "no" >&6; }
3280 fi
3281
3282
3283 test -n "$AWK" && break
3284 done
3285
3286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3287 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3288 set x ${MAKE-make}
3289 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3290 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3291 then :
3292 printf %s "(cached) " >&6
3293 else case e in #(
3294 e) cat >conftest.make <<\_ACEOF
3295 SHELL = /bin/sh
3296 all:
3297 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
3298 _ACEOF
3299 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3300 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3301 *@@@%%%=?*=@@@%%%*)
3302 eval ac_cv_prog_make_${ac_make}_set=yes;;
3303 *)
3304 eval ac_cv_prog_make_${ac_make}_set=no;;
3305 esac
3306 rm -f conftest.make ;;
3307 esac
3308 fi
3309 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 printf '%s\n' "yes" >&6; }
3312 SET_MAKE=
3313 else
3314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 printf '%s\n' "no" >&6; }
3316 SET_MAKE="MAKE=${MAKE-make}"
3317 fi
3318
3319 rm -rf .tst 2>/dev/null
3320 mkdir .tst 2>/dev/null
3321 if test -d .tst; then
3322 am__leading_dot=.
3323 else
3324 am__leading_dot=_
3325 fi
3326 rmdir .tst 2>/dev/null
3327
3328 AM_DEFAULT_VERBOSITY=1
3329 # Check whether --enable-silent-rules was given.
3330 if test ${enable_silent_rules+y}
3331 then :
3332 enableval=$enable_silent_rules;
3333 fi
3334
3335 am_make=${MAKE-make}
3336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3337 printf %s "checking whether $am_make supports nested variables... " >&6; }
3338 if test ${am_cv_make_support_nested_variables+y}
3339 then :
3340 printf %s "(cached) " >&6
3341 else case e in #(
3342 e) if printf '%s\n' 'TRUE=$(BAR$(V))
3343 BAR0=false
3344 BAR1=true
3345 V=1
3346 am__doit:
3347 @$(TRUE)
3348 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3349 am_cv_make_support_nested_variables=yes
3350 else
3351 am_cv_make_support_nested_variables=no
3352 fi ;;
3353 esac
3354 fi
3355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3356 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
3357 AM_BACKSLASH='\'
3358
3359 am__rm_f_notfound=
3360 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3361 then :
3362
3363 else case e in #(
3364 e) am__rm_f_notfound='""' ;;
3365 esac
3366 fi
3367
3368
3369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3370 printf %s "checking xargs -n works... " >&6; }
3371 if test ${am_cv_xargs_n_works+y}
3372 then :
3373 printf %s "(cached) " >&6
3374 else case e in #(
3375 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3376 3"
3377 then :
3378 am_cv_xargs_n_works=yes
3379 else case e in #(
3380 e) am_cv_xargs_n_works=no ;;
3381 esac
3382 fi ;;
3383 esac
3384 fi
3385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3386 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
3387 if test "$am_cv_xargs_n_works" = yes
3388 then :
3389 am__xargs_n='xargs -n'
3390 else case e in #(
3391 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3392 ;;
3393 esac
3394 fi
3395
3396 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3397 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3398 # is not polluted with repeated "-I."
3399 am__isrc=' -I$(srcdir)'
3400 # test to see if srcdir already configured
3401 if test -f $srcdir/config.status; then
3402 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3403 fi
3404 fi
3405
3406 # test whether we have cygpath
3407 if test -z "$CYGPATH_W"; then
3408 if (cygpath --version) >/dev/null 2>/dev/null; then
3409 CYGPATH_W='cygpath -w'
3410 else
3411 CYGPATH_W=echo
3412 fi
3413 fi
3414
3415
3416 # Define the identity of the package.
3417 PACKAGE='xedit'
3418 VERSION='1.2.5'
3419
3420
3421 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3422
3423
3424 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
3425
3426 # Some tools Automake needs.
3427
3428 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3429
3430
3431 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3432
3433
3434 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3435
3436
3437 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3438
3439
3440 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3441
3442 # For better backward compatibility. To be removed once Automake 1.9.x
3443 # dies out for good. For more background, see:
3444 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3445 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3446 mkdir_p='$(MKDIR_P)'
3447
3448 # We need awk for the "check" target (and possibly the TAP driver). The
3449 # system "awk" is bad on some platforms.
3450 # Always define AMTAR for backward compatibility. Yes, it's still used
3451 # in the wild :-( We should find a proper way to deprecate it ...
3452 AMTAR='$${TAR-tar}'
3453
3454
3455 # We'll loop over all known methods to create a tar archive until one works.
3456 _am_tools='gnutar plaintar pax cpio none'
3457
3458 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3459 # There is notably a 21 bits limit for the UID and the GID. In fact,
3460 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3461 # and bug#13588).
3462 am_max_uid=2097151 # 2^21 - 1
3463 am_max_gid=$am_max_uid
3464 # The $UID and $GID variables are not portable, so we need to resort
3465 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3466 # below are definitely unexpected, so allow the users to see them
3467 # (that is, avoid stderr redirection).
3468 am_uid=`id -u || echo unknown`
3469 am_gid=`id -g || echo unknown`
3470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3471 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3472 if test x$am_uid = xunknown; then
3473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3474 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3475 elif test $am_uid -le $am_max_uid; then
3476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 printf '%s\n' "yes" >&6; }
3478 else
3479 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 printf '%s\n' "no" >&6; }
3481 _am_tools=none
3482 fi
3483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3484 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3485 if test x$gm_gid = xunknown; then
3486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3487 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3488 elif test $am_gid -le $am_max_gid; then
3489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 printf '%s\n' "yes" >&6; }
3491 else
3492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 printf '%s\n' "no" >&6; }
3494 _am_tools=none
3495 fi
3496
3497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3498 printf %s "checking how to create a ustar tar archive... " >&6; }
3499
3500 # Go ahead even if we have the value already cached. We do so because we
3501 # need to set the values for the 'am__tar' and 'am__untar' variables.
3502 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3503
3504 for _am_tool in $_am_tools; do
3505 case $_am_tool in
3506 gnutar)
3507 for _am_tar in tar gnutar gtar; do
3508 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3509 ($_am_tar --version) >&5 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && break
3513 done
3514 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3515 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3516 am__untar="$_am_tar -xf -"
3517 ;;
3518 plaintar)
3519 # Must skip GNU tar: if it does not support --format= it doesn't create
3520 # ustar tarball either.
3521 (tar --version) >/dev/null 2>&1 && continue
3522 am__tar='tar chf - "$$tardir"'
3523 am__tar_='tar chf - "$tardir"'
3524 am__untar='tar xf -'
3525 ;;
3526 pax)
3527 am__tar='pax -L -x ustar -w "$$tardir"'
3528 am__tar_='pax -L -x ustar -w "$tardir"'
3529 am__untar='pax -r'
3530 ;;
3531 cpio)
3532 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3533 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3534 am__untar='cpio -i -H ustar -d'
3535 ;;
3536 none)
3537 am__tar=false
3538 am__tar_=false
3539 am__untar=false
3540 ;;
3541 esac
3542
3543 # If the value was cached, stop now. We just wanted to have am__tar
3544 # and am__untar set.
3545 test -n "${am_cv_prog_tar_ustar}" && break
3546
3547 # tar/untar a dummy directory, and stop if the command works.
3548 rm -rf conftest.dir
3549 mkdir conftest.dir
3550 echo GrepMe > conftest.dir/file
3551 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3552 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }
3556 rm -rf conftest.dir
3557 if test -s conftest.tar; then
3558 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3559 ($am__untar <conftest.tar) >&5 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3564 (cat conftest.dir/file) >&5 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3568 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3569 fi
3570 done
3571 rm -rf conftest.dir
3572
3573 if test ${am_cv_prog_tar_ustar+y}
3574 then :
3575 printf %s "(cached) " >&6
3576 else case e in #(
3577 e) am_cv_prog_tar_ustar=$_am_tool ;;
3578 esac
3579 fi
3580
3581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3582 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
3583
3584
3585
3586
3587
3588 # Variables for tags utilities; see am/tags.am
3589 if test -z "$CTAGS"; then
3590 CTAGS=ctags
3591 fi
3592
3593 if test -z "$ETAGS"; then
3594 ETAGS=etags
3595 fi
3596
3597 if test -z "$CSCOPE"; then
3598 CSCOPE=cscope
3599 fi
3600
3601
3602
3603
3604
3605
3606
3607
3608 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632 DEPDIR="${am__leading_dot}deps"
3633
3634 ac_config_commands="$ac_config_commands depfiles"
3635
3636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3637 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3638 cat > confinc.mk << 'END'
3639 am__doit:
3640 @echo this is the am__doit target >confinc.out
3641 .PHONY: am__doit
3642 END
3643 am__include="#"
3644 am__quote=
3645 # BSD make does it like this.
3646 echo '.include "confinc.mk" # ignored' > confmf.BSD
3647 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3648 echo 'include confinc.mk # ignored' > confmf.GNU
3649 _am_result=no
3650 for s in GNU BSD; do
3651 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3652 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }
3656 case $?:`cat confinc.out 2>/dev/null` in #(
3657 '0:this is the am__doit target') :
3658 case $s in #(
3659 BSD) :
3660 am__include='.include' am__quote='"' ;; #(
3661 *) :
3662 am__include='include' am__quote='' ;;
3663 esac ;; #(
3664 *) :
3665 ;;
3666 esac
3667 if test "$am__include" != "#"; then
3668 _am_result="yes ($s style)"
3669 break
3670 fi
3671 done
3672 rm -f confinc.* confmf.*
3673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3674 printf '%s\n' "${_am_result}" >&6; }
3675
3676 # Check whether --enable-dependency-tracking was given.
3677 if test ${enable_dependency_tracking+y}
3678 then :
3679 enableval=$enable_dependency_tracking;
3680 fi
3681
3682 if test "x$enable_dependency_tracking" != xno; then
3683 am_depcomp="$ac_aux_dir/depcomp"
3684 AMDEPBACKSLASH='\'
3685 am__nodep='_no'
3686 fi
3687 if test "x$enable_dependency_tracking" != xno; then
3688 AMDEP_TRUE=
3689 AMDEP_FALSE='#'
3690 else
3691 AMDEP_TRUE='#'
3692 AMDEP_FALSE=
3693 fi
3694
3695
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 printf %s "checking for $ac_word... " >&6; }
3706 if test ${ac_cv_prog_CC+y}
3707 then :
3708 printf %s "(cached) " >&6
3709 else case e in #(
3710 e) if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716 IFS=$as_save_IFS
3717 case $as_dir in #(((
3718 '') as_dir=./ ;;
3719 */) ;;
3720 *) as_dir=$as_dir/ ;;
3721 esac
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3725 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728 done
3729 done
3730 IFS=$as_save_IFS
3731
3732 fi ;;
3733 esac
3734 fi
3735 CC=$ac_cv_prog_CC
3736 if test -n "$CC"; then
3737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738 printf '%s\n' "$CC" >&6; }
3739 else
3740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 printf '%s\n' "no" >&6; }
3742 fi
3743
3744
3745 fi
3746 if test -z "$ac_cv_prog_CC"; then
3747 ac_ct_CC=$CC
3748 # Extract the first word of "gcc", so it can be a program name with args.
3749 set dummy gcc; ac_word=$2
3750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 printf %s "checking for $ac_word... " >&6; }
3752 if test ${ac_cv_prog_ac_ct_CC+y}
3753 then :
3754 printf %s "(cached) " >&6
3755 else case e in #(
3756 e) if test -n "$ac_ct_CC"; then
3757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 case $as_dir in #(((
3764 '') as_dir=./ ;;
3765 */) ;;
3766 *) as_dir=$as_dir/ ;;
3767 esac
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_ac_ct_CC="gcc"
3771 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi ;;
3779 esac
3780 fi
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 printf '%s\n' "$ac_ct_CC" >&6; }
3785 else
3786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 printf '%s\n' "no" >&6; }
3788 fi
3789
3790 if test "x$ac_ct_CC" = x; then
3791 CC=""
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CC=$ac_ct_CC
3800 fi
3801 else
3802 CC="$ac_cv_prog_CC"
3803 fi
3804
3805 if test -z "$CC"; then
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}cc; ac_word=$2
3809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 printf %s "checking for $ac_word... " >&6; }
3811 if test ${ac_cv_prog_CC+y}
3812 then :
3813 printf %s "(cached) " >&6
3814 else case e in #(
3815 e) if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821 IFS=$as_save_IFS
3822 case $as_dir in #(((
3823 '') as_dir=./ ;;
3824 */) ;;
3825 *) as_dir=$as_dir/ ;;
3826 esac
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="${ac_tool_prefix}cc"
3830 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833 done
3834 done
3835 IFS=$as_save_IFS
3836
3837 fi ;;
3838 esac
3839 fi
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 printf '%s\n' "$CC" >&6; }
3844 else
3845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 printf '%s\n' "no" >&6; }
3847 fi
3848
3849
3850 fi
3851 fi
3852 if test -z "$CC"; then
3853 # Extract the first word of "cc", so it can be a program name with args.
3854 set dummy cc; ac_word=$2
3855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 printf %s "checking for $ac_word... " >&6; }
3857 if test ${ac_cv_prog_CC+y}
3858 then :
3859 printf %s "(cached) " >&6
3860 else case e in #(
3861 e) if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 else
3864 ac_prog_rejected=no
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868 IFS=$as_save_IFS
3869 case $as_dir in #(((
3870 '') as_dir=./ ;;
3871 */) ;;
3872 *) as_dir=$as_dir/ ;;
3873 esac
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3876 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3877 ac_prog_rejected=yes
3878 continue
3879 fi
3880 ac_cv_prog_CC="cc"
3881 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 if test $ac_prog_rejected = yes; then
3889 # We found a bogon in the path, so make sure we never use it.
3890 set dummy $ac_cv_prog_CC
3891 shift
3892 if test $# != 0; then
3893 # We chose a different compiler from the bogus one.
3894 # However, it has the same basename, so the bogon will be chosen
3895 # first if we set CC to just the basename; use the full file name.
3896 shift
3897 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3898 fi
3899 fi
3900 fi ;;
3901 esac
3902 fi
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 printf '%s\n' "$CC" >&6; }
3907 else
3908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 printf '%s\n' "no" >&6; }
3910 fi
3911
3912
3913 fi
3914 if test -z "$CC"; then
3915 if test -n "$ac_tool_prefix"; then
3916 for ac_prog in cl.exe
3917 do
3918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 printf %s "checking for $ac_word... " >&6; }
3922 if test ${ac_cv_prog_CC+y}
3923 then :
3924 printf %s "(cached) " >&6
3925 else case e in #(
3926 e) if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 case $as_dir in #(((
3934 '') as_dir=./ ;;
3935 */) ;;
3936 *) as_dir=$as_dir/ ;;
3937 esac
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3941 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944 done
3945 done
3946 IFS=$as_save_IFS
3947
3948 fi ;;
3949 esac
3950 fi
3951 CC=$ac_cv_prog_CC
3952 if test -n "$CC"; then
3953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3954 printf '%s\n' "$CC" >&6; }
3955 else
3956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 printf '%s\n' "no" >&6; }
3958 fi
3959
3960
3961 test -n "$CC" && break
3962 done
3963 fi
3964 if test -z "$CC"; then
3965 ac_ct_CC=$CC
3966 for ac_prog in cl.exe
3967 do
3968 # Extract the first word of "$ac_prog", so it can be a program name with args.
3969 set dummy $ac_prog; ac_word=$2
3970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 printf %s "checking for $ac_word... " >&6; }
3972 if test ${ac_cv_prog_ac_ct_CC+y}
3973 then :
3974 printf %s "(cached) " >&6
3975 else case e in #(
3976 e) if test -n "$ac_ct_CC"; then
3977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982 IFS=$as_save_IFS
3983 case $as_dir in #(((
3984 '') as_dir=./ ;;
3985 */) ;;
3986 *) as_dir=$as_dir/ ;;
3987 esac
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_ac_ct_CC="$ac_prog"
3991 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998 fi ;;
3999 esac
4000 fi
4001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4002 if test -n "$ac_ct_CC"; then
4003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4004 printf '%s\n' "$ac_ct_CC" >&6; }
4005 else
4006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 printf '%s\n' "no" >&6; }
4008 fi
4009
4010
4011 test -n "$ac_ct_CC" && break
4012 done
4013
4014 if test "x$ac_ct_CC" = x; then
4015 CC=""
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 CC=$ac_ct_CC
4024 fi
4025 fi
4026
4027 fi
4028 if test -z "$CC"; then
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}clang; ac_word=$2
4032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 printf %s "checking for $ac_word... " >&6; }
4034 if test ${ac_cv_prog_CC+y}
4035 then :
4036 printf %s "(cached) " >&6
4037 else case e in #(
4038 e) if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 case $as_dir in #(((
4046 '') as_dir=./ ;;
4047 */) ;;
4048 *) as_dir=$as_dir/ ;;
4049 esac
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_CC="${ac_tool_prefix}clang"
4053 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056 done
4057 done
4058 IFS=$as_save_IFS
4059
4060 fi ;;
4061 esac
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 printf '%s\n' "$CC" >&6; }
4067 else
4068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 printf '%s\n' "no" >&6; }
4070 fi
4071
4072
4073 fi
4074 if test -z "$ac_cv_prog_CC"; then
4075 ac_ct_CC=$CC
4076 # Extract the first word of "clang", so it can be a program name with args.
4077 set dummy clang; ac_word=$2
4078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 printf %s "checking for $ac_word... " >&6; }
4080 if test ${ac_cv_prog_ac_ct_CC+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else case e in #(
4084 e) if test -n "$ac_ct_CC"; then
4085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 case $as_dir in #(((
4092 '') as_dir=./ ;;
4093 */) ;;
4094 *) as_dir=$as_dir/ ;;
4095 esac
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="clang"
4099 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4100 break 2
4101 fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106 fi ;;
4107 esac
4108 fi
4109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4110 if test -n "$ac_ct_CC"; then
4111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4112 printf '%s\n' "$ac_ct_CC" >&6; }
4113 else
4114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 printf '%s\n' "no" >&6; }
4116 fi
4117
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122 yes:)
4123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125 ac_tool_warned=yes ;;
4126 esac
4127 CC=$ac_ct_CC
4128 fi
4129 else
4130 CC="$ac_cv_prog_CC"
4131 fi
4132
4133 fi
4134
4135
4136 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4137 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4138 as_fn_error $? "no acceptable C compiler found in \$PATH
4139 See 'config.log' for more details" "$LINENO" 5; }
4140
4141 # Provide some information about the compiler.
4142 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4143 set X $ac_compile
4144 ac_compiler=$2
4145 for ac_option in --version -v -V -qversion -version; do
4146 { { ac_try="$ac_compiler $ac_option >&5"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 printf '%s\n' "$ac_try_echo"; } >&5
4153 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4154 ac_status=$?
4155 if test -s conftest.err; then
4156 sed '10a\
4157 ... rest of stderr output deleted ...
4158 10q' conftest.err >conftest.er1
4159 cat conftest.er1 >&5
4160 fi
4161 rm -f conftest.er1 conftest.err
4162 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163 test $ac_status = 0; }
4164 done
4165
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main (void)
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 ac_clean_files_save=$ac_clean_files
4178 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4179 # Try to create an executable without -o first, disregard a.out.
4180 # It will help us diagnose broken compilers, and finding out an intuition
4181 # of exeext.
4182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4183 printf %s "checking whether the C compiler works... " >&6; }
4184 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4185
4186 # The possible output files:
4187 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4188
4189 ac_rmfiles=
4190 for ac_file in $ac_files
4191 do
4192 case $ac_file in
4193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4194 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4195 esac
4196 done
4197 rm -f $ac_rmfiles
4198
4199 if { { ac_try="$ac_link_default"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 printf '%s\n' "$ac_try_echo"; } >&5
4206 (eval "$ac_link_default") 2>&5
4207 ac_status=$?
4208 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }
4210 then :
4211 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4212 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4214 # so that the user can short-circuit this test for compilers unknown to
4215 # Autoconf.
4216 for ac_file in $ac_files ''
4217 do
4218 test -f "$ac_file" || continue
4219 case $ac_file in
4220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4221 ;;
4222 [ab].out )
4223 # We found the default executable, but exeext='' is most
4224 # certainly right.
4225 break;;
4226 *.* )
4227 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4228 then :; else
4229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4230 fi
4231 # We set ac_cv_exeext here because the later test for it is not
4232 # safe: cross compilers may not add the suffix if given an '-o'
4233 # argument, so we may need to know it at that point already.
4234 # Even if this section looks crufty: it has the advantage of
4235 # actually working.
4236 break;;
4237 * )
4238 break;;
4239 esac
4240 done
4241 test "$ac_cv_exeext" = no && ac_cv_exeext=
4242
4243 else case e in #(
4244 e) ac_file='' ;;
4245 esac
4246 fi
4247 if test -z "$ac_file"
4248 then :
4249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 printf '%s\n' "no" >&6; }
4251 printf '%s\n' "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4255 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4256 as_fn_error 77 "C compiler cannot create executables
4257 See 'config.log' for more details" "$LINENO" 5; }
4258 else case e in #(
4259 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4260 printf '%s\n' "yes" >&6; } ;;
4261 esac
4262 fi
4263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4264 printf %s "checking for C compiler default output file name... " >&6; }
4265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4266 printf '%s\n' "$ac_file" >&6; }
4267 ac_exeext=$ac_cv_exeext
4268
4269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4270 ac_clean_files=$ac_clean_files_save
4271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4272 printf %s "checking for suffix of executables... " >&6; }
4273 if { { ac_try="$ac_link"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 printf '%s\n' "$ac_try_echo"; } >&5
4280 (eval "$ac_link") 2>&5
4281 ac_status=$?
4282 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284 then :
4285 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4286 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4287 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4288 # 'rm'.
4289 for ac_file in conftest.exe conftest conftest.*; do
4290 test -f "$ac_file" || continue
4291 case $ac_file in
4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4294 break;;
4295 * ) break;;
4296 esac
4297 done
4298 else case e in #(
4299 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4300 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4301 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4302 See 'config.log' for more details" "$LINENO" 5; } ;;
4303 esac
4304 fi
4305 rm -f conftest conftest$ac_cv_exeext
4306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4307 printf '%s\n' "$ac_cv_exeext" >&6; }
4308
4309 rm -f conftest.$ac_ext
4310 EXEEXT=$ac_cv_exeext
4311 ac_exeext=$EXEEXT
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <stdio.h>
4315 int
4316 main (void)
4317 {
4318 FILE *f = fopen ("conftest.out", "w");
4319 if (!f)
4320 return 1;
4321 return ferror (f) || fclose (f) != 0;
4322
4323 ;
4324 return 0;
4325 }
4326 _ACEOF
4327 ac_clean_files="$ac_clean_files conftest.out"
4328 # Check that the compiler produces executables we can run. If not, either
4329 # the compiler is broken, or we cross compile.
4330 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4331 printf %s "checking whether we are cross compiling... " >&6; }
4332 if test "$cross_compiling" != yes; then
4333 { { ac_try="$ac_link"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 printf '%s\n' "$ac_try_echo"; } >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4344 if { ac_try='./conftest$ac_cv_exeext'
4345 { { case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 printf '%s\n' "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; }; then
4355 cross_compiling=no
4356 else
4357 if test "$cross_compiling" = maybe; then
4358 cross_compiling=yes
4359 else
4360 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4361 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4362 as_fn_error 77 "cannot run C compiled programs.
4363 If you meant to cross compile, use '--host'.
4364 See 'config.log' for more details" "$LINENO" 5; }
4365 fi
4366 fi
4367 fi
4368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4369 printf '%s\n' "$cross_compiling" >&6; }
4370
4371 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4372 conftest.o conftest.obj conftest.out
4373 ac_clean_files=$ac_clean_files_save
4374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4375 printf %s "checking for suffix of object files... " >&6; }
4376 if test ${ac_cv_objext+y}
4377 then :
4378 printf %s "(cached) " >&6
4379 else case e in #(
4380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main (void)
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.o conftest.obj
4392 if { { ac_try="$ac_compile"
4393 case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 printf '%s\n' "$ac_try_echo"; } >&5
4399 (eval "$ac_compile") 2>&5
4400 ac_status=$?
4401 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }
4403 then :
4404 for ac_file in conftest.o conftest.obj conftest.*; do
4405 test -f "$ac_file" || continue;
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4409 break;;
4410 esac
4411 done
4412 else case e in #(
4413 e) printf '%s\n' "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4417 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4418 as_fn_error $? "cannot compute suffix of object files: cannot compile
4419 See 'config.log' for more details" "$LINENO" 5; } ;;
4420 esac
4421 fi
4422 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4423 esac
4424 fi
4425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4426 printf '%s\n' "$ac_cv_objext" >&6; }
4427 OBJEXT=$ac_cv_objext
4428 ac_objext=$OBJEXT
4429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4430 printf %s "checking whether the compiler supports GNU C... " >&6; }
4431 if test ${ac_cv_c_compiler_gnu+y}
4432 then :
4433 printf %s "(cached) " >&6
4434 else case e in #(
4435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main (void)
4440 {
4441 #ifndef __GNUC__
4442 choke me
4443 #endif
4444
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"
4450 then :
4451 ac_compiler_gnu=yes
4452 else case e in #(
4453 e) ac_compiler_gnu=no ;;
4454 esac
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4457 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4458 ;;
4459 esac
4460 fi
4461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4462 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464
4465 if test $ac_compiler_gnu = yes; then
4466 GCC=yes
4467 else
4468 GCC=
4469 fi
4470 ac_test_CFLAGS=${CFLAGS+y}
4471 ac_save_CFLAGS=$CFLAGS
4472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4473 printf %s "checking whether $CC accepts -g... " >&6; }
4474 if test ${ac_cv_prog_cc_g+y}
4475 then :
4476 printf %s "(cached) " >&6
4477 else case e in #(
4478 e) ac_save_c_werror_flag=$ac_c_werror_flag
4479 ac_c_werror_flag=yes
4480 ac_cv_prog_cc_g=no
4481 CFLAGS="-g"
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484
4485 int
4486 main (void)
4487 {
4488
4489 ;
4490 return 0;
4491 }
4492 _ACEOF
4493 if ac_fn_c_try_compile "$LINENO"
4494 then :
4495 ac_cv_prog_cc_g=yes
4496 else case e in #(
4497 e) CFLAGS=""
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main (void)
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"
4510 then :
4511
4512 else case e in #(
4513 e) ac_c_werror_flag=$ac_save_c_werror_flag
4514 CFLAGS="-g"
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517
4518 int
4519 main (void)
4520 {
4521
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"
4527 then :
4528 ac_cv_prog_cc_g=yes
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4531 esac
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4534 esac
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4537 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4538 esac
4539 fi
4540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4541 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
4542 if test $ac_test_CFLAGS; then
4543 CFLAGS=$ac_save_CFLAGS
4544 elif test $ac_cv_prog_cc_g = yes; then
4545 if test "$GCC" = yes; then
4546 CFLAGS="-g -O2"
4547 else
4548 CFLAGS="-g"
4549 fi
4550 else
4551 if test "$GCC" = yes; then
4552 CFLAGS="-O2"
4553 else
4554 CFLAGS=
4555 fi
4556 fi
4557 ac_prog_cc_stdc=no
4558 if test x$ac_prog_cc_stdc = xno
4559 then :
4560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
4561 printf %s "checking for $CC option to enable C23 features... " >&6; }
4562 if test ${ac_cv_prog_cc_c23+y}
4563 then :
4564 printf %s "(cached) " >&6
4565 else case e in #(
4566 e) ac_cv_prog_cc_c23=no
4567 ac_save_CC=$CC
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 $ac_c_conftest_c23_program
4571 _ACEOF
4572 for ac_arg in '' -std=gnu23
4573 do
4574 CC="$ac_save_CC $ac_arg"
4575 if ac_fn_c_try_compile "$LINENO"
4576 then :
4577 ac_cv_prog_cc_c23=$ac_arg
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.beam
4580 test "x$ac_cv_prog_cc_c23" != "xno" && break
4581 done
4582 rm -f conftest.$ac_ext
4583 CC=$ac_save_CC ;;
4584 esac
4585 fi
4586
4587 if test "x$ac_cv_prog_cc_c23" = xno
4588 then :
4589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4590 printf '%s\n' "unsupported" >&6; }
4591 else case e in #(
4592 e) if test "x$ac_cv_prog_cc_c23" = x
4593 then :
4594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4595 printf '%s\n' "none needed" >&6; }
4596 else case e in #(
4597 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
4598 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
4599 CC="$CC $ac_cv_prog_cc_c23" ;;
4600 esac
4601 fi
4602 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
4603 ac_prog_cc_stdc=c23 ;;
4604 esac
4605 fi
4606 fi
4607 if test x$ac_prog_cc_stdc = xno
4608 then :
4609 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4610 printf %s "checking for $CC option to enable C11 features... " >&6; }
4611 if test ${ac_cv_prog_cc_c11+y}
4612 then :
4613 printf %s "(cached) " >&6
4614 else case e in #(
4615 e) ac_cv_prog_cc_c11=no
4616 ac_save_CC=$CC
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 $ac_c_conftest_c11_program
4620 _ACEOF
4621 for ac_arg in '' -std=gnu11 -std:c11
4622 do
4623 CC="$ac_save_CC $ac_arg"
4624 if ac_fn_c_try_compile "$LINENO"
4625 then :
4626 ac_cv_prog_cc_c11=$ac_arg
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.beam
4629 test "x$ac_cv_prog_cc_c11" != "xno" && break
4630 done
4631 rm -f conftest.$ac_ext
4632 CC=$ac_save_CC ;;
4633 esac
4634 fi
4635
4636 if test "x$ac_cv_prog_cc_c11" = xno
4637 then :
4638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4639 printf '%s\n' "unsupported" >&6; }
4640 else case e in #(
4641 e) if test "x$ac_cv_prog_cc_c11" = x
4642 then :
4643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4644 printf '%s\n' "none needed" >&6; }
4645 else case e in #(
4646 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4647 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
4648 CC="$CC $ac_cv_prog_cc_c11" ;;
4649 esac
4650 fi
4651 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4652 ac_prog_cc_stdc=c11 ;;
4653 esac
4654 fi
4655 fi
4656 if test x$ac_prog_cc_stdc = xno
4657 then :
4658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4659 printf %s "checking for $CC option to enable C99 features... " >&6; }
4660 if test ${ac_cv_prog_cc_c99+y}
4661 then :
4662 printf %s "(cached) " >&6
4663 else case e in #(
4664 e) ac_cv_prog_cc_c99=no
4665 ac_save_CC=$CC
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 $ac_c_conftest_c99_program
4669 _ACEOF
4670 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4671 do
4672 CC="$ac_save_CC $ac_arg"
4673 if ac_fn_c_try_compile "$LINENO"
4674 then :
4675 ac_cv_prog_cc_c99=$ac_arg
4676 fi
4677 rm -f core conftest.err conftest.$ac_objext conftest.beam
4678 test "x$ac_cv_prog_cc_c99" != "xno" && break
4679 done
4680 rm -f conftest.$ac_ext
4681 CC=$ac_save_CC ;;
4682 esac
4683 fi
4684
4685 if test "x$ac_cv_prog_cc_c99" = xno
4686 then :
4687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4688 printf '%s\n' "unsupported" >&6; }
4689 else case e in #(
4690 e) if test "x$ac_cv_prog_cc_c99" = x
4691 then :
4692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4693 printf '%s\n' "none needed" >&6; }
4694 else case e in #(
4695 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4696 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
4697 CC="$CC $ac_cv_prog_cc_c99" ;;
4698 esac
4699 fi
4700 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4701 ac_prog_cc_stdc=c99 ;;
4702 esac
4703 fi
4704 fi
4705 if test x$ac_prog_cc_stdc = xno
4706 then :
4707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4708 printf %s "checking for $CC option to enable C89 features... " >&6; }
4709 if test ${ac_cv_prog_cc_c89+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else case e in #(
4713 e) ac_cv_prog_cc_c89=no
4714 ac_save_CC=$CC
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 $ac_c_conftest_c89_program
4718 _ACEOF
4719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4720 do
4721 CC="$ac_save_CC $ac_arg"
4722 if ac_fn_c_try_compile "$LINENO"
4723 then :
4724 ac_cv_prog_cc_c89=$ac_arg
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.beam
4727 test "x$ac_cv_prog_cc_c89" != "xno" && break
4728 done
4729 rm -f conftest.$ac_ext
4730 CC=$ac_save_CC ;;
4731 esac
4732 fi
4733
4734 if test "x$ac_cv_prog_cc_c89" = xno
4735 then :
4736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4737 printf '%s\n' "unsupported" >&6; }
4738 else case e in #(
4739 e) if test "x$ac_cv_prog_cc_c89" = x
4740 then :
4741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4742 printf '%s\n' "none needed" >&6; }
4743 else case e in #(
4744 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
4746 CC="$CC $ac_cv_prog_cc_c89" ;;
4747 esac
4748 fi
4749 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4750 ac_prog_cc_stdc=c89 ;;
4751 esac
4752 fi
4753 fi
4754
4755 ac_ext=c
4756 ac_cpp='$CPP $CPPFLAGS'
4757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760
4761
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4768 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4769 if test ${am_cv_prog_cc_c_o+y}
4770 then :
4771 printf %s "(cached) " >&6
4772 else case e in #(
4773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775
4776 int
4777 main (void)
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 # Make sure it works both with $CC and with simple cc.
4785 # Following AC_PROG_CC_C_O, we do the test twice because some
4786 # compilers refuse to overwrite an existing .o file with -o,
4787 # though they will create one.
4788 am_cv_prog_cc_c_o=yes
4789 for am_i in 1 2; do
4790 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4791 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } \
4795 && test -f conftest2.$ac_objext; then
4796 : OK
4797 else
4798 am_cv_prog_cc_c_o=no
4799 break
4800 fi
4801 done
4802 # aligned with autoconf, so not including core; see bug#72225.
4803 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4804 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4805 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4806 unset am_i ;;
4807 esac
4808 fi
4809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4810 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
4811 if test "$am_cv_prog_cc_c_o" != yes; then
4812 # Losing compiler, so override with the script.
4813 # FIXME: It is wrong to rewrite CC.
4814 # But if we don't then we get into trouble of one sort or another.
4815 # A longer-term fix would be to have automake use am__CC in this case,
4816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817 CC="$am_aux_dir/compile $CC"
4818 fi
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825
4826 depcc="$CC" am_compiler_list=
4827
4828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4829 printf %s "checking dependency style of $depcc... " >&6; }
4830 if test ${am_cv_CC_dependencies_compiler_type+y}
4831 then :
4832 printf %s "(cached) " >&6
4833 else case e in #(
4834 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4835 # We make a subdir and do the tests there. Otherwise we can end up
4836 # making bogus files that we don't know about and never remove. For
4837 # instance it was reported that on HP-UX the gcc test will end up
4838 # making a dummy file named 'D' -- because '-MD' means "put the output
4839 # in D".
4840 rm -rf conftest.dir
4841 mkdir conftest.dir
4842 # Copy depcomp to subdir because otherwise we won't find it if we're
4843 # using a relative directory.
4844 cp "$am_depcomp" conftest.dir
4845 cd conftest.dir
4846 # We will build objects and dependencies in a subdirectory because
4847 # it helps to detect inapplicable dependency modes. For instance
4848 # both Tru64's cc and ICC support -MD to output dependencies as a
4849 # side effect of compilation, but ICC will put the dependencies in
4850 # the current directory while Tru64 will put them in the object
4851 # directory.
4852 mkdir sub
4853
4854 am_cv_CC_dependencies_compiler_type=none
4855 if test "$am_compiler_list" = ""; then
4856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4857 fi
4858 am__universal=false
4859 case " $depcc " in #(
4860 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4861 esac
4862
4863 for depmode in $am_compiler_list; do
4864 # Setup a source with many dependencies, because some compilers
4865 # like to wrap large dependency lists on column 80 (with \), and
4866 # we should not choose a depcomp mode which is confused by this.
4867 #
4868 # We need to recreate these files for each test, as the compiler may
4869 # overwrite some of them when testing with obscure command lines.
4870 # This happens at least with the AIX C compiler.
4871 : > sub/conftest.c
4872 for i in 1 2 3 4 5 6; do
4873 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4874 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4875 # Solaris 10 /bin/sh.
4876 echo '/* dummy */' > sub/conftst$i.h
4877 done
4878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4879
4880 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4881 # mode. It turns out that the SunPro C++ compiler does not properly
4882 # handle '-M -o', and we need to detect this. Also, some Intel
4883 # versions had trouble with output in subdirs.
4884 am__obj=sub/conftest.${OBJEXT-o}
4885 am__minus_obj="-o $am__obj"
4886 case $depmode in
4887 gcc)
4888 # This depmode causes a compiler race in universal mode.
4889 test "$am__universal" = false || continue
4890 ;;
4891 nosideeffect)
4892 # After this tag, mechanisms are not by side-effect, so they'll
4893 # only be used when explicitly requested.
4894 if test "x$enable_dependency_tracking" = xyes; then
4895 continue
4896 else
4897 break
4898 fi
4899 ;;
4900 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4901 # This compiler won't grok '-c -o', but also, the minuso test has
4902 # not run yet. These depmodes are late enough in the game, and
4903 # so weak that their functioning should not be impacted.
4904 am__obj=conftest.${OBJEXT-o}
4905 am__minus_obj=
4906 ;;
4907 none) break ;;
4908 esac
4909 if depmode=$depmode \
4910 source=sub/conftest.c object=$am__obj \
4911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4913 >/dev/null 2>conftest.err &&
4914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4918 # icc doesn't choke on unknown options, it will just issue warnings
4919 # or remarks (even with -Werror). So we grep stderr for any message
4920 # that says an option was ignored or not supported.
4921 # When given -MP, icc 7.0 and 7.1 complain thus:
4922 # icc: Command line warning: ignoring option '-M'; no argument required
4923 # The diagnosis changed in icc 8.0:
4924 # icc: Command line remark: option '-MP' not supported
4925 if (grep 'ignoring option' conftest.err ||
4926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4927 am_cv_CC_dependencies_compiler_type=$depmode
4928 break
4929 fi
4930 fi
4931 done
4932
4933 cd ..
4934 rm -rf conftest.dir
4935 else
4936 am_cv_CC_dependencies_compiler_type=none
4937 fi
4938 ;;
4939 esac
4940 fi
4941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4942 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
4943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4944
4945 if
4946 test "x$enable_dependency_tracking" != xno \
4947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4948 am__fastdepCC_TRUE=
4949 am__fastdepCC_FALSE='#'
4950 else
4951 am__fastdepCC_TRUE='#'
4952 am__fastdepCC_FALSE=
4953 fi
4954
4955
4956
4957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
4958 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
4959 if test ${ac_cv_c_undeclared_builtin_options+y}
4960 then :
4961 printf %s "(cached) " >&6
4962 else case e in #(
4963 e) ac_save_CFLAGS=$CFLAGS
4964 ac_cv_c_undeclared_builtin_options='cannot detect'
4965 for ac_arg in '' -fno-builtin; do
4966 CFLAGS="$ac_save_CFLAGS $ac_arg"
4967 # This test program should *not* compile successfully.
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970
4971 int
4972 main (void)
4973 {
4974 (void) strchr;
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_c_try_compile "$LINENO"
4980 then :
4981
4982 else case e in #(
4983 e) # This test program should compile successfully.
4984 # No library function is consistently available on
4985 # freestanding implementations, so test against a dummy
4986 # declaration. Include always-available headers on the
4987 # off chance that they somehow elicit warnings.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <float.h>
4991 #include <limits.h>
4992 #include <stdarg.h>
4993 #include <stddef.h>
4994 extern void ac_decl (int, char *);
4995
4996 int
4997 main (void)
4998 {
4999 (void) ac_decl (0, (char *) 0);
5000 (void) ac_decl;
5001
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 if ac_fn_c_try_compile "$LINENO"
5007 then :
5008 if test x"$ac_arg" = x
5009 then :
5010 ac_cv_c_undeclared_builtin_options='none needed'
5011 else case e in #(
5012 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5013 esac
5014 fi
5015 break
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5018 esac
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5021 done
5022 CFLAGS=$ac_save_CFLAGS
5023 ;;
5024 esac
5025 fi
5026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5027 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
5028 case $ac_cv_c_undeclared_builtin_options in #(
5029 'cannot detect') :
5030 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5031 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5032 as_fn_error $? "cannot make $CC report undeclared builtins
5033 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5034 'none needed') :
5035 ac_c_undeclared_builtin_options='' ;; #(
5036 *) :
5037 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5038 esac
5039
5040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
5041 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
5042 if test ${ac_cv_c_future_darwin_options+y}
5043 then :
5044 printf %s "(cached) " >&6
5045 else case e in #(
5046 e) ac_compile_saved="$ac_compile"
5047 ac_compile="$ac_compile -Werror=unguarded-availability-new"
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #if ! (defined __APPLE__ && defined __MACH__)
5051 #error "-Werror=unguarded-availability-new not needed here"
5052 #endif
5053
5054 int
5055 main (void)
5056 {
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"
5063 then :
5064 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5065 else case e in #(
5066 e) ac_cv_c_future_darwin_options='none needed' ;;
5067 esac
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5070 ac_compile="$ac_compile_saved"
5071 ;;
5072 esac
5073 fi
5074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5075 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5076 case $ac_cv_c_future_darwin_options in #(
5077 'none needed') :
5078 ac_c_future_darwin_options='' ;; #(
5079 *) :
5080 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5081 esac
5082
5083 ac_header= ac_cache=
5084 for ac_item in $ac_header_c_list
5085 do
5086 if test $ac_cache; then
5087 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5088 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5089 printf '%s\n' "#define $ac_item 1" >> confdefs.h
5090 fi
5091 ac_header= ac_cache=
5092 elif test $ac_header; then
5093 ac_cache=$ac_item
5094 else
5095 ac_header=$ac_item
5096 fi
5097 done
5098
5099
5100
5101
5102
5103
5104
5105
5106 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5107 then :
5108
5109 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
5110
5111 fi
5112
5113
5114
5115
5116 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"
5117 if test "x$ac_cv_have_decl___clang__" = xyes
5118 then :
5119 CLANGCC="yes"
5120 else case e in #(
5121 e) CLANGCC="no" ;;
5122 esac
5123 fi
5124 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"
5125 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5126 then :
5127 INTELCC="yes"
5128 else case e in #(
5129 e) INTELCC="no" ;;
5130 esac
5131 fi
5132 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"
5133 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5134 then :
5135 SUNCC="yes"
5136 else case e in #(
5137 e) SUNCC="no" ;;
5138 esac
5139 fi
5140
5141
5142
5143
5144
5145
5146
5147
5148 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 printf %s "checking for $ac_word... " >&6; }
5154 if test ${ac_cv_path_PKG_CONFIG+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else case e in #(
5158 e) case $PKG_CONFIG in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 case $as_dir in #(((
5168 '') as_dir=./ ;;
5169 */) ;;
5170 *) as_dir=$as_dir/ ;;
5171 esac
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5174 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5175 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 ;;
5183 esac ;;
5184 esac
5185 fi
5186 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5187 if test -n "$PKG_CONFIG"; then
5188 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5189 printf '%s\n' "$PKG_CONFIG" >&6; }
5190 else
5191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 printf '%s\n' "no" >&6; }
5193 fi
5194
5195
5196 fi
5197 if test -z "$ac_cv_path_PKG_CONFIG"; then
5198 ac_pt_PKG_CONFIG=$PKG_CONFIG
5199 # Extract the first word of "pkg-config", so it can be a program name with args.
5200 set dummy pkg-config; ac_word=$2
5201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 printf %s "checking for $ac_word... " >&6; }
5203 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else case e in #(
5207 e) case $ac_pt_PKG_CONFIG in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5210 ;;
5211 *)
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 case $as_dir in #(((
5217 '') as_dir=./ ;;
5218 */) ;;
5219 *) as_dir=$as_dir/ ;;
5220 esac
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5223 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5224 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 ;;
5232 esac ;;
5233 esac
5234 fi
5235 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5236 if test -n "$ac_pt_PKG_CONFIG"; then
5237 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5238 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5239 else
5240 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 printf '%s\n' "no" >&6; }
5242 fi
5243
5244 if test "x$ac_pt_PKG_CONFIG" = x; then
5245 PKG_CONFIG=""
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248 yes:)
5249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5252 esac
5253 PKG_CONFIG=$ac_pt_PKG_CONFIG
5254 fi
5255 else
5256 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5257 fi
5258
5259 fi
5260 if test -n "$PKG_CONFIG"; then
5261 _pkg_min_version=0.9.0
5262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5263 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5264 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5266 printf '%s\n' "yes" >&6; }
5267 else
5268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 printf '%s\n' "no" >&6; }
5270 PKG_CONFIG=""
5271 fi
5272 fi
5273
5274
5275 # Make sure we can run config.sub.
5276 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5277 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5278
5279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5280 printf %s "checking build system type... " >&6; }
5281 if test ${ac_cv_build+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else case e in #(
5285 e) ac_build_alias=$build_alias
5286 test "x$ac_build_alias" = x &&
5287 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5288 test "x$ac_build_alias" = x &&
5289 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5290 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5291 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5292 ;;
5293 esac
5294 fi
5295 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5296 printf '%s\n' "$ac_cv_build" >&6; }
5297 case $ac_cv_build in
5298 *-*-*) ;;
5299 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5300 esac
5301 build=$ac_cv_build
5302 ac_save_IFS=$IFS; IFS='-'
5303 set x $ac_cv_build
5304 shift
5305 build_cpu=$1
5306 build_vendor=$2
5307 shift; shift
5308 # Remember, the first character of IFS is used to create $*,
5309 # except with old shells:
5310 build_os=$*
5311 IFS=$ac_save_IFS
5312 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5313
5314
5315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5316 printf %s "checking host system type... " >&6; }
5317 if test ${ac_cv_host+y}
5318 then :
5319 printf %s "(cached) " >&6
5320 else case e in #(
5321 e) if test "x$host_alias" = x; then
5322 ac_cv_host=$ac_cv_build
5323 else
5324 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5325 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5326 fi
5327 ;;
5328 esac
5329 fi
5330 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5331 printf '%s\n' "$ac_cv_host" >&6; }
5332 case $ac_cv_host in
5333 *-*-*) ;;
5334 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5335 esac
5336 host=$ac_cv_host
5337 ac_save_IFS=$IFS; IFS='-'
5338 set x $ac_cv_host
5339 shift
5340 host_cpu=$1
5341 host_vendor=$2
5342 shift; shift
5343 # Remember, the first character of IFS is used to create $*,
5344 # except with old shells:
5345 host_os=$*
5346 IFS=$ac_save_IFS
5347 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5348
5349
5350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5351 printf %s "checking for a sed that does not truncate output... " >&6; }
5352 if test ${ac_cv_path_SED+y}
5353 then :
5354 printf %s "(cached) " >&6
5355 else case e in #(
5356 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5357 for ac_i in 1 2 3 4 5 6 7; do
5358 ac_script="$ac_script$as_nl$ac_script"
5359 done
5360 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5361 { ac_script=; unset ac_script;}
5362 if test -z "$SED"; then
5363 ac_path_SED_found=false
5364 # Loop through the user's path and test for each of PROGNAME-LIST
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 case $as_dir in #(((
5370 '') as_dir=./ ;;
5371 */) ;;
5372 *) as_dir=$as_dir/ ;;
5373 esac
5374 for ac_prog in sed gsed
5375 do
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5378 as_fn_executable_p "$ac_path_SED" || continue
5379 # Check for GNU ac_path_SED and select it if it is found.
5380 # Check for GNU $ac_path_SED
5381 case `"$ac_path_SED" --version 2>&1` in #(
5382 *GNU*)
5383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5384 #(
5385 *)
5386 ac_count=0
5387 printf %s 0123456789 >"conftest.in"
5388 while :
5389 do
5390 cat "conftest.in" "conftest.in" >"conftest.tmp"
5391 mv "conftest.tmp" "conftest.in"
5392 cp "conftest.in" "conftest.nl"
5393 printf '%s\n' '' >> "conftest.nl"
5394 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5396 as_fn_arith $ac_count + 1 && ac_count=$as_val
5397 if test $ac_count -gt ${ac_path_SED_max-0}; then
5398 # Best one so far, save it but keep looking for a better one
5399 ac_cv_path_SED="$ac_path_SED"
5400 ac_path_SED_max=$ac_count
5401 fi
5402 # 10*(2^10) chars as input seems more than enough
5403 test $ac_count -gt 10 && break
5404 done
5405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5406 esac
5407
5408 $ac_path_SED_found && break 3
5409 done
5410 done
5411 done
5412 IFS=$as_save_IFS
5413 if test -z "$ac_cv_path_SED"; then
5414 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5415 fi
5416 else
5417 ac_cv_path_SED=$SED
5418 fi
5419 ;;
5420 esac
5421 fi
5422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5423 printf '%s\n' "$ac_cv_path_SED" >&6; }
5424 SED="$ac_cv_path_SED"
5425 rm -f conftest.sed
5426
5427
5428
5429
5430
5431
5432 # Check whether --enable-selective-werror was given.
5433 if test ${enable_selective_werror+y}
5434 then :
5435 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5436 else case e in #(
5437 e) SELECTIVE_WERROR=yes ;;
5438 esac
5439 fi
5440
5441
5442
5443
5444
5445 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5446 if test "x$SUNCC" = "xyes"; then
5447 BASE_CFLAGS="-v"
5448 else
5449 BASE_CFLAGS=""
5450 fi
5451
5452 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 xorg_testset_save_CFLAGS="$CFLAGS"
5467
5468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5473 then :
5474 printf %s "(cached) " >&6
5475 else case e in #(
5476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 int i;
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"
5481 then :
5482 xorg_cv_cc_flag_unknown_warning_option=yes
5483 else case e in #(
5484 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5485 esac
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5488 esac
5489 fi
5490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5491 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5494 fi
5495
5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499 fi
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5504 then :
5505 printf %s "(cached) " >&6
5506 else case e in #(
5507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 int i;
5510 _ACEOF
5511 if ac_fn_c_try_compile "$LINENO"
5512 then :
5513 xorg_cv_cc_flag_unused_command_line_argument=yes
5514 else case e in #(
5515 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5516 esac
5517 fi
5518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5519 esac
5520 fi
5521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5522 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5524 CFLAGS="$xorg_testset_save_CFLAGS"
5525 fi
5526
5527 found="no"
5528
5529 if test $found = "no" ; then
5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 fi
5533
5534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536 fi
5537
5538 CFLAGS="$CFLAGS -Wall"
5539
5540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5541 printf %s "checking if $CC supports -Wall... " >&6; }
5542 cacheid=xorg_cv_cc_flag__Wall
5543 if eval test \${$cacheid+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else case e in #(
5547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 int i;
5550 int
5551 main (void)
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_link "$LINENO"
5559 then :
5560 eval $cacheid=yes
5561 else case e in #(
5562 e) eval $cacheid=no ;;
5563 esac
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5566 conftest$ac_exeext conftest.$ac_ext ;;
5567 esac
5568 fi
5569
5570
5571 CFLAGS="$xorg_testset_save_CFLAGS"
5572
5573 eval supported=\$$cacheid
5574 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5575 printf '%s\n' "$supported" >&6; }
5576 if test "$supported" = "yes" ; then
5577 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5578 found="yes"
5579 fi
5580 fi
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 xorg_testset_save_CFLAGS="$CFLAGS"
5597
5598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5602 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5603 then :
5604 printf %s "(cached) " >&6
5605 else case e in #(
5606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 int i;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"
5611 then :
5612 xorg_cv_cc_flag_unknown_warning_option=yes
5613 else case e in #(
5614 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5615 esac
5616 fi
5617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5618 esac
5619 fi
5620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5621 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5623 CFLAGS="$xorg_testset_save_CFLAGS"
5624 fi
5625
5626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629 fi
5630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5634 then :
5635 printf %s "(cached) " >&6
5636 else case e in #(
5637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int i;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"
5642 then :
5643 xorg_cv_cc_flag_unused_command_line_argument=yes
5644 else case e in #(
5645 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5646 esac
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5649 esac
5650 fi
5651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5652 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5654 CFLAGS="$xorg_testset_save_CFLAGS"
5655 fi
5656
5657 found="no"
5658
5659 if test $found = "no" ; then
5660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662 fi
5663
5664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666 fi
5667
5668 CFLAGS="$CFLAGS -Wpointer-arith"
5669
5670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5671 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5672 cacheid=xorg_cv_cc_flag__Wpointer_arith
5673 if eval test \${$cacheid+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else case e in #(
5677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 int i;
5680 int
5681 main (void)
5682 {
5683
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 if ac_fn_c_try_link "$LINENO"
5689 then :
5690 eval $cacheid=yes
5691 else case e in #(
5692 e) eval $cacheid=no ;;
5693 esac
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5696 conftest$ac_exeext conftest.$ac_ext ;;
5697 esac
5698 fi
5699
5700
5701 CFLAGS="$xorg_testset_save_CFLAGS"
5702
5703 eval supported=\$$cacheid
5704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5705 printf '%s\n' "$supported" >&6; }
5706 if test "$supported" = "yes" ; then
5707 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5708 found="yes"
5709 fi
5710 fi
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 xorg_testset_save_CFLAGS="$CFLAGS"
5727
5728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5732 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else case e in #(
5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"
5741 then :
5742 xorg_cv_cc_flag_unknown_warning_option=yes
5743 else case e in #(
5744 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5745 esac
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5748 esac
5749 fi
5750 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5751 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5753 CFLAGS="$xorg_testset_save_CFLAGS"
5754 fi
5755
5756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5759 fi
5760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5764 then :
5765 printf %s "(cached) " >&6
5766 else case e in #(
5767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 int i;
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"
5772 then :
5773 xorg_cv_cc_flag_unused_command_line_argument=yes
5774 else case e in #(
5775 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5776 esac
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5779 esac
5780 fi
5781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5782 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5784 CFLAGS="$xorg_testset_save_CFLAGS"
5785 fi
5786
5787 found="no"
5788
5789 if test $found = "no" ; then
5790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792 fi
5793
5794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796 fi
5797
5798 CFLAGS="$CFLAGS -Wmissing-declarations"
5799
5800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5801 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5802 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5803 if eval test \${$cacheid+y}
5804 then :
5805 printf %s "(cached) " >&6
5806 else case e in #(
5807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 int i;
5810 int
5811 main (void)
5812 {
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_link "$LINENO"
5819 then :
5820 eval $cacheid=yes
5821 else case e in #(
5822 e) eval $cacheid=no ;;
5823 esac
5824 fi
5825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5826 conftest$ac_exeext conftest.$ac_ext ;;
5827 esac
5828 fi
5829
5830
5831 CFLAGS="$xorg_testset_save_CFLAGS"
5832
5833 eval supported=\$$cacheid
5834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5835 printf '%s\n' "$supported" >&6; }
5836 if test "$supported" = "yes" ; then
5837 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5838 found="yes"
5839 fi
5840 fi
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856 xorg_testset_save_CFLAGS="$CFLAGS"
5857
5858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5861 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5862 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5863 then :
5864 printf %s "(cached) " >&6
5865 else case e in #(
5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 int i;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"
5871 then :
5872 xorg_cv_cc_flag_unknown_warning_option=yes
5873 else case e in #(
5874 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5875 esac
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5878 esac
5879 fi
5880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5881 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884 fi
5885
5886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 fi
5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5894 then :
5895 printf %s "(cached) " >&6
5896 else case e in #(
5897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 int i;
5900 _ACEOF
5901 if ac_fn_c_try_compile "$LINENO"
5902 then :
5903 xorg_cv_cc_flag_unused_command_line_argument=yes
5904 else case e in #(
5905 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5906 esac
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5909 esac
5910 fi
5911 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5912 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5914 CFLAGS="$xorg_testset_save_CFLAGS"
5915 fi
5916
5917 found="no"
5918
5919 if test $found = "no" ; then
5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922 fi
5923
5924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5926 fi
5927
5928 CFLAGS="$CFLAGS -Wformat=2"
5929
5930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5931 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5932 cacheid=xorg_cv_cc_flag__Wformat_2
5933 if eval test \${$cacheid+y}
5934 then :
5935 printf %s "(cached) " >&6
5936 else case e in #(
5937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 int i;
5940 int
5941 main (void)
5942 {
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"
5949 then :
5950 eval $cacheid=yes
5951 else case e in #(
5952 e) eval $cacheid=no ;;
5953 esac
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5956 conftest$ac_exeext conftest.$ac_ext ;;
5957 esac
5958 fi
5959
5960
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963 eval supported=\$$cacheid
5964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965 printf '%s\n' "$supported" >&6; }
5966 if test "$supported" = "yes" ; then
5967 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5968 found="yes"
5969 fi
5970 fi
5971
5972 if test $found = "no" ; then
5973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975 fi
5976
5977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979 fi
5980
5981 CFLAGS="$CFLAGS -Wformat"
5982
5983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5984 printf %s "checking if $CC supports -Wformat... " >&6; }
5985 cacheid=xorg_cv_cc_flag__Wformat
5986 if eval test \${$cacheid+y}
5987 then :
5988 printf %s "(cached) " >&6
5989 else case e in #(
5990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 int
5994 main (void)
5995 {
5996
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 if ac_fn_c_try_link "$LINENO"
6002 then :
6003 eval $cacheid=yes
6004 else case e in #(
6005 e) eval $cacheid=no ;;
6006 esac
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6009 conftest$ac_exeext conftest.$ac_ext ;;
6010 esac
6011 fi
6012
6013
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016 eval supported=\$$cacheid
6017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018 printf '%s\n' "$supported" >&6; }
6019 if test "$supported" = "yes" ; then
6020 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6021 found="yes"
6022 fi
6023 fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 xorg_testset_save_CFLAGS="$CFLAGS"
6042
6043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6046 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6047 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6048 then :
6049 printf %s "(cached) " >&6
6050 else case e in #(
6051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 int i;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"
6056 then :
6057 xorg_cv_cc_flag_unknown_warning_option=yes
6058 else case e in #(
6059 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6060 esac
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6063 esac
6064 fi
6065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6066 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6068 CFLAGS="$xorg_testset_save_CFLAGS"
6069 fi
6070
6071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074 fi
6075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6077 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6078 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else case e in #(
6082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 int i;
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"
6087 then :
6088 xorg_cv_cc_flag_unused_command_line_argument=yes
6089 else case e in #(
6090 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6091 esac
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6094 esac
6095 fi
6096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6097 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6099 CFLAGS="$xorg_testset_save_CFLAGS"
6100 fi
6101
6102 found="no"
6103
6104 if test $found = "no" ; then
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107 fi
6108
6109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111 fi
6112
6113 CFLAGS="$CFLAGS -Wstrict-prototypes"
6114
6115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6116 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6117 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6118 if eval test \${$cacheid+y}
6119 then :
6120 printf %s "(cached) " >&6
6121 else case e in #(
6122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 int i;
6125 int
6126 main (void)
6127 {
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_link "$LINENO"
6134 then :
6135 eval $cacheid=yes
6136 else case e in #(
6137 e) eval $cacheid=no ;;
6138 esac
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6141 conftest$ac_exeext conftest.$ac_ext ;;
6142 esac
6143 fi
6144
6145
6146 CFLAGS="$xorg_testset_save_CFLAGS"
6147
6148 eval supported=\$$cacheid
6149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150 printf '%s\n' "$supported" >&6; }
6151 if test "$supported" = "yes" ; then
6152 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6153 found="yes"
6154 fi
6155 fi
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171 xorg_testset_save_CFLAGS="$CFLAGS"
6172
6173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6176 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6177 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6178 then :
6179 printf %s "(cached) " >&6
6180 else case e in #(
6181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 int i;
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"
6186 then :
6187 xorg_cv_cc_flag_unknown_warning_option=yes
6188 else case e in #(
6189 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6190 esac
6191 fi
6192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6193 esac
6194 fi
6195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6196 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6198 CFLAGS="$xorg_testset_save_CFLAGS"
6199 fi
6200
6201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 fi
6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6207 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6208 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6209 then :
6210 printf %s "(cached) " >&6
6211 else case e in #(
6212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 int i;
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"
6217 then :
6218 xorg_cv_cc_flag_unused_command_line_argument=yes
6219 else case e in #(
6220 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6221 esac
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6224 esac
6225 fi
6226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6227 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6229 CFLAGS="$xorg_testset_save_CFLAGS"
6230 fi
6231
6232 found="no"
6233
6234 if test $found = "no" ; then
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 fi
6238
6239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6241 fi
6242
6243 CFLAGS="$CFLAGS -Wmissing-prototypes"
6244
6245 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6246 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6247 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6248 if eval test \${$cacheid+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else case e in #(
6252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 int i;
6255 int
6256 main (void)
6257 {
6258
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_link "$LINENO"
6264 then :
6265 eval $cacheid=yes
6266 else case e in #(
6267 e) eval $cacheid=no ;;
6268 esac
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6271 conftest$ac_exeext conftest.$ac_ext ;;
6272 esac
6273 fi
6274
6275
6276 CFLAGS="$xorg_testset_save_CFLAGS"
6277
6278 eval supported=\$$cacheid
6279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6280 printf '%s\n' "$supported" >&6; }
6281 if test "$supported" = "yes" ; then
6282 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6283 found="yes"
6284 fi
6285 fi
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 xorg_testset_save_CFLAGS="$CFLAGS"
6302
6303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6306 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6307 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else case e in #(
6311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 int i;
6314 _ACEOF
6315 if ac_fn_c_try_compile "$LINENO"
6316 then :
6317 xorg_cv_cc_flag_unknown_warning_option=yes
6318 else case e in #(
6319 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6320 esac
6321 fi
6322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6323 esac
6324 fi
6325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6326 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6328 CFLAGS="$xorg_testset_save_CFLAGS"
6329 fi
6330
6331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6339 then :
6340 printf %s "(cached) " >&6
6341 else case e in #(
6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 int i;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"
6347 then :
6348 xorg_cv_cc_flag_unused_command_line_argument=yes
6349 else case e in #(
6350 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6351 esac
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6354 esac
6355 fi
6356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 found="no"
6363
6364 if test $found = "no" ; then
6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367 fi
6368
6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371 fi
6372
6373 CFLAGS="$CFLAGS -Wnested-externs"
6374
6375 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6376 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6377 cacheid=xorg_cv_cc_flag__Wnested_externs
6378 if eval test \${$cacheid+y}
6379 then :
6380 printf %s "(cached) " >&6
6381 else case e in #(
6382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 int i;
6385 int
6386 main (void)
6387 {
6388
6389 ;
6390 return 0;
6391 }
6392 _ACEOF
6393 if ac_fn_c_try_link "$LINENO"
6394 then :
6395 eval $cacheid=yes
6396 else case e in #(
6397 e) eval $cacheid=no ;;
6398 esac
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6401 conftest$ac_exeext conftest.$ac_ext ;;
6402 esac
6403 fi
6404
6405
6406 CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408 eval supported=\$$cacheid
6409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410 printf '%s\n' "$supported" >&6; }
6411 if test "$supported" = "yes" ; then
6412 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6413 found="yes"
6414 fi
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6438 then :
6439 printf %s "(cached) " >&6
6440 else case e in #(
6441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"
6446 then :
6447 xorg_cv_cc_flag_unknown_warning_option=yes
6448 else case e in #(
6449 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6450 esac
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6453 esac
6454 fi
6455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6456 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459 fi
6460
6461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464 fi
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6467 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6468 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6469 then :
6470 printf %s "(cached) " >&6
6471 else case e in #(
6472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"
6477 then :
6478 xorg_cv_cc_flag_unused_command_line_argument=yes
6479 else case e in #(
6480 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6481 esac
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6484 esac
6485 fi
6486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6489 CFLAGS="$xorg_testset_save_CFLAGS"
6490 fi
6491
6492 found="no"
6493
6494 if test $found = "no" ; then
6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 fi
6498
6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501 fi
6502
6503 CFLAGS="$CFLAGS -Wbad-function-cast"
6504
6505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6506 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6507 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6508 if eval test \${$cacheid+y}
6509 then :
6510 printf %s "(cached) " >&6
6511 else case e in #(
6512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 int i;
6515 int
6516 main (void)
6517 {
6518
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_link "$LINENO"
6524 then :
6525 eval $cacheid=yes
6526 else case e in #(
6527 e) eval $cacheid=no ;;
6528 esac
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6531 conftest$ac_exeext conftest.$ac_ext ;;
6532 esac
6533 fi
6534
6535
6536 CFLAGS="$xorg_testset_save_CFLAGS"
6537
6538 eval supported=\$$cacheid
6539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6540 printf '%s\n' "$supported" >&6; }
6541 if test "$supported" = "yes" ; then
6542 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6543 found="yes"
6544 fi
6545 fi
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 xorg_testset_save_CFLAGS="$CFLAGS"
6562
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6567 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else case e in #(
6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 int i;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"
6576 then :
6577 xorg_cv_cc_flag_unknown_warning_option=yes
6578 else case e in #(
6579 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6580 esac
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6583 esac
6584 fi
6585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588 CFLAGS="$xorg_testset_save_CFLAGS"
6589 fi
6590
6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594 fi
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6599 then :
6600 printf %s "(cached) " >&6
6601 else case e in #(
6602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int i;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"
6607 then :
6608 xorg_cv_cc_flag_unused_command_line_argument=yes
6609 else case e in #(
6610 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6611 esac
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6614 esac
6615 fi
6616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619 CFLAGS="$xorg_testset_save_CFLAGS"
6620 fi
6621
6622 found="no"
6623
6624 if test $found = "no" ; then
6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627 fi
6628
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631 fi
6632
6633 CFLAGS="$CFLAGS -Wold-style-definition"
6634
6635 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6636 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6637 cacheid=xorg_cv_cc_flag__Wold_style_definition
6638 if eval test \${$cacheid+y}
6639 then :
6640 printf %s "(cached) " >&6
6641 else case e in #(
6642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int i;
6645 int
6646 main (void)
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"
6654 then :
6655 eval $cacheid=yes
6656 else case e in #(
6657 e) eval $cacheid=no ;;
6658 esac
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6661 conftest$ac_exeext conftest.$ac_ext ;;
6662 esac
6663 fi
6664
6665
6666 CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668 eval supported=\$$cacheid
6669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670 printf '%s\n' "$supported" >&6; }
6671 if test "$supported" = "yes" ; then
6672 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6673 found="yes"
6674 fi
6675 fi
6676
6677 if test $found = "no" ; then
6678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680 fi
6681
6682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6684 fi
6685
6686 CFLAGS="$CFLAGS -fd"
6687
6688 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6689 printf %s "checking if $CC supports -fd... " >&6; }
6690 cacheid=xorg_cv_cc_flag__fd
6691 if eval test \${$cacheid+y}
6692 then :
6693 printf %s "(cached) " >&6
6694 else case e in #(
6695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int i;
6698 int
6699 main (void)
6700 {
6701
6702 ;
6703 return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_link "$LINENO"
6707 then :
6708 eval $cacheid=yes
6709 else case e in #(
6710 e) eval $cacheid=no ;;
6711 esac
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6714 conftest$ac_exeext conftest.$ac_ext ;;
6715 esac
6716 fi
6717
6718
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721 eval supported=\$$cacheid
6722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723 printf '%s\n' "$supported" >&6; }
6724 if test "$supported" = "yes" ; then
6725 BASE_CFLAGS="$BASE_CFLAGS -fd"
6726 found="yes"
6727 fi
6728 fi
6729
6730
6731
6732
6733
6734 # This chunk adds additional warnings that could catch undesired effects.
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748 xorg_testset_save_CFLAGS="$CFLAGS"
6749
6750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else case e in #(
6758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 int i;
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"
6763 then :
6764 xorg_cv_cc_flag_unknown_warning_option=yes
6765 else case e in #(
6766 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6767 esac
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6770 esac
6771 fi
6772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6773 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6775 CFLAGS="$xorg_testset_save_CFLAGS"
6776 fi
6777
6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 fi
6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6786 then :
6787 printf %s "(cached) " >&6
6788 else case e in #(
6789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 int i;
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"
6794 then :
6795 xorg_cv_cc_flag_unused_command_line_argument=yes
6796 else case e in #(
6797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6798 esac
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6801 esac
6802 fi
6803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6804 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6806 CFLAGS="$xorg_testset_save_CFLAGS"
6807 fi
6808
6809 found="no"
6810
6811 if test $found = "no" ; then
6812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814 fi
6815
6816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6818 fi
6819
6820 CFLAGS="$CFLAGS -Wunused"
6821
6822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6823 printf %s "checking if $CC supports -Wunused... " >&6; }
6824 cacheid=xorg_cv_cc_flag__Wunused
6825 if eval test \${$cacheid+y}
6826 then :
6827 printf %s "(cached) " >&6
6828 else case e in #(
6829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 int i;
6832 int
6833 main (void)
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_link "$LINENO"
6841 then :
6842 eval $cacheid=yes
6843 else case e in #(
6844 e) eval $cacheid=no ;;
6845 esac
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6848 conftest$ac_exeext conftest.$ac_ext ;;
6849 esac
6850 fi
6851
6852
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6854
6855 eval supported=\$$cacheid
6856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6857 printf '%s\n' "$supported" >&6; }
6858 if test "$supported" = "yes" ; then
6859 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6860 found="yes"
6861 fi
6862 fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 xorg_testset_save_CFLAGS="$CFLAGS"
6879
6880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6885 then :
6886 printf %s "(cached) " >&6
6887 else case e in #(
6888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 int i;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"
6893 then :
6894 xorg_cv_cc_flag_unknown_warning_option=yes
6895 else case e in #(
6896 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6897 esac
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6900 esac
6901 fi
6902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6903 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6905 CFLAGS="$xorg_testset_save_CFLAGS"
6906 fi
6907
6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911 fi
6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else case e in #(
6919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int i;
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"
6924 then :
6925 xorg_cv_cc_flag_unused_command_line_argument=yes
6926 else case e in #(
6927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6928 esac
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6931 esac
6932 fi
6933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6934 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6936 CFLAGS="$xorg_testset_save_CFLAGS"
6937 fi
6938
6939 found="no"
6940
6941 if test $found = "no" ; then
6942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6944 fi
6945
6946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948 fi
6949
6950 CFLAGS="$CFLAGS -Wuninitialized"
6951
6952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6953 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6954 cacheid=xorg_cv_cc_flag__Wuninitialized
6955 if eval test \${$cacheid+y}
6956 then :
6957 printf %s "(cached) " >&6
6958 else case e in #(
6959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 int
6963 main (void)
6964 {
6965
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"
6971 then :
6972 eval $cacheid=yes
6973 else case e in #(
6974 e) eval $cacheid=no ;;
6975 esac
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6978 conftest$ac_exeext conftest.$ac_ext ;;
6979 esac
6980 fi
6981
6982
6983 CFLAGS="$xorg_testset_save_CFLAGS"
6984
6985 eval supported=\$$cacheid
6986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6987 printf '%s\n' "$supported" >&6; }
6988 if test "$supported" = "yes" ; then
6989 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6990 found="yes"
6991 fi
6992 fi
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 xorg_testset_save_CFLAGS="$CFLAGS"
7009
7010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7015 then :
7016 printf %s "(cached) " >&6
7017 else case e in #(
7018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 int i;
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"
7023 then :
7024 xorg_cv_cc_flag_unknown_warning_option=yes
7025 else case e in #(
7026 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7027 esac
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7030 esac
7031 fi
7032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7033 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7035 CFLAGS="$xorg_testset_save_CFLAGS"
7036 fi
7037
7038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041 fi
7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7046 then :
7047 printf %s "(cached) " >&6
7048 else case e in #(
7049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 int i;
7052 _ACEOF
7053 if ac_fn_c_try_compile "$LINENO"
7054 then :
7055 xorg_cv_cc_flag_unused_command_line_argument=yes
7056 else case e in #(
7057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7058 esac
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7061 esac
7062 fi
7063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7064 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7066 CFLAGS="$xorg_testset_save_CFLAGS"
7067 fi
7068
7069 found="no"
7070
7071 if test $found = "no" ; then
7072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074 fi
7075
7076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7078 fi
7079
7080 CFLAGS="$CFLAGS -Wshadow"
7081
7082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7083 printf %s "checking if $CC supports -Wshadow... " >&6; }
7084 cacheid=xorg_cv_cc_flag__Wshadow
7085 if eval test \${$cacheid+y}
7086 then :
7087 printf %s "(cached) " >&6
7088 else case e in #(
7089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 int i;
7092 int
7093 main (void)
7094 {
7095
7096 ;
7097 return 0;
7098 }
7099 _ACEOF
7100 if ac_fn_c_try_link "$LINENO"
7101 then :
7102 eval $cacheid=yes
7103 else case e in #(
7104 e) eval $cacheid=no ;;
7105 esac
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7108 conftest$ac_exeext conftest.$ac_ext ;;
7109 esac
7110 fi
7111
7112
7113 CFLAGS="$xorg_testset_save_CFLAGS"
7114
7115 eval supported=\$$cacheid
7116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7117 printf '%s\n' "$supported" >&6; }
7118 if test "$supported" = "yes" ; then
7119 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7120 found="yes"
7121 fi
7122 fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 xorg_testset_save_CFLAGS="$CFLAGS"
7139
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else case e in #(
7148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"
7153 then :
7154 xorg_cv_cc_flag_unknown_warning_option=yes
7155 else case e in #(
7156 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7157 esac
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7160 esac
7161 fi
7162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7163 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7165 CFLAGS="$xorg_testset_save_CFLAGS"
7166 fi
7167
7168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171 fi
7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else case e in #(
7179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 int i;
7182 _ACEOF
7183 if ac_fn_c_try_compile "$LINENO"
7184 then :
7185 xorg_cv_cc_flag_unused_command_line_argument=yes
7186 else case e in #(
7187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7188 esac
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7191 esac
7192 fi
7193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7194 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7196 CFLAGS="$xorg_testset_save_CFLAGS"
7197 fi
7198
7199 found="no"
7200
7201 if test $found = "no" ; then
7202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204 fi
7205
7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7208 fi
7209
7210 CFLAGS="$CFLAGS -Wmissing-noreturn"
7211
7212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7213 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7214 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7215 if eval test \${$cacheid+y}
7216 then :
7217 printf %s "(cached) " >&6
7218 else case e in #(
7219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 int i;
7222 int
7223 main (void)
7224 {
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_link "$LINENO"
7231 then :
7232 eval $cacheid=yes
7233 else case e in #(
7234 e) eval $cacheid=no ;;
7235 esac
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7238 conftest$ac_exeext conftest.$ac_ext ;;
7239 esac
7240 fi
7241
7242
7243 CFLAGS="$xorg_testset_save_CFLAGS"
7244
7245 eval supported=\$$cacheid
7246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7247 printf '%s\n' "$supported" >&6; }
7248 if test "$supported" = "yes" ; then
7249 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7250 found="yes"
7251 fi
7252 fi
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268 xorg_testset_save_CFLAGS="$CFLAGS"
7269
7270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7274 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7275 then :
7276 printf %s "(cached) " >&6
7277 else case e in #(
7278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 int i;
7281 _ACEOF
7282 if ac_fn_c_try_compile "$LINENO"
7283 then :
7284 xorg_cv_cc_flag_unknown_warning_option=yes
7285 else case e in #(
7286 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7287 esac
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7290 esac
7291 fi
7292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7293 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296 fi
7297
7298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301 fi
7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7306 then :
7307 printf %s "(cached) " >&6
7308 else case e in #(
7309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 int i;
7312 _ACEOF
7313 if ac_fn_c_try_compile "$LINENO"
7314 then :
7315 xorg_cv_cc_flag_unused_command_line_argument=yes
7316 else case e in #(
7317 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7318 esac
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7321 esac
7322 fi
7323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7324 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7326 CFLAGS="$xorg_testset_save_CFLAGS"
7327 fi
7328
7329 found="no"
7330
7331 if test $found = "no" ; then
7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334 fi
7335
7336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7338 fi
7339
7340 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7341
7342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7343 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7344 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7345 if eval test \${$cacheid+y}
7346 then :
7347 printf %s "(cached) " >&6
7348 else case e in #(
7349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int i;
7352 int
7353 main (void)
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_link "$LINENO"
7361 then :
7362 eval $cacheid=yes
7363 else case e in #(
7364 e) eval $cacheid=no ;;
7365 esac
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368 conftest$ac_exeext conftest.$ac_ext ;;
7369 esac
7370 fi
7371
7372
7373 CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375 eval supported=\$$cacheid
7376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377 printf '%s\n' "$supported" >&6; }
7378 if test "$supported" = "yes" ; then
7379 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7380 found="yes"
7381 fi
7382 fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7405 then :
7406 printf %s "(cached) " >&6
7407 else case e in #(
7408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"
7413 then :
7414 xorg_cv_cc_flag_unknown_warning_option=yes
7415 else case e in #(
7416 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7417 esac
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7420 esac
7421 fi
7422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7423 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7426 fi
7427
7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431 fi
7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7436 then :
7437 printf %s "(cached) " >&6
7438 else case e in #(
7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 int i;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"
7444 then :
7445 xorg_cv_cc_flag_unused_command_line_argument=yes
7446 else case e in #(
7447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7448 esac
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7451 esac
7452 fi
7453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7454 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7456 CFLAGS="$xorg_testset_save_CFLAGS"
7457 fi
7458
7459 found="no"
7460
7461 if test $found = "no" ; then
7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464 fi
7465
7466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468 fi
7469
7470 CFLAGS="$CFLAGS -Wredundant-decls"
7471
7472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7473 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7474 cacheid=xorg_cv_cc_flag__Wredundant_decls
7475 if eval test \${$cacheid+y}
7476 then :
7477 printf %s "(cached) " >&6
7478 else case e in #(
7479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 int i;
7482 int
7483 main (void)
7484 {
7485
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"
7491 then :
7492 eval $cacheid=yes
7493 else case e in #(
7494 e) eval $cacheid=no ;;
7495 esac
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7498 conftest$ac_exeext conftest.$ac_ext ;;
7499 esac
7500 fi
7501
7502
7503 CFLAGS="$xorg_testset_save_CFLAGS"
7504
7505 eval supported=\$$cacheid
7506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7507 printf '%s\n' "$supported" >&6; }
7508 if test "$supported" = "yes" ; then
7509 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7510 found="yes"
7511 fi
7512 fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 xorg_testset_save_CFLAGS="$CFLAGS"
7529
7530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7534 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7535 then :
7536 printf %s "(cached) " >&6
7537 else case e in #(
7538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 int i;
7541 _ACEOF
7542 if ac_fn_c_try_compile "$LINENO"
7543 then :
7544 xorg_cv_cc_flag_unknown_warning_option=yes
7545 else case e in #(
7546 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7547 esac
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7550 esac
7551 fi
7552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7553 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7555 CFLAGS="$xorg_testset_save_CFLAGS"
7556 fi
7557
7558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 fi
7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7566 then :
7567 printf %s "(cached) " >&6
7568 else case e in #(
7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 int i;
7572 _ACEOF
7573 if ac_fn_c_try_compile "$LINENO"
7574 then :
7575 xorg_cv_cc_flag_unused_command_line_argument=yes
7576 else case e in #(
7577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7578 esac
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7581 esac
7582 fi
7583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7584 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7586 CFLAGS="$xorg_testset_save_CFLAGS"
7587 fi
7588
7589 found="no"
7590
7591 if test $found = "no" ; then
7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594 fi
7595
7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598 fi
7599
7600 CFLAGS="$CFLAGS -Wlogical-op"
7601
7602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7603 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7604 cacheid=xorg_cv_cc_flag__Wlogical_op
7605 if eval test \${$cacheid+y}
7606 then :
7607 printf %s "(cached) " >&6
7608 else case e in #(
7609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 int i;
7612 int
7613 main (void)
7614 {
7615
7616 ;
7617 return 0;
7618 }
7619 _ACEOF
7620 if ac_fn_c_try_link "$LINENO"
7621 then :
7622 eval $cacheid=yes
7623 else case e in #(
7624 e) eval $cacheid=no ;;
7625 esac
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7628 conftest$ac_exeext conftest.$ac_ext ;;
7629 esac
7630 fi
7631
7632
7633 CFLAGS="$xorg_testset_save_CFLAGS"
7634
7635 eval supported=\$$cacheid
7636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7637 printf '%s\n' "$supported" >&6; }
7638 if test "$supported" = "yes" ; then
7639 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7640 found="yes"
7641 fi
7642 fi
7643
7644
7645
7646 # These are currently disabled because they are noisy. They will be enabled
7647 # in the future once the codebase is sufficiently modernized to silence
7648 # them. For now, I don't want them to drown out the other warnings.
7649 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7650 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7651 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7652
7653 # Turn some warnings into errors, so we don't accidentally get successful builds
7654 # when there are problems that should be fixed.
7655
7656 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670 xorg_testset_save_CFLAGS="$CFLAGS"
7671
7672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7677 then :
7678 printf %s "(cached) " >&6
7679 else case e in #(
7680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 int i;
7683 _ACEOF
7684 if ac_fn_c_try_compile "$LINENO"
7685 then :
7686 xorg_cv_cc_flag_unknown_warning_option=yes
7687 else case e in #(
7688 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7689 esac
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7692 esac
7693 fi
7694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7695 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698 fi
7699
7700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703 fi
7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7708 then :
7709 printf %s "(cached) " >&6
7710 else case e in #(
7711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 int i;
7714 _ACEOF
7715 if ac_fn_c_try_compile "$LINENO"
7716 then :
7717 xorg_cv_cc_flag_unused_command_line_argument=yes
7718 else case e in #(
7719 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7720 esac
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7723 esac
7724 fi
7725 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7726 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7728 CFLAGS="$xorg_testset_save_CFLAGS"
7729 fi
7730
7731 found="no"
7732
7733 if test $found = "no" ; then
7734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736 fi
7737
7738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7740 fi
7741
7742 CFLAGS="$CFLAGS -Werror=implicit"
7743
7744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7745 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7746 cacheid=xorg_cv_cc_flag__Werror_implicit
7747 if eval test \${$cacheid+y}
7748 then :
7749 printf %s "(cached) " >&6
7750 else case e in #(
7751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 int
7755 main (void)
7756 {
7757
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"
7763 then :
7764 eval $cacheid=yes
7765 else case e in #(
7766 e) eval $cacheid=no ;;
7767 esac
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7770 conftest$ac_exeext conftest.$ac_ext ;;
7771 esac
7772 fi
7773
7774
7775 CFLAGS="$xorg_testset_save_CFLAGS"
7776
7777 eval supported=\$$cacheid
7778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7779 printf '%s\n' "$supported" >&6; }
7780 if test "$supported" = "yes" ; then
7781 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7782 found="yes"
7783 fi
7784 fi
7785
7786 if test $found = "no" ; then
7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789 fi
7790
7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7793 fi
7794
7795 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7796
7797 { 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
7798 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7799 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7800 if eval test \${$cacheid+y}
7801 then :
7802 printf %s "(cached) " >&6
7803 else case e in #(
7804 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 int i;
7807 int
7808 main (void)
7809 {
7810
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 if ac_fn_c_try_link "$LINENO"
7816 then :
7817 eval $cacheid=yes
7818 else case e in #(
7819 e) eval $cacheid=no ;;
7820 esac
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7823 conftest$ac_exeext conftest.$ac_ext ;;
7824 esac
7825 fi
7826
7827
7828 CFLAGS="$xorg_testset_save_CFLAGS"
7829
7830 eval supported=\$$cacheid
7831 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7832 printf '%s\n' "$supported" >&6; }
7833 if test "$supported" = "yes" ; then
7834 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7835 found="yes"
7836 fi
7837 fi
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853 xorg_testset_save_CFLAGS="$CFLAGS"
7854
7855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7858 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7859 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7860 then :
7861 printf %s "(cached) " >&6
7862 else case e in #(
7863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 int i;
7866 _ACEOF
7867 if ac_fn_c_try_compile "$LINENO"
7868 then :
7869 xorg_cv_cc_flag_unknown_warning_option=yes
7870 else case e in #(
7871 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7872 esac
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7875 esac
7876 fi
7877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7878 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7880 CFLAGS="$xorg_testset_save_CFLAGS"
7881 fi
7882
7883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 fi
7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7889 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7890 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else case e in #(
7894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 int i;
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"
7899 then :
7900 xorg_cv_cc_flag_unused_command_line_argument=yes
7901 else case e in #(
7902 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7903 esac
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7906 esac
7907 fi
7908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7909 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7911 CFLAGS="$xorg_testset_save_CFLAGS"
7912 fi
7913
7914 found="no"
7915
7916 if test $found = "no" ; then
7917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919 fi
7920
7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7923 fi
7924
7925 CFLAGS="$CFLAGS -Werror=nonnull"
7926
7927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7928 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7929 cacheid=xorg_cv_cc_flag__Werror_nonnull
7930 if eval test \${$cacheid+y}
7931 then :
7932 printf %s "(cached) " >&6
7933 else case e in #(
7934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 int i;
7937 int
7938 main (void)
7939 {
7940
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_link "$LINENO"
7946 then :
7947 eval $cacheid=yes
7948 else case e in #(
7949 e) eval $cacheid=no ;;
7950 esac
7951 fi
7952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7953 conftest$ac_exeext conftest.$ac_ext ;;
7954 esac
7955 fi
7956
7957
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959
7960 eval supported=\$$cacheid
7961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7962 printf '%s\n' "$supported" >&6; }
7963 if test "$supported" = "yes" ; then
7964 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7965 found="yes"
7966 fi
7967 fi
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 xorg_testset_save_CFLAGS="$CFLAGS"
7984
7985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7988 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7989 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7990 then :
7991 printf %s "(cached) " >&6
7992 else case e in #(
7993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"
7998 then :
7999 xorg_cv_cc_flag_unknown_warning_option=yes
8000 else case e in #(
8001 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8002 esac
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8005 esac
8006 fi
8007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8008 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8011 fi
8012
8013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016 fi
8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else case e in #(
8024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 int i;
8027 _ACEOF
8028 if ac_fn_c_try_compile "$LINENO"
8029 then :
8030 xorg_cv_cc_flag_unused_command_line_argument=yes
8031 else case e in #(
8032 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8033 esac
8034 fi
8035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8036 esac
8037 fi
8038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8039 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8041 CFLAGS="$xorg_testset_save_CFLAGS"
8042 fi
8043
8044 found="no"
8045
8046 if test $found = "no" ; then
8047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 fi
8050
8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8053 fi
8054
8055 CFLAGS="$CFLAGS -Werror=init-self"
8056
8057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8058 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8059 cacheid=xorg_cv_cc_flag__Werror_init_self
8060 if eval test \${$cacheid+y}
8061 then :
8062 printf %s "(cached) " >&6
8063 else case e in #(
8064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 int i;
8067 int
8068 main (void)
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"
8076 then :
8077 eval $cacheid=yes
8078 else case e in #(
8079 e) eval $cacheid=no ;;
8080 esac
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8083 conftest$ac_exeext conftest.$ac_ext ;;
8084 esac
8085 fi
8086
8087
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8089
8090 eval supported=\$$cacheid
8091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8092 printf '%s\n' "$supported" >&6; }
8093 if test "$supported" = "yes" ; then
8094 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8095 found="yes"
8096 fi
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113 xorg_testset_save_CFLAGS="$CFLAGS"
8114
8115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8118 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8119 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8120 then :
8121 printf %s "(cached) " >&6
8122 else case e in #(
8123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 int i;
8126 _ACEOF
8127 if ac_fn_c_try_compile "$LINENO"
8128 then :
8129 xorg_cv_cc_flag_unknown_warning_option=yes
8130 else case e in #(
8131 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8132 esac
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8135 esac
8136 fi
8137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8138 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8140 CFLAGS="$xorg_testset_save_CFLAGS"
8141 fi
8142
8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146 fi
8147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8149 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8150 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8151 then :
8152 printf %s "(cached) " >&6
8153 else case e in #(
8154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 int i;
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"
8159 then :
8160 xorg_cv_cc_flag_unused_command_line_argument=yes
8161 else case e in #(
8162 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8163 esac
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8166 esac
8167 fi
8168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8169 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8171 CFLAGS="$xorg_testset_save_CFLAGS"
8172 fi
8173
8174 found="no"
8175
8176 if test $found = "no" ; then
8177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8179 fi
8180
8181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183 fi
8184
8185 CFLAGS="$CFLAGS -Werror=main"
8186
8187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8188 printf %s "checking if $CC supports -Werror=main... " >&6; }
8189 cacheid=xorg_cv_cc_flag__Werror_main
8190 if eval test \${$cacheid+y}
8191 then :
8192 printf %s "(cached) " >&6
8193 else case e in #(
8194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 int i;
8197 int
8198 main (void)
8199 {
8200
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"
8206 then :
8207 eval $cacheid=yes
8208 else case e in #(
8209 e) eval $cacheid=no ;;
8210 esac
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8213 conftest$ac_exeext conftest.$ac_ext ;;
8214 esac
8215 fi
8216
8217
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219
8220 eval supported=\$$cacheid
8221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8222 printf '%s\n' "$supported" >&6; }
8223 if test "$supported" = "yes" ; then
8224 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8225 found="yes"
8226 fi
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 xorg_testset_save_CFLAGS="$CFLAGS"
8244
8245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8248 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8249 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8250 then :
8251 printf %s "(cached) " >&6
8252 else case e in #(
8253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 int i;
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"
8258 then :
8259 xorg_cv_cc_flag_unknown_warning_option=yes
8260 else case e in #(
8261 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8262 esac
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8265 esac
8266 fi
8267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8268 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8270 CFLAGS="$xorg_testset_save_CFLAGS"
8271 fi
8272
8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8276 fi
8277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8279 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8280 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else case e in #(
8284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 int i;
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"
8289 then :
8290 xorg_cv_cc_flag_unused_command_line_argument=yes
8291 else case e in #(
8292 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8293 esac
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8296 esac
8297 fi
8298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8299 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8301 CFLAGS="$xorg_testset_save_CFLAGS"
8302 fi
8303
8304 found="no"
8305
8306 if test $found = "no" ; then
8307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8309 fi
8310
8311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8313 fi
8314
8315 CFLAGS="$CFLAGS -Werror=missing-braces"
8316
8317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8318 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8319 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8320 if eval test \${$cacheid+y}
8321 then :
8322 printf %s "(cached) " >&6
8323 else case e in #(
8324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 int i;
8327 int
8328 main (void)
8329 {
8330
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"
8336 then :
8337 eval $cacheid=yes
8338 else case e in #(
8339 e) eval $cacheid=no ;;
8340 esac
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8343 conftest$ac_exeext conftest.$ac_ext ;;
8344 esac
8345 fi
8346
8347
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349
8350 eval supported=\$$cacheid
8351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8352 printf '%s\n' "$supported" >&6; }
8353 if test "$supported" = "yes" ; then
8354 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8355 found="yes"
8356 fi
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 xorg_testset_save_CFLAGS="$CFLAGS"
8374
8375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8378 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8379 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8380 then :
8381 printf %s "(cached) " >&6
8382 else case e in #(
8383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 int i;
8386 _ACEOF
8387 if ac_fn_c_try_compile "$LINENO"
8388 then :
8389 xorg_cv_cc_flag_unknown_warning_option=yes
8390 else case e in #(
8391 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8392 esac
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8395 esac
8396 fi
8397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8398 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8400 CFLAGS="$xorg_testset_save_CFLAGS"
8401 fi
8402
8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406 fi
8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8411 then :
8412 printf %s "(cached) " >&6
8413 else case e in #(
8414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 int i;
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"
8419 then :
8420 xorg_cv_cc_flag_unused_command_line_argument=yes
8421 else case e in #(
8422 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8423 esac
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8426 esac
8427 fi
8428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8429 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8431 CFLAGS="$xorg_testset_save_CFLAGS"
8432 fi
8433
8434 found="no"
8435
8436 if test $found = "no" ; then
8437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439 fi
8440
8441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443 fi
8444
8445 CFLAGS="$CFLAGS -Werror=sequence-point"
8446
8447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8448 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8449 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8450 if eval test \${$cacheid+y}
8451 then :
8452 printf %s "(cached) " >&6
8453 else case e in #(
8454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 int i;
8457 int
8458 main (void)
8459 {
8460
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"
8466 then :
8467 eval $cacheid=yes
8468 else case e in #(
8469 e) eval $cacheid=no ;;
8470 esac
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8473 conftest$ac_exeext conftest.$ac_ext ;;
8474 esac
8475 fi
8476
8477
8478 CFLAGS="$xorg_testset_save_CFLAGS"
8479
8480 eval supported=\$$cacheid
8481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8482 printf '%s\n' "$supported" >&6; }
8483 if test "$supported" = "yes" ; then
8484 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8485 found="yes"
8486 fi
8487 fi
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 xorg_testset_save_CFLAGS="$CFLAGS"
8504
8505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8508 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8509 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else case e in #(
8513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 int i;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"
8518 then :
8519 xorg_cv_cc_flag_unknown_warning_option=yes
8520 else case e in #(
8521 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8522 esac
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8525 esac
8526 fi
8527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8528 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531 fi
8532
8533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8536 fi
8537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8539 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8540 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8541 then :
8542 printf %s "(cached) " >&6
8543 else case e in #(
8544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 int i;
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"
8549 then :
8550 xorg_cv_cc_flag_unused_command_line_argument=yes
8551 else case e in #(
8552 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8553 esac
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8556 esac
8557 fi
8558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8559 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8561 CFLAGS="$xorg_testset_save_CFLAGS"
8562 fi
8563
8564 found="no"
8565
8566 if test $found = "no" ; then
8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569 fi
8570
8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8573 fi
8574
8575 CFLAGS="$CFLAGS -Werror=return-type"
8576
8577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8578 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8579 cacheid=xorg_cv_cc_flag__Werror_return_type
8580 if eval test \${$cacheid+y}
8581 then :
8582 printf %s "(cached) " >&6
8583 else case e in #(
8584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 int i;
8587 int
8588 main (void)
8589 {
8590
8591 ;
8592 return 0;
8593 }
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"
8596 then :
8597 eval $cacheid=yes
8598 else case e in #(
8599 e) eval $cacheid=no ;;
8600 esac
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8603 conftest$ac_exeext conftest.$ac_ext ;;
8604 esac
8605 fi
8606
8607
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609
8610 eval supported=\$$cacheid
8611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8612 printf '%s\n' "$supported" >&6; }
8613 if test "$supported" = "yes" ; then
8614 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8615 found="yes"
8616 fi
8617 fi
8618
8619 if test $found = "no" ; then
8620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622 fi
8623
8624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626 fi
8627
8628 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8629
8630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8631 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8632 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8633 if eval test \${$cacheid+y}
8634 then :
8635 printf %s "(cached) " >&6
8636 else case e in #(
8637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 int
8641 main (void)
8642 {
8643
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"
8649 then :
8650 eval $cacheid=yes
8651 else case e in #(
8652 e) eval $cacheid=no ;;
8653 esac
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8656 conftest$ac_exeext conftest.$ac_ext ;;
8657 esac
8658 fi
8659
8660
8661 CFLAGS="$xorg_testset_save_CFLAGS"
8662
8663 eval supported=\$$cacheid
8664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8665 printf '%s\n' "$supported" >&6; }
8666 if test "$supported" = "yes" ; then
8667 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8668 found="yes"
8669 fi
8670 fi
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686 xorg_testset_save_CFLAGS="$CFLAGS"
8687
8688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8691 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8692 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8693 then :
8694 printf %s "(cached) " >&6
8695 else case e in #(
8696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 int i;
8699 _ACEOF
8700 if ac_fn_c_try_compile "$LINENO"
8701 then :
8702 xorg_cv_cc_flag_unknown_warning_option=yes
8703 else case e in #(
8704 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8705 esac
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8708 esac
8709 fi
8710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713 CFLAGS="$xorg_testset_save_CFLAGS"
8714 fi
8715
8716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719 fi
8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else case e in #(
8727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"
8732 then :
8733 xorg_cv_cc_flag_unused_command_line_argument=yes
8734 else case e in #(
8735 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8736 esac
8737 fi
8738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8739 esac
8740 fi
8741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8742 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8744 CFLAGS="$xorg_testset_save_CFLAGS"
8745 fi
8746
8747 found="no"
8748
8749 if test $found = "no" ; then
8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752 fi
8753
8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756 fi
8757
8758 CFLAGS="$CFLAGS -Werror=trigraphs"
8759
8760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8761 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8762 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8763 if eval test \${$cacheid+y}
8764 then :
8765 printf %s "(cached) " >&6
8766 else case e in #(
8767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 int i;
8770 int
8771 main (void)
8772 {
8773
8774 ;
8775 return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_c_try_link "$LINENO"
8779 then :
8780 eval $cacheid=yes
8781 else case e in #(
8782 e) eval $cacheid=no ;;
8783 esac
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8786 conftest$ac_exeext conftest.$ac_ext ;;
8787 esac
8788 fi
8789
8790
8791 CFLAGS="$xorg_testset_save_CFLAGS"
8792
8793 eval supported=\$$cacheid
8794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8795 printf '%s\n' "$supported" >&6; }
8796 if test "$supported" = "yes" ; then
8797 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8798 found="yes"
8799 fi
8800 fi
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816 xorg_testset_save_CFLAGS="$CFLAGS"
8817
8818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8823 then :
8824 printf %s "(cached) " >&6
8825 else case e in #(
8826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 int i;
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"
8831 then :
8832 xorg_cv_cc_flag_unknown_warning_option=yes
8833 else case e in #(
8834 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8835 esac
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8838 esac
8839 fi
8840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8841 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8844 fi
8845
8846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849 fi
8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8854 then :
8855 printf %s "(cached) " >&6
8856 else case e in #(
8857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 int i;
8860 _ACEOF
8861 if ac_fn_c_try_compile "$LINENO"
8862 then :
8863 xorg_cv_cc_flag_unused_command_line_argument=yes
8864 else case e in #(
8865 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8866 esac
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8869 esac
8870 fi
8871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8872 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8874 CFLAGS="$xorg_testset_save_CFLAGS"
8875 fi
8876
8877 found="no"
8878
8879 if test $found = "no" ; then
8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882 fi
8883
8884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886 fi
8887
8888 CFLAGS="$CFLAGS -Werror=array-bounds"
8889
8890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8891 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8892 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8893 if eval test \${$cacheid+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else case e in #(
8897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 int i;
8900 int
8901 main (void)
8902 {
8903
8904 ;
8905 return 0;
8906 }
8907 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"
8909 then :
8910 eval $cacheid=yes
8911 else case e in #(
8912 e) eval $cacheid=no ;;
8913 esac
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8916 conftest$ac_exeext conftest.$ac_ext ;;
8917 esac
8918 fi
8919
8920
8921 CFLAGS="$xorg_testset_save_CFLAGS"
8922
8923 eval supported=\$$cacheid
8924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8925 printf '%s\n' "$supported" >&6; }
8926 if test "$supported" = "yes" ; then
8927 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8928 found="yes"
8929 fi
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946 xorg_testset_save_CFLAGS="$CFLAGS"
8947
8948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8952 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8953 then :
8954 printf %s "(cached) " >&6
8955 else case e in #(
8956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 int i;
8959 _ACEOF
8960 if ac_fn_c_try_compile "$LINENO"
8961 then :
8962 xorg_cv_cc_flag_unknown_warning_option=yes
8963 else case e in #(
8964 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8965 esac
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8968 esac
8969 fi
8970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8971 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8973 CFLAGS="$xorg_testset_save_CFLAGS"
8974 fi
8975
8976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979 fi
8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8984 then :
8985 printf %s "(cached) " >&6
8986 else case e in #(
8987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 int i;
8990 _ACEOF
8991 if ac_fn_c_try_compile "$LINENO"
8992 then :
8993 xorg_cv_cc_flag_unused_command_line_argument=yes
8994 else case e in #(
8995 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8996 esac
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8999 esac
9000 fi
9001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9005 fi
9006
9007 found="no"
9008
9009 if test $found = "no" ; then
9010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012 fi
9013
9014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016 fi
9017
9018 CFLAGS="$CFLAGS -Werror=write-strings"
9019
9020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9021 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9022 cacheid=xorg_cv_cc_flag__Werror_write_strings
9023 if eval test \${$cacheid+y}
9024 then :
9025 printf %s "(cached) " >&6
9026 else case e in #(
9027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 int i;
9030 int
9031 main (void)
9032 {
9033
9034 ;
9035 return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"
9039 then :
9040 eval $cacheid=yes
9041 else case e in #(
9042 e) eval $cacheid=no ;;
9043 esac
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9046 conftest$ac_exeext conftest.$ac_ext ;;
9047 esac
9048 fi
9049
9050
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052
9053 eval supported=\$$cacheid
9054 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9055 printf '%s\n' "$supported" >&6; }
9056 if test "$supported" = "yes" ; then
9057 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9058 found="yes"
9059 fi
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else case e in #(
9086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"
9091 then :
9092 xorg_cv_cc_flag_unknown_warning_option=yes
9093 else case e in #(
9094 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9095 esac
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9098 esac
9099 fi
9100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9101 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9103 CFLAGS="$xorg_testset_save_CFLAGS"
9104 fi
9105
9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 fi
9110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9114 then :
9115 printf %s "(cached) " >&6
9116 else case e in #(
9117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 int i;
9120 _ACEOF
9121 if ac_fn_c_try_compile "$LINENO"
9122 then :
9123 xorg_cv_cc_flag_unused_command_line_argument=yes
9124 else case e in #(
9125 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9126 esac
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9129 esac
9130 fi
9131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134 CFLAGS="$xorg_testset_save_CFLAGS"
9135 fi
9136
9137 found="no"
9138
9139 if test $found = "no" ; then
9140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142 fi
9143
9144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146 fi
9147
9148 CFLAGS="$CFLAGS -Werror=address"
9149
9150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9151 printf %s "checking if $CC supports -Werror=address... " >&6; }
9152 cacheid=xorg_cv_cc_flag__Werror_address
9153 if eval test \${$cacheid+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else case e in #(
9157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 int
9161 main (void)
9162 {
9163
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"
9169 then :
9170 eval $cacheid=yes
9171 else case e in #(
9172 e) eval $cacheid=no ;;
9173 esac
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9176 conftest$ac_exeext conftest.$ac_ext ;;
9177 esac
9178 fi
9179
9180
9181 CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183 eval supported=\$$cacheid
9184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185 printf '%s\n' "$supported" >&6; }
9186 if test "$supported" = "yes" ; then
9187 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9188 found="yes"
9189 fi
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206 xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9213 then :
9214 printf %s "(cached) " >&6
9215 else case e in #(
9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 int i;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"
9221 then :
9222 xorg_cv_cc_flag_unknown_warning_option=yes
9223 else case e in #(
9224 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9225 esac
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9228 esac
9229 fi
9230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234 fi
9235
9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239 fi
9240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9244 then :
9245 printf %s "(cached) " >&6
9246 else case e in #(
9247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 int i;
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"
9252 then :
9253 xorg_cv_cc_flag_unused_command_line_argument=yes
9254 else case e in #(
9255 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9256 esac
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9259 esac
9260 fi
9261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9262 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9264 CFLAGS="$xorg_testset_save_CFLAGS"
9265 fi
9266
9267 found="no"
9268
9269 if test $found = "no" ; then
9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272 fi
9273
9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276 fi
9277
9278 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9279
9280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9281 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9282 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9283 if eval test \${$cacheid+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else case e in #(
9287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 int
9291 main (void)
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"
9299 then :
9300 eval $cacheid=yes
9301 else case e in #(
9302 e) eval $cacheid=no ;;
9303 esac
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306 conftest$ac_exeext conftest.$ac_ext ;;
9307 esac
9308 fi
9309
9310
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313 eval supported=\$$cacheid
9314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315 printf '%s\n' "$supported" >&6; }
9316 if test "$supported" = "yes" ; then
9317 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9318 found="yes"
9319 fi
9320 fi
9321
9322 if test $found = "no" ; then
9323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325 fi
9326
9327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329 fi
9330
9331 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9332
9333 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9334 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9335 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9336 if eval test \${$cacheid+y}
9337 then :
9338 printf %s "(cached) " >&6
9339 else case e in #(
9340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 int i;
9343 int
9344 main (void)
9345 {
9346
9347 ;
9348 return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"
9352 then :
9353 eval $cacheid=yes
9354 else case e in #(
9355 e) eval $cacheid=no ;;
9356 esac
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9359 conftest$ac_exeext conftest.$ac_ext ;;
9360 esac
9361 fi
9362
9363
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365
9366 eval supported=\$$cacheid
9367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9368 printf '%s\n' "$supported" >&6; }
9369 if test "$supported" = "yes" ; then
9370 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9371 found="yes"
9372 fi
9373 fi
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389 xorg_testset_save_CFLAGS="$CFLAGS"
9390
9391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9395 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9396 then :
9397 printf %s "(cached) " >&6
9398 else case e in #(
9399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 int i;
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"
9404 then :
9405 xorg_cv_cc_flag_unknown_warning_option=yes
9406 else case e in #(
9407 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9408 esac
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9411 esac
9412 fi
9413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9414 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9416 CFLAGS="$xorg_testset_save_CFLAGS"
9417 fi
9418
9419 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422 fi
9423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9425 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9426 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9427 then :
9428 printf %s "(cached) " >&6
9429 else case e in #(
9430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 int i;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"
9435 then :
9436 xorg_cv_cc_flag_unused_command_line_argument=yes
9437 else case e in #(
9438 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9439 esac
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9442 esac
9443 fi
9444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9445 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9447 CFLAGS="$xorg_testset_save_CFLAGS"
9448 fi
9449
9450 found="no"
9451
9452 if test $found = "no" ; then
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455 fi
9456
9457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9459 fi
9460
9461 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9462
9463 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9464 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9465 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9466 if eval test \${$cacheid+y}
9467 then :
9468 printf %s "(cached) " >&6
9469 else case e in #(
9470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 int i;
9473 int
9474 main (void)
9475 {
9476
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"
9482 then :
9483 eval $cacheid=yes
9484 else case e in #(
9485 e) eval $cacheid=no ;;
9486 esac
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9489 conftest$ac_exeext conftest.$ac_ext ;;
9490 esac
9491 fi
9492
9493
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496 eval supported=\$$cacheid
9497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498 printf '%s\n' "$supported" >&6; }
9499 if test "$supported" = "yes" ; then
9500 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9501 found="yes"
9502 fi
9503 fi
9504
9505 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9506 else
9507 { 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
9508 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;}
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522 xorg_testset_save_CFLAGS="$CFLAGS"
9523
9524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9528 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9529 then :
9530 printf %s "(cached) " >&6
9531 else case e in #(
9532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"
9537 then :
9538 xorg_cv_cc_flag_unknown_warning_option=yes
9539 else case e in #(
9540 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9541 esac
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9544 esac
9545 fi
9546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9547 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9549 CFLAGS="$xorg_testset_save_CFLAGS"
9550 fi
9551
9552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 fi
9556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else case e in #(
9563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 _ACEOF
9567 if ac_fn_c_try_compile "$LINENO"
9568 then :
9569 xorg_cv_cc_flag_unused_command_line_argument=yes
9570 else case e in #(
9571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9572 esac
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9575 esac
9576 fi
9577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581 fi
9582
9583 found="no"
9584
9585 if test $found = "no" ; then
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589
9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 fi
9593
9594 CFLAGS="$CFLAGS -Wimplicit"
9595
9596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9597 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9598 cacheid=xorg_cv_cc_flag__Wimplicit
9599 if eval test \${$cacheid+y}
9600 then :
9601 printf %s "(cached) " >&6
9602 else case e in #(
9603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 int i;
9606 int
9607 main (void)
9608 {
9609
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"
9615 then :
9616 eval $cacheid=yes
9617 else case e in #(
9618 e) eval $cacheid=no ;;
9619 esac
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9622 conftest$ac_exeext conftest.$ac_ext ;;
9623 esac
9624 fi
9625
9626
9627 CFLAGS="$xorg_testset_save_CFLAGS"
9628
9629 eval supported=\$$cacheid
9630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9631 printf '%s\n' "$supported" >&6; }
9632 if test "$supported" = "yes" ; then
9633 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9634 found="yes"
9635 fi
9636 fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652 xorg_testset_save_CFLAGS="$CFLAGS"
9653
9654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9658 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9659 then :
9660 printf %s "(cached) " >&6
9661 else case e in #(
9662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 int i;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"
9667 then :
9668 xorg_cv_cc_flag_unknown_warning_option=yes
9669 else case e in #(
9670 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9671 esac
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9674 esac
9675 fi
9676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9677 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9679 CFLAGS="$xorg_testset_save_CFLAGS"
9680 fi
9681
9682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 fi
9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9690 then :
9691 printf %s "(cached) " >&6
9692 else case e in #(
9693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 int i;
9696 _ACEOF
9697 if ac_fn_c_try_compile "$LINENO"
9698 then :
9699 xorg_cv_cc_flag_unused_command_line_argument=yes
9700 else case e in #(
9701 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9702 esac
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9705 esac
9706 fi
9707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9708 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9710 CFLAGS="$xorg_testset_save_CFLAGS"
9711 fi
9712
9713 found="no"
9714
9715 if test $found = "no" ; then
9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718 fi
9719
9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9722 fi
9723
9724 CFLAGS="$CFLAGS -Wnonnull"
9725
9726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9727 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9728 cacheid=xorg_cv_cc_flag__Wnonnull
9729 if eval test \${$cacheid+y}
9730 then :
9731 printf %s "(cached) " >&6
9732 else case e in #(
9733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 int
9737 main (void)
9738 {
9739
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 if ac_fn_c_try_link "$LINENO"
9745 then :
9746 eval $cacheid=yes
9747 else case e in #(
9748 e) eval $cacheid=no ;;
9749 esac
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9752 conftest$ac_exeext conftest.$ac_ext ;;
9753 esac
9754 fi
9755
9756
9757 CFLAGS="$xorg_testset_save_CFLAGS"
9758
9759 eval supported=\$$cacheid
9760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9761 printf '%s\n' "$supported" >&6; }
9762 if test "$supported" = "yes" ; then
9763 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9764 found="yes"
9765 fi
9766 fi
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782 xorg_testset_save_CFLAGS="$CFLAGS"
9783
9784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9787 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9788 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9789 then :
9790 printf %s "(cached) " >&6
9791 else case e in #(
9792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"
9797 then :
9798 xorg_cv_cc_flag_unknown_warning_option=yes
9799 else case e in #(
9800 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9801 esac
9802 fi
9803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9804 esac
9805 fi
9806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9807 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9809 CFLAGS="$xorg_testset_save_CFLAGS"
9810 fi
9811
9812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815 fi
9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9820 then :
9821 printf %s "(cached) " >&6
9822 else case e in #(
9823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 int i;
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"
9828 then :
9829 xorg_cv_cc_flag_unused_command_line_argument=yes
9830 else case e in #(
9831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9832 esac
9833 fi
9834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9835 esac
9836 fi
9837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9838 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9841 fi
9842
9843 found="no"
9844
9845 if test $found = "no" ; then
9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848 fi
9849
9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9852 fi
9853
9854 CFLAGS="$CFLAGS -Winit-self"
9855
9856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9857 printf %s "checking if $CC supports -Winit-self... " >&6; }
9858 cacheid=xorg_cv_cc_flag__Winit_self
9859 if eval test \${$cacheid+y}
9860 then :
9861 printf %s "(cached) " >&6
9862 else case e in #(
9863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 int i;
9866 int
9867 main (void)
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_link "$LINENO"
9875 then :
9876 eval $cacheid=yes
9877 else case e in #(
9878 e) eval $cacheid=no ;;
9879 esac
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9882 conftest$ac_exeext conftest.$ac_ext ;;
9883 esac
9884 fi
9885
9886
9887 CFLAGS="$xorg_testset_save_CFLAGS"
9888
9889 eval supported=\$$cacheid
9890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9891 printf '%s\n' "$supported" >&6; }
9892 if test "$supported" = "yes" ; then
9893 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9894 found="yes"
9895 fi
9896 fi
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912 xorg_testset_save_CFLAGS="$CFLAGS"
9913
9914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9918 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else case e in #(
9922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 int i;
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"
9927 then :
9928 xorg_cv_cc_flag_unknown_warning_option=yes
9929 else case e in #(
9930 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9931 esac
9932 fi
9933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9934 esac
9935 fi
9936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9937 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9939 CFLAGS="$xorg_testset_save_CFLAGS"
9940 fi
9941
9942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945 fi
9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9948 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9949 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9950 then :
9951 printf %s "(cached) " >&6
9952 else case e in #(
9953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955 int i;
9956 _ACEOF
9957 if ac_fn_c_try_compile "$LINENO"
9958 then :
9959 xorg_cv_cc_flag_unused_command_line_argument=yes
9960 else case e in #(
9961 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9962 esac
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9965 esac
9966 fi
9967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9968 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9970 CFLAGS="$xorg_testset_save_CFLAGS"
9971 fi
9972
9973 found="no"
9974
9975 if test $found = "no" ; then
9976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978 fi
9979
9980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9982 fi
9983
9984 CFLAGS="$CFLAGS -Wmain"
9985
9986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9987 printf %s "checking if $CC supports -Wmain... " >&6; }
9988 cacheid=xorg_cv_cc_flag__Wmain
9989 if eval test \${$cacheid+y}
9990 then :
9991 printf %s "(cached) " >&6
9992 else case e in #(
9993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 int i;
9996 int
9997 main (void)
9998 {
9999
10000 ;
10001 return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"
10005 then :
10006 eval $cacheid=yes
10007 else case e in #(
10008 e) eval $cacheid=no ;;
10009 esac
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10012 conftest$ac_exeext conftest.$ac_ext ;;
10013 esac
10014 fi
10015
10016
10017 CFLAGS="$xorg_testset_save_CFLAGS"
10018
10019 eval supported=\$$cacheid
10020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10021 printf '%s\n' "$supported" >&6; }
10022 if test "$supported" = "yes" ; then
10023 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10024 found="yes"
10025 fi
10026 fi
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042 xorg_testset_save_CFLAGS="$CFLAGS"
10043
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10049 then :
10050 printf %s "(cached) " >&6
10051 else case e in #(
10052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 int i;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"
10057 then :
10058 xorg_cv_cc_flag_unknown_warning_option=yes
10059 else case e in #(
10060 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10061 esac
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10064 esac
10065 fi
10066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10067 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10069 CFLAGS="$xorg_testset_save_CFLAGS"
10070 fi
10071
10072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075 fi
10076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10080 then :
10081 printf %s "(cached) " >&6
10082 else case e in #(
10083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 int i;
10086 _ACEOF
10087 if ac_fn_c_try_compile "$LINENO"
10088 then :
10089 xorg_cv_cc_flag_unused_command_line_argument=yes
10090 else case e in #(
10091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10092 esac
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10095 esac
10096 fi
10097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10098 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10100 CFLAGS="$xorg_testset_save_CFLAGS"
10101 fi
10102
10103 found="no"
10104
10105 if test $found = "no" ; then
10106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108 fi
10109
10110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112 fi
10113
10114 CFLAGS="$CFLAGS -Wmissing-braces"
10115
10116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10117 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10118 cacheid=xorg_cv_cc_flag__Wmissing_braces
10119 if eval test \${$cacheid+y}
10120 then :
10121 printf %s "(cached) " >&6
10122 else case e in #(
10123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 int
10127 main (void)
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"
10135 then :
10136 eval $cacheid=yes
10137 else case e in #(
10138 e) eval $cacheid=no ;;
10139 esac
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10142 conftest$ac_exeext conftest.$ac_ext ;;
10143 esac
10144 fi
10145
10146
10147 CFLAGS="$xorg_testset_save_CFLAGS"
10148
10149 eval supported=\$$cacheid
10150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10151 printf '%s\n' "$supported" >&6; }
10152 if test "$supported" = "yes" ; then
10153 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10154 found="yes"
10155 fi
10156 fi
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172 xorg_testset_save_CFLAGS="$CFLAGS"
10173
10174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10179 then :
10180 printf %s "(cached) " >&6
10181 else case e in #(
10182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int i;
10185 _ACEOF
10186 if ac_fn_c_try_compile "$LINENO"
10187 then :
10188 xorg_cv_cc_flag_unknown_warning_option=yes
10189 else case e in #(
10190 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10191 esac
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10194 esac
10195 fi
10196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10197 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10199 CFLAGS="$xorg_testset_save_CFLAGS"
10200 fi
10201
10202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205 fi
10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else case e in #(
10213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 int i;
10216 _ACEOF
10217 if ac_fn_c_try_compile "$LINENO"
10218 then :
10219 xorg_cv_cc_flag_unused_command_line_argument=yes
10220 else case e in #(
10221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10222 esac
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10225 esac
10226 fi
10227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10228 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10230 CFLAGS="$xorg_testset_save_CFLAGS"
10231 fi
10232
10233 found="no"
10234
10235 if test $found = "no" ; then
10236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238 fi
10239
10240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10242 fi
10243
10244 CFLAGS="$CFLAGS -Wsequence-point"
10245
10246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10247 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10248 cacheid=xorg_cv_cc_flag__Wsequence_point
10249 if eval test \${$cacheid+y}
10250 then :
10251 printf %s "(cached) " >&6
10252 else case e in #(
10253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255 int i;
10256 int
10257 main (void)
10258 {
10259
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"
10265 then :
10266 eval $cacheid=yes
10267 else case e in #(
10268 e) eval $cacheid=no ;;
10269 esac
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10272 conftest$ac_exeext conftest.$ac_ext ;;
10273 esac
10274 fi
10275
10276
10277 CFLAGS="$xorg_testset_save_CFLAGS"
10278
10279 eval supported=\$$cacheid
10280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10281 printf '%s\n' "$supported" >&6; }
10282 if test "$supported" = "yes" ; then
10283 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10284 found="yes"
10285 fi
10286 fi
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302 xorg_testset_save_CFLAGS="$CFLAGS"
10303
10304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10309 then :
10310 printf %s "(cached) " >&6
10311 else case e in #(
10312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314 int i;
10315 _ACEOF
10316 if ac_fn_c_try_compile "$LINENO"
10317 then :
10318 xorg_cv_cc_flag_unknown_warning_option=yes
10319 else case e in #(
10320 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10321 esac
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10324 esac
10325 fi
10326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10327 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10329 CFLAGS="$xorg_testset_save_CFLAGS"
10330 fi
10331
10332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335 fi
10336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10340 then :
10341 printf %s "(cached) " >&6
10342 else case e in #(
10343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 _ACEOF
10347 if ac_fn_c_try_compile "$LINENO"
10348 then :
10349 xorg_cv_cc_flag_unused_command_line_argument=yes
10350 else case e in #(
10351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10352 esac
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10355 esac
10356 fi
10357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10358 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10360 CFLAGS="$xorg_testset_save_CFLAGS"
10361 fi
10362
10363 found="no"
10364
10365 if test $found = "no" ; then
10366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368 fi
10369
10370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10372 fi
10373
10374 CFLAGS="$CFLAGS -Wreturn-type"
10375
10376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10377 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10378 cacheid=xorg_cv_cc_flag__Wreturn_type
10379 if eval test \${$cacheid+y}
10380 then :
10381 printf %s "(cached) " >&6
10382 else case e in #(
10383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385 int i;
10386 int
10387 main (void)
10388 {
10389
10390 ;
10391 return 0;
10392 }
10393 _ACEOF
10394 if ac_fn_c_try_link "$LINENO"
10395 then :
10396 eval $cacheid=yes
10397 else case e in #(
10398 e) eval $cacheid=no ;;
10399 esac
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10402 conftest$ac_exeext conftest.$ac_ext ;;
10403 esac
10404 fi
10405
10406
10407 CFLAGS="$xorg_testset_save_CFLAGS"
10408
10409 eval supported=\$$cacheid
10410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10411 printf '%s\n' "$supported" >&6; }
10412 if test "$supported" = "yes" ; then
10413 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10414 found="yes"
10415 fi
10416 fi
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 xorg_testset_save_CFLAGS="$CFLAGS"
10433
10434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10438 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10439 then :
10440 printf %s "(cached) " >&6
10441 else case e in #(
10442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444 int i;
10445 _ACEOF
10446 if ac_fn_c_try_compile "$LINENO"
10447 then :
10448 xorg_cv_cc_flag_unknown_warning_option=yes
10449 else case e in #(
10450 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10451 esac
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10454 esac
10455 fi
10456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10457 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10459 CFLAGS="$xorg_testset_save_CFLAGS"
10460 fi
10461
10462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465 fi
10466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10470 then :
10471 printf %s "(cached) " >&6
10472 else case e in #(
10473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 int i;
10476 _ACEOF
10477 if ac_fn_c_try_compile "$LINENO"
10478 then :
10479 xorg_cv_cc_flag_unused_command_line_argument=yes
10480 else case e in #(
10481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10482 esac
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10485 esac
10486 fi
10487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10488 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10490 CFLAGS="$xorg_testset_save_CFLAGS"
10491 fi
10492
10493 found="no"
10494
10495 if test $found = "no" ; then
10496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498 fi
10499
10500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10502 fi
10503
10504 CFLAGS="$CFLAGS -Wtrigraphs"
10505
10506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10507 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10508 cacheid=xorg_cv_cc_flag__Wtrigraphs
10509 if eval test \${$cacheid+y}
10510 then :
10511 printf %s "(cached) " >&6
10512 else case e in #(
10513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 int i;
10516 int
10517 main (void)
10518 {
10519
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"
10525 then :
10526 eval $cacheid=yes
10527 else case e in #(
10528 e) eval $cacheid=no ;;
10529 esac
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10532 conftest$ac_exeext conftest.$ac_ext ;;
10533 esac
10534 fi
10535
10536
10537 CFLAGS="$xorg_testset_save_CFLAGS"
10538
10539 eval supported=\$$cacheid
10540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10541 printf '%s\n' "$supported" >&6; }
10542 if test "$supported" = "yes" ; then
10543 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10544 found="yes"
10545 fi
10546 fi
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562 xorg_testset_save_CFLAGS="$CFLAGS"
10563
10564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10568 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10569 then :
10570 printf %s "(cached) " >&6
10571 else case e in #(
10572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574 int i;
10575 _ACEOF
10576 if ac_fn_c_try_compile "$LINENO"
10577 then :
10578 xorg_cv_cc_flag_unknown_warning_option=yes
10579 else case e in #(
10580 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10581 esac
10582 fi
10583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10584 esac
10585 fi
10586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10587 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10589 CFLAGS="$xorg_testset_save_CFLAGS"
10590 fi
10591
10592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10595 fi
10596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10600 then :
10601 printf %s "(cached) " >&6
10602 else case e in #(
10603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10605 int i;
10606 _ACEOF
10607 if ac_fn_c_try_compile "$LINENO"
10608 then :
10609 xorg_cv_cc_flag_unused_command_line_argument=yes
10610 else case e in #(
10611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10612 esac
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10615 esac
10616 fi
10617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10618 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10620 CFLAGS="$xorg_testset_save_CFLAGS"
10621 fi
10622
10623 found="no"
10624
10625 if test $found = "no" ; then
10626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10628 fi
10629
10630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10632 fi
10633
10634 CFLAGS="$CFLAGS -Warray-bounds"
10635
10636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10637 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10638 cacheid=xorg_cv_cc_flag__Warray_bounds
10639 if eval test \${$cacheid+y}
10640 then :
10641 printf %s "(cached) " >&6
10642 else case e in #(
10643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 int i;
10646 int
10647 main (void)
10648 {
10649
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"
10655 then :
10656 eval $cacheid=yes
10657 else case e in #(
10658 e) eval $cacheid=no ;;
10659 esac
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10662 conftest$ac_exeext conftest.$ac_ext ;;
10663 esac
10664 fi
10665
10666
10667 CFLAGS="$xorg_testset_save_CFLAGS"
10668
10669 eval supported=\$$cacheid
10670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10671 printf '%s\n' "$supported" >&6; }
10672 if test "$supported" = "yes" ; then
10673 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10674 found="yes"
10675 fi
10676 fi
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692 xorg_testset_save_CFLAGS="$CFLAGS"
10693
10694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10699 then :
10700 printf %s "(cached) " >&6
10701 else case e in #(
10702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 int i;
10705 _ACEOF
10706 if ac_fn_c_try_compile "$LINENO"
10707 then :
10708 xorg_cv_cc_flag_unknown_warning_option=yes
10709 else case e in #(
10710 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10711 esac
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10714 esac
10715 fi
10716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10717 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10719 CFLAGS="$xorg_testset_save_CFLAGS"
10720 fi
10721
10722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10725 fi
10726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10730 then :
10731 printf %s "(cached) " >&6
10732 else case e in #(
10733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 int i;
10736 _ACEOF
10737 if ac_fn_c_try_compile "$LINENO"
10738 then :
10739 xorg_cv_cc_flag_unused_command_line_argument=yes
10740 else case e in #(
10741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10742 esac
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10745 esac
10746 fi
10747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10748 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10750 CFLAGS="$xorg_testset_save_CFLAGS"
10751 fi
10752
10753 found="no"
10754
10755 if test $found = "no" ; then
10756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10758 fi
10759
10760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10762 fi
10763
10764 CFLAGS="$CFLAGS -Wwrite-strings"
10765
10766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10767 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10768 cacheid=xorg_cv_cc_flag__Wwrite_strings
10769 if eval test \${$cacheid+y}
10770 then :
10771 printf %s "(cached) " >&6
10772 else case e in #(
10773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 int i;
10776 int
10777 main (void)
10778 {
10779
10780 ;
10781 return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"
10785 then :
10786 eval $cacheid=yes
10787 else case e in #(
10788 e) eval $cacheid=no ;;
10789 esac
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10792 conftest$ac_exeext conftest.$ac_ext ;;
10793 esac
10794 fi
10795
10796
10797 CFLAGS="$xorg_testset_save_CFLAGS"
10798
10799 eval supported=\$$cacheid
10800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10801 printf '%s\n' "$supported" >&6; }
10802 if test "$supported" = "yes" ; then
10803 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10804 found="yes"
10805 fi
10806 fi
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 xorg_testset_save_CFLAGS="$CFLAGS"
10823
10824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10828 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10829 then :
10830 printf %s "(cached) " >&6
10831 else case e in #(
10832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 int i;
10835 _ACEOF
10836 if ac_fn_c_try_compile "$LINENO"
10837 then :
10838 xorg_cv_cc_flag_unknown_warning_option=yes
10839 else case e in #(
10840 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10841 esac
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10844 esac
10845 fi
10846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10847 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10849 CFLAGS="$xorg_testset_save_CFLAGS"
10850 fi
10851
10852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10855 fi
10856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10860 then :
10861 printf %s "(cached) " >&6
10862 else case e in #(
10863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 int i;
10866 _ACEOF
10867 if ac_fn_c_try_compile "$LINENO"
10868 then :
10869 xorg_cv_cc_flag_unused_command_line_argument=yes
10870 else case e in #(
10871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10872 esac
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10875 esac
10876 fi
10877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10878 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10880 CFLAGS="$xorg_testset_save_CFLAGS"
10881 fi
10882
10883 found="no"
10884
10885 if test $found = "no" ; then
10886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10888 fi
10889
10890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10892 fi
10893
10894 CFLAGS="$CFLAGS -Waddress"
10895
10896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10897 printf %s "checking if $CC supports -Waddress... " >&6; }
10898 cacheid=xorg_cv_cc_flag__Waddress
10899 if eval test \${$cacheid+y}
10900 then :
10901 printf %s "(cached) " >&6
10902 else case e in #(
10903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 int i;
10906 int
10907 main (void)
10908 {
10909
10910 ;
10911 return 0;
10912 }
10913 _ACEOF
10914 if ac_fn_c_try_link "$LINENO"
10915 then :
10916 eval $cacheid=yes
10917 else case e in #(
10918 e) eval $cacheid=no ;;
10919 esac
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10922 conftest$ac_exeext conftest.$ac_ext ;;
10923 esac
10924 fi
10925
10926
10927 CFLAGS="$xorg_testset_save_CFLAGS"
10928
10929 eval supported=\$$cacheid
10930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10931 printf '%s\n' "$supported" >&6; }
10932 if test "$supported" = "yes" ; then
10933 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10934 found="yes"
10935 fi
10936 fi
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952 xorg_testset_save_CFLAGS="$CFLAGS"
10953
10954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10959 then :
10960 printf %s "(cached) " >&6
10961 else case e in #(
10962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964 int i;
10965 _ACEOF
10966 if ac_fn_c_try_compile "$LINENO"
10967 then :
10968 xorg_cv_cc_flag_unknown_warning_option=yes
10969 else case e in #(
10970 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10971 esac
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10974 esac
10975 fi
10976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10977 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10979 CFLAGS="$xorg_testset_save_CFLAGS"
10980 fi
10981
10982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10985 fi
10986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10990 then :
10991 printf %s "(cached) " >&6
10992 else case e in #(
10993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 int i;
10996 _ACEOF
10997 if ac_fn_c_try_compile "$LINENO"
10998 then :
10999 xorg_cv_cc_flag_unused_command_line_argument=yes
11000 else case e in #(
11001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11002 esac
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11005 esac
11006 fi
11007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11008 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11010 CFLAGS="$xorg_testset_save_CFLAGS"
11011 fi
11012
11013 found="no"
11014
11015 if test $found = "no" ; then
11016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11018 fi
11019
11020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11022 fi
11023
11024 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11025
11026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11027 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11028 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11029 if eval test \${$cacheid+y}
11030 then :
11031 printf %s "(cached) " >&6
11032 else case e in #(
11033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 int i;
11036 int
11037 main (void)
11038 {
11039
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_c_try_link "$LINENO"
11045 then :
11046 eval $cacheid=yes
11047 else case e in #(
11048 e) eval $cacheid=no ;;
11049 esac
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11052 conftest$ac_exeext conftest.$ac_ext ;;
11053 esac
11054 fi
11055
11056
11057 CFLAGS="$xorg_testset_save_CFLAGS"
11058
11059 eval supported=\$$cacheid
11060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11061 printf '%s\n' "$supported" >&6; }
11062 if test "$supported" = "yes" ; then
11063 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11064 found="yes"
11065 fi
11066 fi
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 xorg_testset_save_CFLAGS="$CFLAGS"
11083
11084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11089 then :
11090 printf %s "(cached) " >&6
11091 else case e in #(
11092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11094 int i;
11095 _ACEOF
11096 if ac_fn_c_try_compile "$LINENO"
11097 then :
11098 xorg_cv_cc_flag_unknown_warning_option=yes
11099 else case e in #(
11100 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11101 esac
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11104 esac
11105 fi
11106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11107 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11109 CFLAGS="$xorg_testset_save_CFLAGS"
11110 fi
11111
11112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11115 fi
11116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11120 then :
11121 printf %s "(cached) " >&6
11122 else case e in #(
11123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11125 int i;
11126 _ACEOF
11127 if ac_fn_c_try_compile "$LINENO"
11128 then :
11129 xorg_cv_cc_flag_unused_command_line_argument=yes
11130 else case e in #(
11131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11132 esac
11133 fi
11134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11135 esac
11136 fi
11137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11138 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11140 CFLAGS="$xorg_testset_save_CFLAGS"
11141 fi
11142
11143 found="no"
11144
11145 if test $found = "no" ; then
11146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11148 fi
11149
11150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11152 fi
11153
11154 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11155
11156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11157 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11158 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11159 if eval test \${$cacheid+y}
11160 then :
11161 printf %s "(cached) " >&6
11162 else case e in #(
11163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11165 int i;
11166 int
11167 main (void)
11168 {
11169
11170 ;
11171 return 0;
11172 }
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"
11175 then :
11176 eval $cacheid=yes
11177 else case e in #(
11178 e) eval $cacheid=no ;;
11179 esac
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11182 conftest$ac_exeext conftest.$ac_ext ;;
11183 esac
11184 fi
11185
11186
11187 CFLAGS="$xorg_testset_save_CFLAGS"
11188
11189 eval supported=\$$cacheid
11190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11191 printf '%s\n' "$supported" >&6; }
11192 if test "$supported" = "yes" ; then
11193 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11194 found="yes"
11195 fi
11196 fi
11197
11198
11199 fi
11200
11201
11202
11203
11204
11205
11206
11207 CWARNFLAGS="$BASE_CFLAGS"
11208 if test "x$GCC" = xyes ; then
11209 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11210 fi
11211
11212
11213
11214
11215
11216
11217
11218
11219 # Check whether --enable-strict-compilation was given.
11220 if test ${enable_strict_compilation+y}
11221 then :
11222 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11223 else case e in #(
11224 e) STRICT_COMPILE=no ;;
11225 esac
11226 fi
11227
11228
11229
11230
11231
11232
11233 STRICT_CFLAGS=""
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247 xorg_testset_save_CFLAGS="$CFLAGS"
11248
11249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11252 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11253 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11254 then :
11255 printf %s "(cached) " >&6
11256 else case e in #(
11257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259 int i;
11260 _ACEOF
11261 if ac_fn_c_try_compile "$LINENO"
11262 then :
11263 xorg_cv_cc_flag_unknown_warning_option=yes
11264 else case e in #(
11265 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11266 esac
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11269 esac
11270 fi
11271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11272 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11274 CFLAGS="$xorg_testset_save_CFLAGS"
11275 fi
11276
11277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11280 fi
11281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11285 then :
11286 printf %s "(cached) " >&6
11287 else case e in #(
11288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 int i;
11291 _ACEOF
11292 if ac_fn_c_try_compile "$LINENO"
11293 then :
11294 xorg_cv_cc_flag_unused_command_line_argument=yes
11295 else case e in #(
11296 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11297 esac
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11300 esac
11301 fi
11302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11303 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11305 CFLAGS="$xorg_testset_save_CFLAGS"
11306 fi
11307
11308 found="no"
11309
11310 if test $found = "no" ; then
11311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11313 fi
11314
11315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11317 fi
11318
11319 CFLAGS="$CFLAGS -pedantic"
11320
11321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11322 printf %s "checking if $CC supports -pedantic... " >&6; }
11323 cacheid=xorg_cv_cc_flag__pedantic
11324 if eval test \${$cacheid+y}
11325 then :
11326 printf %s "(cached) " >&6
11327 else case e in #(
11328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 int i;
11331 int
11332 main (void)
11333 {
11334
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"
11340 then :
11341 eval $cacheid=yes
11342 else case e in #(
11343 e) eval $cacheid=no ;;
11344 esac
11345 fi
11346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11347 conftest$ac_exeext conftest.$ac_ext ;;
11348 esac
11349 fi
11350
11351
11352 CFLAGS="$xorg_testset_save_CFLAGS"
11353
11354 eval supported=\$$cacheid
11355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11356 printf '%s\n' "$supported" >&6; }
11357 if test "$supported" = "yes" ; then
11358 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11359 found="yes"
11360 fi
11361 fi
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377 xorg_testset_save_CFLAGS="$CFLAGS"
11378
11379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11384 then :
11385 printf %s "(cached) " >&6
11386 else case e in #(
11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389 int i;
11390 _ACEOF
11391 if ac_fn_c_try_compile "$LINENO"
11392 then :
11393 xorg_cv_cc_flag_unknown_warning_option=yes
11394 else case e in #(
11395 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11396 esac
11397 fi
11398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11399 esac
11400 fi
11401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11402 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11404 CFLAGS="$xorg_testset_save_CFLAGS"
11405 fi
11406
11407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11410 fi
11411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11415 then :
11416 printf %s "(cached) " >&6
11417 else case e in #(
11418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420 int i;
11421 _ACEOF
11422 if ac_fn_c_try_compile "$LINENO"
11423 then :
11424 xorg_cv_cc_flag_unused_command_line_argument=yes
11425 else case e in #(
11426 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11427 esac
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11430 esac
11431 fi
11432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11433 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11435 CFLAGS="$xorg_testset_save_CFLAGS"
11436 fi
11437
11438 found="no"
11439
11440 if test $found = "no" ; then
11441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11443 fi
11444
11445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11447 fi
11448
11449 CFLAGS="$CFLAGS -Werror"
11450
11451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11452 printf %s "checking if $CC supports -Werror... " >&6; }
11453 cacheid=xorg_cv_cc_flag__Werror
11454 if eval test \${$cacheid+y}
11455 then :
11456 printf %s "(cached) " >&6
11457 else case e in #(
11458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 int i;
11461 int
11462 main (void)
11463 {
11464
11465 ;
11466 return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"
11470 then :
11471 eval $cacheid=yes
11472 else case e in #(
11473 e) eval $cacheid=no ;;
11474 esac
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11477 conftest$ac_exeext conftest.$ac_ext ;;
11478 esac
11479 fi
11480
11481
11482 CFLAGS="$xorg_testset_save_CFLAGS"
11483
11484 eval supported=\$$cacheid
11485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11486 printf '%s\n' "$supported" >&6; }
11487 if test "$supported" = "yes" ; then
11488 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11489 found="yes"
11490 fi
11491 fi
11492
11493 if test $found = "no" ; then
11494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11496 fi
11497
11498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11500 fi
11501
11502 CFLAGS="$CFLAGS -errwarn"
11503
11504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11505 printf %s "checking if $CC supports -errwarn... " >&6; }
11506 cacheid=xorg_cv_cc_flag__errwarn
11507 if eval test \${$cacheid+y}
11508 then :
11509 printf %s "(cached) " >&6
11510 else case e in #(
11511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 int i;
11514 int
11515 main (void)
11516 {
11517
11518 ;
11519 return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"
11523 then :
11524 eval $cacheid=yes
11525 else case e in #(
11526 e) eval $cacheid=no ;;
11527 esac
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11530 conftest$ac_exeext conftest.$ac_ext ;;
11531 esac
11532 fi
11533
11534
11535 CFLAGS="$xorg_testset_save_CFLAGS"
11536
11537 eval supported=\$$cacheid
11538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11539 printf '%s\n' "$supported" >&6; }
11540 if test "$supported" = "yes" ; then
11541 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11542 found="yes"
11543 fi
11544 fi
11545
11546
11547
11548 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11549 # activate it with -Werror, so we add it here explicitly.
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563 xorg_testset_save_CFLAGS="$CFLAGS"
11564
11565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11570 then :
11571 printf %s "(cached) " >&6
11572 else case e in #(
11573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 int i;
11576 _ACEOF
11577 if ac_fn_c_try_compile "$LINENO"
11578 then :
11579 xorg_cv_cc_flag_unknown_warning_option=yes
11580 else case e in #(
11581 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11582 esac
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11585 esac
11586 fi
11587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11588 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11590 CFLAGS="$xorg_testset_save_CFLAGS"
11591 fi
11592
11593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11596 fi
11597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11601 then :
11602 printf %s "(cached) " >&6
11603 else case e in #(
11604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606 int i;
11607 _ACEOF
11608 if ac_fn_c_try_compile "$LINENO"
11609 then :
11610 xorg_cv_cc_flag_unused_command_line_argument=yes
11611 else case e in #(
11612 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11613 esac
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11616 esac
11617 fi
11618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11619 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11621 CFLAGS="$xorg_testset_save_CFLAGS"
11622 fi
11623
11624 found="no"
11625
11626 if test $found = "no" ; then
11627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11629 fi
11630
11631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11633 fi
11634
11635 CFLAGS="$CFLAGS -Werror=attributes"
11636
11637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11638 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11639 cacheid=xorg_cv_cc_flag__Werror_attributes
11640 if eval test \${$cacheid+y}
11641 then :
11642 printf %s "(cached) " >&6
11643 else case e in #(
11644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 int i;
11647 int
11648 main (void)
11649 {
11650
11651 ;
11652 return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"
11656 then :
11657 eval $cacheid=yes
11658 else case e in #(
11659 e) eval $cacheid=no ;;
11660 esac
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11663 conftest$ac_exeext conftest.$ac_ext ;;
11664 esac
11665 fi
11666
11667
11668 CFLAGS="$xorg_testset_save_CFLAGS"
11669
11670 eval supported=\$$cacheid
11671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11672 printf '%s\n' "$supported" >&6; }
11673 if test "$supported" = "yes" ; then
11674 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11675 found="yes"
11676 fi
11677 fi
11678
11679
11680
11681 if test "x$STRICT_COMPILE" = "xyes"; then
11682 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11683 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11684 fi
11685
11686
11687
11688
11689
11690
11691
11692
11693 cat >>confdefs.h <<_ACEOF
11694 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11695 _ACEOF
11696
11697 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11698 if test "x$PVM" = "x"; then
11699 PVM="0"
11700 fi
11701
11702 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11703
11704 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11705 if test "x$PVP" = "x"; then
11706 PVP="0"
11707 fi
11708
11709 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11710
11711
11712
11713 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11714 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11715 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11716 touch \$(top_srcdir)/ChangeLog; \
11717 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11718
11719
11720
11721
11722 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11723 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11724 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11725 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11726 touch \$(top_srcdir)/INSTALL; \
11727 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11728
11729
11730
11731
11732
11733
11734 case $host_os in
11735 solaris*)
11736 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11737 # check for a man page file found in later versions that use
11738 # traditional section numbers instead
11739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11740 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11741 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11742 then :
11743 printf %s "(cached) " >&6
11744 else case e in #(
11745 e) test "$cross_compiling" = yes &&
11746 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11747 if test -r "/usr/share/man/man7/attributes.7"; then
11748 ac_cv_file__usr_share_man_man7_attributes_7=yes
11749 else
11750 ac_cv_file__usr_share_man_man7_attributes_7=no
11751 fi ;;
11752 esac
11753 fi
11754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11755 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11756 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11757 then :
11758 SYSV_MAN_SECTIONS=false
11759 else case e in #(
11760 e) SYSV_MAN_SECTIONS=true ;;
11761 esac
11762 fi
11763
11764 ;;
11765 *) SYSV_MAN_SECTIONS=false ;;
11766 esac
11767
11768 if test x$APP_MAN_SUFFIX = x ; then
11769 APP_MAN_SUFFIX=1
11770 fi
11771 if test x$APP_MAN_DIR = x ; then
11772 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11773 fi
11774
11775 if test x$LIB_MAN_SUFFIX = x ; then
11776 LIB_MAN_SUFFIX=3
11777 fi
11778 if test x$LIB_MAN_DIR = x ; then
11779 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11780 fi
11781
11782 if test x$FILE_MAN_SUFFIX = x ; then
11783 case $SYSV_MAN_SECTIONS in
11784 true) FILE_MAN_SUFFIX=4 ;;
11785 *) FILE_MAN_SUFFIX=5 ;;
11786 esac
11787 fi
11788 if test x$FILE_MAN_DIR = x ; then
11789 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11790 fi
11791
11792 if test x$MISC_MAN_SUFFIX = x ; then
11793 case $SYSV_MAN_SECTIONS in
11794 true) MISC_MAN_SUFFIX=5 ;;
11795 *) MISC_MAN_SUFFIX=7 ;;
11796 esac
11797 fi
11798 if test x$MISC_MAN_DIR = x ; then
11799 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11800 fi
11801
11802 if test x$DRIVER_MAN_SUFFIX = x ; then
11803 case $SYSV_MAN_SECTIONS in
11804 true) DRIVER_MAN_SUFFIX=7 ;;
11805 *) DRIVER_MAN_SUFFIX=4 ;;
11806 esac
11807 fi
11808 if test x$DRIVER_MAN_DIR = x ; then
11809 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11810 fi
11811
11812 if test x$ADMIN_MAN_SUFFIX = x ; then
11813 case $SYSV_MAN_SECTIONS in
11814 true) ADMIN_MAN_SUFFIX=1m ;;
11815 *) ADMIN_MAN_SUFFIX=8 ;;
11816 esac
11817 fi
11818 if test x$ADMIN_MAN_DIR = x ; then
11819 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11820 fi
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836 XORG_MAN_PAGE="X Version 11"
11837
11838 MAN_SUBSTS="\
11839 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11840 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11841 -e 's|__xservername__|Xorg|g' \
11842 -e 's|__xconfigfile__|xorg.conf|g' \
11843 -e 's|__projectroot__|\$(prefix)|g' \
11844 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11845 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11846 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11847 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11848 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11849 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11850 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11851
11852
11853
11854
11855 AM_DEFAULT_VERBOSITY=0
11856
11857
11858
11859
11860
11861 ac_config_headers="$ac_config_headers config.h"
11862
11863
11864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11865 printf %s "checking for inline... " >&6; }
11866 if test ${ac_cv_c_inline+y}
11867 then :
11868 printf %s "(cached) " >&6
11869 else case e in #(
11870 e) ac_cv_c_inline=no
11871 for ac_kw in inline __inline__ __inline; do
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 #ifndef __cplusplus
11875 typedef int foo_t;
11876 static $ac_kw foo_t static_foo (void) {return 0; }
11877 $ac_kw foo_t foo (void) {return 0; }
11878 #endif
11879
11880 _ACEOF
11881 if ac_fn_c_try_compile "$LINENO"
11882 then :
11883 ac_cv_c_inline=$ac_kw
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11886 test "$ac_cv_c_inline" != no && break
11887 done
11888 ;;
11889 esac
11890 fi
11891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11892 printf '%s\n' "$ac_cv_c_inline" >&6; }
11893
11894 case $ac_cv_c_inline in
11895 inline | yes) ;;
11896 *)
11897 case $ac_cv_c_inline in
11898 no) ac_val=;;
11899 *) ac_val=$ac_cv_c_inline;;
11900 esac
11901 cat >>confdefs.h <<_ACEOF
11902 #ifndef __cplusplus
11903 #define inline $ac_val
11904 #endif
11905 _ACEOF
11906 ;;
11907 esac
11908
11909
11910
11911 if test -n "$ac_tool_prefix"; then
11912 for ac_prog in ar lib "link -lib"
11913 do
11914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 printf %s "checking for $ac_word... " >&6; }
11918 if test ${ac_cv_prog_AR+y}
11919 then :
11920 printf %s "(cached) " >&6
11921 else case e in #(
11922 e) if test -n "$AR"; then
11923 ac_cv_prog_AR="$AR" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928 IFS=$as_save_IFS
11929 case $as_dir in #(((
11930 '') as_dir=./ ;;
11931 */) ;;
11932 *) as_dir=$as_dir/ ;;
11933 esac
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11937 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
11940 done
11941 done
11942 IFS=$as_save_IFS
11943
11944 fi ;;
11945 esac
11946 fi
11947 AR=$ac_cv_prog_AR
11948 if test -n "$AR"; then
11949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11950 printf '%s\n' "$AR" >&6; }
11951 else
11952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 printf '%s\n' "no" >&6; }
11954 fi
11955
11956
11957 test -n "$AR" && break
11958 done
11959 fi
11960 if test -z "$AR"; then
11961 ac_ct_AR=$AR
11962 for ac_prog in ar lib "link -lib"
11963 do
11964 # Extract the first word of "$ac_prog", so it can be a program name with args.
11965 set dummy $ac_prog; ac_word=$2
11966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 printf %s "checking for $ac_word... " >&6; }
11968 if test ${ac_cv_prog_ac_ct_AR+y}
11969 then :
11970 printf %s "(cached) " >&6
11971 else case e in #(
11972 e) if test -n "$ac_ct_AR"; then
11973 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11974 else
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11977 do
11978 IFS=$as_save_IFS
11979 case $as_dir in #(((
11980 '') as_dir=./ ;;
11981 */) ;;
11982 *) as_dir=$as_dir/ ;;
11983 esac
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11986 ac_cv_prog_ac_ct_AR="$ac_prog"
11987 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11988 break 2
11989 fi
11990 done
11991 done
11992 IFS=$as_save_IFS
11993
11994 fi ;;
11995 esac
11996 fi
11997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11998 if test -n "$ac_ct_AR"; then
11999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12000 printf '%s\n' "$ac_ct_AR" >&6; }
12001 else
12002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 printf '%s\n' "no" >&6; }
12004 fi
12005
12006
12007 test -n "$ac_ct_AR" && break
12008 done
12009
12010 if test "x$ac_ct_AR" = x; then
12011 AR="false"
12012 else
12013 case $cross_compiling:$ac_tool_warned in
12014 yes:)
12015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12016 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12017 ac_tool_warned=yes ;;
12018 esac
12019 AR=$ac_ct_AR
12020 fi
12021 fi
12022
12023 : ${AR=ar}
12024 : ${ARFLAGS=cr}
12025
12026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
12027 printf %s "checking the archiver ($AR) interface... " >&6; }
12028 if test ${am_cv_ar_interface+y}
12029 then :
12030 printf %s "(cached) " >&6
12031 else case e in #(
12032 e) ac_ext=c
12033 ac_cpp='$CPP $CPPFLAGS'
12034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
12038 am_cv_ar_interface=ar
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 int some_variable = 0;
12042 _ACEOF
12043 if ac_fn_c_try_compile "$LINENO"
12044 then :
12045 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
12046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
12047 (eval $am_ar_try) 2>&5
12048 ac_status=$?
12049 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12050 test $ac_status = 0; }
12051 if test "$ac_status" -eq 0; then
12052 am_cv_ar_interface=ar
12053 else
12054 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
12055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
12056 (eval $am_ar_try) 2>&5
12057 ac_status=$?
12058 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12059 test $ac_status = 0; }
12060 if test "$ac_status" -eq 0; then
12061 am_cv_ar_interface=lib
12062 else
12063 am_cv_ar_interface=unknown
12064 fi
12065 fi
12066 rm -f conftest.lib libconftest.a
12067
12068 fi
12069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12070 ac_ext=c
12071 ac_cpp='$CPP $CPPFLAGS'
12072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075 ;;
12076 esac
12077 fi
12078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
12079 printf '%s\n' "$am_cv_ar_interface" >&6; }
12080
12081 case $am_cv_ar_interface in
12082 ar)
12083 ;;
12084 lib)
12085 # Microsoft lib, so override with the ar-lib wrapper script.
12086 # FIXME: It is wrong to rewrite AR.
12087 # But if we don't then we get into trouble of one sort or another.
12088 # A longer-term fix would be to have automake use am__AR in this case,
12089 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
12090 # similar.
12091 AR="$am_aux_dir/ar-lib $AR"
12092 ;;
12093 unknown)
12094 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
12095 ;;
12096 esac
12097
12098 if test -n "$ac_tool_prefix"; then
12099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 printf %s "checking for $ac_word... " >&6; }
12103 if test ${ac_cv_prog_RANLIB+y}
12104 then :
12105 printf %s "(cached) " >&6
12106 else case e in #(
12107 e) if test -n "$RANLIB"; then
12108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113 IFS=$as_save_IFS
12114 case $as_dir in #(((
12115 '') as_dir=./ ;;
12116 */) ;;
12117 *) as_dir=$as_dir/ ;;
12118 esac
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12122 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12123 break 2
12124 fi
12125 done
12126 done
12127 IFS=$as_save_IFS
12128
12129 fi ;;
12130 esac
12131 fi
12132 RANLIB=$ac_cv_prog_RANLIB
12133 if test -n "$RANLIB"; then
12134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12135 printf '%s\n' "$RANLIB" >&6; }
12136 else
12137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 printf '%s\n' "no" >&6; }
12139 fi
12140
12141
12142 fi
12143 if test -z "$ac_cv_prog_RANLIB"; then
12144 ac_ct_RANLIB=$RANLIB
12145 # Extract the first word of "ranlib", so it can be a program name with args.
12146 set dummy ranlib; ac_word=$2
12147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 printf %s "checking for $ac_word... " >&6; }
12149 if test ${ac_cv_prog_ac_ct_RANLIB+y}
12150 then :
12151 printf %s "(cached) " >&6
12152 else case e in #(
12153 e) if test -n "$ac_ct_RANLIB"; then
12154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 case $as_dir in #(((
12161 '') as_dir=./ ;;
12162 */) ;;
12163 *) as_dir=$as_dir/ ;;
12164 esac
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_ac_ct_RANLIB="ranlib"
12168 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173 IFS=$as_save_IFS
12174
12175 fi ;;
12176 esac
12177 fi
12178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12179 if test -n "$ac_ct_RANLIB"; then
12180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12181 printf '%s\n' "$ac_ct_RANLIB" >&6; }
12182 else
12183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 printf '%s\n' "no" >&6; }
12185 fi
12186
12187 if test "x$ac_ct_RANLIB" = x; then
12188 RANLIB=":"
12189 else
12190 case $cross_compiling:$ac_tool_warned in
12191 yes:)
12192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12193 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12194 ac_tool_warned=yes ;;
12195 esac
12196 RANLIB=$ac_ct_RANLIB
12197 fi
12198 else
12199 RANLIB="$ac_cv_prog_RANLIB"
12200 fi
12201
12202
12203
12204
12205
12206
12207
12208
12209 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12210 if test -n "$ac_tool_prefix"; then
12211 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12212 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 printf %s "checking for $ac_word... " >&6; }
12215 if test ${ac_cv_path_PKG_CONFIG+y}
12216 then :
12217 printf %s "(cached) " >&6
12218 else case e in #(
12219 e) case $PKG_CONFIG in
12220 [\\/]* | ?:[\\/]*)
12221 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12222 ;;
12223 *)
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227 IFS=$as_save_IFS
12228 case $as_dir in #(((
12229 '') as_dir=./ ;;
12230 */) ;;
12231 *) as_dir=$as_dir/ ;;
12232 esac
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12235 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12236 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 ;;
12244 esac ;;
12245 esac
12246 fi
12247 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12248 if test -n "$PKG_CONFIG"; then
12249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12250 printf '%s\n' "$PKG_CONFIG" >&6; }
12251 else
12252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 printf '%s\n' "no" >&6; }
12254 fi
12255
12256
12257 fi
12258 if test -z "$ac_cv_path_PKG_CONFIG"; then
12259 ac_pt_PKG_CONFIG=$PKG_CONFIG
12260 # Extract the first word of "pkg-config", so it can be a program name with args.
12261 set dummy pkg-config; ac_word=$2
12262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 printf %s "checking for $ac_word... " >&6; }
12264 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12265 then :
12266 printf %s "(cached) " >&6
12267 else case e in #(
12268 e) case $ac_pt_PKG_CONFIG in
12269 [\\/]* | ?:[\\/]*)
12270 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12271 ;;
12272 *)
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276 IFS=$as_save_IFS
12277 case $as_dir in #(((
12278 '') as_dir=./ ;;
12279 */) ;;
12280 *) as_dir=$as_dir/ ;;
12281 esac
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12284 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12285 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12286 break 2
12287 fi
12288 done
12289 done
12290 IFS=$as_save_IFS
12291
12292 ;;
12293 esac ;;
12294 esac
12295 fi
12296 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12297 if test -n "$ac_pt_PKG_CONFIG"; then
12298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12299 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
12300 else
12301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 printf '%s\n' "no" >&6; }
12303 fi
12304
12305 if test "x$ac_pt_PKG_CONFIG" = x; then
12306 PKG_CONFIG=""
12307 else
12308 case $cross_compiling:$ac_tool_warned in
12309 yes:)
12310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312 ac_tool_warned=yes ;;
12313 esac
12314 PKG_CONFIG=$ac_pt_PKG_CONFIG
12315 fi
12316 else
12317 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12318 fi
12319
12320 fi
12321 if test -n "$PKG_CONFIG"; then
12322 _pkg_min_version=0.9.0
12323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12324 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12325 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12327 printf '%s\n' "yes" >&6; }
12328 else
12329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 printf '%s\n' "no" >&6; }
12331 PKG_CONFIG=""
12332 fi
12333 fi
12334
12335
12336 pkg_failed=no
12337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5
12338 printf %s "checking for PKGDEPS... " >&6; }
12339
12340 if test -n "$PKGDEPS_CFLAGS"; then
12341 pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS"
12342 elif test -n "$PKG_CONFIG"; then
12343 if test -n "$PKG_CONFIG" && \
12344 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
12345 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
12346 ac_status=$?
12347 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12348 test $ac_status = 0; }; then
12349 pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
12350 test "x$?" != "x0" && pkg_failed=yes
12351 else
12352 pkg_failed=yes
12353 fi
12354 else
12355 pkg_failed=untried
12356 fi
12357 if test -n "$PKGDEPS_LIBS"; then
12358 pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS"
12359 elif test -n "$PKG_CONFIG"; then
12360 if test -n "$PKG_CONFIG" && \
12361 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
12362 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
12363 ac_status=$?
12364 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12365 test $ac_status = 0; }; then
12366 pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
12367 test "x$?" != "x0" && pkg_failed=yes
12368 else
12369 pkg_failed=yes
12370 fi
12371 else
12372 pkg_failed=untried
12373 fi
12374
12375
12376
12377 if test $pkg_failed = yes; then
12378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 printf '%s\n' "no" >&6; }
12380
12381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12382 _pkg_short_errors_supported=yes
12383 else
12384 _pkg_short_errors_supported=no
12385 fi
12386 if test $_pkg_short_errors_supported = yes; then
12387 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
12388 else
12389 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
12390 fi
12391 # Put the nasty error message in config.log where it belongs
12392 echo "$PKGDEPS_PKG_ERRORS" >&5
12393
12394 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met:
12395
12396 $PKGDEPS_PKG_ERRORS
12397
12398 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12399 installed software in a non-standard prefix.
12400
12401 Alternatively, you may set the environment variables PKGDEPS_CFLAGS
12402 and PKGDEPS_LIBS to avoid the need to call pkg-config.
12403 See the pkg-config man page for more details." "$LINENO" 5
12404 elif test $pkg_failed = untried; then
12405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 printf '%s\n' "no" >&6; }
12407 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12408 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12409 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12410 is in your PATH or set the PKG_CONFIG environment variable to the full
12411 path to pkg-config.
12412
12413 Alternatively, you may set the environment variables PKGDEPS_CFLAGS
12414 and PKGDEPS_LIBS to avoid the need to call pkg-config.
12415 See the pkg-config man page for more details.
12416
12417 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12418 See 'config.log' for more details" "$LINENO" 5; }
12419 else
12420 PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS
12421 PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS
12422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12423 printf '%s\n' "yes" >&6; }
12424
12425 fi
12426
12427
12428 # Check whether --with-lispdir was given.
12429 if test ${with_lispdir+y}
12430 then :
12431 withval=$with_lispdir; lispdir="$withval"
12432 else case e in #(
12433 e) lispdir=${libdir}/X11/xedit/lisp ;;
12434 esac
12435 fi
12436
12437 LISPDIR=$lispdir
12438
12439
12440 ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
12441 if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes
12442 then :
12443 ac_have_decl=1
12444 else case e in #(
12445 e) ac_have_decl=0 ;;
12446 esac
12447 fi
12448 printf '%s\n' "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h
12449
12450 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12451 if test "x$ac_cv_func_getpagesize" = xyes
12452 then :
12453 printf '%s\n' "#define HAVE_GETPAGESIZE 1" >>confdefs.h
12454
12455 fi
12456
12457
12458 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
12459 if test "x$ac_cv_func_realpath" = xyes
12460 then :
12461
12462 else case e in #(
12463 e) have_realpath=yes ;;
12464 esac
12465 fi
12466
12467 if test x$have_realpath = xyes; then
12468 NEED_REALPATH_TRUE=
12469 NEED_REALPATH_FALSE='#'
12470 else
12471 NEED_REALPATH_TRUE='#'
12472 NEED_REALPATH_FALSE=
12473 fi
12474
12475 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
12476 if test "x$ac_cv_func_unsetenv" = xyes
12477 then :
12478
12479 else case e in #(
12480 e) have_unsetenv=yes ;;
12481 esac
12482 fi
12483
12484 if test x$have_unsetenv = xyes; then
12485 NEED_UNSETENV_TRUE=
12486 NEED_UNSETENV_FALSE='#'
12487 else
12488 NEED_UNSETENV_TRUE='#'
12489 NEED_UNSETENV_FALSE=
12490 fi
12491
12492
12493
12494 pkg_failed=no
12495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
12496 printf %s "checking for APPDEFS... " >&6; }
12497
12498 if test -n "$APPDEFS_CFLAGS"; then
12499 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
12500 elif test -n "$PKG_CONFIG"; then
12501 if test -n "$PKG_CONFIG" && \
12502 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12503 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12504 ac_status=$?
12505 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12506 test $ac_status = 0; }; then
12507 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
12508 test "x$?" != "x0" && pkg_failed=yes
12509 else
12510 pkg_failed=yes
12511 fi
12512 else
12513 pkg_failed=untried
12514 fi
12515 if test -n "$APPDEFS_LIBS"; then
12516 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
12517 elif test -n "$PKG_CONFIG"; then
12518 if test -n "$PKG_CONFIG" && \
12519 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12520 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12521 ac_status=$?
12522 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523 test $ac_status = 0; }; then
12524 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
12525 test "x$?" != "x0" && pkg_failed=yes
12526 else
12527 pkg_failed=yes
12528 fi
12529 else
12530 pkg_failed=untried
12531 fi
12532
12533
12534
12535 if test $pkg_failed = yes; then
12536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 printf '%s\n' "no" >&6; }
12538
12539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12540 _pkg_short_errors_supported=yes
12541 else
12542 _pkg_short_errors_supported=no
12543 fi
12544 if test $_pkg_short_errors_supported = yes; then
12545 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
12546 else
12547 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
12548 fi
12549 # Put the nasty error message in config.log where it belongs
12550 echo "$APPDEFS_PKG_ERRORS" >&5
12551
12552 as_fn_error $? "Package requirements (xt) were not met:
12553
12554 $APPDEFS_PKG_ERRORS
12555
12556 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12557 installed software in a non-standard prefix.
12558
12559 Alternatively, you may set the environment variables APPDEFS_CFLAGS
12560 and APPDEFS_LIBS to avoid the need to call pkg-config.
12561 See the pkg-config man page for more details." "$LINENO" 5
12562 elif test $pkg_failed = untried; then
12563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 printf '%s\n' "no" >&6; }
12565 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12566 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12567 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12568 is in your PATH or set the PKG_CONFIG environment variable to the full
12569 path to pkg-config.
12570
12571 Alternatively, you may set the environment variables APPDEFS_CFLAGS
12572 and APPDEFS_LIBS to avoid the need to call pkg-config.
12573 See the pkg-config man page for more details.
12574
12575 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12576 See 'config.log' for more details" "$LINENO" 5; }
12577 else
12578 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
12579 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
12580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581 printf '%s\n' "yes" >&6; }
12582
12583 fi
12584 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
12585
12586 # Check whether --with-appdefaultdir was given.
12587 if test ${with_appdefaultdir+y}
12588 then :
12589 withval=$with_appdefaultdir; appdefaultdir="$withval"
12590 else case e in #(
12591 e) appdefaultdir="${xt_appdefaultdir}" ;;
12592 esac
12593 fi
12594
12595
12596
12597
12598 ac_config_files="$ac_config_files Makefile man/Makefile"
12599
12600 cat >confcache <<\_ACEOF
12601 # This file is a shell script that caches the results of configure
12602 # tests run on this system so they can be shared between configure
12603 # scripts and configure runs, see configure's option --config-cache.
12604 # It is not useful on other systems. If it contains results you don't
12605 # want to keep, you may remove or edit it.
12606 #
12607 # config.status only pays attention to the cache file if you give it
12608 # the --recheck option to rerun configure.
12609 #
12610 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12611 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12612 # following values.
12613
12614 _ACEOF
12615
12616 ac_cache_dump |
12617 sed '
12618 /^ac_cv_env_/b end
12619 t clear
12620 :clear
12621 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12622 t end
12623 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12624 :end' >>confcache
12625 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12626 if test -w "$cache_file"; then
12627 if test "x$cache_file" != "x/dev/null"; then
12628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12629 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12630 if test ! -f "$cache_file" || test -h "$cache_file"; then
12631 cat confcache >"$cache_file"
12632 else
12633 case $cache_file in #(
12634 */* | ?:*)
12635 mv -f confcache "$cache_file"$$ &&
12636 mv -f "$cache_file"$$ "$cache_file" ;; #(
12637 *)
12638 mv -f confcache "$cache_file" ;;
12639 esac
12640 fi
12641 fi
12642 else
12643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12644 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12645 fi
12646 fi
12647 rm -f confcache
12648
12649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12650 # Let make expand exec_prefix.
12651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12652
12653 DEFS=-DHAVE_CONFIG_H
12654
12655 ac_libobjs=
12656 ac_ltlibobjs=
12657 U=
12658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12659 # 1. Remove the extension, and $U if already installed.
12660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12661 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12663 # will be set to the directory where LIBOBJS objects are built.
12664 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12665 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12666 done
12667 LIBOBJS=$ac_libobjs
12668
12669 LTLIBOBJS=$ac_ltlibobjs
12670
12671
12672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12673 printf %s "checking that generated files are newer than configure... " >&6; }
12674 if test -n "$am_sleep_pid"; then
12675 # Hide warnings about reused PIDs.
12676 wait $am_sleep_pid 2>/dev/null
12677 fi
12678 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12679 printf '%s\n' "done" >&6; }
12680 case $enable_silent_rules in # (((
12681 yes) AM_DEFAULT_VERBOSITY=0;;
12682 no) AM_DEFAULT_VERBOSITY=1;;
12683 esac
12684 if test $am_cv_make_support_nested_variables = yes; then
12685 AM_V='$(V)'
12686 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12687 else
12688 AM_V=$AM_DEFAULT_VERBOSITY
12689 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12690 fi
12691
12692 if test -n "$EXEEXT"; then
12693 am__EXEEXT_TRUE=
12694 am__EXEEXT_FALSE='#'
12695 else
12696 am__EXEEXT_TRUE='#'
12697 am__EXEEXT_FALSE=
12698 fi
12699
12700 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12701 as_fn_error $? "conditional \"AMDEP\" was never defined.
12702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12703 fi
12704 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12707 fi
12708 if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then
12709 as_fn_error $? "conditional \"NEED_REALPATH\" was never defined.
12710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12711 fi
12712 if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then
12713 as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined.
12714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12715 fi
12716
12717 : "${CONFIG_STATUS=./config.status}"
12718 case $CONFIG_STATUS in #(
12719 -*) :
12720 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12721 */*) :
12722 ;; #(
12723 *) :
12724 CONFIG_STATUS=./$CONFIG_STATUS ;;
12725 esac
12726
12727 ac_write_fail=0
12728 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12730 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12731 as_write_fail=0
12732 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12733 #! $SHELL
12734 # Generated by $as_me.
12735 # Run this file to recreate the current configuration.
12736 # Compiler output produced by configure, useful for debugging
12737 # configure, is in config.log if it exists.
12738
12739 debug=false
12740 ac_cs_recheck=false
12741 ac_cs_silent=false
12742
12743 SHELL=\${CONFIG_SHELL-$SHELL}
12744 export SHELL
12745 _ASEOF
12746 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12747 ## -------------------- ##
12748 ## M4sh Initialization. ##
12749 ## -------------------- ##
12750
12751 # Be more Bourne compatible
12752 DUALCASE=1; export DUALCASE # for MKS sh
12753 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12754 then :
12755 emulate sh
12756 NULLCMD=:
12757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12758 # contradicts POSIX and common usage. Disable this.
12759 alias -g '${1+"$@"}'='"$@"'
12760 setopt NO_GLOB_SUBST
12761 else case e in #(
12762 e) case `(set -o) 2>/dev/null` in #(
12763 *posix*) :
12764 set -o posix ;; #(
12765 *) :
12766 ;;
12767 esac ;;
12768 esac
12769 fi
12770
12771
12772
12773 # Reset variables that may have inherited troublesome values from
12774 # the environment.
12775
12776 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12777 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12778 # side effect of setting IFS to empty, thus disabling word splitting.)
12779 # Quoting is to prevent editors from complaining about space-tab.
12780 as_nl='
12781 '
12782 export as_nl
12783 IFS=" "" $as_nl"
12784
12785 PS1='$ '
12786 PS2='> '
12787 PS4='+ '
12788
12789 # Ensure predictable behavior from utilities with locale-dependent output.
12790 LC_ALL=C
12791 export LC_ALL
12792 LANGUAGE=C
12793 export LANGUAGE
12794
12795 # We cannot yet rely on "unset" to work, but we need these variables
12796 # to be unset--not just set to an empty or harmless value--now, to
12797 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12798 # also avoids known problems related to "unset" and subshell syntax
12799 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12800 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12801 do eval test \${$as_var+y} \
12802 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12803 done
12804
12805 # Ensure that fds 0, 1, and 2 are open.
12806 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12807 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12808 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12809
12810 # The user is always right.
12811 if ${PATH_SEPARATOR+false} :; then
12812 PATH_SEPARATOR=:
12813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12814 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12815 PATH_SEPARATOR=';'
12816 }
12817 fi
12818
12819
12820 # Find who we are. Look in the path if we contain no directory separator.
12821 as_myself=
12822 case $0 in #((
12823 *[\\/]* ) as_myself=$0 ;;
12824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827 IFS=$as_save_IFS
12828 case $as_dir in #(((
12829 '') as_dir=./ ;;
12830 */) ;;
12831 *) as_dir=$as_dir/ ;;
12832 esac
12833 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12834 done
12835 IFS=$as_save_IFS
12836
12837 ;;
12838 esac
12839 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12840 # in which case we are not to be found in the path.
12841 if test "x$as_myself" = x; then
12842 as_myself=$0
12843 fi
12844 if test ! -f "$as_myself"; then
12845 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12846 exit 1
12847 fi
12848
12849
12850
12851 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12852 # ----------------------------------------
12853 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12854 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12855 # script with STATUS, using 1 if that was 0.
12856 as_fn_error ()
12857 {
12858 as_status=$1; test $as_status -eq 0 && as_status=1
12859 if test "$4"; then
12860 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12861 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12862 fi
12863 printf '%s\n' "$as_me: error: $2" >&2
12864 as_fn_exit $as_status
12865 } # as_fn_error
12866
12867
12868 # as_fn_set_status STATUS
12869 # -----------------------
12870 # Set $? to STATUS, without forking.
12871 as_fn_set_status ()
12872 {
12873 return $1
12874 } # as_fn_set_status
12875
12876 # as_fn_exit STATUS
12877 # -----------------
12878 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12879 as_fn_exit ()
12880 {
12881 set +e
12882 as_fn_set_status $1
12883 exit $1
12884 } # as_fn_exit
12885
12886 # as_fn_unset VAR
12887 # ---------------
12888 # Portably unset VAR.
12889 as_fn_unset ()
12890 {
12891 { eval $1=; unset $1;}
12892 }
12893 as_unset=as_fn_unset
12894
12895 # as_fn_append VAR VALUE
12896 # ----------------------
12897 # Append the text in VALUE to the end of the definition contained in VAR. Take
12898 # advantage of any shell optimizations that allow amortized linear growth over
12899 # repeated appends, instead of the typical quadratic growth present in naive
12900 # implementations.
12901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12902 then :
12903 eval 'as_fn_append ()
12904 {
12905 eval $1+=\$2
12906 }'
12907 else case e in #(
12908 e) as_fn_append ()
12909 {
12910 eval $1=\$$1\$2
12911 } ;;
12912 esac
12913 fi # as_fn_append
12914
12915 # as_fn_arith ARG...
12916 # ------------------
12917 # Perform arithmetic evaluation on the ARGs, and store the result in the
12918 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12919 # must be portable across $(()) and expr.
12920 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12921 then :
12922 eval 'as_fn_arith ()
12923 {
12924 as_val=$(( $* ))
12925 }'
12926 else case e in #(
12927 e) as_fn_arith ()
12928 {
12929 as_val=`expr "$@" || test $? -eq 1`
12930 } ;;
12931 esac
12932 fi # as_fn_arith
12933
12934
12935 if expr a : '\(a\)' >/dev/null 2>&1 &&
12936 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12937 as_expr=expr
12938 else
12939 as_expr=false
12940 fi
12941
12942 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12943 as_basename=basename
12944 else
12945 as_basename=false
12946 fi
12947
12948 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12949 as_dirname=dirname
12950 else
12951 as_dirname=false
12952 fi
12953
12954 as_me=`$as_basename -- "$0" ||
12955 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12956 X"$0" : 'X\(//\)$' \| \
12957 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12958 printf '%s\n' X/"$0" |
12959 sed '/^.*\/\([^/][^/]*\)\/*$/{
12960 s//\1/
12961 q
12962 }
12963 /^X\/\(\/\/\)$/{
12964 s//\1/
12965 q
12966 }
12967 /^X\/\(\/\).*/{
12968 s//\1/
12969 q
12970 }
12971 s/.*/./; q'`
12972
12973 # Avoid depending upon Character Ranges.
12974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12977 as_cr_digits='0123456789'
12978 as_cr_alnum=$as_cr_Letters$as_cr_digits
12979
12980 rm -f conf$$ conf$$.exe conf$$.file
12981 if test -d conf$$.dir; then
12982 rm -f conf$$.dir/conf$$.file
12983 else
12984 rm -f conf$$.dir
12985 mkdir conf$$.dir 2>/dev/null
12986 fi
12987 if (echo >conf$$.file) 2>/dev/null; then
12988 if ln -s conf$$.file conf$$ 2>/dev/null; then
12989 as_ln_s='ln -s'
12990 # ... but there are two gotchas:
12991 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12992 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12993 # In both cases, we have to default to 'cp -pR'.
12994 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12995 as_ln_s='cp -pR'
12996 elif ln conf$$.file conf$$ 2>/dev/null; then
12997 as_ln_s=ln
12998 else
12999 as_ln_s='cp -pR'
13000 fi
13001 else
13002 as_ln_s='cp -pR'
13003 fi
13004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13005 rmdir conf$$.dir 2>/dev/null
13006
13007
13008 # as_fn_mkdir_p
13009 # -------------
13010 # Create "$as_dir" as a directory, including parents if necessary.
13011 as_fn_mkdir_p ()
13012 {
13013
13014 case $as_dir in #(
13015 -*) as_dir=./$as_dir;;
13016 esac
13017 test -d "$as_dir" || eval $as_mkdir_p || {
13018 as_dirs=
13019 while :; do
13020 case $as_dir in #(
13021 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13022 *) as_qdir=$as_dir;;
13023 esac
13024 as_dirs="'$as_qdir' $as_dirs"
13025 as_dir=`$as_dirname -- "$as_dir" ||
13026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13027 X"$as_dir" : 'X\(//\)[^/]' \| \
13028 X"$as_dir" : 'X\(//\)$' \| \
13029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13030 printf '%s\n' X"$as_dir" |
13031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13032 s//\1/
13033 q
13034 }
13035 /^X\(\/\/\)[^/].*/{
13036 s//\1/
13037 q
13038 }
13039 /^X\(\/\/\)$/{
13040 s//\1/
13041 q
13042 }
13043 /^X\(\/\).*/{
13044 s//\1/
13045 q
13046 }
13047 s/.*/./; q'`
13048 test -d "$as_dir" && break
13049 done
13050 test -z "$as_dirs" || eval "mkdir $as_dirs"
13051 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13052
13053
13054 } # as_fn_mkdir_p
13055 if mkdir -p . 2>/dev/null; then
13056 as_mkdir_p='mkdir -p "$as_dir"'
13057 else
13058 test -d ./-p && rmdir ./-p
13059 as_mkdir_p=false
13060 fi
13061
13062
13063 # as_fn_executable_p FILE
13064 # -----------------------
13065 # Test if FILE is an executable regular file.
13066 as_fn_executable_p ()
13067 {
13068 test -f "$1" && test -x "$1"
13069 } # as_fn_executable_p
13070 as_test_x='test -x'
13071 as_executable_p=as_fn_executable_p
13072
13073 # Sed expression to map a string onto a valid CPP name.
13074 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13075 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13076
13077 # Sed expression to map a string onto a valid variable name.
13078 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13079 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13080
13081
13082 exec 6>&1
13083 ## ------------------------------------- ##
13084 ## Main body of "$CONFIG_STATUS" script. ##
13085 ## ------------------------------------- ##
13086 _ASEOF
13087 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
13088
13089 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13090 # Save the log message, to keep $0 and so on meaningful, and to
13091 # report actual input values of CONFIG_FILES etc. instead of their
13092 # values after options handling.
13093 ac_log="
13094 This file was extended by xedit $as_me 1.2.5, which was
13095 generated by GNU Autoconf 2.73. Invocation command line was
13096
13097 CONFIG_FILES = $CONFIG_FILES
13098 CONFIG_HEADERS = $CONFIG_HEADERS
13099 CONFIG_LINKS = $CONFIG_LINKS
13100 CONFIG_COMMANDS = $CONFIG_COMMANDS
13101 $ $0 $@
13102
13103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13104 "
13105
13106 _ACEOF
13107
13108 case $ac_config_files in *"
13109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13110 esac
13111
13112 case $ac_config_headers in *"
13113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13114 esac
13115
13116
13117 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13118 # Files that config.status was made for.
13119 config_files="$ac_config_files"
13120 config_headers="$ac_config_headers"
13121 config_commands="$ac_config_commands"
13122
13123 _ACEOF
13124
13125 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13126 ac_cs_usage="\
13127 '$as_me' instantiates files and other configuration actions
13128 from templates according to the current configuration. Unless the files
13129 and actions are specified as TAGs, all are instantiated by default.
13130
13131 Usage: $0 [OPTION]... [TAG]...
13132
13133 -h, --help print this help, then exit
13134 -V, --version print version number and configuration settings, then exit
13135 --config print configuration, then exit
13136 -q, --quiet, --silent
13137 do not print progress messages
13138 -d, --debug don't remove temporary files
13139 --recheck update $as_me by reconfiguring in the same conditions
13140 --file=FILE[:TEMPLATE]
13141 instantiate the configuration file FILE
13142 --header=FILE[:TEMPLATE]
13143 instantiate the configuration header FILE
13144
13145 Configuration files:
13146 $config_files
13147
13148 Configuration headers:
13149 $config_headers
13150
13151 Configuration commands:
13152 $config_commands
13153
13154 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/-/issues>."
13155
13156 _ACEOF
13157 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
13158 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13159 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13160 ac_cs_config='$ac_cs_config_escaped'
13161 ac_cs_version="\\
13162 xedit config.status 1.2.5
13163 configured by $0, generated by GNU Autoconf 2.73,
13164 with options \\"\$ac_cs_config\\"
13165
13166 Copyright (C) 2026 Free Software Foundation, Inc.
13167 This config.status script is free software; the Free Software Foundation
13168 gives unlimited permission to copy, distribute and modify it."
13169
13170 ac_pwd='$ac_pwd'
13171 srcdir='$srcdir'
13172 INSTALL='$INSTALL'
13173 MKDIR_P='$MKDIR_P'
13174 AWK='$AWK'
13175 test -n "\$AWK" || {
13176 awk '' </dev/null ||
13177 as_fn_error \$? "try installing gawk"
13178 AWK=awk
13179 }
13180 _ACEOF
13181
13182 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13183 # The default lists apply if the user does not specify any file.
13184 ac_need_defaults=:
13185 while test $# != 0
13186 do
13187 case $1 in
13188 --*=?*)
13189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13191 ac_shift=:
13192 ;;
13193 --*=)
13194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13195 ac_optarg=
13196 ac_shift=:
13197 ;;
13198 *)
13199 ac_option=$1
13200 ac_optarg=$2
13201 ac_shift=shift
13202 ;;
13203 esac
13204
13205 case $ac_option in
13206 # Handling of the options.
13207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13208 ac_cs_recheck=: ;;
13209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13210 printf '%s\n' "$ac_cs_version"; exit ;;
13211 --config | --confi | --conf | --con | --co | --c )
13212 printf '%s\n' "$ac_cs_config"; exit ;;
13213 --debug | --debu | --deb | --de | --d | -d )
13214 debug=: ;;
13215 --file | --fil | --fi | --f )
13216 $ac_shift
13217 case $ac_optarg in
13218 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13219 '') as_fn_error $? "missing file argument" ;;
13220 esac
13221 as_fn_append CONFIG_FILES " '$ac_optarg'"
13222 ac_need_defaults=false;;
13223 --header | --heade | --head | --hea )
13224 $ac_shift
13225 case $ac_optarg in
13226 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13227 esac
13228 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13229 ac_need_defaults=false;;
13230 --he | --h)
13231 # Conflict between --help and --header
13232 as_fn_error $? "ambiguous option: '$1'
13233 Try '$0 --help' for more information.";;
13234 --help | --hel | -h )
13235 printf '%s\n' "$ac_cs_usage"; exit ;;
13236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13238 ac_cs_silent=: ;;
13239
13240 # This is an error.
13241 -*) as_fn_error $? "unrecognized option: '$1'
13242 Try '$0 --help' for more information." ;;
13243
13244 *) as_fn_append ac_config_targets " $1"
13245 ac_need_defaults=false ;;
13246
13247 esac
13248 shift
13249 done
13250
13251 ac_configure_extra_args=
13252
13253 if $ac_cs_silent; then
13254 exec 6>/dev/null
13255 ac_configure_extra_args="$ac_configure_extra_args --silent"
13256 fi
13257
13258 _ACEOF
13259 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13260 if \$ac_cs_recheck; then
13261 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13262 shift
13263 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
13264 CONFIG_SHELL='$SHELL'
13265 export CONFIG_SHELL
13266 exec "\$@"
13267 fi
13268
13269 _ACEOF
13270 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13271 exec 5>>config.log
13272 {
13273 echo
13274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13275 ## Running $as_me. ##
13276 _ASBOX
13277 printf '%s\n' "$ac_log"
13278 } >&5
13279
13280 _ACEOF
13281 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13282 #
13283 # INIT-COMMANDS
13284 #
13285 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13286
13287 _ACEOF
13288
13289 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13290
13291 # Handling of arguments.
13292 for ac_config_target in $ac_config_targets
13293 do
13294 case $ac_config_target in
13295 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13296 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13297 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13298 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13299
13300 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13301 esac
13302 done
13303
13304
13305 # If the user did not use the arguments to specify the items to instantiate,
13306 # then the envvar interface is used. Set only those that are not.
13307 # We use the long form for the default assignment because of an extremely
13308 # bizarre bug on SunOS 4.1.3.
13309 if $ac_need_defaults; then
13310 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13311 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13312 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13313 fi
13314
13315 # Have a temporary directory for convenience. Make it in the build tree
13316 # simply because there is no reason against having it here, and in addition,
13317 # creating and moving files from /tmp can sometimes cause problems.
13318 # Hook for its removal unless debugging.
13319 # Note that there is a small window in which the directory will not be cleaned:
13320 # after its creation but before its name has been assigned to '$tmp'.
13321 $debug ||
13322 {
13323 tmp= ac_tmp=
13324 trap 'exit_status=$?
13325 : "${ac_tmp:=$tmp}"
13326 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13327 ' 0
13328 trap 'as_fn_exit 1' 1 2 13 15
13329 }
13330 # Create a (secure) tmp directory for tmp files.
13331
13332 {
13333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13334 test -d "$tmp"
13335 } ||
13336 {
13337 tmp=./conf$$-$RANDOM
13338 (umask 077 && mkdir "$tmp")
13339 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13340 ac_tmp=$tmp
13341
13342 # Set up the scripts for CONFIG_FILES section.
13343 # No need to generate them if there are no CONFIG_FILES.
13344 # This happens for instance with './config.status config.h'.
13345 if test -n "$CONFIG_FILES"; then
13346
13347
13348 ac_cr=`echo X | tr X '\015'`
13349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13350 # But we know of no other shell where ac_cr would be empty at this
13351 # point, so we can use a bashism as a fallback.
13352 if test "x$ac_cr" = x; then
13353 eval ac_cr=\$\'\\r\'
13354 fi
13355 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13357 ac_cs_awk_cr='\\r'
13358 else
13359 ac_cs_awk_cr=$ac_cr
13360 fi
13361
13362 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13363 _ACEOF
13364
13365
13366 {
13367 echo "cat >conf$$subs.awk <<_ACEOF" &&
13368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13369 echo "_ACEOF"
13370 } >conf$$subs.sh ||
13371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13372 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
13373 ac_delim='%!_!# '
13374 for ac_last_try in false false false false false :; do
13375 . ./conf$$subs.sh ||
13376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13377
13378 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
13379 if test $ac_delim_n = $ac_delim_num; then
13380 break
13381 elif $ac_last_try; then
13382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13383 else
13384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13385 fi
13386 done
13387 rm -f conf$$subs.sh
13388
13389 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13390 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13391 _ACEOF
13392 sed -n '
13393 h
13394 s/^/S["/; s/!.*/"]=/
13395 p
13396 g
13397 s/^[^!]*!//
13398 :repl
13399 t repl
13400 s/'"$ac_delim"'$//
13401 t delim
13402 :nl
13403 h
13404 s/\(.\{148\}\)..*/\1/
13405 t more1
13406 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13407 p
13408 n
13409 b repl
13410 :more1
13411 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13412 p
13413 g
13414 s/.\{148\}//
13415 t nl
13416 :delim
13417 h
13418 s/\(.\{148\}\)..*/\1/
13419 t more2
13420 s/["\\]/\\&/g; s/^/"/; s/$/"/
13421 p
13422 b
13423 :more2
13424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13425 p
13426 g
13427 s/.\{148\}//
13428 t delim
13429 ' <conf$$subs.awk | sed '
13430 /^[^""]/{
13431 N
13432 s/\n//
13433 }
13434 ' >>"$CONFIG_STATUS" || ac_write_fail=1
13435 rm -f conf$$subs.awk
13436 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13437 _ACAWK
13438 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13439 for (key in S) S_is_set[key] = 1
13440 FS = ""
13441
13442 }
13443 {
13444 line = $ 0
13445 nfields = split(line, field, "@")
13446 substed = 0
13447 len = length(field[1])
13448 for (i = 2; i < nfields; i++) {
13449 key = field[i]
13450 keylen = length(key)
13451 if (S_is_set[key]) {
13452 value = S[key]
13453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13454 len += length(value) + length(field[++i])
13455 substed = 1
13456 } else
13457 len += 1 + keylen
13458 }
13459
13460 print line
13461 }
13462
13463 _ACAWK
13464 _ACEOF
13465 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13466 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13467 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13468 else
13469 cat
13470 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13471 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13472 _ACEOF
13473
13474 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13475 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13476 # trailing colons and then remove the whole line if VPATH becomes empty
13477 # (actually we leave an empty line to preserve line numbers).
13478 if test "x$srcdir" = x.; then
13479 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13480 h
13481 s///
13482 s/^/:/
13483 s/[ ]*$/:/
13484 s/:\$(srcdir):/:/g
13485 s/:\${srcdir}:/:/g
13486 s/:@srcdir@:/:/g
13487 s/^:*//
13488 s/:*$//
13489 x
13490 s/\(=[ ]*\).*/\1/
13491 G
13492 s/\n//
13493 s/^[^=]*=[ ]*$//
13494 }'
13495 fi
13496
13497 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13498 fi # test -n "$CONFIG_FILES"
13499
13500 # Set up the scripts for CONFIG_HEADERS section.
13501 # No need to generate them if there are no CONFIG_HEADERS.
13502 # This happens for instance with './config.status Makefile'.
13503 if test -n "$CONFIG_HEADERS"; then
13504 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13505 BEGIN {
13506 _ACEOF
13507
13508 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13509 # here-document in config.status, that substitutes the proper values into
13510 # config.h.in to produce config.h.
13511
13512 # Create a delimiter string that does not exist in confdefs.h, to ease
13513 # handling of long lines.
13514 ac_delim='%!_!# '
13515 for ac_last_try in false false :; do
13516 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13517 if test -z "$ac_tt"; then
13518 break
13519 elif $ac_last_try; then
13520 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13521 else
13522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13523 fi
13524 done
13525
13526 # For the awk script, D is an array of macro values keyed by name,
13527 # likewise P contains macro parameters if any. Preserve backslash
13528 # newline sequences.
13529
13530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13531 sed -n '
13532 s/.\{148\}/&'"$ac_delim"'/g
13533 t rset
13534 :rset
13535 s/^[ ]*#[ ]*define[ ][ ]*/ /
13536 t def
13537 d
13538 :def
13539 s/\\$//
13540 t bsnl
13541 s/["\\]/\\&/g
13542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13543 D["\1"]=" \3"/p
13544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13545 d
13546 :bsnl
13547 s/["\\]/\\&/g
13548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13549 D["\1"]=" \3\\\\\\n"\\/p
13550 t cont
13551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13552 t cont
13553 d
13554 :cont
13555 n
13556 s/.\{148\}/&'"$ac_delim"'/g
13557 t clear
13558 :clear
13559 s/\\$//
13560 t bsnlc
13561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13562 d
13563 :bsnlc
13564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13565 b cont
13566 ' <confdefs.h | sed '
13567 s/'"$ac_delim"'/"\\\
13568 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
13569
13570 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13571 for (key in D) D_is_set[key] = 1
13572 FS = ""
13573 }
13574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13575 line = \$ 0
13576 split(line, arg, " ")
13577 if (arg[1] == "#") {
13578 defundef = arg[2]
13579 mac1 = arg[3]
13580 } else {
13581 defundef = substr(arg[1], 2)
13582 mac1 = arg[2]
13583 }
13584 split(mac1, mac2, "(") #)
13585 macro = mac2[1]
13586 prefix = substr(line, 1, index(line, defundef) - 1)
13587 if (D_is_set[macro]) {
13588 suffix = P[macro] D[macro]
13589 while (suffix ~ /[\t ]$/) {
13590 suffix = substr(suffix, 1, length(suffix) - 1)
13591 }
13592 # Preserve the white space surrounding the "#".
13593 print prefix "define", macro suffix
13594 next
13595 } else {
13596 # Replace #undef with comments. This is necessary, for example,
13597 # in the case of _POSIX_SOURCE, which is predefined and required
13598 # on some systems where configure will not decide to define it.
13599 if (defundef == "undef") {
13600 print "/*", prefix defundef, macro, "*/"
13601 next
13602 }
13603 }
13604 }
13605 { print }
13606 _ACAWK
13607 _ACEOF
13608 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13609 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13610 fi # test -n "$CONFIG_HEADERS"
13611
13612
13613 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13614 shift
13615 for ac_tag
13616 do
13617 case $ac_tag in
13618 :[FHLC]) ac_mode=$ac_tag; continue;;
13619 esac
13620 case $ac_mode$ac_tag in
13621 :[FHL]*:*);;
13622 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13623 :[FH]-) ac_tag=-:-;;
13624 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13625 esac
13626 ac_save_IFS=$IFS
13627 IFS=:
13628 set x $ac_tag
13629 IFS=$ac_save_IFS
13630 shift
13631 ac_file=$1
13632 shift
13633
13634 case $ac_mode in
13635 :L) ac_source=$1;;
13636 :[FH])
13637 ac_file_inputs=
13638 for ac_f
13639 do
13640 case $ac_f in
13641 -) ac_f="$ac_tmp/stdin";;
13642 *) # Look for the file first in the build tree, then in the source tree
13643 # (if the path is not absolute). The absolute path cannot be DOS-style,
13644 # because $ac_f cannot contain ':'.
13645 test -f "$ac_f" ||
13646 case $ac_f in
13647 [\\/$]*) false;;
13648 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13649 esac ||
13650 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13651 esac
13652 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13653 as_fn_append ac_file_inputs " '$ac_f'"
13654 done
13655
13656 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13657 # use $as_me), people would be surprised to read:
13658 # /* config.h. Generated by config.status. */
13659 configure_input='Generated from '`
13660 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13661 `' by configure.'
13662 if test x"$ac_file" != x-; then
13663 configure_input="$ac_file. $configure_input"
13664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13665 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13666 fi
13667 # Neutralize special characters interpreted by sed in replacement strings.
13668 case $configure_input in #(
13669 *\&* | *\|* | *\\* )
13670 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13671 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13672 *) ac_sed_conf_input=$configure_input;;
13673 esac
13674
13675 case $ac_tag in
13676 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13678 esac
13679 ;;
13680 esac
13681
13682 ac_dir=`$as_dirname -- "$ac_file" ||
13683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13684 X"$ac_file" : 'X\(//\)[^/]' \| \
13685 X"$ac_file" : 'X\(//\)$' \| \
13686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13687 printf '%s\n' X"$ac_file" |
13688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13689 s//\1/
13690 q
13691 }
13692 /^X\(\/\/\)[^/].*/{
13693 s//\1/
13694 q
13695 }
13696 /^X\(\/\/\)$/{
13697 s//\1/
13698 q
13699 }
13700 /^X\(\/\).*/{
13701 s//\1/
13702 q
13703 }
13704 s/.*/./; q'`
13705 as_dir="$ac_dir"; as_fn_mkdir_p
13706 ac_builddir=.
13707
13708 case "$ac_dir" in
13709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13710 *)
13711 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13712 # A ".." for each directory in $ac_dir_suffix.
13713 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13714 case $ac_top_builddir_sub in
13715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13717 esac ;;
13718 esac
13719 ac_abs_top_builddir=$ac_pwd
13720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13721 # for backward compatibility:
13722 ac_top_builddir=$ac_top_build_prefix
13723
13724 case $srcdir in
13725 .) # We are building in place.
13726 ac_srcdir=.
13727 ac_top_srcdir=$ac_top_builddir_sub
13728 ac_abs_top_srcdir=$ac_pwd ;;
13729 [\\/]* | ?:[\\/]* ) # Absolute name.
13730 ac_srcdir=$srcdir$ac_dir_suffix;
13731 ac_top_srcdir=$srcdir
13732 ac_abs_top_srcdir=$srcdir ;;
13733 *) # Relative name.
13734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13735 ac_top_srcdir=$ac_top_build_prefix$srcdir
13736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13737 esac
13738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13739
13740
13741 case $ac_mode in
13742 :F)
13743 #
13744 # CONFIG_FILE
13745 #
13746
13747 case $INSTALL in
13748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13750 esac
13751 ac_MKDIR_P=$MKDIR_P
13752 case $MKDIR_P in
13753 [\\/$]* | ?:[\\/]* ) ;;
13754 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13755 esac
13756 _ACEOF
13757
13758 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13759 # If the template does not know about datarootdir, expand it.
13760 # FIXME: This hack should be removed a few years after 2.60.
13761 ac_datarootdir_hack=; ac_datarootdir_seen=
13762 ac_sed_dataroot='
13763 /datarootdir/ {
13764 p
13765 q
13766 }
13767 /@datadir@/p
13768 /@docdir@/p
13769 /@infodir@/p
13770 /@localedir@/p
13771 /@mandir@/p'
13772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13773 *datarootdir*) ac_datarootdir_seen=yes;;
13774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13776 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13777 _ACEOF
13778 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13779 ac_datarootdir_hack='
13780 s&@datadir@&$datadir&g
13781 s&@docdir@&$docdir&g
13782 s&@infodir@&$infodir&g
13783 s&@localedir@&$localedir&g
13784 s&@mandir@&$mandir&g
13785 s&\\\${datarootdir}&$datarootdir&g' ;;
13786 esac
13787 _ACEOF
13788
13789 # Neutralize VPATH when '$srcdir' = '.'.
13790 # Shell code in configure.ac might set extrasub.
13791 # FIXME: do we really want to maintain this feature?
13792 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13793 ac_sed_extra="$ac_vpsub
13794 $extrasub
13795 _ACEOF
13796 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13797 :t
13798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13799 s|@configure_input@|$ac_sed_conf_input|;t t
13800 s&@top_builddir@&$ac_top_builddir_sub&;t t
13801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13802 s&@srcdir@&$ac_srcdir&;t t
13803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13804 s&@top_srcdir@&$ac_top_srcdir&;t t
13805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13806 s&@builddir@&$ac_builddir&;t t
13807 s&@abs_builddir@&$ac_abs_builddir&;t t
13808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13809 s&@INSTALL@&$ac_INSTALL&;t t
13810 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13811 $ac_datarootdir_hack
13812 "
13813 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13814 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13815
13816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13817 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13819 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13821 which seems to be undefined. Please make sure it is defined" >&5
13822 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13823 which seems to be undefined. Please make sure it is defined" >&2;}
13824
13825 rm -f "$ac_tmp/stdin"
13826 case $ac_file in
13827 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13828 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13829 esac \
13830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13831 ;;
13832 :H)
13833 #
13834 # CONFIG_HEADER
13835 #
13836 if test x"$ac_file" != x-; then
13837 {
13838 printf '%s\n' "/* $configure_input */" >&1 \
13839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13840 } >"$ac_tmp/config.h" \
13841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13842 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13844 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13845 else
13846 rm -f "$ac_file"
13847 mv "$ac_tmp/config.h" "$ac_file" \
13848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13849 fi
13850 else
13851 printf '%s\n' "/* $configure_input */" >&1 \
13852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13853 || as_fn_error $? "could not create -" "$LINENO" 5
13854 fi
13855 # Compute "$ac_file"'s index in $config_headers.
13856 _am_arg="$ac_file"
13857 _am_stamp_count=1
13858 for _am_header in $config_headers :; do
13859 case $_am_header in
13860 $_am_arg | $_am_arg:* )
13861 break ;;
13862 * )
13863 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13864 esac
13865 done
13866 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13867 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868 X"$_am_arg" : 'X\(//\)[^/]' \| \
13869 X"$_am_arg" : 'X\(//\)$' \| \
13870 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13871 printf '%s\n' X"$_am_arg" |
13872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13873 s//\1/
13874 q
13875 }
13876 /^X\(\/\/\)[^/].*/{
13877 s//\1/
13878 q
13879 }
13880 /^X\(\/\/\)$/{
13881 s//\1/
13882 q
13883 }
13884 /^X\(\/\).*/{
13885 s//\1/
13886 q
13887 }
13888 s/.*/./; q'`/stamp-h$_am_stamp_count
13889 ;;
13890
13891 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13892 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13893 ;;
13894 esac
13895
13896
13897 case $ac_file$ac_mode in
13898 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13899 # Older Autoconf quotes --file arguments for eval, but not when files
13900 # are listed without --file. Let's play safe and only enable the eval
13901 # if we detect the quoting.
13902 # TODO: see whether this extra hack can be removed once we start
13903 # requiring Autoconf 2.70 or later.
13904 case $CONFIG_FILES in #(
13905 *\'*) :
13906 eval set x "$CONFIG_FILES" ;; #(
13907 *) :
13908 set x $CONFIG_FILES ;; #(
13909 *) :
13910 ;;
13911 esac
13912 shift
13913 # Used to flag and report bootstrapping failures.
13914 am_rc=0
13915 for am_mf
13916 do
13917 # Strip MF so we end up with the name of the file.
13918 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13919 # Check whether this is an Automake generated Makefile which includes
13920 # dependency-tracking related rules and includes.
13921 # Grep'ing the whole file directly is not great: AIX grep has a line
13922 # limit of 2048, but all sed's we know have understand at least 4000.
13923 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13924 || continue
13925 am_dirpart=`$as_dirname -- "$am_mf" ||
13926 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13927 X"$am_mf" : 'X\(//\)[^/]' \| \
13928 X"$am_mf" : 'X\(//\)$' \| \
13929 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13930 printf '%s\n' X"$am_mf" |
13931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13932 s//\1/
13933 q
13934 }
13935 /^X\(\/\/\)[^/].*/{
13936 s//\1/
13937 q
13938 }
13939 /^X\(\/\/\)$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\(\/\).*/{
13944 s//\1/
13945 q
13946 }
13947 s/.*/./; q'`
13948 am_filepart=`$as_basename -- "$am_mf" ||
13949 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13950 X"$am_mf" : 'X\(//\)$' \| \
13951 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13952 printf '%s\n' X/"$am_mf" |
13953 sed '/^.*\/\([^/][^/]*\)\/*$/{
13954 s//\1/
13955 q
13956 }
13957 /^X\/\(\/\/\)$/{
13958 s//\1/
13959 q
13960 }
13961 /^X\/\(\/\).*/{
13962 s//\1/
13963 q
13964 }
13965 s/.*/./; q'`
13966 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13967 && sed -e '/# am--include-marker/d' "$am_filepart" \
13968 | $MAKE -f - am--depfiles" >&5
13969 (cd "$am_dirpart" \
13970 && sed -e '/# am--include-marker/d' "$am_filepart" \
13971 | $MAKE -f - am--depfiles) >&5 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } || am_rc=$?
13975 done
13976 if test $am_rc -ne 0; then
13977 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13978 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13979 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13980 for automatic dependency tracking. If GNU make was not used, consider
13981 re-running the configure script with MAKE=\"gmake\" (or whatever is
13982 necessary). You can also try re-running configure with the
13983 '--disable-dependency-tracking' option to at least be able to build
13984 the package (albeit without support for automatic dependency tracking).
13985 See 'config.log' for more details" "$LINENO" 5; }
13986 fi
13987 { am_dirpart=; unset am_dirpart;}
13988 { am_filepart=; unset am_filepart;}
13989 { am_mf=; unset am_mf;}
13990 { am_rc=; unset am_rc;}
13991 rm -f conftest-deps.mk
13992 }
13993 ;;
13994
13995 esac
13996 done # for ac_tag
13997
13998
13999 as_fn_exit 0
14000 _ACEOF
14001 ac_clean_CONFIG_STATUS=
14002
14003 test $ac_write_fail = 0 ||
14004 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14005
14006
14007 # configure is writing to config.log, and then calls config.status.
14008 # config.status does its own redirection, appending to config.log.
14009 # Unfortunately, on DOS this fails, as config.log is still kept open
14010 # by configure, so config.status won't be able to write to it; its
14011 # output is simply discarded. So we exec the FD to /dev/null,
14012 # effectively closing config.log, so it can be properly (re)opened and
14013 # appended to by config.status. When coming back to configure, we
14014 # need to make the FD available again.
14015 if test "$no_create" != yes; then
14016 ac_cs_success=:
14017 case $CONFIG_STATUS in #(
14018 -*) :
14019 ac_no_opts=-- ;; #(
14020 *) :
14021 ac_no_opts= ;;
14022 esac
14023 ac_config_status_args=
14024 test "$silent" = yes &&
14025 ac_config_status_args="$ac_config_status_args --quiet"
14026 exec 5>/dev/null
14027 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
14028 ac_cs_success=false
14029 exec 5>>config.log
14030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14031 # would make configure fail if this is the last instruction.
14032 $ac_cs_success || as_fn_exit 1
14033 fi
14034 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14036 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14037 fi
14038
14039
14040