configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xmh 1.0.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xmh/-/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xmh'
614 PACKAGE_TARNAME='xmh'
615 PACKAGE_VERSION='1.0.4'
616 PACKAGE_STRING='xmh 1.0.4'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmh/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_func_c_list=
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 appdefaultdir
659 APPDEFS_LIBS
660 APPDEFS_CFLAGS
661 XMH_LIBS
662 XMH_CFLAGS
663 MAN_SUBSTS
664 XORG_MAN_PAGE
665 ADMIN_MAN_DIR
666 DRIVER_MAN_DIR
667 MISC_MAN_DIR
668 FILE_MAN_DIR
669 LIB_MAN_DIR
670 APP_MAN_DIR
671 ADMIN_MAN_SUFFIX
672 DRIVER_MAN_SUFFIX
673 MISC_MAN_SUFFIX
674 FILE_MAN_SUFFIX
675 LIB_MAN_SUFFIX
676 APP_MAN_SUFFIX
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 CSCOPE
715 ETAGS
716 CTAGS
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_dependency_tracking
785 enable_selective_werror
786 enable_strict_compilation
787 with_appdefaultdir
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 PKG_CONFIG
798 PKG_CONFIG_PATH
799 PKG_CONFIG_LIBDIR
800 XMH_CFLAGS
801 XMH_LIBS
802 APPDEFS_CFLAGS
803 APPDEFS_LIBS'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: \`$ac_useropt'"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: \`$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -runstatedir | --runstatedir | --runstatedi | --runstated \
1094 | --runstate | --runstat | --runsta | --runst | --runs \
1095 | --run | --ru | --r)
1096 ac_prev=runstatedir ;;
1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099 | --run=* | --ru=* | --r=*)
1100 runstatedir=$ac_optarg ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: \`$ac_useropt'"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: \`$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir runstatedir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 printf "%s\n" X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures xmh 1.0.4 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/xmh]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of xmh 1.0.4:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --disable-selective-werror
1438 Turn off selective compiler errors. (default:
1439 enabled)
1440 --enable-strict-compilation
1441 Enable all warnings from compiler and make them
1442 errors (default: disabled)
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-appdefaultdir=<pathname>
1448 specify directory for app-defaults files (default is
1449 autodetected)
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 PKG_CONFIG path to pkg-config utility
1460 PKG_CONFIG_PATH
1461 directories to add to pkg-config's search path
1462 PKG_CONFIG_LIBDIR
1463 path overriding pkg-config's built-in search path
1464 XMH_CFLAGS C compiler flags for XMH, overriding pkg-config
1465 XMH_LIBS linker flags for XMH, overriding pkg-config
1466 APPDEFS_CFLAGS
1467 C compiler flags for APPDEFS, overriding pkg-config
1468 APPDEFS_LIBS
1469 linker flags for APPDEFS, overriding pkg-config
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for configure.gnu first; this name is used for a wrapper for
1521 # Metaconfig's "Configure" on case-insensitive file systems.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 xmh configure 1.0.4
1539 generated by GNU Autoconf 2.71
1540
1541 Copyright (C) 2021 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest.beam
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 printf "%s\n" "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext
1578 then :
1579 ac_retval=0
1580 else $as_nop
1581 printf "%s\n" "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1592 # ------------------------------------------------------------------
1593 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1594 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1595 ac_fn_check_decl ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 as_decl_name=`echo $2|sed 's/ *(.*//'`
1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600 printf %s "checking whether $as_decl_name is declared... " >&6; }
1601 if eval test \${$3+y}
1602 then :
1603 printf %s "(cached) " >&6
1604 else $as_nop
1605 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1606 eval ac_save_FLAGS=\$$6
1607 as_fn_append $6 " $5"
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 int
1612 main (void)
1613 {
1614 #ifndef $as_decl_name
1615 #ifdef __cplusplus
1616 (void) $as_decl_use;
1617 #else
1618 (void) $as_decl_name;
1619 #endif
1620 #endif
1621
1622 ;
1623 return 0;
1624 }
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"
1627 then :
1628 eval "$3=yes"
1629 else $as_nop
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1633 eval $6=\$ac_save_FLAGS
1634
1635 fi
1636 eval ac_res=\$$3
1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 printf "%s\n" "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_check_decl
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 printf %s "checking for $2... " >&6; }
1652 if eval test \${$3+y}
1653 then :
1654 printf %s "(cached) " >&6
1655 else $as_nop
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"
1662 then :
1663 eval "$3=yes"
1664 else $as_nop
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 printf "%s\n" "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 test -x conftest$ac_exeext
1704 }
1705 then :
1706 ac_retval=0
1707 else $as_nop
1708 printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1724 # -------------------------------------------
1725 # Tests whether TYPE exists after having included INCLUDES, setting cache
1726 # variable VAR accordingly.
1727 ac_fn_c_check_type ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 eval "$3=no"
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 int
1741 main (void)
1742 {
1743 if (sizeof ($2))
1744 return 0;
1745 ;
1746 return 0;
1747 }
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"
1750 then :
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 $4
1754 int
1755 main (void)
1756 {
1757 if (sizeof (($2)))
1758 return 0;
1759 ;
1760 return 0;
1761 }
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"
1764 then :
1765
1766 else $as_nop
1767 eval "$3=yes"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 printf "%s\n" "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_type
1779
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 printf %s "checking for $2... " >&6; }
1788 if eval test \${$3+y}
1789 then :
1790 printf %s "(cached) " >&6
1791 else $as_nop
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796 #define $2 innocuous_$2
1797
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below. */
1800
1801 #include <limits.h>
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main (void)
1820 {
1821 return $2 ();
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"
1827 then :
1828 eval "$3=yes"
1829 else $as_nop
1830 eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1833 conftest$ac_exeext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 printf "%s\n" "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840 } # ac_fn_c_check_func
1841
1842 # ac_fn_c_try_run LINENO
1843 # ----------------------
1844 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1845 # executables *can* be run.
1846 ac_fn_c_try_run ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { { ac_try="$ac_link"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 printf "%s\n" "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>&5
1857 ac_status=$?
1858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1860 { { case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 printf "%s\n" "$ac_try_echo"; } >&5
1866 (eval "$ac_try") 2>&5
1867 ac_status=$?
1868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; }; }
1870 then :
1871 ac_retval=0
1872 else $as_nop
1873 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1874 printf "%s\n" "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878 fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884 ac_configure_args_raw=
1885 for ac_arg
1886 do
1887 case $ac_arg in
1888 *\'*)
1889 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 esac
1891 as_fn_append ac_configure_args_raw " '$ac_arg'"
1892 done
1893
1894 case $ac_configure_args_raw in
1895 *$as_nl*)
1896 ac_safe_unquote= ;;
1897 *)
1898 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1899 ac_unsafe_a="$ac_unsafe_z#~"
1900 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1901 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1902 esac
1903
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1907
1908 It was created by xmh $as_me 1.0.4, which was
1909 generated by GNU Autoconf 2.71. Invocation command line was
1910
1911 $ $0$ac_configure_args_raw
1912
1913 _ACEOF
1914 exec 5>>config.log
1915 {
1916 cat <<_ASUNAME
1917 ## --------- ##
1918 ## Platform. ##
1919 ## --------- ##
1920
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1929
1930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937
1938 _ASUNAME
1939
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943 IFS=$as_save_IFS
1944 case $as_dir in #(((
1945 '') as_dir=./ ;;
1946 */) ;;
1947 *) as_dir=$as_dir/ ;;
1948 esac
1949 printf "%s\n" "PATH: $as_dir"
1950 done
1951 IFS=$as_save_IFS
1952
1953 } >&5
1954
1955 cat >&5 <<_ACEOF
1956
1957
1958 ## ----------- ##
1959 ## Core tests. ##
1960 ## ----------- ##
1961
1962 _ACEOF
1963
1964
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1970 ac_configure_args=
1971 ac_configure_args0=
1972 ac_configure_args1=
1973 ac_must_keep_next=false
1974 for ac_pass in 1 2
1975 do
1976 for ac_arg
1977 do
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 2)
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2001 ;;
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2004 fi
2005 as_fn_append ac_configure_args " '$ac_arg'"
2006 ;;
2007 esac
2008 done
2009 done
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2012
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Sanitize IFS.
2020 IFS=" "" $as_nl"
2021 # Save into config.log some information that might help in debugging.
2022 {
2023 echo
2024
2025 printf "%s\n" "## ---------------- ##
2026 ## Cache variables. ##
2027 ## ---------------- ##"
2028 echo
2029 # The following way of writing the cache mishandles newlines in values,
2030 (
2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in #(
2034 *${as_nl}*)
2035 case $ac_var in #(
2036 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2037 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 esac
2039 case $ac_var in #(
2040 _ | IFS | as_nl) ;; #(
2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2042 *) { eval $ac_var=; unset $ac_var;} ;;
2043 esac ;;
2044 esac
2045 done
2046 (set) 2>&1 |
2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2048 *${as_nl}ac_space=\ *)
2049 sed -n \
2050 "s/'\''/'\''\\\\'\'''\''/g;
2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 ;; #(
2053 *)
2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2055 ;;
2056 esac |
2057 sort
2058 )
2059 echo
2060
2061 printf "%s\n" "## ----------------- ##
2062 ## Output variables. ##
2063 ## ----------------- ##"
2064 echo
2065 for ac_var in $ac_subst_vars
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 printf "%s\n" "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074
2075 if test -n "$ac_subst_files"; then
2076 printf "%s\n" "## ------------------- ##
2077 ## File substitutions. ##
2078 ## ------------------- ##"
2079 echo
2080 for ac_var in $ac_subst_files
2081 do
2082 eval ac_val=\$$ac_var
2083 case $ac_val in
2084 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 esac
2086 printf "%s\n" "$ac_var='\''$ac_val'\''"
2087 done | sort
2088 echo
2089 fi
2090
2091 if test -s confdefs.h; then
2092 printf "%s\n" "## ----------- ##
2093 ## confdefs.h. ##
2094 ## ----------- ##"
2095 echo
2096 cat confdefs.h
2097 echo
2098 fi
2099 test "$ac_signal" != 0 &&
2100 printf "%s\n" "$as_me: caught signal $ac_signal"
2101 printf "%s\n" "$as_me: exit $exit_status"
2102 } >&5
2103 rm -f core *.core core.conftest.* &&
2104 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105 exit $exit_status
2106 ' 0
2107 for ac_signal in 1 2 13 15; do
2108 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2109 done
2110 ac_signal=0
2111
2112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2113 rm -f -r conftest* confdefs.h
2114
2115 printf "%s\n" "/* confdefs.h */" > confdefs.h
2116
2117 # Predefined preprocessor variables.
2118
2119 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2120
2121 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2122
2123 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2124
2125 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2126
2127 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2128
2129 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2130
2131
2132 # Let the site file select an alternate cache file if it wants to.
2133 # Prefer an explicitly selected file to automatically selected ones.
2134 if test -n "$CONFIG_SITE"; then
2135 ac_site_files="$CONFIG_SITE"
2136 elif test "x$prefix" != xNONE; then
2137 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2138 else
2139 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2140 fi
2141
2142 for ac_site_file in $ac_site_files
2143 do
2144 case $ac_site_file in #(
2145 */*) :
2146 ;; #(
2147 *) :
2148 ac_site_file=./$ac_site_file ;;
2149 esac
2150 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2153 sed 's/^/| /' "$ac_site_file" >&5
2154 . "$ac_site_file" \
2155 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2157 as_fn_error $? "failed to load site script $ac_site_file
2158 See \`config.log' for more details" "$LINENO" 5; }
2159 fi
2160 done
2161
2162 if test -r "$cache_file"; then
2163 # Some versions of bash will fail to source /dev/null (special files
2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2168 case $cache_file in
2169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2170 *) . "./$cache_file";;
2171 esac
2172 fi
2173 else
2174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2176 >$cache_file
2177 fi
2178
2179 # Test code for whether the C compiler supports C89 (global declarations)
2180 ac_c_conftest_c89_globals='
2181 /* Does the compiler advertise C89 conformance?
2182 Do not test the value of __STDC__, because some compilers set it to 0
2183 while being otherwise adequately conformant. */
2184 #if !defined __STDC__
2185 # error "Compiler does not advertise C89 conformance"
2186 #endif
2187
2188 #include <stddef.h>
2189 #include <stdarg.h>
2190 struct stat;
2191 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2192 struct buf { int x; };
2193 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195 char **p;
2196 int i;
2197 {
2198 return p[i];
2199 }
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2201 {
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2208 }
2209
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not \xHH hex character constants.
2212 These do not provoke an error unfortunately, instead are silently treated
2213 as an "x". The following induces an error, until -std is added to get
2214 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2215 array size at least. It is necessary to write \x00 == 0 to get something
2216 that is true only with -std. */
2217 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2218
2219 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2220 inside strings and character constants. */
2221 #define FOO(x) '\''x'\''
2222 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2223
2224 int test (int i, double x);
2225 struct s1 {int (*f) (int a);};
2226 struct s2 {int (*f) (double a);};
2227 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2228 int, int);'
2229
2230 # Test code for whether the C compiler supports C89 (body of main).
2231 ac_c_conftest_c89_main='
2232 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2233 '
2234
2235 # Test code for whether the C compiler supports C99 (global declarations)
2236 ac_c_conftest_c99_globals='
2237 // Does the compiler advertise C99 conformance?
2238 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2239 # error "Compiler does not advertise C99 conformance"
2240 #endif
2241
2242 #include <stdbool.h>
2243 extern int puts (const char *);
2244 extern int printf (const char *, ...);
2245 extern int dprintf (int, const char *, ...);
2246 extern void *malloc (size_t);
2247
2248 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2249 // dprintf is used instead of fprintf to avoid needing to declare
2250 // FILE and stderr.
2251 #define debug(...) dprintf (2, __VA_ARGS__)
2252 #define showlist(...) puts (#__VA_ARGS__)
2253 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2254 static void
2255 test_varargs_macros (void)
2256 {
2257 int x = 1234;
2258 int y = 5678;
2259 debug ("Flag");
2260 debug ("X = %d\n", x);
2261 showlist (The first, second, and third items.);
2262 report (x>y, "x is %d but y is %d", x, y);
2263 }
2264
2265 // Check long long types.
2266 #define BIG64 18446744073709551615ull
2267 #define BIG32 4294967295ul
2268 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2269 #if !BIG_OK
2270 #error "your preprocessor is broken"
2271 #endif
2272 #if BIG_OK
2273 #else
2274 #error "your preprocessor is broken"
2275 #endif
2276 static long long int bignum = -9223372036854775807LL;
2277 static unsigned long long int ubignum = BIG64;
2278
2279 struct incomplete_array
2280 {
2281 int datasize;
2282 double data[];
2283 };
2284
2285 struct named_init {
2286 int number;
2287 const wchar_t *name;
2288 double average;
2289 };
2290
2291 typedef const char *ccp;
2292
2293 static inline int
2294 test_restrict (ccp restrict text)
2295 {
2296 // See if C++-style comments work.
2297 // Iterate through items via the restricted pointer.
2298 // Also check for declarations in for loops.
2299 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2300 continue;
2301 return 0;
2302 }
2303
2304 // Check varargs and va_copy.
2305 static bool
2306 test_varargs (const char *format, ...)
2307 {
2308 va_list args;
2309 va_start (args, format);
2310 va_list args_copy;
2311 va_copy (args_copy, args);
2312
2313 const char *str = "";
2314 int number = 0;
2315 float fnumber = 0;
2316
2317 while (*format)
2318 {
2319 switch (*format++)
2320 {
2321 case '\''s'\'': // string
2322 str = va_arg (args_copy, const char *);
2323 break;
2324 case '\''d'\'': // int
2325 number = va_arg (args_copy, int);
2326 break;
2327 case '\''f'\'': // float
2328 fnumber = va_arg (args_copy, double);
2329 break;
2330 default:
2331 break;
2332 }
2333 }
2334 va_end (args_copy);
2335 va_end (args);
2336
2337 return *str && number && fnumber;
2338 }
2339 '
2340
2341 # Test code for whether the C compiler supports C99 (body of main).
2342 ac_c_conftest_c99_main='
2343 // Check bool.
2344 _Bool success = false;
2345 success |= (argc != 0);
2346
2347 // Check restrict.
2348 if (test_restrict ("String literal") == 0)
2349 success = true;
2350 char *restrict newvar = "Another string";
2351
2352 // Check varargs.
2353 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2354 test_varargs_macros ();
2355
2356 // Check flexible array members.
2357 struct incomplete_array *ia =
2358 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2359 ia->datasize = 10;
2360 for (int i = 0; i < ia->datasize; ++i)
2361 ia->data[i] = i * 1.234;
2362
2363 // Check named initializers.
2364 struct named_init ni = {
2365 .number = 34,
2366 .name = L"Test wide string",
2367 .average = 543.34343,
2368 };
2369
2370 ni.number = 58;
2371
2372 int dynamic_array[ni.number];
2373 dynamic_array[0] = argv[0][0];
2374 dynamic_array[ni.number - 1] = 543;
2375
2376 // work around unused variable warnings
2377 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2378 || dynamic_array[ni.number - 1] != 543);
2379 '
2380
2381 # Test code for whether the C compiler supports C11 (global declarations)
2382 ac_c_conftest_c11_globals='
2383 // Does the compiler advertise C11 conformance?
2384 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2385 # error "Compiler does not advertise C11 conformance"
2386 #endif
2387
2388 // Check _Alignas.
2389 char _Alignas (double) aligned_as_double;
2390 char _Alignas (0) no_special_alignment;
2391 extern char aligned_as_int;
2392 char _Alignas (0) _Alignas (int) aligned_as_int;
2393
2394 // Check _Alignof.
2395 enum
2396 {
2397 int_alignment = _Alignof (int),
2398 int_array_alignment = _Alignof (int[100]),
2399 char_alignment = _Alignof (char)
2400 };
2401 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2402
2403 // Check _Noreturn.
2404 int _Noreturn does_not_return (void) { for (;;) continue; }
2405
2406 // Check _Static_assert.
2407 struct test_static_assert
2408 {
2409 int x;
2410 _Static_assert (sizeof (int) <= sizeof (long int),
2411 "_Static_assert does not work in struct");
2412 long int y;
2413 };
2414
2415 // Check UTF-8 literals.
2416 #define u8 syntax error!
2417 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2418
2419 // Check duplicate typedefs.
2420 typedef long *long_ptr;
2421 typedef long int *long_ptr;
2422 typedef long_ptr long_ptr;
2423
2424 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2425 struct anonymous
2426 {
2427 union {
2428 struct { int i; int j; };
2429 struct { int k; long int l; } w;
2430 };
2431 int m;
2432 } v1;
2433 '
2434
2435 # Test code for whether the C compiler supports C11 (body of main).
2436 ac_c_conftest_c11_main='
2437 _Static_assert ((offsetof (struct anonymous, i)
2438 == offsetof (struct anonymous, w.k)),
2439 "Anonymous union alignment botch");
2440 v1.i = 2;
2441 v1.w.k = 5;
2442 ok |= v1.i != 5;
2443 '
2444
2445 # Test code for whether the C compiler supports C11 (complete).
2446 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2447 ${ac_c_conftest_c99_globals}
2448 ${ac_c_conftest_c11_globals}
2449
2450 int
2451 main (int argc, char **argv)
2452 {
2453 int ok = 0;
2454 ${ac_c_conftest_c89_main}
2455 ${ac_c_conftest_c99_main}
2456 ${ac_c_conftest_c11_main}
2457 return ok;
2458 }
2459 "
2460
2461 # Test code for whether the C compiler supports C99 (complete).
2462 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2463 ${ac_c_conftest_c99_globals}
2464
2465 int
2466 main (int argc, char **argv)
2467 {
2468 int ok = 0;
2469 ${ac_c_conftest_c89_main}
2470 ${ac_c_conftest_c99_main}
2471 return ok;
2472 }
2473 "
2474
2475 # Test code for whether the C compiler supports C89 (complete).
2476 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2477
2478 int
2479 main (int argc, char **argv)
2480 {
2481 int ok = 0;
2482 ${ac_c_conftest_c89_main}
2483 return ok;
2484 }
2485 "
2486
2487 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2488 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2489 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2490 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2491 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2492 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2493 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2494 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2495 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2496 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2497 as_fn_append ac_func_c_list " fork HAVE_FORK"
2498 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2499
2500 # Auxiliary files required by this configure script.
2501 ac_aux_files="config.guess config.sub compile missing install-sh"
2502
2503 # Locations in which to look for auxiliary files.
2504 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2505
2506 # Search for a directory containing all of the required auxiliary files,
2507 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2508 # If we don't find one directory that contains all the files we need,
2509 # we report the set of missing files from the *first* directory in
2510 # $ac_aux_dir_candidates and give up.
2511 ac_missing_aux_files=""
2512 ac_first_candidate=:
2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 as_found=false
2516 for as_dir in $ac_aux_dir_candidates
2517 do
2518 IFS=$as_save_IFS
2519 case $as_dir in #(((
2520 '') as_dir=./ ;;
2521 */) ;;
2522 *) as_dir=$as_dir/ ;;
2523 esac
2524 as_found=:
2525
2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2527 ac_aux_dir_found=yes
2528 ac_install_sh=
2529 for ac_aux in $ac_aux_files
2530 do
2531 # As a special case, if "install-sh" is required, that requirement
2532 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2533 # and $ac_install_sh is set appropriately for whichever one is found.
2534 if test x"$ac_aux" = x"install-sh"
2535 then
2536 if test -f "${as_dir}install-sh"; then
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2538 ac_install_sh="${as_dir}install-sh -c"
2539 elif test -f "${as_dir}install.sh"; then
2540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2541 ac_install_sh="${as_dir}install.sh -c"
2542 elif test -f "${as_dir}shtool"; then
2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2544 ac_install_sh="${as_dir}shtool install -c"
2545 else
2546 ac_aux_dir_found=no
2547 if $ac_first_candidate; then
2548 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2549 else
2550 break
2551 fi
2552 fi
2553 else
2554 if test -f "${as_dir}${ac_aux}"; then
2555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2556 else
2557 ac_aux_dir_found=no
2558 if $ac_first_candidate; then
2559 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2560 else
2561 break
2562 fi
2563 fi
2564 fi
2565 done
2566 if test "$ac_aux_dir_found" = yes; then
2567 ac_aux_dir="$as_dir"
2568 break
2569 fi
2570 ac_first_candidate=false
2571
2572 as_found=false
2573 done
2574 IFS=$as_save_IFS
2575 if $as_found
2576 then :
2577
2578 else $as_nop
2579 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2580 fi
2581
2582
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 if test -f "${ac_aux_dir}config.guess"; then
2588 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2589 fi
2590 if test -f "${ac_aux_dir}config.sub"; then
2591 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2592 fi
2593 if test -f "$ac_aux_dir/configure"; then
2594 ac_configure="$SHELL ${ac_aux_dir}configure"
2595 fi
2596
2597 # Check that the precious variables saved in the cache have kept the same
2598 # value.
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602 eval ac_new_set=\$ac_env_${ac_var}_set
2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604 eval ac_new_val=\$ac_env_${ac_var}_value
2605 case $ac_old_set,$ac_new_set in
2606 set,)
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2610 ,set)
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2614 ,);;
2615 *)
2616 if test "x$ac_old_val" != "x$ac_new_val"; then
2617 # differences in whitespace do not lead to failure.
2618 ac_old_val_w=`echo x $ac_old_val`
2619 ac_new_val_w=`echo x $ac_new_val`
2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623 ac_cache_corrupted=:
2624 else
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627 eval $ac_var=\$ac_old_val
2628 fi
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2630 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2632 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2633 fi;;
2634 esac
2635 # Pass precious variables to config.status.
2636 if test "$ac_new_set" = set; then
2637 case $ac_new_val in
2638 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 *) ac_arg=$ac_var=$ac_new_val ;;
2640 esac
2641 case " $ac_configure_args " in
2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2643 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2644 esac
2645 fi
2646 done
2647 if $ac_cache_corrupted; then
2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2652 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2653 and start over" "$LINENO" 5
2654 fi
2655 ## -------------------- ##
2656 ## Main body of script. ##
2657 ## -------------------- ##
2658
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
2665
2666
2667 ac_config_headers="$ac_config_headers config.h"
2668
2669
2670 # Initialize Automake
2671 am__api_version='1.16'
2672
2673
2674
2675 # Find a good install program. We prefer a C program (faster),
2676 # so one script is as good as another. But avoid the broken or
2677 # incompatible versions:
2678 # SysV /etc/install, /usr/sbin/install
2679 # SunOS /usr/etc/install
2680 # IRIX /sbin/install
2681 # AIX /bin/install
2682 # AmigaOS /C/install, which installs bootblocks on floppy discs
2683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2686 # OS/2's system install, which has a completely different semantic
2687 # ./install, which can be erroneously created by make from ./install.sh.
2688 # Reject install programs that cannot install multiple files.
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2690 printf %s "checking for a BSD-compatible install... " >&6; }
2691 if test -z "$INSTALL"; then
2692 if test ${ac_cv_path_install+y}
2693 then :
2694 printf %s "(cached) " >&6
2695 else $as_nop
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 case $as_dir in #(((
2701 '') as_dir=./ ;;
2702 */) ;;
2703 *) as_dir=$as_dir/ ;;
2704 esac
2705 # Account for fact that we put trailing slashes in our PATH walk.
2706 case $as_dir in #((
2707 ./ | /[cC]/* | \
2708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2710 /usr/ucb/* ) ;;
2711 *)
2712 # OSF1 and SCO ODT 3.0 have their own names for install.
2713 # Don't use installbsd from OSF since it installs stuff as root
2714 # by default.
2715 for ac_prog in ginstall scoinst install; do
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2718 if test $ac_prog = install &&
2719 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # AIX install. It has an incompatible calling convention.
2721 :
2722 elif test $ac_prog = install &&
2723 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724 # program-specific install script used by HP pwplus--don't use.
2725 :
2726 else
2727 rm -rf conftest.one conftest.two conftest.dir
2728 echo one > conftest.one
2729 echo two > conftest.two
2730 mkdir conftest.dir
2731 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2732 test -s conftest.one && test -s conftest.two &&
2733 test -s conftest.dir/conftest.one &&
2734 test -s conftest.dir/conftest.two
2735 then
2736 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2737 break 3
2738 fi
2739 fi
2740 fi
2741 done
2742 done
2743 ;;
2744 esac
2745
2746 done
2747 IFS=$as_save_IFS
2748
2749 rm -rf conftest.one conftest.two conftest.dir
2750
2751 fi
2752 if test ${ac_cv_path_install+y}; then
2753 INSTALL=$ac_cv_path_install
2754 else
2755 # As a last resort, use the slow shell script. Don't cache a
2756 # value for INSTALL within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the value is a relative name.
2759 INSTALL=$ac_install_sh
2760 fi
2761 fi
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2763 printf "%s\n" "$INSTALL" >&6; }
2764
2765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766 # It thinks the first close brace ends the variable substitution.
2767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2768
2769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2770
2771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2772
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2774 printf %s "checking whether build environment is sane... " >&6; }
2775 # Reject unsafe characters in $srcdir or the absolute working directory
2776 # name. Accept space and tab only in the latter.
2777 am_lf='
2778 '
2779 case `pwd` in
2780 *[\\\"\#\$\&\'\`$am_lf]*)
2781 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2782 esac
2783 case $srcdir in
2784 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2785 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2786 esac
2787
2788 # Do 'set' in a subshell so we don't clobber the current shell's
2789 # arguments. Must try -L first in case configure is actually a
2790 # symlink; some systems play weird games with the mod time of symlinks
2791 # (eg FreeBSD returns the mod time of the symlink's containing
2792 # directory).
2793 if (
2794 am_has_slept=no
2795 for am_try in 1 2; do
2796 echo "timestamp, slept: $am_has_slept" > conftest.file
2797 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2798 if test "$*" = "X"; then
2799 # -L didn't work.
2800 set X `ls -t "$srcdir/configure" conftest.file`
2801 fi
2802 if test "$*" != "X $srcdir/configure conftest.file" \
2803 && test "$*" != "X conftest.file $srcdir/configure"; then
2804
2805 # If neither matched, then we have a broken ls. This can happen
2806 # if, for instance, CONFIG_SHELL is bash and it inherits a
2807 # broken ls alias from the environment. This has actually
2808 # happened. Such a system could not be considered "sane".
2809 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2810 alias in your environment" "$LINENO" 5
2811 fi
2812 if test "$2" = conftest.file || test $am_try -eq 2; then
2813 break
2814 fi
2815 # Just in case.
2816 sleep 1
2817 am_has_slept=yes
2818 done
2819 test "$2" = conftest.file
2820 )
2821 then
2822 # Ok.
2823 :
2824 else
2825 as_fn_error $? "newly created file is older than distributed files!
2826 Check your system clock" "$LINENO" 5
2827 fi
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 printf "%s\n" "yes" >&6; }
2830 # If we didn't sleep, we still need to ensure time stamps of config.status and
2831 # generated files are strictly newer.
2832 am_sleep_pid=
2833 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2834 ( sleep 1 ) &
2835 am_sleep_pid=$!
2836 fi
2837
2838 rm -f conftest.file
2839
2840 test "$program_prefix" != NONE &&
2841 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2842 # Use a double $ so make ignores it.
2843 test "$program_suffix" != NONE &&
2844 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2845 # Double any \ or $.
2846 # By default was `s,x,x', remove it if useless.
2847 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2848 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2849
2850
2851 # Expand $ac_aux_dir to an absolute path.
2852 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2853
2854
2855 if test x"${MISSING+set}" != xset; then
2856 MISSING="\${SHELL} '$am_aux_dir/missing'"
2857 fi
2858 # Use eval to expand $SHELL
2859 if eval "$MISSING --is-lightweight"; then
2860 am_missing_run="$MISSING "
2861 else
2862 am_missing_run=
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2864 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2865 fi
2866
2867 if test x"${install_sh+set}" != xset; then
2868 case $am_aux_dir in
2869 *\ * | *\ *)
2870 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2871 *)
2872 install_sh="\${SHELL} $am_aux_dir/install-sh"
2873 esac
2874 fi
2875
2876 # Installed binaries are usually stripped using 'strip' when the user
2877 # run "make install-strip". However 'strip' might not be the right
2878 # tool to use in cross-compilation environments, therefore Automake
2879 # will honor the 'STRIP' environment variable to overrule this program.
2880 if test "$cross_compiling" != no; then
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}strip; ac_word=$2
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 printf %s "checking for $ac_word... " >&6; }
2886 if test ${ac_cv_prog_STRIP+y}
2887 then :
2888 printf %s "(cached) " >&6
2889 else $as_nop
2890 if test -n "$STRIP"; then
2891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 case $as_dir in #(((
2898 '') as_dir=./ ;;
2899 */) ;;
2900 *) as_dir=$as_dir/ ;;
2901 esac
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 STRIP=$ac_cv_prog_STRIP
2915 if test -n "$STRIP"; then
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2917 printf "%s\n" "$STRIP" >&6; }
2918 else
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 printf "%s\n" "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_STRIP"; then
2926 ac_ct_STRIP=$STRIP
2927 # Extract the first word of "strip", so it can be a program name with args.
2928 set dummy strip; ac_word=$2
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 printf %s "checking for $ac_word... " >&6; }
2931 if test ${ac_cv_prog_ac_ct_STRIP+y}
2932 then :
2933 printf %s "(cached) " >&6
2934 else $as_nop
2935 if test -n "$ac_ct_STRIP"; then
2936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 case $as_dir in #(((
2943 '') as_dir=./ ;;
2944 */) ;;
2945 *) as_dir=$as_dir/ ;;
2946 esac
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_STRIP="strip"
2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960 if test -n "$ac_ct_STRIP"; then
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962 printf "%s\n" "$ac_ct_STRIP" >&6; }
2963 else
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 printf "%s\n" "no" >&6; }
2966 fi
2967
2968 if test "x$ac_ct_STRIP" = x; then
2969 STRIP=":"
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 STRIP=$ac_ct_STRIP
2978 fi
2979 else
2980 STRIP="$ac_cv_prog_STRIP"
2981 fi
2982
2983 fi
2984 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985
2986
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2988 printf %s "checking for a race-free mkdir -p... " >&6; }
2989 if test -z "$MKDIR_P"; then
2990 if test ${ac_cv_path_mkdir+y}
2991 then :
2992 printf %s "(cached) " >&6
2993 else $as_nop
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2996 do
2997 IFS=$as_save_IFS
2998 case $as_dir in #(((
2999 '') as_dir=./ ;;
3000 */) ;;
3001 *) as_dir=$as_dir/ ;;
3002 esac
3003 for ac_prog in mkdir gmkdir; do
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3006 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007 'mkdir ('*'coreutils) '* | \
3008 'BusyBox '* | \
3009 'mkdir (fileutils) '4.1*)
3010 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3011 break 3;;
3012 esac
3013 done
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019
3020 test -d ./--version && rmdir ./--version
3021 if test ${ac_cv_path_mkdir+y}; then
3022 MKDIR_P="$ac_cv_path_mkdir -p"
3023 else
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for MKDIR_P within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 MKDIR_P="$ac_install_sh -d"
3029 fi
3030 fi
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032 printf "%s\n" "$MKDIR_P" >&6; }
3033
3034 for ac_prog in gawk mawk nawk awk
3035 do
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 printf %s "checking for $ac_word... " >&6; }
3040 if test ${ac_cv_prog_AWK+y}
3041 then :
3042 printf %s "(cached) " >&6
3043 else $as_nop
3044 if test -n "$AWK"; then
3045 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 case $as_dir in #(((
3052 '') as_dir=./ ;;
3053 */) ;;
3054 *) as_dir=$as_dir/ ;;
3055 esac
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_AWK="$ac_prog"
3059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 AWK=$ac_cv_prog_AWK
3069 if test -n "$AWK"; then
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3071 printf "%s\n" "$AWK" >&6; }
3072 else
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 printf "%s\n" "no" >&6; }
3075 fi
3076
3077
3078 test -n "$AWK" && break
3079 done
3080
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3083 set x ${MAKE-make}
3084 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3085 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3086 then :
3087 printf %s "(cached) " >&6
3088 else $as_nop
3089 cat >conftest.make <<\_ACEOF
3090 SHELL = /bin/sh
3091 all:
3092 @echo '@@@%%%=$(MAKE)=@@@%%%'
3093 _ACEOF
3094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3096 *@@@%%%=?*=@@@%%%*)
3097 eval ac_cv_prog_make_${ac_make}_set=yes;;
3098 *)
3099 eval ac_cv_prog_make_${ac_make}_set=no;;
3100 esac
3101 rm -f conftest.make
3102 fi
3103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3105 printf "%s\n" "yes" >&6; }
3106 SET_MAKE=
3107 else
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 printf "%s\n" "no" >&6; }
3110 SET_MAKE="MAKE=${MAKE-make}"
3111 fi
3112
3113 rm -rf .tst 2>/dev/null
3114 mkdir .tst 2>/dev/null
3115 if test -d .tst; then
3116 am__leading_dot=.
3117 else
3118 am__leading_dot=_
3119 fi
3120 rmdir .tst 2>/dev/null
3121
3122 # Check whether --enable-silent-rules was given.
3123 if test ${enable_silent_rules+y}
3124 then :
3125 enableval=$enable_silent_rules;
3126 fi
3127
3128 case $enable_silent_rules in # (((
3129 yes) AM_DEFAULT_VERBOSITY=0;;
3130 no) AM_DEFAULT_VERBOSITY=1;;
3131 *) AM_DEFAULT_VERBOSITY=1;;
3132 esac
3133 am_make=${MAKE-make}
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3135 printf %s "checking whether $am_make supports nested variables... " >&6; }
3136 if test ${am_cv_make_support_nested_variables+y}
3137 then :
3138 printf %s "(cached) " >&6
3139 else $as_nop
3140 if printf "%s\n" 'TRUE=$(BAR$(V))
3141 BAR0=false
3142 BAR1=true
3143 V=1
3144 am__doit:
3145 @$(TRUE)
3146 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3147 am_cv_make_support_nested_variables=yes
3148 else
3149 am_cv_make_support_nested_variables=no
3150 fi
3151 fi
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3153 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3154 if test $am_cv_make_support_nested_variables = yes; then
3155 AM_V='$(V)'
3156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3157 else
3158 AM_V=$AM_DEFAULT_VERBOSITY
3159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3160 fi
3161 AM_BACKSLASH='\'
3162
3163 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3165 # is not polluted with repeated "-I."
3166 am__isrc=' -I$(srcdir)'
3167 # test to see if srcdir already configured
3168 if test -f $srcdir/config.status; then
3169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3170 fi
3171 fi
3172
3173 # test whether we have cygpath
3174 if test -z "$CYGPATH_W"; then
3175 if (cygpath --version) >/dev/null 2>/dev/null; then
3176 CYGPATH_W='cygpath -w'
3177 else
3178 CYGPATH_W=echo
3179 fi
3180 fi
3181
3182
3183 # Define the identity of the package.
3184 PACKAGE='xmh'
3185 VERSION='1.0.4'
3186
3187
3188 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3189
3190
3191 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3192
3193 # Some tools Automake needs.
3194
3195 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3196
3197
3198 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3199
3200
3201 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3202
3203
3204 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3205
3206
3207 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3208
3209 # For better backward compatibility. To be removed once Automake 1.9.x
3210 # dies out for good. For more background, see:
3211 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3212 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3213 mkdir_p='$(MKDIR_P)'
3214
3215 # We need awk for the "check" target (and possibly the TAP driver). The
3216 # system "awk" is bad on some platforms.
3217 # Always define AMTAR for backward compatibility. Yes, it's still used
3218 # in the wild :-( We should find a proper way to deprecate it ...
3219 AMTAR='$${TAR-tar}'
3220
3221
3222 # We'll loop over all known methods to create a tar archive until one works.
3223 _am_tools='gnutar pax cpio none'
3224
3225 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3226
3227
3228
3229
3230
3231 # Variables for tags utilities; see am/tags.am
3232 if test -z "$CTAGS"; then
3233 CTAGS=ctags
3234 fi
3235
3236 if test -z "$ETAGS"; then
3237 ETAGS=etags
3238 fi
3239
3240 if test -z "$CSCOPE"; then
3241 CSCOPE=cscope
3242 fi
3243
3244
3245
3246 # POSIX will say in a future version that running "rm -f" with no argument
3247 # is OK; and we want to be able to make that assumption in our Makefile
3248 # recipes. So use an aggressive probe to check that the usage we want is
3249 # actually supported "in the wild" to an acceptable degree.
3250 # See automake bug#10828.
3251 # To make any issue more visible, cause the running configure to be aborted
3252 # by default if the 'rm' program in use doesn't match our expectations; the
3253 # user can still override this though.
3254 if rm -f && rm -fr && rm -rf; then : OK; else
3255 cat >&2 <<'END'
3256 Oops!
3257
3258 Your 'rm' program seems unable to run without file operands specified
3259 on the command line, even when the '-f' option is present. This is contrary
3260 to the behaviour of most rm programs out there, and not conforming with
3261 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3262
3263 Please tell bug-automake@gnu.org about your system, including the value
3264 of your $PATH and any error possibly output before this message. This
3265 can help us improve future automake versions.
3266
3267 END
3268 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3269 echo 'Configuration will proceed anyway, since you have set the' >&2
3270 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3271 echo >&2
3272 else
3273 cat >&2 <<'END'
3274 Aborting the configuration process, to ensure you take notice of the issue.
3275
3276 You can download and install GNU coreutils to get an 'rm' implementation
3277 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3278
3279 If you want to complete the configuration process using your problematic
3280 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3281 to "yes", and re-run configure.
3282
3283 END
3284 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3285 fi
3286 fi
3287
3288
3289 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310 DEPDIR="${am__leading_dot}deps"
3311
3312 ac_config_commands="$ac_config_commands depfiles"
3313
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3315 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3316 cat > confinc.mk << 'END'
3317 am__doit:
3318 @echo this is the am__doit target >confinc.out
3319 .PHONY: am__doit
3320 END
3321 am__include="#"
3322 am__quote=
3323 # BSD make does it like this.
3324 echo '.include "confinc.mk" # ignored' > confmf.BSD
3325 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3326 echo 'include confinc.mk # ignored' > confmf.GNU
3327 _am_result=no
3328 for s in GNU BSD; do
3329 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3330 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }
3334 case $?:`cat confinc.out 2>/dev/null` in #(
3335 '0:this is the am__doit target') :
3336 case $s in #(
3337 BSD) :
3338 am__include='.include' am__quote='"' ;; #(
3339 *) :
3340 am__include='include' am__quote='' ;;
3341 esac ;; #(
3342 *) :
3343 ;;
3344 esac
3345 if test "$am__include" != "#"; then
3346 _am_result="yes ($s style)"
3347 break
3348 fi
3349 done
3350 rm -f confinc.* confmf.*
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3352 printf "%s\n" "${_am_result}" >&6; }
3353
3354 # Check whether --enable-dependency-tracking was given.
3355 if test ${enable_dependency_tracking+y}
3356 then :
3357 enableval=$enable_dependency_tracking;
3358 fi
3359
3360 if test "x$enable_dependency_tracking" != xno; then
3361 am_depcomp="$ac_aux_dir/depcomp"
3362 AMDEPBACKSLASH='\'
3363 am__nodep='_no'
3364 fi
3365 if test "x$enable_dependency_tracking" != xno; then
3366 AMDEP_TRUE=
3367 AMDEP_FALSE='#'
3368 else
3369 AMDEP_TRUE='#'
3370 AMDEP_FALSE=
3371 fi
3372
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 printf %s "checking for $ac_word... " >&6; }
3384 if test ${ac_cv_prog_CC+y}
3385 then :
3386 printf %s "(cached) " >&6
3387 else $as_nop
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394 IFS=$as_save_IFS
3395 case $as_dir in #(((
3396 '') as_dir=./ ;;
3397 */) ;;
3398 *) as_dir=$as_dir/ ;;
3399 esac
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 printf "%s\n" "$CC" >&6; }
3416 else
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3419 fi
3420
3421
3422 fi
3423 if test -z "$ac_cv_prog_CC"; then
3424 ac_ct_CC=$CC
3425 # Extract the first word of "gcc", so it can be a program name with args.
3426 set dummy gcc; ac_word=$2
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 printf %s "checking for $ac_word... " >&6; }
3429 if test ${ac_cv_prog_ac_ct_CC+y}
3430 then :
3431 printf %s "(cached) " >&6
3432 else $as_nop
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439 IFS=$as_save_IFS
3440 case $as_dir in #(((
3441 '') as_dir=./ ;;
3442 */) ;;
3443 *) as_dir=$as_dir/ ;;
3444 esac
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_ac_ct_CC="gcc"
3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3449 break 2
3450 fi
3451 done
3452 done
3453 IFS=$as_save_IFS
3454
3455 fi
3456 fi
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3460 printf "%s\n" "$ac_ct_CC" >&6; }
3461 else
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 printf "%s\n" "no" >&6; }
3464 fi
3465
3466 if test "x$ac_ct_CC" = x; then
3467 CC=""
3468 else
3469 case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475 CC=$ac_ct_CC
3476 fi
3477 else
3478 CC="$ac_cv_prog_CC"
3479 fi
3480
3481 if test -z "$CC"; then
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}cc; ac_word=$2
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 printf %s "checking for $ac_word... " >&6; }
3487 if test ${ac_cv_prog_CC+y}
3488 then :
3489 printf %s "(cached) " >&6
3490 else $as_nop
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 case $as_dir in #(((
3499 '') as_dir=./ ;;
3500 */) ;;
3501 *) as_dir=$as_dir/ ;;
3502 esac
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_CC="${ac_tool_prefix}cc"
3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 printf "%s\n" "$CC" >&6; }
3519 else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 fi
3527 if test -z "$CC"; then
3528 # Extract the first word of "cc", so it can be a program name with args.
3529 set dummy cc; ac_word=$2
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 printf %s "checking for $ac_word... " >&6; }
3532 if test ${ac_cv_prog_CC+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else $as_nop
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 ac_prog_rejected=no
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 case $as_dir in #(((
3545 '') as_dir=./ ;;
3546 */) ;;
3547 *) as_dir=$as_dir/ ;;
3548 esac
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3551 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3552 ac_prog_rejected=yes
3553 continue
3554 fi
3555 ac_cv_prog_CC="cc"
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 if test $ac_prog_rejected = yes; then
3564 # We found a bogon in the path, so make sure we never use it.
3565 set dummy $ac_cv_prog_CC
3566 shift
3567 if test $# != 0; then
3568 # We chose a different compiler from the bogus one.
3569 # However, it has the same basename, so the bogon will be chosen
3570 # first if we set CC to just the basename; use the full file name.
3571 shift
3572 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3573 fi
3574 fi
3575 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 printf "%s\n" "$CC" >&6; }
3581 else
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 printf "%s\n" "no" >&6; }
3584 fi
3585
3586
3587 fi
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 for ac_prog in cl.exe
3591 do
3592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 printf %s "checking for $ac_word... " >&6; }
3596 if test ${ac_cv_prog_CC+y}
3597 then :
3598 printf %s "(cached) " >&6
3599 else $as_nop
3600 if test -n "$CC"; then
3601 ac_cv_prog_CC="$CC" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606 IFS=$as_save_IFS
3607 case $as_dir in #(((
3608 '') as_dir=./ ;;
3609 */) ;;
3610 *) as_dir=$as_dir/ ;;
3611 esac
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622 fi
3623 fi
3624 CC=$ac_cv_prog_CC
3625 if test -n "$CC"; then
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 printf "%s\n" "$CC" >&6; }
3628 else
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 printf "%s\n" "no" >&6; }
3631 fi
3632
3633
3634 test -n "$CC" && break
3635 done
3636 fi
3637 if test -z "$CC"; then
3638 ac_ct_CC=$CC
3639 for ac_prog in cl.exe
3640 do
3641 # Extract the first word of "$ac_prog", so it can be a program name with args.
3642 set dummy $ac_prog; ac_word=$2
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 printf %s "checking for $ac_word... " >&6; }
3645 if test ${ac_cv_prog_ac_ct_CC+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else $as_nop
3649 if test -n "$ac_ct_CC"; then
3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 case $as_dir in #(((
3657 '') as_dir=./ ;;
3658 */) ;;
3659 *) as_dir=$as_dir/ ;;
3660 esac
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_ac_ct_CC="$ac_prog"
3664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 printf "%s\n" "$ac_ct_CC" >&6; }
3677 else
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 printf "%s\n" "no" >&6; }
3680 fi
3681
3682
3683 test -n "$ac_ct_CC" && break
3684 done
3685
3686 if test "x$ac_ct_CC" = x; then
3687 CC=""
3688 else
3689 case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3694 esac
3695 CC=$ac_ct_CC
3696 fi
3697 fi
3698
3699 fi
3700 if test -z "$CC"; then
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}clang; 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 $as_nop
3710 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}clang"
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 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 printf "%s\n" "$CC" >&6; }
3738 else
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 printf "%s\n" "no" >&6; }
3741 fi
3742
3743
3744 fi
3745 if test -z "$ac_cv_prog_CC"; then
3746 ac_ct_CC=$CC
3747 # Extract the first word of "clang", so it can be a program name with args.
3748 set dummy clang; ac_word=$2
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 printf %s "checking for $ac_word... " >&6; }
3751 if test ${ac_cv_prog_ac_ct_CC+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else $as_nop
3755 if test -n "$ac_ct_CC"; then
3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761 IFS=$as_save_IFS
3762 case $as_dir in #(((
3763 '') as_dir=./ ;;
3764 */) ;;
3765 *) as_dir=$as_dir/ ;;
3766 esac
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_ac_ct_CC="clang"
3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3780 if test -n "$ac_ct_CC"; then
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3782 printf "%s\n" "$ac_ct_CC" >&6; }
3783 else
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 printf "%s\n" "no" >&6; }
3786 fi
3787
3788 if test "x$ac_ct_CC" = x; then
3789 CC=""
3790 else
3791 case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797 CC=$ac_ct_CC
3798 fi
3799 else
3800 CC="$ac_cv_prog_CC"
3801 fi
3802
3803 fi
3804
3805
3806 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "no acceptable C compiler found in \$PATH
3809 See \`config.log' for more details" "$LINENO" 5; }
3810
3811 # Provide some information about the compiler.
3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3813 set X $ac_compile
3814 ac_compiler=$2
3815 for ac_option in --version -v -V -qversion -version; do
3816 { { ac_try="$ac_compiler $ac_option >&5"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 printf "%s\n" "$ac_try_echo"; } >&5
3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3824 ac_status=$?
3825 if test -s conftest.err; then
3826 sed '10a\
3827 ... rest of stderr output deleted ...
3828 10q' conftest.err >conftest.er1
3829 cat conftest.er1 >&5
3830 fi
3831 rm -f conftest.er1 conftest.err
3832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3834 done
3835
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838
3839 int
3840 main (void)
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 ac_clean_files_save=$ac_clean_files
3848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3849 # Try to create an executable without -o first, disregard a.out.
3850 # It will help us diagnose broken compilers, and finding out an intuition
3851 # of exeext.
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3853 printf %s "checking whether the C compiler works... " >&6; }
3854 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3855
3856 # The possible output files:
3857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3858
3859 ac_rmfiles=
3860 for ac_file in $ac_files
3861 do
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3865 esac
3866 done
3867 rm -f $ac_rmfiles
3868
3869 if { { ac_try="$ac_link_default"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 printf "%s\n" "$ac_try_echo"; } >&5
3876 (eval "$ac_link_default") 2>&5
3877 ac_status=$?
3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }
3880 then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3887 do
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 ;;
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 fi
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3907 * )
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912
3913 else $as_nop
3914 ac_file=''
3915 fi
3916 if test -z "$ac_file"
3917 then :
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 printf "%s\n" "no" >&6; }
3920 printf "%s\n" "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error 77 "C compiler cannot create executables
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 else $as_nop
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929 printf "%s\n" "yes" >&6; }
3930 fi
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3932 printf %s "checking for C compiler default output file name... " >&6; }
3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3934 printf "%s\n" "$ac_file" >&6; }
3935 ac_exeext=$ac_cv_exeext
3936
3937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3938 ac_clean_files=$ac_clean_files_save
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3940 printf %s "checking for suffix of executables... " >&6; }
3941 if { { ac_try="$ac_link"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 printf "%s\n" "$ac_try_echo"; } >&5
3948 (eval "$ac_link") 2>&5
3949 ac_status=$?
3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }
3952 then :
3953 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3954 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3955 # work properly (i.e., refer to `conftest.exe'), while it won't with
3956 # `rm'.
3957 for ac_file in conftest.exe conftest conftest.*; do
3958 test -f "$ac_file" || continue
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3962 break;;
3963 * ) break;;
3964 esac
3965 done
3966 else $as_nop
3967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3970 See \`config.log' for more details" "$LINENO" 5; }
3971 fi
3972 rm -f conftest conftest$ac_cv_exeext
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3974 printf "%s\n" "$ac_cv_exeext" >&6; }
3975
3976 rm -f conftest.$ac_ext
3977 EXEEXT=$ac_cv_exeext
3978 ac_exeext=$EXEEXT
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3981 #include <stdio.h>
3982 int
3983 main (void)
3984 {
3985 FILE *f = fopen ("conftest.out", "w");
3986 return ferror (f) || fclose (f) != 0;
3987
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 ac_clean_files="$ac_clean_files conftest.out"
3993 # Check that the compiler produces executables we can run. If not, either
3994 # the compiler is broken, or we cross compile.
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3996 printf %s "checking whether we are cross compiling... " >&6; }
3997 if test "$cross_compiling" != yes; then
3998 { { ac_try="$ac_link"
3999 case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 printf "%s\n" "$ac_try_echo"; } >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }
4009 if { ac_try='./conftest$ac_cv_exeext'
4010 { { case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 printf "%s\n" "$ac_try_echo"; } >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }; }; then
4020 cross_compiling=no
4021 else
4022 if test "$cross_compiling" = maybe; then
4023 cross_compiling=yes
4024 else
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error 77 "cannot run C compiled programs.
4028 If you meant to cross compile, use \`--host'.
4029 See \`config.log' for more details" "$LINENO" 5; }
4030 fi
4031 fi
4032 fi
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4034 printf "%s\n" "$cross_compiling" >&6; }
4035
4036 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4037 ac_clean_files=$ac_clean_files_save
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4039 printf %s "checking for suffix of object files... " >&6; }
4040 if test ${ac_cv_objext+y}
4041 then :
4042 printf %s "(cached) " >&6
4043 else $as_nop
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main (void)
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 rm -f conftest.o conftest.obj
4056 if { { ac_try="$ac_compile"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 printf "%s\n" "$ac_try_echo"; } >&5
4063 (eval "$ac_compile") 2>&5
4064 ac_status=$?
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073 break;;
4074 esac
4075 done
4076 else $as_nop
4077 printf "%s\n" "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot compute suffix of object files: cannot compile
4083 See \`config.log' for more details" "$LINENO" 5; }
4084 fi
4085 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086 fi
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4088 printf "%s\n" "$ac_cv_objext" >&6; }
4089 OBJEXT=$ac_cv_objext
4090 ac_objext=$OBJEXT
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4092 printf %s "checking whether the compiler supports GNU C... " >&6; }
4093 if test ${ac_cv_c_compiler_gnu+y}
4094 then :
4095 printf %s "(cached) " >&6
4096 else $as_nop
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main (void)
4102 {
4103 #ifndef __GNUC__
4104 choke me
4105 #endif
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"
4112 then :
4113 ac_compiler_gnu=yes
4114 else $as_nop
4115 ac_compiler_gnu=no
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4119
4120 fi
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4122 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125 if test $ac_compiler_gnu = yes; then
4126 GCC=yes
4127 else
4128 GCC=
4129 fi
4130 ac_test_CFLAGS=${CFLAGS+y}
4131 ac_save_CFLAGS=$CFLAGS
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4133 printf %s "checking whether $CC accepts -g... " >&6; }
4134 if test ${ac_cv_prog_cc_g+y}
4135 then :
4136 printf %s "(cached) " >&6
4137 else $as_nop
4138 ac_save_c_werror_flag=$ac_c_werror_flag
4139 ac_c_werror_flag=yes
4140 ac_cv_prog_cc_g=no
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 int
4146 main (void)
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"
4154 then :
4155 ac_cv_prog_cc_g=yes
4156 else $as_nop
4157 CFLAGS=""
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 int
4162 main (void)
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"
4170 then :
4171
4172 else $as_nop
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4174 CFLAGS="-g"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177
4178 int
4179 main (void)
4180 {
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"
4187 then :
4188 ac_cv_prog_cc_g=yes
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4196 fi
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4198 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4199 if test $ac_test_CFLAGS; then
4200 CFLAGS=$ac_save_CFLAGS
4201 elif test $ac_cv_prog_cc_g = yes; then
4202 if test "$GCC" = yes; then
4203 CFLAGS="-g -O2"
4204 else
4205 CFLAGS="-g"
4206 fi
4207 else
4208 if test "$GCC" = yes; then
4209 CFLAGS="-O2"
4210 else
4211 CFLAGS=
4212 fi
4213 fi
4214 ac_prog_cc_stdc=no
4215 if test x$ac_prog_cc_stdc = xno
4216 then :
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4218 printf %s "checking for $CC option to enable C11 features... " >&6; }
4219 if test ${ac_cv_prog_cc_c11+y}
4220 then :
4221 printf %s "(cached) " >&6
4222 else $as_nop
4223 ac_cv_prog_cc_c11=no
4224 ac_save_CC=$CC
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 $ac_c_conftest_c11_program
4228 _ACEOF
4229 for ac_arg in '' -std=gnu11
4230 do
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"
4233 then :
4234 ac_cv_prog_cc_c11=$ac_arg
4235 fi
4236 rm -f core conftest.err conftest.$ac_objext conftest.beam
4237 test "x$ac_cv_prog_cc_c11" != "xno" && break
4238 done
4239 rm -f conftest.$ac_ext
4240 CC=$ac_save_CC
4241 fi
4242
4243 if test "x$ac_cv_prog_cc_c11" = xno
4244 then :
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 printf "%s\n" "unsupported" >&6; }
4247 else $as_nop
4248 if test "x$ac_cv_prog_cc_c11" = x
4249 then :
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251 printf "%s\n" "none needed" >&6; }
4252 else $as_nop
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4254 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4255 CC="$CC $ac_cv_prog_cc_c11"
4256 fi
4257 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4258 ac_prog_cc_stdc=c11
4259 fi
4260 fi
4261 if test x$ac_prog_cc_stdc = xno
4262 then :
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4264 printf %s "checking for $CC option to enable C99 features... " >&6; }
4265 if test ${ac_cv_prog_cc_c99+y}
4266 then :
4267 printf %s "(cached) " >&6
4268 else $as_nop
4269 ac_cv_prog_cc_c99=no
4270 ac_save_CC=$CC
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 $ac_c_conftest_c99_program
4274 _ACEOF
4275 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4276 do
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"
4279 then :
4280 ac_cv_prog_cc_c99=$ac_arg
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.beam
4283 test "x$ac_cv_prog_cc_c99" != "xno" && break
4284 done
4285 rm -f conftest.$ac_ext
4286 CC=$ac_save_CC
4287 fi
4288
4289 if test "x$ac_cv_prog_cc_c99" = xno
4290 then :
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292 printf "%s\n" "unsupported" >&6; }
4293 else $as_nop
4294 if test "x$ac_cv_prog_cc_c99" = x
4295 then :
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4297 printf "%s\n" "none needed" >&6; }
4298 else $as_nop
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4300 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4301 CC="$CC $ac_cv_prog_cc_c99"
4302 fi
4303 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4304 ac_prog_cc_stdc=c99
4305 fi
4306 fi
4307 if test x$ac_prog_cc_stdc = xno
4308 then :
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4310 printf %s "checking for $CC option to enable C89 features... " >&6; }
4311 if test ${ac_cv_prog_cc_c89+y}
4312 then :
4313 printf %s "(cached) " >&6
4314 else $as_nop
4315 ac_cv_prog_cc_c89=no
4316 ac_save_CC=$CC
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 $ac_c_conftest_c89_program
4320 _ACEOF
4321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4322 do
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"
4325 then :
4326 ac_cv_prog_cc_c89=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.beam
4329 test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC
4333 fi
4334
4335 if test "x$ac_cv_prog_cc_c89" = xno
4336 then :
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4338 printf "%s\n" "unsupported" >&6; }
4339 else $as_nop
4340 if test "x$ac_cv_prog_cc_c89" = x
4341 then :
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4343 printf "%s\n" "none needed" >&6; }
4344 else $as_nop
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4347 CC="$CC $ac_cv_prog_cc_c89"
4348 fi
4349 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4350 ac_prog_cc_stdc=c89
4351 fi
4352 fi
4353
4354 ac_ext=c
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359
4360
4361 ac_ext=c
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4367 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4368 if test ${am_cv_prog_cc_c_o+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else $as_nop
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374
4375 int
4376 main (void)
4377 {
4378
4379 ;
4380 return 0;
4381 }
4382 _ACEOF
4383 # Make sure it works both with $CC and with simple cc.
4384 # Following AC_PROG_CC_C_O, we do the test twice because some
4385 # compilers refuse to overwrite an existing .o file with -o,
4386 # though they will create one.
4387 am_cv_prog_cc_c_o=yes
4388 for am_i in 1 2; do
4389 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4390 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } \
4394 && test -f conftest2.$ac_objext; then
4395 : OK
4396 else
4397 am_cv_prog_cc_c_o=no
4398 break
4399 fi
4400 done
4401 rm -f core conftest*
4402 unset am_i
4403 fi
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4405 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4406 if test "$am_cv_prog_cc_c_o" != yes; then
4407 # Losing compiler, so override with the script.
4408 # FIXME: It is wrong to rewrite CC.
4409 # But if we don't then we get into trouble of one sort or another.
4410 # A longer-term fix would be to have automake use am__CC in this case,
4411 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4412 CC="$am_aux_dir/compile $CC"
4413 fi
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
4420
4421 depcc="$CC" am_compiler_list=
4422
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4424 printf %s "checking dependency style of $depcc... " >&6; }
4425 if test ${am_cv_CC_dependencies_compiler_type+y}
4426 then :
4427 printf %s "(cached) " >&6
4428 else $as_nop
4429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4430 # We make a subdir and do the tests there. Otherwise we can end up
4431 # making bogus files that we don't know about and never remove. For
4432 # instance it was reported that on HP-UX the gcc test will end up
4433 # making a dummy file named 'D' -- because '-MD' means "put the output
4434 # in D".
4435 rm -rf conftest.dir
4436 mkdir conftest.dir
4437 # Copy depcomp to subdir because otherwise we won't find it if we're
4438 # using a relative directory.
4439 cp "$am_depcomp" conftest.dir
4440 cd conftest.dir
4441 # We will build objects and dependencies in a subdirectory because
4442 # it helps to detect inapplicable dependency modes. For instance
4443 # both Tru64's cc and ICC support -MD to output dependencies as a
4444 # side effect of compilation, but ICC will put the dependencies in
4445 # the current directory while Tru64 will put them in the object
4446 # directory.
4447 mkdir sub
4448
4449 am_cv_CC_dependencies_compiler_type=none
4450 if test "$am_compiler_list" = ""; then
4451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452 fi
4453 am__universal=false
4454 case " $depcc " in #(
4455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456 esac
4457
4458 for depmode in $am_compiler_list; do
4459 # Setup a source with many dependencies, because some compilers
4460 # like to wrap large dependency lists on column 80 (with \), and
4461 # we should not choose a depcomp mode which is confused by this.
4462 #
4463 # We need to recreate these files for each test, as the compiler may
4464 # overwrite some of them when testing with obscure command lines.
4465 # This happens at least with the AIX C compiler.
4466 : > sub/conftest.c
4467 for i in 1 2 3 4 5 6; do
4468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4469 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4470 # Solaris 10 /bin/sh.
4471 echo '/* dummy */' > sub/conftst$i.h
4472 done
4473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474
4475 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4476 # mode. It turns out that the SunPro C++ compiler does not properly
4477 # handle '-M -o', and we need to detect this. Also, some Intel
4478 # versions had trouble with output in subdirs.
4479 am__obj=sub/conftest.${OBJEXT-o}
4480 am__minus_obj="-o $am__obj"
4481 case $depmode in
4482 gcc)
4483 # This depmode causes a compiler race in universal mode.
4484 test "$am__universal" = false || continue
4485 ;;
4486 nosideeffect)
4487 # After this tag, mechanisms are not by side-effect, so they'll
4488 # only be used when explicitly requested.
4489 if test "x$enable_dependency_tracking" = xyes; then
4490 continue
4491 else
4492 break
4493 fi
4494 ;;
4495 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4496 # This compiler won't grok '-c -o', but also, the minuso test has
4497 # not run yet. These depmodes are late enough in the game, and
4498 # so weak that their functioning should not be impacted.
4499 am__obj=conftest.${OBJEXT-o}
4500 am__minus_obj=
4501 ;;
4502 none) break ;;
4503 esac
4504 if depmode=$depmode \
4505 source=sub/conftest.c object=$am__obj \
4506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4508 >/dev/null 2>conftest.err &&
4509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4513 # icc doesn't choke on unknown options, it will just issue warnings
4514 # or remarks (even with -Werror). So we grep stderr for any message
4515 # that says an option was ignored or not supported.
4516 # When given -MP, icc 7.0 and 7.1 complain thusly:
4517 # icc: Command line warning: ignoring option '-M'; no argument required
4518 # The diagnosis changed in icc 8.0:
4519 # icc: Command line remark: option '-MP' not supported
4520 if (grep 'ignoring option' conftest.err ||
4521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4522 am_cv_CC_dependencies_compiler_type=$depmode
4523 break
4524 fi
4525 fi
4526 done
4527
4528 cd ..
4529 rm -rf conftest.dir
4530 else
4531 am_cv_CC_dependencies_compiler_type=none
4532 fi
4533
4534 fi
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4536 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4538
4539 if
4540 test "x$enable_dependency_tracking" != xno \
4541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4542 am__fastdepCC_TRUE=
4543 am__fastdepCC_FALSE='#'
4544 else
4545 am__fastdepCC_TRUE='#'
4546 am__fastdepCC_FALSE=
4547 fi
4548
4549
4550
4551
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4553 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4554 if test ${ac_cv_c_undeclared_builtin_options+y}
4555 then :
4556 printf %s "(cached) " >&6
4557 else $as_nop
4558 ac_save_CFLAGS=$CFLAGS
4559 ac_cv_c_undeclared_builtin_options='cannot detect'
4560 for ac_arg in '' -fno-builtin; do
4561 CFLAGS="$ac_save_CFLAGS $ac_arg"
4562 # This test program should *not* compile successfully.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565
4566 int
4567 main (void)
4568 {
4569 (void) strchr;
4570 ;
4571 return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_c_try_compile "$LINENO"
4575 then :
4576
4577 else $as_nop
4578 # This test program should compile successfully.
4579 # No library function is consistently available on
4580 # freestanding implementations, so test against a dummy
4581 # declaration. Include always-available headers on the
4582 # off chance that they somehow elicit warnings.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <float.h>
4586 #include <limits.h>
4587 #include <stdarg.h>
4588 #include <stddef.h>
4589 extern void ac_decl (int, char *);
4590
4591 int
4592 main (void)
4593 {
4594 (void) ac_decl (0, (char *) 0);
4595 (void) ac_decl;
4596
4597 ;
4598 return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"
4602 then :
4603 if test x"$ac_arg" = x
4604 then :
4605 ac_cv_c_undeclared_builtin_options='none needed'
4606 else $as_nop
4607 ac_cv_c_undeclared_builtin_options=$ac_arg
4608 fi
4609 break
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4614 done
4615 CFLAGS=$ac_save_CFLAGS
4616
4617 fi
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4619 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4620 case $ac_cv_c_undeclared_builtin_options in #(
4621 'cannot detect') :
4622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4623 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4624 as_fn_error $? "cannot make $CC report undeclared builtins
4625 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4626 'none needed') :
4627 ac_c_undeclared_builtin_options='' ;; #(
4628 *) :
4629 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4630 esac
4631
4632 ac_header= ac_cache=
4633 for ac_item in $ac_header_c_list
4634 do
4635 if test $ac_cache; then
4636 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4637 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4638 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4639 fi
4640 ac_header= ac_cache=
4641 elif test $ac_header; then
4642 ac_cache=$ac_item
4643 else
4644 ac_header=$ac_item
4645 fi
4646 done
4647
4648
4649
4650
4651
4652
4653
4654
4655 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4656 then :
4657
4658 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4659
4660 fi
4661
4662
4663
4664
4665 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4666 if test "x$ac_cv_have_decl___clang__" = xyes
4667 then :
4668 CLANGCC="yes"
4669 else $as_nop
4670 CLANGCC="no"
4671 fi
4672 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4673 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4674 then :
4675 INTELCC="yes"
4676 else $as_nop
4677 INTELCC="no"
4678 fi
4679 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4680 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4681 then :
4682 SUNCC="yes"
4683 else $as_nop
4684 SUNCC="no"
4685 fi
4686
4687
4688
4689
4690
4691
4692
4693
4694 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 printf %s "checking for $ac_word... " >&6; }
4700 if test ${ac_cv_path_PKG_CONFIG+y}
4701 then :
4702 printf %s "(cached) " >&6
4703 else $as_nop
4704 case $PKG_CONFIG in
4705 [\\/]* | ?:[\\/]*)
4706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4707 ;;
4708 *)
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 case $as_dir in #(((
4714 '') as_dir=./ ;;
4715 */) ;;
4716 *) as_dir=$as_dir/ ;;
4717 esac
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4720 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 ;;
4729 esac
4730 fi
4731 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4732 if test -n "$PKG_CONFIG"; then
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4734 printf "%s\n" "$PKG_CONFIG" >&6; }
4735 else
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 printf "%s\n" "no" >&6; }
4738 fi
4739
4740
4741 fi
4742 if test -z "$ac_cv_path_PKG_CONFIG"; then
4743 ac_pt_PKG_CONFIG=$PKG_CONFIG
4744 # Extract the first word of "pkg-config", so it can be a program name with args.
4745 set dummy pkg-config; ac_word=$2
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 printf %s "checking for $ac_word... " >&6; }
4748 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else $as_nop
4752 case $ac_pt_PKG_CONFIG in
4753 [\\/]* | ?:[\\/]*)
4754 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 case $as_dir in #(((
4762 '') as_dir=./ ;;
4763 */) ;;
4764 *) as_dir=$as_dir/ ;;
4765 esac
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 ;;
4777 esac
4778 fi
4779 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4780 if test -n "$ac_pt_PKG_CONFIG"; then
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4782 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4783 else
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 printf "%s\n" "no" >&6; }
4786 fi
4787
4788 if test "x$ac_pt_PKG_CONFIG" = x; then
4789 PKG_CONFIG=""
4790 else
4791 case $cross_compiling:$ac_tool_warned in
4792 yes:)
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4796 esac
4797 PKG_CONFIG=$ac_pt_PKG_CONFIG
4798 fi
4799 else
4800 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4801 fi
4802
4803 fi
4804 if test -n "$PKG_CONFIG"; then
4805 _pkg_min_version=0.9.0
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4807 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4808 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 printf "%s\n" "yes" >&6; }
4811 else
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 printf "%s\n" "no" >&6; }
4814 PKG_CONFIG=""
4815 fi
4816 fi
4817
4818
4819 # Make sure we can run config.sub.
4820 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4821 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4822
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4824 printf %s "checking build system type... " >&6; }
4825 if test ${ac_cv_build+y}
4826 then :
4827 printf %s "(cached) " >&6
4828 else $as_nop
4829 ac_build_alias=$build_alias
4830 test "x$ac_build_alias" = x &&
4831 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4832 test "x$ac_build_alias" = x &&
4833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4834 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4835 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4836
4837 fi
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4839 printf "%s\n" "$ac_cv_build" >&6; }
4840 case $ac_cv_build in
4841 *-*-*) ;;
4842 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4843 esac
4844 build=$ac_cv_build
4845 ac_save_IFS=$IFS; IFS='-'
4846 set x $ac_cv_build
4847 shift
4848 build_cpu=$1
4849 build_vendor=$2
4850 shift; shift
4851 # Remember, the first character of IFS is used to create $*,
4852 # except with old shells:
4853 build_os=$*
4854 IFS=$ac_save_IFS
4855 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4856
4857
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4859 printf %s "checking host system type... " >&6; }
4860 if test ${ac_cv_host+y}
4861 then :
4862 printf %s "(cached) " >&6
4863 else $as_nop
4864 if test "x$host_alias" = x; then
4865 ac_cv_host=$ac_cv_build
4866 else
4867 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4868 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4869 fi
4870
4871 fi
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4873 printf "%s\n" "$ac_cv_host" >&6; }
4874 case $ac_cv_host in
4875 *-*-*) ;;
4876 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4877 esac
4878 host=$ac_cv_host
4879 ac_save_IFS=$IFS; IFS='-'
4880 set x $ac_cv_host
4881 shift
4882 host_cpu=$1
4883 host_vendor=$2
4884 shift; shift
4885 # Remember, the first character of IFS is used to create $*,
4886 # except with old shells:
4887 host_os=$*
4888 IFS=$ac_save_IFS
4889 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4890
4891
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4893 printf %s "checking for a sed that does not truncate output... " >&6; }
4894 if test ${ac_cv_path_SED+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else $as_nop
4898 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4899 for ac_i in 1 2 3 4 5 6 7; do
4900 ac_script="$ac_script$as_nl$ac_script"
4901 done
4902 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4903 { ac_script=; unset ac_script;}
4904 if test -z "$SED"; then
4905 ac_path_SED_found=false
4906 # Loop through the user's path and test for each of PROGNAME-LIST
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910 IFS=$as_save_IFS
4911 case $as_dir in #(((
4912 '') as_dir=./ ;;
4913 */) ;;
4914 *) as_dir=$as_dir/ ;;
4915 esac
4916 for ac_prog in sed gsed
4917 do
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4920 as_fn_executable_p "$ac_path_SED" || continue
4921 # Check for GNU ac_path_SED and select it if it is found.
4922 # Check for GNU $ac_path_SED
4923 case `"$ac_path_SED" --version 2>&1` in
4924 *GNU*)
4925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4926 *)
4927 ac_count=0
4928 printf %s 0123456789 >"conftest.in"
4929 while :
4930 do
4931 cat "conftest.in" "conftest.in" >"conftest.tmp"
4932 mv "conftest.tmp" "conftest.in"
4933 cp "conftest.in" "conftest.nl"
4934 printf "%s\n" '' >> "conftest.nl"
4935 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937 as_fn_arith $ac_count + 1 && ac_count=$as_val
4938 if test $ac_count -gt ${ac_path_SED_max-0}; then
4939 # Best one so far, save it but keep looking for a better one
4940 ac_cv_path_SED="$ac_path_SED"
4941 ac_path_SED_max=$ac_count
4942 fi
4943 # 10*(2^10) chars as input seems more than enough
4944 test $ac_count -gt 10 && break
4945 done
4946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4947 esac
4948
4949 $ac_path_SED_found && break 3
4950 done
4951 done
4952 done
4953 IFS=$as_save_IFS
4954 if test -z "$ac_cv_path_SED"; then
4955 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4956 fi
4957 else
4958 ac_cv_path_SED=$SED
4959 fi
4960
4961 fi
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4963 printf "%s\n" "$ac_cv_path_SED" >&6; }
4964 SED="$ac_cv_path_SED"
4965 rm -f conftest.sed
4966
4967
4968
4969
4970
4971
4972 # Check whether --enable-selective-werror was given.
4973 if test ${enable_selective_werror+y}
4974 then :
4975 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4976 else $as_nop
4977 SELECTIVE_WERROR=yes
4978 fi
4979
4980
4981
4982
4983
4984 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4985 if test "x$SUNCC" = "xyes"; then
4986 BASE_CFLAGS="-v"
4987 else
4988 BASE_CFLAGS=""
4989 fi
4990
4991 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 xorg_testset_save_CFLAGS="$CFLAGS"
5006
5007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5012 then :
5013 printf %s "(cached) " >&6
5014 else $as_nop
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 int i;
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"
5020 then :
5021 xorg_cv_cc_flag_unknown_warning_option=yes
5022 else $as_nop
5023 xorg_cv_cc_flag_unknown_warning_option=no
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5026 fi
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5030 CFLAGS="$xorg_testset_save_CFLAGS"
5031 fi
5032
5033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036 fi
5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5041 then :
5042 printf %s "(cached) " >&6
5043 else $as_nop
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"
5049 then :
5050 xorg_cv_cc_flag_unused_command_line_argument=yes
5051 else $as_nop
5052 xorg_cv_cc_flag_unused_command_line_argument=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5055 fi
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060 fi
5061
5062 found="no"
5063
5064 if test $found = "no" ; then
5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067 fi
5068
5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071 fi
5072
5073 CFLAGS="$CFLAGS -Wall"
5074
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5076 printf %s "checking if $CC supports -Wall... " >&6; }
5077 cacheid=xorg_cv_cc_flag__Wall
5078 if eval test \${$cacheid+y}
5079 then :
5080 printf %s "(cached) " >&6
5081 else $as_nop
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 int i;
5085 int
5086 main (void)
5087 {
5088
5089 ;
5090 return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_link "$LINENO"
5094 then :
5095 eval $cacheid=yes
5096 else $as_nop
5097 eval $cacheid=no
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5100 conftest$ac_exeext conftest.$ac_ext
5101 fi
5102
5103
5104 CFLAGS="$xorg_testset_save_CFLAGS"
5105
5106 eval supported=\$$cacheid
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5108 printf "%s\n" "$supported" >&6; }
5109 if test "$supported" = "yes" ; then
5110 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5111 found="yes"
5112 fi
5113 fi
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 xorg_testset_save_CFLAGS="$CFLAGS"
5130
5131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5134 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5135 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else $as_nop
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 int i;
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"
5144 then :
5145 xorg_cv_cc_flag_unknown_warning_option=yes
5146 else $as_nop
5147 xorg_cv_cc_flag_unknown_warning_option=no
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 fi
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5154 CFLAGS="$xorg_testset_save_CFLAGS"
5155 fi
5156
5157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160 fi
5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else $as_nop
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 int i;
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"
5173 then :
5174 xorg_cv_cc_flag_unused_command_line_argument=yes
5175 else $as_nop
5176 xorg_cv_cc_flag_unused_command_line_argument=no
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5179 fi
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5183 CFLAGS="$xorg_testset_save_CFLAGS"
5184 fi
5185
5186 found="no"
5187
5188 if test $found = "no" ; then
5189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5191 fi
5192
5193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5195 fi
5196
5197 CFLAGS="$CFLAGS -Wpointer-arith"
5198
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5200 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5201 cacheid=xorg_cv_cc_flag__Wpointer_arith
5202 if eval test \${$cacheid+y}
5203 then :
5204 printf %s "(cached) " >&6
5205 else $as_nop
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 int i;
5209 int
5210 main (void)
5211 {
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_link "$LINENO"
5218 then :
5219 eval $cacheid=yes
5220 else $as_nop
5221 eval $cacheid=no
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5224 conftest$ac_exeext conftest.$ac_ext
5225 fi
5226
5227
5228 CFLAGS="$xorg_testset_save_CFLAGS"
5229
5230 eval supported=\$$cacheid
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5232 printf "%s\n" "$supported" >&6; }
5233 if test "$supported" = "yes" ; then
5234 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5235 found="yes"
5236 fi
5237 fi
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 xorg_testset_save_CFLAGS="$CFLAGS"
5254
5255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5259 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5260 then :
5261 printf %s "(cached) " >&6
5262 else $as_nop
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 int i;
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"
5268 then :
5269 xorg_cv_cc_flag_unknown_warning_option=yes
5270 else $as_nop
5271 xorg_cv_cc_flag_unknown_warning_option=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5274 fi
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279 fi
5280
5281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 fi
5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5289 then :
5290 printf %s "(cached) " >&6
5291 else $as_nop
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 int i;
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"
5297 then :
5298 xorg_cv_cc_flag_unused_command_line_argument=yes
5299 else $as_nop
5300 xorg_cv_cc_flag_unused_command_line_argument=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 found="no"
5311
5312 if test $found = "no" ; then
5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315 fi
5316
5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319 fi
5320
5321 CFLAGS="$CFLAGS -Wmissing-declarations"
5322
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5324 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5325 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5326 if eval test \${$cacheid+y}
5327 then :
5328 printf %s "(cached) " >&6
5329 else $as_nop
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 int i;
5333 int
5334 main (void)
5335 {
5336
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_link "$LINENO"
5342 then :
5343 eval $cacheid=yes
5344 else $as_nop
5345 eval $cacheid=no
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5348 conftest$ac_exeext conftest.$ac_ext
5349 fi
5350
5351
5352 CFLAGS="$xorg_testset_save_CFLAGS"
5353
5354 eval supported=\$$cacheid
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5356 printf "%s\n" "$supported" >&6; }
5357 if test "$supported" = "yes" ; then
5358 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5359 found="yes"
5360 fi
5361 fi
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 xorg_testset_save_CFLAGS="$CFLAGS"
5378
5379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5384 then :
5385 printf %s "(cached) " >&6
5386 else $as_nop
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"
5392 then :
5393 xorg_cv_cc_flag_unknown_warning_option=yes
5394 else $as_nop
5395 xorg_cv_cc_flag_unknown_warning_option=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5398 fi
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5402 CFLAGS="$xorg_testset_save_CFLAGS"
5403 fi
5404
5405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408 fi
5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5413 then :
5414 printf %s "(cached) " >&6
5415 else $as_nop
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 int i;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"
5421 then :
5422 xorg_cv_cc_flag_unused_command_line_argument=yes
5423 else $as_nop
5424 xorg_cv_cc_flag_unused_command_line_argument=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 fi
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5431 CFLAGS="$xorg_testset_save_CFLAGS"
5432 fi
5433
5434 found="no"
5435
5436 if test $found = "no" ; then
5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439 fi
5440
5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5443 fi
5444
5445 CFLAGS="$CFLAGS -Wformat=2"
5446
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5448 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5449 cacheid=xorg_cv_cc_flag__Wformat_2
5450 if eval test \${$cacheid+y}
5451 then :
5452 printf %s "(cached) " >&6
5453 else $as_nop
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 int i;
5457 int
5458 main (void)
5459 {
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_c_try_link "$LINENO"
5466 then :
5467 eval $cacheid=yes
5468 else $as_nop
5469 eval $cacheid=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5472 conftest$ac_exeext conftest.$ac_ext
5473 fi
5474
5475
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5477
5478 eval supported=\$$cacheid
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5480 printf "%s\n" "$supported" >&6; }
5481 if test "$supported" = "yes" ; then
5482 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5483 found="yes"
5484 fi
5485 fi
5486
5487 if test $found = "no" ; then
5488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5490 fi
5491
5492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5494 fi
5495
5496 CFLAGS="$CFLAGS -Wformat"
5497
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5499 printf %s "checking if $CC supports -Wformat... " >&6; }
5500 cacheid=xorg_cv_cc_flag__Wformat
5501 if eval test \${$cacheid+y}
5502 then :
5503 printf %s "(cached) " >&6
5504 else $as_nop
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 int i;
5508 int
5509 main (void)
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_link "$LINENO"
5517 then :
5518 eval $cacheid=yes
5519 else $as_nop
5520 eval $cacheid=no
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5523 conftest$ac_exeext conftest.$ac_ext
5524 fi
5525
5526
5527 CFLAGS="$xorg_testset_save_CFLAGS"
5528
5529 eval supported=\$$cacheid
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5531 printf "%s\n" "$supported" >&6; }
5532 if test "$supported" = "yes" ; then
5533 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5534 found="yes"
5535 fi
5536 fi
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 xorg_testset_save_CFLAGS="$CFLAGS"
5555
5556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5560 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5561 then :
5562 printf %s "(cached) " >&6
5563 else $as_nop
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 int i;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"
5569 then :
5570 xorg_cv_cc_flag_unknown_warning_option=yes
5571 else $as_nop
5572 xorg_cv_cc_flag_unknown_warning_option=no
5573 fi
5574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5575 fi
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5579 CFLAGS="$xorg_testset_save_CFLAGS"
5580 fi
5581
5582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585 fi
5586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5590 then :
5591 printf %s "(cached) " >&6
5592 else $as_nop
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 int i;
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"
5598 then :
5599 xorg_cv_cc_flag_unused_command_line_argument=yes
5600 else $as_nop
5601 xorg_cv_cc_flag_unused_command_line_argument=no
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5604 fi
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5608 CFLAGS="$xorg_testset_save_CFLAGS"
5609 fi
5610
5611 found="no"
5612
5613 if test $found = "no" ; then
5614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616 fi
5617
5618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5620 fi
5621
5622 CFLAGS="$CFLAGS -Wstrict-prototypes"
5623
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5625 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5626 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5627 if eval test \${$cacheid+y}
5628 then :
5629 printf %s "(cached) " >&6
5630 else $as_nop
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 int i;
5634 int
5635 main (void)
5636 {
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 if ac_fn_c_try_link "$LINENO"
5643 then :
5644 eval $cacheid=yes
5645 else $as_nop
5646 eval $cacheid=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5649 conftest$ac_exeext conftest.$ac_ext
5650 fi
5651
5652
5653 CFLAGS="$xorg_testset_save_CFLAGS"
5654
5655 eval supported=\$$cacheid
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5657 printf "%s\n" "$supported" >&6; }
5658 if test "$supported" = "yes" ; then
5659 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5660 found="yes"
5661 fi
5662 fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5685 then :
5686 printf %s "(cached) " >&6
5687 else $as_nop
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 int i;
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"
5693 then :
5694 xorg_cv_cc_flag_unknown_warning_option=yes
5695 else $as_nop
5696 xorg_cv_cc_flag_unknown_warning_option=no
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5699 fi
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5703 CFLAGS="$xorg_testset_save_CFLAGS"
5704 fi
5705
5706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709 fi
5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else $as_nop
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"
5722 then :
5723 xorg_cv_cc_flag_unused_command_line_argument=yes
5724 else $as_nop
5725 xorg_cv_cc_flag_unused_command_line_argument=no
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5728 fi
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5732 CFLAGS="$xorg_testset_save_CFLAGS"
5733 fi
5734
5735 found="no"
5736
5737 if test $found = "no" ; then
5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5740 fi
5741
5742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5744 fi
5745
5746 CFLAGS="$CFLAGS -Wmissing-prototypes"
5747
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5749 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5750 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5751 if eval test \${$cacheid+y}
5752 then :
5753 printf %s "(cached) " >&6
5754 else $as_nop
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 int i;
5758 int
5759 main (void)
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_link "$LINENO"
5767 then :
5768 eval $cacheid=yes
5769 else $as_nop
5770 eval $cacheid=no
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5773 conftest$ac_exeext conftest.$ac_ext
5774 fi
5775
5776
5777 CFLAGS="$xorg_testset_save_CFLAGS"
5778
5779 eval supported=\$$cacheid
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5781 printf "%s\n" "$supported" >&6; }
5782 if test "$supported" = "yes" ; then
5783 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5784 found="yes"
5785 fi
5786 fi
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 xorg_testset_save_CFLAGS="$CFLAGS"
5803
5804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5807 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5808 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5809 then :
5810 printf %s "(cached) " >&6
5811 else $as_nop
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 int i;
5815 _ACEOF
5816 if ac_fn_c_try_compile "$LINENO"
5817 then :
5818 xorg_cv_cc_flag_unknown_warning_option=yes
5819 else $as_nop
5820 xorg_cv_cc_flag_unknown_warning_option=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5823 fi
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827 CFLAGS="$xorg_testset_save_CFLAGS"
5828 fi
5829
5830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 fi
5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"
5846 then :
5847 xorg_cv_cc_flag_unused_command_line_argument=yes
5848 else $as_nop
5849 xorg_cv_cc_flag_unused_command_line_argument=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5852 fi
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5857 fi
5858
5859 found="no"
5860
5861 if test $found = "no" ; then
5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 fi
5865
5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 fi
5869
5870 CFLAGS="$CFLAGS -Wnested-externs"
5871
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5873 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5874 cacheid=xorg_cv_cc_flag__Wnested_externs
5875 if eval test \${$cacheid+y}
5876 then :
5877 printf %s "(cached) " >&6
5878 else $as_nop
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 int i;
5882 int
5883 main (void)
5884 {
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_link "$LINENO"
5891 then :
5892 eval $cacheid=yes
5893 else $as_nop
5894 eval $cacheid=no
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5897 conftest$ac_exeext conftest.$ac_ext
5898 fi
5899
5900
5901 CFLAGS="$xorg_testset_save_CFLAGS"
5902
5903 eval supported=\$$cacheid
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5905 printf "%s\n" "$supported" >&6; }
5906 if test "$supported" = "yes" ; then
5907 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5908 found="yes"
5909 fi
5910 fi
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 xorg_testset_save_CFLAGS="$CFLAGS"
5927
5928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5933 then :
5934 printf %s "(cached) " >&6
5935 else $as_nop
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 int i;
5939 _ACEOF
5940 if ac_fn_c_try_compile "$LINENO"
5941 then :
5942 xorg_cv_cc_flag_unknown_warning_option=yes
5943 else $as_nop
5944 xorg_cv_cc_flag_unknown_warning_option=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5947 fi
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5952 fi
5953
5954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957 fi
5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5962 then :
5963 printf %s "(cached) " >&6
5964 else $as_nop
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"
5970 then :
5971 xorg_cv_cc_flag_unused_command_line_argument=yes
5972 else $as_nop
5973 xorg_cv_cc_flag_unused_command_line_argument=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5976 fi
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 found="no"
5984
5985 if test $found = "no" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989
5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992 fi
5993
5994 CFLAGS="$CFLAGS -Wbad-function-cast"
5995
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5997 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5998 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5999 if eval test \${$cacheid+y}
6000 then :
6001 printf %s "(cached) " >&6
6002 else $as_nop
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 int i;
6006 int
6007 main (void)
6008 {
6009
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_link "$LINENO"
6015 then :
6016 eval $cacheid=yes
6017 else $as_nop
6018 eval $cacheid=no
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6021 conftest$ac_exeext conftest.$ac_ext
6022 fi
6023
6024
6025 CFLAGS="$xorg_testset_save_CFLAGS"
6026
6027 eval supported=\$$cacheid
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6029 printf "%s\n" "$supported" >&6; }
6030 if test "$supported" = "yes" ; then
6031 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6032 found="yes"
6033 fi
6034 fi
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050 xorg_testset_save_CFLAGS="$CFLAGS"
6051
6052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6056 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6057 then :
6058 printf %s "(cached) " >&6
6059 else $as_nop
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 _ACEOF
6064 if ac_fn_c_try_compile "$LINENO"
6065 then :
6066 xorg_cv_cc_flag_unknown_warning_option=yes
6067 else $as_nop
6068 xorg_cv_cc_flag_unknown_warning_option=no
6069 fi
6070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6071 fi
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6075 CFLAGS="$xorg_testset_save_CFLAGS"
6076 fi
6077
6078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081 fi
6082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else $as_nop
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"
6094 then :
6095 xorg_cv_cc_flag_unused_command_line_argument=yes
6096 else $as_nop
6097 xorg_cv_cc_flag_unused_command_line_argument=no
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6100 fi
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6102 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6104 CFLAGS="$xorg_testset_save_CFLAGS"
6105 fi
6106
6107 found="no"
6108
6109 if test $found = "no" ; then
6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112 fi
6113
6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116 fi
6117
6118 CFLAGS="$CFLAGS -Wold-style-definition"
6119
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6121 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6122 cacheid=xorg_cv_cc_flag__Wold_style_definition
6123 if eval test \${$cacheid+y}
6124 then :
6125 printf %s "(cached) " >&6
6126 else $as_nop
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 int i;
6130 int
6131 main (void)
6132 {
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_link "$LINENO"
6139 then :
6140 eval $cacheid=yes
6141 else $as_nop
6142 eval $cacheid=no
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6145 conftest$ac_exeext conftest.$ac_ext
6146 fi
6147
6148
6149 CFLAGS="$xorg_testset_save_CFLAGS"
6150
6151 eval supported=\$$cacheid
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6153 printf "%s\n" "$supported" >&6; }
6154 if test "$supported" = "yes" ; then
6155 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6156 found="yes"
6157 fi
6158 fi
6159
6160 if test $found = "no" ; then
6161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6163 fi
6164
6165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6167 fi
6168
6169 CFLAGS="$CFLAGS -fd"
6170
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6172 printf %s "checking if $CC supports -fd... " >&6; }
6173 cacheid=xorg_cv_cc_flag__fd
6174 if eval test \${$cacheid+y}
6175 then :
6176 printf %s "(cached) " >&6
6177 else $as_nop
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 int i;
6181 int
6182 main (void)
6183 {
6184
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 if ac_fn_c_try_link "$LINENO"
6190 then :
6191 eval $cacheid=yes
6192 else $as_nop
6193 eval $cacheid=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6196 conftest$ac_exeext conftest.$ac_ext
6197 fi
6198
6199
6200 CFLAGS="$xorg_testset_save_CFLAGS"
6201
6202 eval supported=\$$cacheid
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6204 printf "%s\n" "$supported" >&6; }
6205 if test "$supported" = "yes" ; then
6206 BASE_CFLAGS="$BASE_CFLAGS -fd"
6207 found="yes"
6208 fi
6209 fi
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 xorg_testset_save_CFLAGS="$CFLAGS"
6226
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6230 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6231 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else $as_nop
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 int i;
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"
6240 then :
6241 xorg_cv_cc_flag_unknown_warning_option=yes
6242 else $as_nop
6243 xorg_cv_cc_flag_unknown_warning_option=no
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6246 fi
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6250 CFLAGS="$xorg_testset_save_CFLAGS"
6251 fi
6252
6253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 fi
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6261 then :
6262 printf %s "(cached) " >&6
6263 else $as_nop
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 int i;
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"
6269 then :
6270 xorg_cv_cc_flag_unused_command_line_argument=yes
6271 else $as_nop
6272 xorg_cv_cc_flag_unused_command_line_argument=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6275 fi
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6279 CFLAGS="$xorg_testset_save_CFLAGS"
6280 fi
6281
6282 found="no"
6283
6284 if test $found = "no" ; then
6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287 fi
6288
6289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291 fi
6292
6293 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6294
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6296 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6297 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6298 if eval test \${$cacheid+y}
6299 then :
6300 printf %s "(cached) " >&6
6301 else $as_nop
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 int
6306 main (void)
6307 {
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_link "$LINENO"
6314 then :
6315 eval $cacheid=yes
6316 else $as_nop
6317 eval $cacheid=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6320 conftest$ac_exeext conftest.$ac_ext
6321 fi
6322
6323
6324 CFLAGS="$xorg_testset_save_CFLAGS"
6325
6326 eval supported=\$$cacheid
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6328 printf "%s\n" "$supported" >&6; }
6329 if test "$supported" = "yes" ; then
6330 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6331 found="yes"
6332 fi
6333 fi
6334
6335
6336
6337
6338
6339 # This chunk adds additional warnings that could catch undesired effects.
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 xorg_testset_save_CFLAGS="$CFLAGS"
6354
6355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6358 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6359 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6360 then :
6361 printf %s "(cached) " >&6
6362 else $as_nop
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 int i;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"
6368 then :
6369 xorg_cv_cc_flag_unknown_warning_option=yes
6370 else $as_nop
6371 xorg_cv_cc_flag_unknown_warning_option=no
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6374 fi
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6376 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6378 CFLAGS="$xorg_testset_save_CFLAGS"
6379 fi
6380
6381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384 fi
6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6387 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6388 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else $as_nop
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 int i;
6395 _ACEOF
6396 if ac_fn_c_try_compile "$LINENO"
6397 then :
6398 xorg_cv_cc_flag_unused_command_line_argument=yes
6399 else $as_nop
6400 xorg_cv_cc_flag_unused_command_line_argument=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6403 fi
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6405 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6408 fi
6409
6410 found="no"
6411
6412 if test $found = "no" ; then
6413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415 fi
6416
6417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6419 fi
6420
6421 CFLAGS="$CFLAGS -Wunused"
6422
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6424 printf %s "checking if $CC supports -Wunused... " >&6; }
6425 cacheid=xorg_cv_cc_flag__Wunused
6426 if eval test \${$cacheid+y}
6427 then :
6428 printf %s "(cached) " >&6
6429 else $as_nop
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 int i;
6433 int
6434 main (void)
6435 {
6436
6437 ;
6438 return 0;
6439 }
6440 _ACEOF
6441 if ac_fn_c_try_link "$LINENO"
6442 then :
6443 eval $cacheid=yes
6444 else $as_nop
6445 eval $cacheid=no
6446 fi
6447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6448 conftest$ac_exeext conftest.$ac_ext
6449 fi
6450
6451
6452 CFLAGS="$xorg_testset_save_CFLAGS"
6453
6454 eval supported=\$$cacheid
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6456 printf "%s\n" "$supported" >&6; }
6457 if test "$supported" = "yes" ; then
6458 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6459 found="yes"
6460 fi
6461 fi
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477 xorg_testset_save_CFLAGS="$CFLAGS"
6478
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6483 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6484 then :
6485 printf %s "(cached) " >&6
6486 else $as_nop
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 int i;
6490 _ACEOF
6491 if ac_fn_c_try_compile "$LINENO"
6492 then :
6493 xorg_cv_cc_flag_unknown_warning_option=yes
6494 else $as_nop
6495 xorg_cv_cc_flag_unknown_warning_option=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6498 fi
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6500 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6502 CFLAGS="$xorg_testset_save_CFLAGS"
6503 fi
6504
6505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508 fi
6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6511 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6512 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6513 then :
6514 printf %s "(cached) " >&6
6515 else $as_nop
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518 int i;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"
6521 then :
6522 xorg_cv_cc_flag_unused_command_line_argument=yes
6523 else $as_nop
6524 xorg_cv_cc_flag_unused_command_line_argument=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6527 fi
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6529 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 found="no"
6535
6536 if test $found = "no" ; then
6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6539 fi
6540
6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 fi
6544
6545 CFLAGS="$CFLAGS -Wuninitialized"
6546
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6548 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6549 cacheid=xorg_cv_cc_flag__Wuninitialized
6550 if eval test \${$cacheid+y}
6551 then :
6552 printf %s "(cached) " >&6
6553 else $as_nop
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int i;
6557 int
6558 main (void)
6559 {
6560
6561 ;
6562 return 0;
6563 }
6564 _ACEOF
6565 if ac_fn_c_try_link "$LINENO"
6566 then :
6567 eval $cacheid=yes
6568 else $as_nop
6569 eval $cacheid=no
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6572 conftest$ac_exeext conftest.$ac_ext
6573 fi
6574
6575
6576 CFLAGS="$xorg_testset_save_CFLAGS"
6577
6578 eval supported=\$$cacheid
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6580 printf "%s\n" "$supported" >&6; }
6581 if test "$supported" = "yes" ; then
6582 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6583 found="yes"
6584 fi
6585 fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601 xorg_testset_save_CFLAGS="$CFLAGS"
6602
6603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6607 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6608 then :
6609 printf %s "(cached) " >&6
6610 else $as_nop
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 int i;
6614 _ACEOF
6615 if ac_fn_c_try_compile "$LINENO"
6616 then :
6617 xorg_cv_cc_flag_unknown_warning_option=yes
6618 else $as_nop
6619 xorg_cv_cc_flag_unknown_warning_option=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6622 fi
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6624 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6626 CFLAGS="$xorg_testset_save_CFLAGS"
6627 fi
6628
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632 fi
6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int i;
6643 _ACEOF
6644 if ac_fn_c_try_compile "$LINENO"
6645 then :
6646 xorg_cv_cc_flag_unused_command_line_argument=yes
6647 else $as_nop
6648 xorg_cv_cc_flag_unused_command_line_argument=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6651 fi
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6653 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6655 CFLAGS="$xorg_testset_save_CFLAGS"
6656 fi
6657
6658 found="no"
6659
6660 if test $found = "no" ; then
6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663 fi
6664
6665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6667 fi
6668
6669 CFLAGS="$CFLAGS -Wshadow"
6670
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6672 printf %s "checking if $CC supports -Wshadow... " >&6; }
6673 cacheid=xorg_cv_cc_flag__Wshadow
6674 if eval test \${$cacheid+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else $as_nop
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 int i;
6681 int
6682 main (void)
6683 {
6684
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 if ac_fn_c_try_link "$LINENO"
6690 then :
6691 eval $cacheid=yes
6692 else $as_nop
6693 eval $cacheid=no
6694 fi
6695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6696 conftest$ac_exeext conftest.$ac_ext
6697 fi
6698
6699
6700 CFLAGS="$xorg_testset_save_CFLAGS"
6701
6702 eval supported=\$$cacheid
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6704 printf "%s\n" "$supported" >&6; }
6705 if test "$supported" = "yes" ; then
6706 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6707 found="yes"
6708 fi
6709 fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725 xorg_testset_save_CFLAGS="$CFLAGS"
6726
6727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6730 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6731 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6732 then :
6733 printf %s "(cached) " >&6
6734 else $as_nop
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 int i;
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"
6740 then :
6741 xorg_cv_cc_flag_unknown_warning_option=yes
6742 else $as_nop
6743 xorg_cv_cc_flag_unknown_warning_option=no
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6746 fi
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6748 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6750 CFLAGS="$xorg_testset_save_CFLAGS"
6751 fi
6752
6753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756 fi
6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6759 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6760 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6761 then :
6762 printf %s "(cached) " >&6
6763 else $as_nop
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 int i;
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"
6769 then :
6770 xorg_cv_cc_flag_unused_command_line_argument=yes
6771 else $as_nop
6772 xorg_cv_cc_flag_unused_command_line_argument=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 fi
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6780 fi
6781
6782 found="no"
6783
6784 if test $found = "no" ; then
6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787 fi
6788
6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791 fi
6792
6793 CFLAGS="$CFLAGS -Wmissing-noreturn"
6794
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6796 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6797 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6798 if eval test \${$cacheid+y}
6799 then :
6800 printf %s "(cached) " >&6
6801 else $as_nop
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 int
6806 main (void)
6807 {
6808
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_link "$LINENO"
6814 then :
6815 eval $cacheid=yes
6816 else $as_nop
6817 eval $cacheid=no
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6820 conftest$ac_exeext conftest.$ac_ext
6821 fi
6822
6823
6824 CFLAGS="$xorg_testset_save_CFLAGS"
6825
6826 eval supported=\$$cacheid
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6828 printf "%s\n" "$supported" >&6; }
6829 if test "$supported" = "yes" ; then
6830 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6831 found="yes"
6832 fi
6833 fi
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 xorg_testset_save_CFLAGS="$CFLAGS"
6850
6851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6854 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6855 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6856 then :
6857 printf %s "(cached) " >&6
6858 else $as_nop
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 int i;
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"
6864 then :
6865 xorg_cv_cc_flag_unknown_warning_option=yes
6866 else $as_nop
6867 xorg_cv_cc_flag_unknown_warning_option=no
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6870 fi
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6872 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6874 CFLAGS="$xorg_testset_save_CFLAGS"
6875 fi
6876
6877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880 fi
6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6883 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6884 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6885 then :
6886 printf %s "(cached) " >&6
6887 else $as_nop
6888 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_unused_command_line_argument=yes
6895 else $as_nop
6896 xorg_cv_cc_flag_unused_command_line_argument=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6899 fi
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6901 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904 fi
6905
6906 found="no"
6907
6908 if test $found = "no" ; then
6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911 fi
6912
6913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915 fi
6916
6917 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6918
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6920 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6921 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6922 if eval test \${$cacheid+y}
6923 then :
6924 printf %s "(cached) " >&6
6925 else $as_nop
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 int
6930 main (void)
6931 {
6932
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"
6938 then :
6939 eval $cacheid=yes
6940 else $as_nop
6941 eval $cacheid=no
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6944 conftest$ac_exeext conftest.$ac_ext
6945 fi
6946
6947
6948 CFLAGS="$xorg_testset_save_CFLAGS"
6949
6950 eval supported=\$$cacheid
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6952 printf "%s\n" "$supported" >&6; }
6953 if test "$supported" = "yes" ; then
6954 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6955 found="yes"
6956 fi
6957 fi
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973 xorg_testset_save_CFLAGS="$CFLAGS"
6974
6975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6979 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6980 then :
6981 printf %s "(cached) " >&6
6982 else $as_nop
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 int i;
6986 _ACEOF
6987 if ac_fn_c_try_compile "$LINENO"
6988 then :
6989 xorg_cv_cc_flag_unknown_warning_option=yes
6990 else $as_nop
6991 xorg_cv_cc_flag_unknown_warning_option=no
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6994 fi
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6996 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6998 CFLAGS="$xorg_testset_save_CFLAGS"
6999 fi
7000
7001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004 fi
7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7007 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7008 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else $as_nop
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 int i;
7015 _ACEOF
7016 if ac_fn_c_try_compile "$LINENO"
7017 then :
7018 xorg_cv_cc_flag_unused_command_line_argument=yes
7019 else $as_nop
7020 xorg_cv_cc_flag_unused_command_line_argument=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7023 fi
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7025 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7027 CFLAGS="$xorg_testset_save_CFLAGS"
7028 fi
7029
7030 found="no"
7031
7032 if test $found = "no" ; then
7033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7035 fi
7036
7037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039 fi
7040
7041 CFLAGS="$CFLAGS -Wredundant-decls"
7042
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7044 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7045 cacheid=xorg_cv_cc_flag__Wredundant_decls
7046 if eval test \${$cacheid+y}
7047 then :
7048 printf %s "(cached) " >&6
7049 else $as_nop
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 int i;
7053 int
7054 main (void)
7055 {
7056
7057 ;
7058 return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_link "$LINENO"
7062 then :
7063 eval $cacheid=yes
7064 else $as_nop
7065 eval $cacheid=no
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7068 conftest$ac_exeext conftest.$ac_ext
7069 fi
7070
7071
7072 CFLAGS="$xorg_testset_save_CFLAGS"
7073
7074 eval supported=\$$cacheid
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7076 printf "%s\n" "$supported" >&6; }
7077 if test "$supported" = "yes" ; then
7078 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7079 found="yes"
7080 fi
7081 fi
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 xorg_testset_save_CFLAGS="$CFLAGS"
7098
7099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7102 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7103 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7104 then :
7105 printf %s "(cached) " >&6
7106 else $as_nop
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 int i;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"
7112 then :
7113 xorg_cv_cc_flag_unknown_warning_option=yes
7114 else $as_nop
7115 xorg_cv_cc_flag_unknown_warning_option=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7118 fi
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7120 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7122 CFLAGS="$xorg_testset_save_CFLAGS"
7123 fi
7124
7125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128 fi
7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7131 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7132 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else $as_nop
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 int i;
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"
7141 then :
7142 xorg_cv_cc_flag_unused_command_line_argument=yes
7143 else $as_nop
7144 xorg_cv_cc_flag_unused_command_line_argument=no
7145 fi
7146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7147 fi
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7149 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7151 CFLAGS="$xorg_testset_save_CFLAGS"
7152 fi
7153
7154 found="no"
7155
7156 if test $found = "no" ; then
7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159 fi
7160
7161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163 fi
7164
7165 CFLAGS="$CFLAGS -Wlogical-op"
7166
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7168 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7169 cacheid=xorg_cv_cc_flag__Wlogical_op
7170 if eval test \${$cacheid+y}
7171 then :
7172 printf %s "(cached) " >&6
7173 else $as_nop
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 int i;
7177 int
7178 main (void)
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"
7186 then :
7187 eval $cacheid=yes
7188 else $as_nop
7189 eval $cacheid=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7192 conftest$ac_exeext conftest.$ac_ext
7193 fi
7194
7195
7196 CFLAGS="$xorg_testset_save_CFLAGS"
7197
7198 eval supported=\$$cacheid
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7200 printf "%s\n" "$supported" >&6; }
7201 if test "$supported" = "yes" ; then
7202 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7203 found="yes"
7204 fi
7205 fi
7206
7207
7208
7209 # These are currently disabled because they are noisy. They will be enabled
7210 # in the future once the codebase is sufficiently modernized to silence
7211 # them. For now, I don't want them to drown out the other warnings.
7212 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7213 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7214 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7215
7216 # Turn some warnings into errors, so we don't accidently get successful builds
7217 # when there are problems that should be fixed.
7218
7219 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 xorg_testset_save_CFLAGS="$CFLAGS"
7234
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else $as_nop
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 _ACEOF
7247 if ac_fn_c_try_compile "$LINENO"
7248 then :
7249 xorg_cv_cc_flag_unknown_warning_option=yes
7250 else $as_nop
7251 xorg_cv_cc_flag_unknown_warning_option=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7254 fi
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264 fi
7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else $as_nop
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"
7277 then :
7278 xorg_cv_cc_flag_unused_command_line_argument=yes
7279 else $as_nop
7280 xorg_cv_cc_flag_unused_command_line_argument=no
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7283 fi
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7287 CFLAGS="$xorg_testset_save_CFLAGS"
7288 fi
7289
7290 found="no"
7291
7292 if test $found = "no" ; then
7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7295 fi
7296
7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7299 fi
7300
7301 CFLAGS="$CFLAGS -Werror=implicit"
7302
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7304 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7305 cacheid=xorg_cv_cc_flag__Werror_implicit
7306 if eval test \${$cacheid+y}
7307 then :
7308 printf %s "(cached) " >&6
7309 else $as_nop
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 int i;
7313 int
7314 main (void)
7315 {
7316
7317 ;
7318 return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_c_try_link "$LINENO"
7322 then :
7323 eval $cacheid=yes
7324 else $as_nop
7325 eval $cacheid=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7328 conftest$ac_exeext conftest.$ac_ext
7329 fi
7330
7331
7332 CFLAGS="$xorg_testset_save_CFLAGS"
7333
7334 eval supported=\$$cacheid
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7336 printf "%s\n" "$supported" >&6; }
7337 if test "$supported" = "yes" ; then
7338 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7339 found="yes"
7340 fi
7341 fi
7342
7343 if test $found = "no" ; then
7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346 fi
7347
7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350 fi
7351
7352 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7353
7354 { 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
7355 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7356 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7357 if eval test \${$cacheid+y}
7358 then :
7359 printf %s "(cached) " >&6
7360 else $as_nop
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 int i;
7364 int
7365 main (void)
7366 {
7367
7368 ;
7369 return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_link "$LINENO"
7373 then :
7374 eval $cacheid=yes
7375 else $as_nop
7376 eval $cacheid=no
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7379 conftest$ac_exeext conftest.$ac_ext
7380 fi
7381
7382
7383 CFLAGS="$xorg_testset_save_CFLAGS"
7384
7385 eval supported=\$$cacheid
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7387 printf "%s\n" "$supported" >&6; }
7388 if test "$supported" = "yes" ; then
7389 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7390 found="yes"
7391 fi
7392 fi
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 xorg_testset_save_CFLAGS="$CFLAGS"
7409
7410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7413 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7414 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7415 then :
7416 printf %s "(cached) " >&6
7417 else $as_nop
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 int i;
7421 _ACEOF
7422 if ac_fn_c_try_compile "$LINENO"
7423 then :
7424 xorg_cv_cc_flag_unknown_warning_option=yes
7425 else $as_nop
7426 xorg_cv_cc_flag_unknown_warning_option=no
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7429 fi
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434 fi
7435
7436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 fi
7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7444 then :
7445 printf %s "(cached) " >&6
7446 else $as_nop
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"
7452 then :
7453 xorg_cv_cc_flag_unused_command_line_argument=yes
7454 else $as_nop
7455 xorg_cv_cc_flag_unused_command_line_argument=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7458 fi
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7462 CFLAGS="$xorg_testset_save_CFLAGS"
7463 fi
7464
7465 found="no"
7466
7467 if test $found = "no" ; then
7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 fi
7471
7472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7474 fi
7475
7476 CFLAGS="$CFLAGS -Werror=nonnull"
7477
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7479 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7480 cacheid=xorg_cv_cc_flag__Werror_nonnull
7481 if eval test \${$cacheid+y}
7482 then :
7483 printf %s "(cached) " >&6
7484 else $as_nop
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 int i;
7488 int
7489 main (void)
7490 {
7491
7492 ;
7493 return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_link "$LINENO"
7497 then :
7498 eval $cacheid=yes
7499 else $as_nop
7500 eval $cacheid=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7503 conftest$ac_exeext conftest.$ac_ext
7504 fi
7505
7506
7507 CFLAGS="$xorg_testset_save_CFLAGS"
7508
7509 eval supported=\$$cacheid
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7511 printf "%s\n" "$supported" >&6; }
7512 if test "$supported" = "yes" ; then
7513 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7514 found="yes"
7515 fi
7516 fi
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 xorg_testset_save_CFLAGS="$CFLAGS"
7533
7534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7539 then :
7540 printf %s "(cached) " >&6
7541 else $as_nop
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 int i;
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"
7547 then :
7548 xorg_cv_cc_flag_unknown_warning_option=yes
7549 else $as_nop
7550 xorg_cv_cc_flag_unknown_warning_option=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7553 fi
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558 fi
7559
7560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563 fi
7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"
7576 then :
7577 xorg_cv_cc_flag_unused_command_line_argument=yes
7578 else $as_nop
7579 xorg_cv_cc_flag_unused_command_line_argument=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 -Werror=init-self"
7601
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7603 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7604 cacheid=xorg_cv_cc_flag__Werror_init_self
7605 if eval test \${$cacheid+y}
7606 then :
7607 printf %s "(cached) " >&6
7608 else $as_nop
7609 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 $as_nop
7624 eval $cacheid=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7627 conftest$ac_exeext conftest.$ac_ext
7628 fi
7629
7630
7631 CFLAGS="$xorg_testset_save_CFLAGS"
7632
7633 eval supported=\$$cacheid
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7635 printf "%s\n" "$supported" >&6; }
7636 if test "$supported" = "yes" ; then
7637 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7638 found="yes"
7639 fi
7640 fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656 xorg_testset_save_CFLAGS="$CFLAGS"
7657
7658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else $as_nop
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 int i;
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"
7671 then :
7672 xorg_cv_cc_flag_unknown_warning_option=yes
7673 else $as_nop
7674 xorg_cv_cc_flag_unknown_warning_option=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7677 fi
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7679 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7681 CFLAGS="$xorg_testset_save_CFLAGS"
7682 fi
7683
7684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 fi
7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7690 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7691 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7692 then :
7693 printf %s "(cached) " >&6
7694 else $as_nop
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"
7700 then :
7701 xorg_cv_cc_flag_unused_command_line_argument=yes
7702 else $as_nop
7703 xorg_cv_cc_flag_unused_command_line_argument=no
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 fi
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7710 CFLAGS="$xorg_testset_save_CFLAGS"
7711 fi
7712
7713 found="no"
7714
7715 if test $found = "no" ; then
7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7718 fi
7719
7720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722 fi
7723
7724 CFLAGS="$CFLAGS -Werror=main"
7725
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7727 printf %s "checking if $CC supports -Werror=main... " >&6; }
7728 cacheid=xorg_cv_cc_flag__Werror_main
7729 if eval test \${$cacheid+y}
7730 then :
7731 printf %s "(cached) " >&6
7732 else $as_nop
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 int i;
7736 int
7737 main (void)
7738 {
7739
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 if ac_fn_c_try_link "$LINENO"
7745 then :
7746 eval $cacheid=yes
7747 else $as_nop
7748 eval $cacheid=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7751 conftest$ac_exeext conftest.$ac_ext
7752 fi
7753
7754
7755 CFLAGS="$xorg_testset_save_CFLAGS"
7756
7757 eval supported=\$$cacheid
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7759 printf "%s\n" "$supported" >&6; }
7760 if test "$supported" = "yes" ; then
7761 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7762 found="yes"
7763 fi
7764 fi
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 xorg_testset_save_CFLAGS="$CFLAGS"
7781
7782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7786 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7787 then :
7788 printf %s "(cached) " >&6
7789 else $as_nop
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 int i;
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"
7795 then :
7796 xorg_cv_cc_flag_unknown_warning_option=yes
7797 else $as_nop
7798 xorg_cv_cc_flag_unknown_warning_option=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7801 fi
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7803 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7805 CFLAGS="$xorg_testset_save_CFLAGS"
7806 fi
7807
7808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811 fi
7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7814 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7815 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 _ACEOF
7823 if ac_fn_c_try_compile "$LINENO"
7824 then :
7825 xorg_cv_cc_flag_unused_command_line_argument=yes
7826 else $as_nop
7827 xorg_cv_cc_flag_unused_command_line_argument=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7830 fi
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7832 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7834 CFLAGS="$xorg_testset_save_CFLAGS"
7835 fi
7836
7837 found="no"
7838
7839 if test $found = "no" ; then
7840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7842 fi
7843
7844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7846 fi
7847
7848 CFLAGS="$CFLAGS -Werror=missing-braces"
7849
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7851 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7852 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7853 if eval test \${$cacheid+y}
7854 then :
7855 printf %s "(cached) " >&6
7856 else $as_nop
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859 int i;
7860 int
7861 main (void)
7862 {
7863
7864 ;
7865 return 0;
7866 }
7867 _ACEOF
7868 if ac_fn_c_try_link "$LINENO"
7869 then :
7870 eval $cacheid=yes
7871 else $as_nop
7872 eval $cacheid=no
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7875 conftest$ac_exeext conftest.$ac_ext
7876 fi
7877
7878
7879 CFLAGS="$xorg_testset_save_CFLAGS"
7880
7881 eval supported=\$$cacheid
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7883 printf "%s\n" "$supported" >&6; }
7884 if test "$supported" = "yes" ; then
7885 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7886 found="yes"
7887 fi
7888 fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904 xorg_testset_save_CFLAGS="$CFLAGS"
7905
7906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7910 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else $as_nop
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int i;
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"
7919 then :
7920 xorg_cv_cc_flag_unknown_warning_option=yes
7921 else $as_nop
7922 xorg_cv_cc_flag_unknown_warning_option=no
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7925 fi
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7927 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7929 CFLAGS="$xorg_testset_save_CFLAGS"
7930 fi
7931
7932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935 fi
7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7940 then :
7941 printf %s "(cached) " >&6
7942 else $as_nop
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 int i;
7946 _ACEOF
7947 if ac_fn_c_try_compile "$LINENO"
7948 then :
7949 xorg_cv_cc_flag_unused_command_line_argument=yes
7950 else $as_nop
7951 xorg_cv_cc_flag_unused_command_line_argument=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7954 fi
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7956 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959 fi
7960
7961 found="no"
7962
7963 if test $found = "no" ; then
7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966 fi
7967
7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7970 fi
7971
7972 CFLAGS="$CFLAGS -Werror=sequence-point"
7973
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7975 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7976 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7977 if eval test \${$cacheid+y}
7978 then :
7979 printf %s "(cached) " >&6
7980 else $as_nop
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 int i;
7984 int
7985 main (void)
7986 {
7987
7988 ;
7989 return 0;
7990 }
7991 _ACEOF
7992 if ac_fn_c_try_link "$LINENO"
7993 then :
7994 eval $cacheid=yes
7995 else $as_nop
7996 eval $cacheid=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7999 conftest$ac_exeext conftest.$ac_ext
8000 fi
8001
8002
8003 CFLAGS="$xorg_testset_save_CFLAGS"
8004
8005 eval supported=\$$cacheid
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8007 printf "%s\n" "$supported" >&6; }
8008 if test "$supported" = "yes" ; then
8009 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8010 found="yes"
8011 fi
8012 fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 xorg_testset_save_CFLAGS="$CFLAGS"
8029
8030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8034 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8035 then :
8036 printf %s "(cached) " >&6
8037 else $as_nop
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 int i;
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"
8043 then :
8044 xorg_cv_cc_flag_unknown_warning_option=yes
8045 else $as_nop
8046 xorg_cv_cc_flag_unknown_warning_option=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8049 fi
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8053 CFLAGS="$xorg_testset_save_CFLAGS"
8054 fi
8055
8056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059 fi
8060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else $as_nop
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int i;
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"
8072 then :
8073 xorg_cv_cc_flag_unused_command_line_argument=yes
8074 else $as_nop
8075 xorg_cv_cc_flag_unused_command_line_argument=no
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8078 fi
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8082 CFLAGS="$xorg_testset_save_CFLAGS"
8083 fi
8084
8085 found="no"
8086
8087 if test $found = "no" ; then
8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090 fi
8091
8092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8094 fi
8095
8096 CFLAGS="$CFLAGS -Werror=return-type"
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8099 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8100 cacheid=xorg_cv_cc_flag__Werror_return_type
8101 if eval test \${$cacheid+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else $as_nop
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int i;
8108 int
8109 main (void)
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"
8117 then :
8118 eval $cacheid=yes
8119 else $as_nop
8120 eval $cacheid=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8123 conftest$ac_exeext conftest.$ac_ext
8124 fi
8125
8126
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129 eval supported=\$$cacheid
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131 printf "%s\n" "$supported" >&6; }
8132 if test "$supported" = "yes" ; then
8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8134 found="yes"
8135 fi
8136 fi
8137
8138 if test $found = "no" ; then
8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 fi
8142
8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8145 fi
8146
8147 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8148
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8150 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8151 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8152 if eval test \${$cacheid+y}
8153 then :
8154 printf %s "(cached) " >&6
8155 else $as_nop
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 int i;
8159 int
8160 main (void)
8161 {
8162
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 if ac_fn_c_try_link "$LINENO"
8168 then :
8169 eval $cacheid=yes
8170 else $as_nop
8171 eval $cacheid=no
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8174 conftest$ac_exeext conftest.$ac_ext
8175 fi
8176
8177
8178 CFLAGS="$xorg_testset_save_CFLAGS"
8179
8180 eval supported=\$$cacheid
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8182 printf "%s\n" "$supported" >&6; }
8183 if test "$supported" = "yes" ; then
8184 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8185 found="yes"
8186 fi
8187 fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203 xorg_testset_save_CFLAGS="$CFLAGS"
8204
8205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8209 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8210 then :
8211 printf %s "(cached) " >&6
8212 else $as_nop
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 int i;
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"
8218 then :
8219 xorg_cv_cc_flag_unknown_warning_option=yes
8220 else $as_nop
8221 xorg_cv_cc_flag_unknown_warning_option=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8224 fi
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8228 CFLAGS="$xorg_testset_save_CFLAGS"
8229 fi
8230
8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234 fi
8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8239 then :
8240 printf %s "(cached) " >&6
8241 else $as_nop
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 int i;
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"
8247 then :
8248 xorg_cv_cc_flag_unused_command_line_argument=yes
8249 else $as_nop
8250 xorg_cv_cc_flag_unused_command_line_argument=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8253 fi
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257 CFLAGS="$xorg_testset_save_CFLAGS"
8258 fi
8259
8260 found="no"
8261
8262 if test $found = "no" ; then
8263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265 fi
8266
8267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269 fi
8270
8271 CFLAGS="$CFLAGS -Werror=trigraphs"
8272
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8274 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8275 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8276 if eval test \${$cacheid+y}
8277 then :
8278 printf %s "(cached) " >&6
8279 else $as_nop
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 int i;
8283 int
8284 main (void)
8285 {
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"
8292 then :
8293 eval $cacheid=yes
8294 else $as_nop
8295 eval $cacheid=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8298 conftest$ac_exeext conftest.$ac_ext
8299 fi
8300
8301
8302 CFLAGS="$xorg_testset_save_CFLAGS"
8303
8304 eval supported=\$$cacheid
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8306 printf "%s\n" "$supported" >&6; }
8307 if test "$supported" = "yes" ; then
8308 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8309 found="yes"
8310 fi
8311 fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327 xorg_testset_save_CFLAGS="$CFLAGS"
8328
8329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8333 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8334 then :
8335 printf %s "(cached) " >&6
8336 else $as_nop
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 int i;
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"
8342 then :
8343 xorg_cv_cc_flag_unknown_warning_option=yes
8344 else $as_nop
8345 xorg_cv_cc_flag_unknown_warning_option=no
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8348 fi
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8350 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8352 CFLAGS="$xorg_testset_save_CFLAGS"
8353 fi
8354
8355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358 fi
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8361 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8362 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else $as_nop
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 int i;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"
8371 then :
8372 xorg_cv_cc_flag_unused_command_line_argument=yes
8373 else $as_nop
8374 xorg_cv_cc_flag_unused_command_line_argument=no
8375 fi
8376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8377 fi
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8381 CFLAGS="$xorg_testset_save_CFLAGS"
8382 fi
8383
8384 found="no"
8385
8386 if test $found = "no" ; then
8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389 fi
8390
8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8393 fi
8394
8395 CFLAGS="$CFLAGS -Werror=array-bounds"
8396
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8398 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8399 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8400 if eval test \${$cacheid+y}
8401 then :
8402 printf %s "(cached) " >&6
8403 else $as_nop
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 int i;
8407 int
8408 main (void)
8409 {
8410
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"
8416 then :
8417 eval $cacheid=yes
8418 else $as_nop
8419 eval $cacheid=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8422 conftest$ac_exeext conftest.$ac_ext
8423 fi
8424
8425
8426 CFLAGS="$xorg_testset_save_CFLAGS"
8427
8428 eval supported=\$$cacheid
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8430 printf "%s\n" "$supported" >&6; }
8431 if test "$supported" = "yes" ; then
8432 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8433 found="yes"
8434 fi
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451 xorg_testset_save_CFLAGS="$CFLAGS"
8452
8453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8458 then :
8459 printf %s "(cached) " >&6
8460 else $as_nop
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 int i;
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"
8466 then :
8467 xorg_cv_cc_flag_unknown_warning_option=yes
8468 else $as_nop
8469 xorg_cv_cc_flag_unknown_warning_option=no
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8472 fi
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8476 CFLAGS="$xorg_testset_save_CFLAGS"
8477 fi
8478
8479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482 fi
8483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8487 then :
8488 printf %s "(cached) " >&6
8489 else $as_nop
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 int i;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"
8495 then :
8496 xorg_cv_cc_flag_unused_command_line_argument=yes
8497 else $as_nop
8498 xorg_cv_cc_flag_unused_command_line_argument=no
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8501 fi
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8505 CFLAGS="$xorg_testset_save_CFLAGS"
8506 fi
8507
8508 found="no"
8509
8510 if test $found = "no" ; then
8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513 fi
8514
8515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517 fi
8518
8519 CFLAGS="$CFLAGS -Werror=write-strings"
8520
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8522 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8523 cacheid=xorg_cv_cc_flag__Werror_write_strings
8524 if eval test \${$cacheid+y}
8525 then :
8526 printf %s "(cached) " >&6
8527 else $as_nop
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 int i;
8531 int
8532 main (void)
8533 {
8534
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_link "$LINENO"
8540 then :
8541 eval $cacheid=yes
8542 else $as_nop
8543 eval $cacheid=no
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8546 conftest$ac_exeext conftest.$ac_ext
8547 fi
8548
8549
8550 CFLAGS="$xorg_testset_save_CFLAGS"
8551
8552 eval supported=\$$cacheid
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8554 printf "%s\n" "$supported" >&6; }
8555 if test "$supported" = "yes" ; then
8556 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8557 found="yes"
8558 fi
8559 fi
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575 xorg_testset_save_CFLAGS="$CFLAGS"
8576
8577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8580 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8581 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8582 then :
8583 printf %s "(cached) " >&6
8584 else $as_nop
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 int i;
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"
8590 then :
8591 xorg_cv_cc_flag_unknown_warning_option=yes
8592 else $as_nop
8593 xorg_cv_cc_flag_unknown_warning_option=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8596 fi
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8598 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8600 CFLAGS="$xorg_testset_save_CFLAGS"
8601 fi
8602
8603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606 fi
8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8611 then :
8612 printf %s "(cached) " >&6
8613 else $as_nop
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 int i;
8617 _ACEOF
8618 if ac_fn_c_try_compile "$LINENO"
8619 then :
8620 xorg_cv_cc_flag_unused_command_line_argument=yes
8621 else $as_nop
8622 xorg_cv_cc_flag_unused_command_line_argument=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8625 fi
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8627 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8629 CFLAGS="$xorg_testset_save_CFLAGS"
8630 fi
8631
8632 found="no"
8633
8634 if test $found = "no" ; then
8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8637 fi
8638
8639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641 fi
8642
8643 CFLAGS="$CFLAGS -Werror=address"
8644
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8646 printf %s "checking if $CC supports -Werror=address... " >&6; }
8647 cacheid=xorg_cv_cc_flag__Werror_address
8648 if eval test \${$cacheid+y}
8649 then :
8650 printf %s "(cached) " >&6
8651 else $as_nop
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 int i;
8655 int
8656 main (void)
8657 {
8658
8659 ;
8660 return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_c_try_link "$LINENO"
8664 then :
8665 eval $cacheid=yes
8666 else $as_nop
8667 eval $cacheid=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8670 conftest$ac_exeext conftest.$ac_ext
8671 fi
8672
8673
8674 CFLAGS="$xorg_testset_save_CFLAGS"
8675
8676 eval supported=\$$cacheid
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8678 printf "%s\n" "$supported" >&6; }
8679 if test "$supported" = "yes" ; then
8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8681 found="yes"
8682 fi
8683 fi
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 xorg_testset_save_CFLAGS="$CFLAGS"
8700
8701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8704 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8705 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8706 then :
8707 printf %s "(cached) " >&6
8708 else $as_nop
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 int i;
8712 _ACEOF
8713 if ac_fn_c_try_compile "$LINENO"
8714 then :
8715 xorg_cv_cc_flag_unknown_warning_option=yes
8716 else $as_nop
8717 xorg_cv_cc_flag_unknown_warning_option=no
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8720 fi
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8724 CFLAGS="$xorg_testset_save_CFLAGS"
8725 fi
8726
8727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8730 fi
8731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8735 then :
8736 printf %s "(cached) " >&6
8737 else $as_nop
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 int i;
8741 _ACEOF
8742 if ac_fn_c_try_compile "$LINENO"
8743 then :
8744 xorg_cv_cc_flag_unused_command_line_argument=yes
8745 else $as_nop
8746 xorg_cv_cc_flag_unused_command_line_argument=no
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8749 fi
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8753 CFLAGS="$xorg_testset_save_CFLAGS"
8754 fi
8755
8756 found="no"
8757
8758 if test $found = "no" ; then
8759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8761 fi
8762
8763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8765 fi
8766
8767 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8768
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8770 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8771 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8772 if eval test \${$cacheid+y}
8773 then :
8774 printf %s "(cached) " >&6
8775 else $as_nop
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 int i;
8779 int
8780 main (void)
8781 {
8782
8783 ;
8784 return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_c_try_link "$LINENO"
8788 then :
8789 eval $cacheid=yes
8790 else $as_nop
8791 eval $cacheid=no
8792 fi
8793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8794 conftest$ac_exeext conftest.$ac_ext
8795 fi
8796
8797
8798 CFLAGS="$xorg_testset_save_CFLAGS"
8799
8800 eval supported=\$$cacheid
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8802 printf "%s\n" "$supported" >&6; }
8803 if test "$supported" = "yes" ; then
8804 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8805 found="yes"
8806 fi
8807 fi
8808
8809 if test $found = "no" ; then
8810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8812 fi
8813
8814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8816 fi
8817
8818 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8819
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8821 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8822 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8823 if eval test \${$cacheid+y}
8824 then :
8825 printf %s "(cached) " >&6
8826 else $as_nop
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 int i;
8830 int
8831 main (void)
8832 {
8833
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_link "$LINENO"
8839 then :
8840 eval $cacheid=yes
8841 else $as_nop
8842 eval $cacheid=no
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8845 conftest$ac_exeext conftest.$ac_ext
8846 fi
8847
8848
8849 CFLAGS="$xorg_testset_save_CFLAGS"
8850
8851 eval supported=\$$cacheid
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8853 printf "%s\n" "$supported" >&6; }
8854 if test "$supported" = "yes" ; then
8855 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8856 found="yes"
8857 fi
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874 xorg_testset_save_CFLAGS="$CFLAGS"
8875
8876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8879 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8880 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8881 then :
8882 printf %s "(cached) " >&6
8883 else $as_nop
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 int i;
8887 _ACEOF
8888 if ac_fn_c_try_compile "$LINENO"
8889 then :
8890 xorg_cv_cc_flag_unknown_warning_option=yes
8891 else $as_nop
8892 xorg_cv_cc_flag_unknown_warning_option=no
8893 fi
8894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8895 fi
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8899 CFLAGS="$xorg_testset_save_CFLAGS"
8900 fi
8901
8902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905 fi
8906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else $as_nop
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 int i;
8916 _ACEOF
8917 if ac_fn_c_try_compile "$LINENO"
8918 then :
8919 xorg_cv_cc_flag_unused_command_line_argument=yes
8920 else $as_nop
8921 xorg_cv_cc_flag_unused_command_line_argument=no
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8924 fi
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8928 CFLAGS="$xorg_testset_save_CFLAGS"
8929 fi
8930
8931 found="no"
8932
8933 if test $found = "no" ; then
8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936 fi
8937
8938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8940 fi
8941
8942 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8943
8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8945 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8946 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8947 if eval test \${$cacheid+y}
8948 then :
8949 printf %s "(cached) " >&6
8950 else $as_nop
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 int i;
8954 int
8955 main (void)
8956 {
8957
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 if ac_fn_c_try_link "$LINENO"
8963 then :
8964 eval $cacheid=yes
8965 else $as_nop
8966 eval $cacheid=no
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8969 conftest$ac_exeext conftest.$ac_ext
8970 fi
8971
8972
8973 CFLAGS="$xorg_testset_save_CFLAGS"
8974
8975 eval supported=\$$cacheid
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8977 printf "%s\n" "$supported" >&6; }
8978 if test "$supported" = "yes" ; then
8979 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8980 found="yes"
8981 fi
8982 fi
8983
8984 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8985 else
8986 { 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
8987 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;}
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001 xorg_testset_save_CFLAGS="$CFLAGS"
9002
9003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9007 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9008 then :
9009 printf %s "(cached) " >&6
9010 else $as_nop
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 int i;
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"
9016 then :
9017 xorg_cv_cc_flag_unknown_warning_option=yes
9018 else $as_nop
9019 xorg_cv_cc_flag_unknown_warning_option=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9022 fi
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9024 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9026 CFLAGS="$xorg_testset_save_CFLAGS"
9027 fi
9028
9029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 fi
9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9035 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9036 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else $as_nop
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 int i;
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"
9045 then :
9046 xorg_cv_cc_flag_unused_command_line_argument=yes
9047 else $as_nop
9048 xorg_cv_cc_flag_unused_command_line_argument=no
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 fi
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9053 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9055 CFLAGS="$xorg_testset_save_CFLAGS"
9056 fi
9057
9058 found="no"
9059
9060 if test $found = "no" ; then
9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063 fi
9064
9065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9067 fi
9068
9069 CFLAGS="$CFLAGS -Wimplicit"
9070
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9072 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9073 cacheid=xorg_cv_cc_flag__Wimplicit
9074 if eval test \${$cacheid+y}
9075 then :
9076 printf %s "(cached) " >&6
9077 else $as_nop
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 int i;
9081 int
9082 main (void)
9083 {
9084
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"
9090 then :
9091 eval $cacheid=yes
9092 else $as_nop
9093 eval $cacheid=no
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9096 conftest$ac_exeext conftest.$ac_ext
9097 fi
9098
9099
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9101
9102 eval supported=\$$cacheid
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9104 printf "%s\n" "$supported" >&6; }
9105 if test "$supported" = "yes" ; then
9106 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9107 found="yes"
9108 fi
9109 fi
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125 xorg_testset_save_CFLAGS="$CFLAGS"
9126
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9130 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9131 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9132 then :
9133 printf %s "(cached) " >&6
9134 else $as_nop
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 int i;
9138 _ACEOF
9139 if ac_fn_c_try_compile "$LINENO"
9140 then :
9141 xorg_cv_cc_flag_unknown_warning_option=yes
9142 else $as_nop
9143 xorg_cv_cc_flag_unknown_warning_option=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9146 fi
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9148 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9150 CFLAGS="$xorg_testset_save_CFLAGS"
9151 fi
9152
9153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 fi
9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9159 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9160 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else $as_nop
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"
9169 then :
9170 xorg_cv_cc_flag_unused_command_line_argument=yes
9171 else $as_nop
9172 xorg_cv_cc_flag_unused_command_line_argument=no
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9175 fi
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9177 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9179 CFLAGS="$xorg_testset_save_CFLAGS"
9180 fi
9181
9182 found="no"
9183
9184 if test $found = "no" ; then
9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9187 fi
9188
9189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9191 fi
9192
9193 CFLAGS="$CFLAGS -Wnonnull"
9194
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9196 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9197 cacheid=xorg_cv_cc_flag__Wnonnull
9198 if eval test \${$cacheid+y}
9199 then :
9200 printf %s "(cached) " >&6
9201 else $as_nop
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 int i;
9205 int
9206 main (void)
9207 {
9208
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"
9214 then :
9215 eval $cacheid=yes
9216 else $as_nop
9217 eval $cacheid=no
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9220 conftest$ac_exeext conftest.$ac_ext
9221 fi
9222
9223
9224 CFLAGS="$xorg_testset_save_CFLAGS"
9225
9226 eval supported=\$$cacheid
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9228 printf "%s\n" "$supported" >&6; }
9229 if test "$supported" = "yes" ; then
9230 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9231 found="yes"
9232 fi
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249 xorg_testset_save_CFLAGS="$CFLAGS"
9250
9251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9256 then :
9257 printf %s "(cached) " >&6
9258 else $as_nop
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 int i;
9262 _ACEOF
9263 if ac_fn_c_try_compile "$LINENO"
9264 then :
9265 xorg_cv_cc_flag_unknown_warning_option=yes
9266 else $as_nop
9267 xorg_cv_cc_flag_unknown_warning_option=no
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9270 fi
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9272 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9274 CFLAGS="$xorg_testset_save_CFLAGS"
9275 fi
9276
9277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280 fi
9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int i;
9291 _ACEOF
9292 if ac_fn_c_try_compile "$LINENO"
9293 then :
9294 xorg_cv_cc_flag_unused_command_line_argument=yes
9295 else $as_nop
9296 xorg_cv_cc_flag_unused_command_line_argument=no
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9299 fi
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9301 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9303 CFLAGS="$xorg_testset_save_CFLAGS"
9304 fi
9305
9306 found="no"
9307
9308 if test $found = "no" ; then
9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311 fi
9312
9313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9315 fi
9316
9317 CFLAGS="$CFLAGS -Winit-self"
9318
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9320 printf %s "checking if $CC supports -Winit-self... " >&6; }
9321 cacheid=xorg_cv_cc_flag__Winit_self
9322 if eval test \${$cacheid+y}
9323 then :
9324 printf %s "(cached) " >&6
9325 else $as_nop
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 int i;
9329 int
9330 main (void)
9331 {
9332
9333 ;
9334 return 0;
9335 }
9336 _ACEOF
9337 if ac_fn_c_try_link "$LINENO"
9338 then :
9339 eval $cacheid=yes
9340 else $as_nop
9341 eval $cacheid=no
9342 fi
9343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9344 conftest$ac_exeext conftest.$ac_ext
9345 fi
9346
9347
9348 CFLAGS="$xorg_testset_save_CFLAGS"
9349
9350 eval supported=\$$cacheid
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9352 printf "%s\n" "$supported" >&6; }
9353 if test "$supported" = "yes" ; then
9354 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9355 found="yes"
9356 fi
9357 fi
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373 xorg_testset_save_CFLAGS="$CFLAGS"
9374
9375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9378 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9379 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9380 then :
9381 printf %s "(cached) " >&6
9382 else $as_nop
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 int i;
9386 _ACEOF
9387 if ac_fn_c_try_compile "$LINENO"
9388 then :
9389 xorg_cv_cc_flag_unknown_warning_option=yes
9390 else $as_nop
9391 xorg_cv_cc_flag_unknown_warning_option=no
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9394 fi
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9396 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9398 CFLAGS="$xorg_testset_save_CFLAGS"
9399 fi
9400
9401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404 fi
9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9407 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9408 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 int i;
9415 _ACEOF
9416 if ac_fn_c_try_compile "$LINENO"
9417 then :
9418 xorg_cv_cc_flag_unused_command_line_argument=yes
9419 else $as_nop
9420 xorg_cv_cc_flag_unused_command_line_argument=no
9421 fi
9422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 fi
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9427 CFLAGS="$xorg_testset_save_CFLAGS"
9428 fi
9429
9430 found="no"
9431
9432 if test $found = "no" ; then
9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435 fi
9436
9437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9439 fi
9440
9441 CFLAGS="$CFLAGS -Wmain"
9442
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9444 printf %s "checking if $CC supports -Wmain... " >&6; }
9445 cacheid=xorg_cv_cc_flag__Wmain
9446 if eval test \${$cacheid+y}
9447 then :
9448 printf %s "(cached) " >&6
9449 else $as_nop
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int i;
9453 int
9454 main (void)
9455 {
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"
9462 then :
9463 eval $cacheid=yes
9464 else $as_nop
9465 eval $cacheid=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9468 conftest$ac_exeext conftest.$ac_ext
9469 fi
9470
9471
9472 CFLAGS="$xorg_testset_save_CFLAGS"
9473
9474 eval supported=\$$cacheid
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9476 printf "%s\n" "$supported" >&6; }
9477 if test "$supported" = "yes" ; then
9478 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9479 found="yes"
9480 fi
9481 fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 xorg_testset_save_CFLAGS="$CFLAGS"
9498
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9503 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9504 then :
9505 printf %s "(cached) " >&6
9506 else $as_nop
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 int i;
9510 _ACEOF
9511 if ac_fn_c_try_compile "$LINENO"
9512 then :
9513 xorg_cv_cc_flag_unknown_warning_option=yes
9514 else $as_nop
9515 xorg_cv_cc_flag_unknown_warning_option=no
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9518 fi
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9522 CFLAGS="$xorg_testset_save_CFLAGS"
9523 fi
9524
9525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528 fi
9529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else $as_nop
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int i;
9539 _ACEOF
9540 if ac_fn_c_try_compile "$LINENO"
9541 then :
9542 xorg_cv_cc_flag_unused_command_line_argument=yes
9543 else $as_nop
9544 xorg_cv_cc_flag_unused_command_line_argument=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9547 fi
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9552 fi
9553
9554 found="no"
9555
9556 if test $found = "no" ; then
9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559 fi
9560
9561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9563 fi
9564
9565 CFLAGS="$CFLAGS -Wmissing-braces"
9566
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9568 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9569 cacheid=xorg_cv_cc_flag__Wmissing_braces
9570 if eval test \${$cacheid+y}
9571 then :
9572 printf %s "(cached) " >&6
9573 else $as_nop
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int i;
9577 int
9578 main (void)
9579 {
9580
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"
9586 then :
9587 eval $cacheid=yes
9588 else $as_nop
9589 eval $cacheid=no
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9592 conftest$ac_exeext conftest.$ac_ext
9593 fi
9594
9595
9596 CFLAGS="$xorg_testset_save_CFLAGS"
9597
9598 eval supported=\$$cacheid
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9600 printf "%s\n" "$supported" >&6; }
9601 if test "$supported" = "yes" ; then
9602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9603 found="yes"
9604 fi
9605 fi
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621 xorg_testset_save_CFLAGS="$CFLAGS"
9622
9623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9627 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9628 then :
9629 printf %s "(cached) " >&6
9630 else $as_nop
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 int i;
9634 _ACEOF
9635 if ac_fn_c_try_compile "$LINENO"
9636 then :
9637 xorg_cv_cc_flag_unknown_warning_option=yes
9638 else $as_nop
9639 xorg_cv_cc_flag_unknown_warning_option=no
9640 fi
9641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9642 fi
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646 CFLAGS="$xorg_testset_save_CFLAGS"
9647 fi
9648
9649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 fi
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else $as_nop
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"
9665 then :
9666 xorg_cv_cc_flag_unused_command_line_argument=yes
9667 else $as_nop
9668 xorg_cv_cc_flag_unused_command_line_argument=no
9669 fi
9670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9671 fi
9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9673 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9675 CFLAGS="$xorg_testset_save_CFLAGS"
9676 fi
9677
9678 found="no"
9679
9680 if test $found = "no" ; then
9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683 fi
9684
9685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687 fi
9688
9689 CFLAGS="$CFLAGS -Wsequence-point"
9690
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9692 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9693 cacheid=xorg_cv_cc_flag__Wsequence_point
9694 if eval test \${$cacheid+y}
9695 then :
9696 printf %s "(cached) " >&6
9697 else $as_nop
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 int i;
9701 int
9702 main (void)
9703 {
9704
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 if ac_fn_c_try_link "$LINENO"
9710 then :
9711 eval $cacheid=yes
9712 else $as_nop
9713 eval $cacheid=no
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9716 conftest$ac_exeext conftest.$ac_ext
9717 fi
9718
9719
9720 CFLAGS="$xorg_testset_save_CFLAGS"
9721
9722 eval supported=\$$cacheid
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9724 printf "%s\n" "$supported" >&6; }
9725 if test "$supported" = "yes" ; then
9726 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9727 found="yes"
9728 fi
9729 fi
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745 xorg_testset_save_CFLAGS="$CFLAGS"
9746
9747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9751 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9752 then :
9753 printf %s "(cached) " >&6
9754 else $as_nop
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 int i;
9758 _ACEOF
9759 if ac_fn_c_try_compile "$LINENO"
9760 then :
9761 xorg_cv_cc_flag_unknown_warning_option=yes
9762 else $as_nop
9763 xorg_cv_cc_flag_unknown_warning_option=no
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9766 fi
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9768 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9770 CFLAGS="$xorg_testset_save_CFLAGS"
9771 fi
9772
9773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776 fi
9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9779 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9780 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else $as_nop
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"
9789 then :
9790 xorg_cv_cc_flag_unused_command_line_argument=yes
9791 else $as_nop
9792 xorg_cv_cc_flag_unused_command_line_argument=no
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9795 fi
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9799 CFLAGS="$xorg_testset_save_CFLAGS"
9800 fi
9801
9802 found="no"
9803
9804 if test $found = "no" ; then
9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807 fi
9808
9809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811 fi
9812
9813 CFLAGS="$CFLAGS -Wreturn-type"
9814
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9816 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9817 cacheid=xorg_cv_cc_flag__Wreturn_type
9818 if eval test \${$cacheid+y}
9819 then :
9820 printf %s "(cached) " >&6
9821 else $as_nop
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 int i;
9825 int
9826 main (void)
9827 {
9828
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 if ac_fn_c_try_link "$LINENO"
9834 then :
9835 eval $cacheid=yes
9836 else $as_nop
9837 eval $cacheid=no
9838 fi
9839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9840 conftest$ac_exeext conftest.$ac_ext
9841 fi
9842
9843
9844 CFLAGS="$xorg_testset_save_CFLAGS"
9845
9846 eval supported=\$$cacheid
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9848 printf "%s\n" "$supported" >&6; }
9849 if test "$supported" = "yes" ; then
9850 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9851 found="yes"
9852 fi
9853 fi
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869 xorg_testset_save_CFLAGS="$CFLAGS"
9870
9871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9874 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9875 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9876 then :
9877 printf %s "(cached) " >&6
9878 else $as_nop
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9881 int i;
9882 _ACEOF
9883 if ac_fn_c_try_compile "$LINENO"
9884 then :
9885 xorg_cv_cc_flag_unknown_warning_option=yes
9886 else $as_nop
9887 xorg_cv_cc_flag_unknown_warning_option=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9890 fi
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9892 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9894 CFLAGS="$xorg_testset_save_CFLAGS"
9895 fi
9896
9897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 fi
9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9903 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9904 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9905 then :
9906 printf %s "(cached) " >&6
9907 else $as_nop
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"
9913 then :
9914 xorg_cv_cc_flag_unused_command_line_argument=yes
9915 else $as_nop
9916 xorg_cv_cc_flag_unused_command_line_argument=no
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9919 fi
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9921 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9923 CFLAGS="$xorg_testset_save_CFLAGS"
9924 fi
9925
9926 found="no"
9927
9928 if test $found = "no" ; then
9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931 fi
9932
9933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9935 fi
9936
9937 CFLAGS="$CFLAGS -Wtrigraphs"
9938
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9940 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9941 cacheid=xorg_cv_cc_flag__Wtrigraphs
9942 if eval test \${$cacheid+y}
9943 then :
9944 printf %s "(cached) " >&6
9945 else $as_nop
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 int i;
9949 int
9950 main (void)
9951 {
9952
9953 ;
9954 return 0;
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_link "$LINENO"
9958 then :
9959 eval $cacheid=yes
9960 else $as_nop
9961 eval $cacheid=no
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9964 conftest$ac_exeext conftest.$ac_ext
9965 fi
9966
9967
9968 CFLAGS="$xorg_testset_save_CFLAGS"
9969
9970 eval supported=\$$cacheid
9971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9972 printf "%s\n" "$supported" >&6; }
9973 if test "$supported" = "yes" ; then
9974 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9975 found="yes"
9976 fi
9977 fi
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993 xorg_testset_save_CFLAGS="$CFLAGS"
9994
9995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9998 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9999 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10000 then :
10001 printf %s "(cached) " >&6
10002 else $as_nop
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int i;
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"
10008 then :
10009 xorg_cv_cc_flag_unknown_warning_option=yes
10010 else $as_nop
10011 xorg_cv_cc_flag_unknown_warning_option=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10014 fi
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10018 CFLAGS="$xorg_testset_save_CFLAGS"
10019 fi
10020
10021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024 fi
10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10029 then :
10030 printf %s "(cached) " >&6
10031 else $as_nop
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 _ACEOF
10036 if ac_fn_c_try_compile "$LINENO"
10037 then :
10038 xorg_cv_cc_flag_unused_command_line_argument=yes
10039 else $as_nop
10040 xorg_cv_cc_flag_unused_command_line_argument=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10043 fi
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10047 CFLAGS="$xorg_testset_save_CFLAGS"
10048 fi
10049
10050 found="no"
10051
10052 if test $found = "no" ; then
10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 fi
10056
10057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059 fi
10060
10061 CFLAGS="$CFLAGS -Warray-bounds"
10062
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10064 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10065 cacheid=xorg_cv_cc_flag__Warray_bounds
10066 if eval test \${$cacheid+y}
10067 then :
10068 printf %s "(cached) " >&6
10069 else $as_nop
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 int i;
10073 int
10074 main (void)
10075 {
10076
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"
10082 then :
10083 eval $cacheid=yes
10084 else $as_nop
10085 eval $cacheid=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10088 conftest$ac_exeext conftest.$ac_ext
10089 fi
10090
10091
10092 CFLAGS="$xorg_testset_save_CFLAGS"
10093
10094 eval supported=\$$cacheid
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10096 printf "%s\n" "$supported" >&6; }
10097 if test "$supported" = "yes" ; then
10098 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10099 found="yes"
10100 fi
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117 xorg_testset_save_CFLAGS="$CFLAGS"
10118
10119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10122 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10123 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10124 then :
10125 printf %s "(cached) " >&6
10126 else $as_nop
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 int i;
10130 _ACEOF
10131 if ac_fn_c_try_compile "$LINENO"
10132 then :
10133 xorg_cv_cc_flag_unknown_warning_option=yes
10134 else $as_nop
10135 xorg_cv_cc_flag_unknown_warning_option=no
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10138 fi
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10140 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10142 CFLAGS="$xorg_testset_save_CFLAGS"
10143 fi
10144
10145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148 fi
10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10151 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10152 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else $as_nop
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 int i;
10159 _ACEOF
10160 if ac_fn_c_try_compile "$LINENO"
10161 then :
10162 xorg_cv_cc_flag_unused_command_line_argument=yes
10163 else $as_nop
10164 xorg_cv_cc_flag_unused_command_line_argument=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10167 fi
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10169 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10171 CFLAGS="$xorg_testset_save_CFLAGS"
10172 fi
10173
10174 found="no"
10175
10176 if test $found = "no" ; then
10177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10179 fi
10180
10181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10183 fi
10184
10185 CFLAGS="$CFLAGS -Wwrite-strings"
10186
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10188 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10189 cacheid=xorg_cv_cc_flag__Wwrite_strings
10190 if eval test \${$cacheid+y}
10191 then :
10192 printf %s "(cached) " >&6
10193 else $as_nop
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 int i;
10197 int
10198 main (void)
10199 {
10200
10201 ;
10202 return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"
10206 then :
10207 eval $cacheid=yes
10208 else $as_nop
10209 eval $cacheid=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10212 conftest$ac_exeext conftest.$ac_ext
10213 fi
10214
10215
10216 CFLAGS="$xorg_testset_save_CFLAGS"
10217
10218 eval supported=\$$cacheid
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10220 printf "%s\n" "$supported" >&6; }
10221 if test "$supported" = "yes" ; then
10222 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10223 found="yes"
10224 fi
10225 fi
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241 xorg_testset_save_CFLAGS="$CFLAGS"
10242
10243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10247 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10248 then :
10249 printf %s "(cached) " >&6
10250 else $as_nop
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 int i;
10254 _ACEOF
10255 if ac_fn_c_try_compile "$LINENO"
10256 then :
10257 xorg_cv_cc_flag_unknown_warning_option=yes
10258 else $as_nop
10259 xorg_cv_cc_flag_unknown_warning_option=no
10260 fi
10261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10262 fi
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266 CFLAGS="$xorg_testset_save_CFLAGS"
10267 fi
10268
10269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else $as_nop
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"
10285 then :
10286 xorg_cv_cc_flag_unused_command_line_argument=yes
10287 else $as_nop
10288 xorg_cv_cc_flag_unused_command_line_argument=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10291 fi
10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10293 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10295 CFLAGS="$xorg_testset_save_CFLAGS"
10296 fi
10297
10298 found="no"
10299
10300 if test $found = "no" ; then
10301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10303 fi
10304
10305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10307 fi
10308
10309 CFLAGS="$CFLAGS -Waddress"
10310
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10312 printf %s "checking if $CC supports -Waddress... " >&6; }
10313 cacheid=xorg_cv_cc_flag__Waddress
10314 if eval test \${$cacheid+y}
10315 then :
10316 printf %s "(cached) " >&6
10317 else $as_nop
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 int i;
10321 int
10322 main (void)
10323 {
10324
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"
10330 then :
10331 eval $cacheid=yes
10332 else $as_nop
10333 eval $cacheid=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10336 conftest$ac_exeext conftest.$ac_ext
10337 fi
10338
10339
10340 CFLAGS="$xorg_testset_save_CFLAGS"
10341
10342 eval supported=\$$cacheid
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10344 printf "%s\n" "$supported" >&6; }
10345 if test "$supported" = "yes" ; then
10346 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10347 found="yes"
10348 fi
10349 fi
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365 xorg_testset_save_CFLAGS="$CFLAGS"
10366
10367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10372 then :
10373 printf %s "(cached) " >&6
10374 else $as_nop
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h. */
10377 int i;
10378 _ACEOF
10379 if ac_fn_c_try_compile "$LINENO"
10380 then :
10381 xorg_cv_cc_flag_unknown_warning_option=yes
10382 else $as_nop
10383 xorg_cv_cc_flag_unknown_warning_option=no
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10386 fi
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10390 CFLAGS="$xorg_testset_save_CFLAGS"
10391 fi
10392
10393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396 fi
10397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10401 then :
10402 printf %s "(cached) " >&6
10403 else $as_nop
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 int i;
10407 _ACEOF
10408 if ac_fn_c_try_compile "$LINENO"
10409 then :
10410 xorg_cv_cc_flag_unused_command_line_argument=yes
10411 else $as_nop
10412 xorg_cv_cc_flag_unused_command_line_argument=no
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10415 fi
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10419 CFLAGS="$xorg_testset_save_CFLAGS"
10420 fi
10421
10422 found="no"
10423
10424 if test $found = "no" ; then
10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427 fi
10428
10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431 fi
10432
10433 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10434
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10436 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10437 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10438 if eval test \${$cacheid+y}
10439 then :
10440 printf %s "(cached) " >&6
10441 else $as_nop
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444 int i;
10445 int
10446 main (void)
10447 {
10448
10449 ;
10450 return 0;
10451 }
10452 _ACEOF
10453 if ac_fn_c_try_link "$LINENO"
10454 then :
10455 eval $cacheid=yes
10456 else $as_nop
10457 eval $cacheid=no
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10460 conftest$ac_exeext conftest.$ac_ext
10461 fi
10462
10463
10464 CFLAGS="$xorg_testset_save_CFLAGS"
10465
10466 eval supported=\$$cacheid
10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10468 printf "%s\n" "$supported" >&6; }
10469 if test "$supported" = "yes" ; then
10470 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10471 found="yes"
10472 fi
10473 fi
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489 xorg_testset_save_CFLAGS="$CFLAGS"
10490
10491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10496 then :
10497 printf %s "(cached) " >&6
10498 else $as_nop
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 int i;
10502 _ACEOF
10503 if ac_fn_c_try_compile "$LINENO"
10504 then :
10505 xorg_cv_cc_flag_unknown_warning_option=yes
10506 else $as_nop
10507 xorg_cv_cc_flag_unknown_warning_option=no
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10510 fi
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10512 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10514 CFLAGS="$xorg_testset_save_CFLAGS"
10515 fi
10516
10517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10520 fi
10521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int i;
10531 _ACEOF
10532 if ac_fn_c_try_compile "$LINENO"
10533 then :
10534 xorg_cv_cc_flag_unused_command_line_argument=yes
10535 else $as_nop
10536 xorg_cv_cc_flag_unused_command_line_argument=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10539 fi
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10543 CFLAGS="$xorg_testset_save_CFLAGS"
10544 fi
10545
10546 found="no"
10547
10548 if test $found = "no" ; then
10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551 fi
10552
10553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10555 fi
10556
10557 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10558
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10560 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10561 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10562 if eval test \${$cacheid+y}
10563 then :
10564 printf %s "(cached) " >&6
10565 else $as_nop
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 int i;
10569 int
10570 main (void)
10571 {
10572
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"
10578 then :
10579 eval $cacheid=yes
10580 else $as_nop
10581 eval $cacheid=no
10582 fi
10583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10584 conftest$ac_exeext conftest.$ac_ext
10585 fi
10586
10587
10588 CFLAGS="$xorg_testset_save_CFLAGS"
10589
10590 eval supported=\$$cacheid
10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10592 printf "%s\n" "$supported" >&6; }
10593 if test "$supported" = "yes" ; then
10594 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10595 found="yes"
10596 fi
10597 fi
10598
10599
10600 fi
10601
10602
10603
10604
10605
10606
10607
10608 CWARNFLAGS="$BASE_CFLAGS"
10609 if test "x$GCC" = xyes ; then
10610 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10611 fi
10612
10613
10614
10615
10616
10617
10618
10619
10620 # Check whether --enable-strict-compilation was given.
10621 if test ${enable_strict_compilation+y}
10622 then :
10623 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10624 else $as_nop
10625 STRICT_COMPILE=no
10626 fi
10627
10628
10629
10630
10631
10632
10633 STRICT_CFLAGS=""
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647 xorg_testset_save_CFLAGS="$CFLAGS"
10648
10649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10652 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10653 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10654 then :
10655 printf %s "(cached) " >&6
10656 else $as_nop
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659 int i;
10660 _ACEOF
10661 if ac_fn_c_try_compile "$LINENO"
10662 then :
10663 xorg_cv_cc_flag_unknown_warning_option=yes
10664 else $as_nop
10665 xorg_cv_cc_flag_unknown_warning_option=no
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10668 fi
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10672 CFLAGS="$xorg_testset_save_CFLAGS"
10673 fi
10674
10675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678 fi
10679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10683 then :
10684 printf %s "(cached) " >&6
10685 else $as_nop
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 int i;
10689 _ACEOF
10690 if ac_fn_c_try_compile "$LINENO"
10691 then :
10692 xorg_cv_cc_flag_unused_command_line_argument=yes
10693 else $as_nop
10694 xorg_cv_cc_flag_unused_command_line_argument=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10697 fi
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10699 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10701 CFLAGS="$xorg_testset_save_CFLAGS"
10702 fi
10703
10704 found="no"
10705
10706 if test $found = "no" ; then
10707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10709 fi
10710
10711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10713 fi
10714
10715 CFLAGS="$CFLAGS -pedantic"
10716
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10718 printf %s "checking if $CC supports -pedantic... " >&6; }
10719 cacheid=xorg_cv_cc_flag__pedantic
10720 if eval test \${$cacheid+y}
10721 then :
10722 printf %s "(cached) " >&6
10723 else $as_nop
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 int i;
10727 int
10728 main (void)
10729 {
10730
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"
10736 then :
10737 eval $cacheid=yes
10738 else $as_nop
10739 eval $cacheid=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10742 conftest$ac_exeext conftest.$ac_ext
10743 fi
10744
10745
10746 CFLAGS="$xorg_testset_save_CFLAGS"
10747
10748 eval supported=\$$cacheid
10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10750 printf "%s\n" "$supported" >&6; }
10751 if test "$supported" = "yes" ; then
10752 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10753 found="yes"
10754 fi
10755 fi
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771 xorg_testset_save_CFLAGS="$CFLAGS"
10772
10773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10776 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10777 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10778 then :
10779 printf %s "(cached) " >&6
10780 else $as_nop
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 int i;
10784 _ACEOF
10785 if ac_fn_c_try_compile "$LINENO"
10786 then :
10787 xorg_cv_cc_flag_unknown_warning_option=yes
10788 else $as_nop
10789 xorg_cv_cc_flag_unknown_warning_option=no
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10792 fi
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10794 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10796 CFLAGS="$xorg_testset_save_CFLAGS"
10797 fi
10798
10799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802 fi
10803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10805 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10806 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10807 then :
10808 printf %s "(cached) " >&6
10809 else $as_nop
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 int i;
10813 _ACEOF
10814 if ac_fn_c_try_compile "$LINENO"
10815 then :
10816 xorg_cv_cc_flag_unused_command_line_argument=yes
10817 else $as_nop
10818 xorg_cv_cc_flag_unused_command_line_argument=no
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10821 fi
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10823 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10825 CFLAGS="$xorg_testset_save_CFLAGS"
10826 fi
10827
10828 found="no"
10829
10830 if test $found = "no" ; then
10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833 fi
10834
10835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837 fi
10838
10839 CFLAGS="$CFLAGS -Werror"
10840
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10842 printf %s "checking if $CC supports -Werror... " >&6; }
10843 cacheid=xorg_cv_cc_flag__Werror
10844 if eval test \${$cacheid+y}
10845 then :
10846 printf %s "(cached) " >&6
10847 else $as_nop
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 int i;
10851 int
10852 main (void)
10853 {
10854
10855 ;
10856 return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_link "$LINENO"
10860 then :
10861 eval $cacheid=yes
10862 else $as_nop
10863 eval $cacheid=no
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866 conftest$ac_exeext conftest.$ac_ext
10867 fi
10868
10869
10870 CFLAGS="$xorg_testset_save_CFLAGS"
10871
10872 eval supported=\$$cacheid
10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10874 printf "%s\n" "$supported" >&6; }
10875 if test "$supported" = "yes" ; then
10876 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10877 found="yes"
10878 fi
10879 fi
10880
10881 if test $found = "no" ; then
10882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10884 fi
10885
10886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10888 fi
10889
10890 CFLAGS="$CFLAGS -errwarn"
10891
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10893 printf %s "checking if $CC supports -errwarn... " >&6; }
10894 cacheid=xorg_cv_cc_flag__errwarn
10895 if eval test \${$cacheid+y}
10896 then :
10897 printf %s "(cached) " >&6
10898 else $as_nop
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 int i;
10902 int
10903 main (void)
10904 {
10905
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"
10911 then :
10912 eval $cacheid=yes
10913 else $as_nop
10914 eval $cacheid=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10917 conftest$ac_exeext conftest.$ac_ext
10918 fi
10919
10920
10921 CFLAGS="$xorg_testset_save_CFLAGS"
10922
10923 eval supported=\$$cacheid
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10925 printf "%s\n" "$supported" >&6; }
10926 if test "$supported" = "yes" ; then
10927 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10928 found="yes"
10929 fi
10930 fi
10931
10932
10933
10934 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10935 # activate it with -Werror, so we add it here explicitly.
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 xorg_testset_save_CFLAGS="$CFLAGS"
10950
10951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10954 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10955 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10956 then :
10957 printf %s "(cached) " >&6
10958 else $as_nop
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961 int i;
10962 _ACEOF
10963 if ac_fn_c_try_compile "$LINENO"
10964 then :
10965 xorg_cv_cc_flag_unknown_warning_option=yes
10966 else $as_nop
10967 xorg_cv_cc_flag_unknown_warning_option=no
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10970 fi
10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10974 CFLAGS="$xorg_testset_save_CFLAGS"
10975 fi
10976
10977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10980 fi
10981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10985 then :
10986 printf %s "(cached) " >&6
10987 else $as_nop
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 int i;
10991 _ACEOF
10992 if ac_fn_c_try_compile "$LINENO"
10993 then :
10994 xorg_cv_cc_flag_unused_command_line_argument=yes
10995 else $as_nop
10996 xorg_cv_cc_flag_unused_command_line_argument=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10999 fi
11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11003 CFLAGS="$xorg_testset_save_CFLAGS"
11004 fi
11005
11006 found="no"
11007
11008 if test $found = "no" ; then
11009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11011 fi
11012
11013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11015 fi
11016
11017 CFLAGS="$CFLAGS -Werror=attributes"
11018
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11020 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11021 cacheid=xorg_cv_cc_flag__Werror_attributes
11022 if eval test \${$cacheid+y}
11023 then :
11024 printf %s "(cached) " >&6
11025 else $as_nop
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028 int i;
11029 int
11030 main (void)
11031 {
11032
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"
11038 then :
11039 eval $cacheid=yes
11040 else $as_nop
11041 eval $cacheid=no
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11044 conftest$ac_exeext conftest.$ac_ext
11045 fi
11046
11047
11048 CFLAGS="$xorg_testset_save_CFLAGS"
11049
11050 eval supported=\$$cacheid
11051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11052 printf "%s\n" "$supported" >&6; }
11053 if test "$supported" = "yes" ; then
11054 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11055 found="yes"
11056 fi
11057 fi
11058
11059
11060
11061 if test "x$STRICT_COMPILE" = "xyes"; then
11062 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11063 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11064 fi
11065
11066
11067
11068
11069
11070
11071 cat >>confdefs.h <<_ACEOF
11072 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11073 _ACEOF
11074
11075 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11076 if test "x$PVM" = "x"; then
11077 PVM="0"
11078 fi
11079
11080 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11081
11082 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11083 if test "x$PVP" = "x"; then
11084 PVP="0"
11085 fi
11086
11087 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11088
11089
11090
11091 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11092 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11093 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11094 touch \$(top_srcdir)/ChangeLog; \
11095 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11096
11097
11098
11099
11100 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11101 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11102 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11103 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11104 touch \$(top_srcdir)/INSTALL; \
11105 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11106
11107
11108
11109
11110
11111
11112 case $host_os in
11113 solaris*)
11114 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11115 # check for a man page file found in later versions that use
11116 # traditional section numbers instead
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11118 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11119 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11120 then :
11121 printf %s "(cached) " >&6
11122 else $as_nop
11123 test "$cross_compiling" = yes &&
11124 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11125 if test -r "/usr/share/man/man7/attributes.7"; then
11126 ac_cv_file__usr_share_man_man7_attributes_7=yes
11127 else
11128 ac_cv_file__usr_share_man_man7_attributes_7=no
11129 fi
11130 fi
11131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11132 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11133 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11134 then :
11135 SYSV_MAN_SECTIONS=false
11136 else $as_nop
11137 SYSV_MAN_SECTIONS=true
11138 fi
11139
11140 ;;
11141 *) SYSV_MAN_SECTIONS=false ;;
11142 esac
11143
11144 if test x$APP_MAN_SUFFIX = x ; then
11145 APP_MAN_SUFFIX=1
11146 fi
11147 if test x$APP_MAN_DIR = x ; then
11148 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11149 fi
11150
11151 if test x$LIB_MAN_SUFFIX = x ; then
11152 LIB_MAN_SUFFIX=3
11153 fi
11154 if test x$LIB_MAN_DIR = x ; then
11155 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11156 fi
11157
11158 if test x$FILE_MAN_SUFFIX = x ; then
11159 case $SYSV_MAN_SECTIONS in
11160 true) FILE_MAN_SUFFIX=4 ;;
11161 *) FILE_MAN_SUFFIX=5 ;;
11162 esac
11163 fi
11164 if test x$FILE_MAN_DIR = x ; then
11165 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11166 fi
11167
11168 if test x$MISC_MAN_SUFFIX = x ; then
11169 case $SYSV_MAN_SECTIONS in
11170 true) MISC_MAN_SUFFIX=5 ;;
11171 *) MISC_MAN_SUFFIX=7 ;;
11172 esac
11173 fi
11174 if test x$MISC_MAN_DIR = x ; then
11175 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11176 fi
11177
11178 if test x$DRIVER_MAN_SUFFIX = x ; then
11179 case $SYSV_MAN_SECTIONS in
11180 true) DRIVER_MAN_SUFFIX=7 ;;
11181 *) DRIVER_MAN_SUFFIX=4 ;;
11182 esac
11183 fi
11184 if test x$DRIVER_MAN_DIR = x ; then
11185 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11186 fi
11187
11188 if test x$ADMIN_MAN_SUFFIX = x ; then
11189 case $SYSV_MAN_SECTIONS in
11190 true) ADMIN_MAN_SUFFIX=1m ;;
11191 *) ADMIN_MAN_SUFFIX=8 ;;
11192 esac
11193 fi
11194 if test x$ADMIN_MAN_DIR = x ; then
11195 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11196 fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212 XORG_MAN_PAGE="X Version 11"
11213
11214 MAN_SUBSTS="\
11215 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11216 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11217 -e 's|__xservername__|Xorg|g' \
11218 -e 's|__xconfigfile__|xorg.conf|g' \
11219 -e 's|__projectroot__|\$(prefix)|g' \
11220 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11221 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11222 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11223 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11224 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11225 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11226 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11227
11228
11229
11230 # Check whether --enable-silent-rules was given.
11231 if test ${enable_silent_rules+y}
11232 then :
11233 enableval=$enable_silent_rules;
11234 fi
11235
11236 case $enable_silent_rules in # (((
11237 yes) AM_DEFAULT_VERBOSITY=0;;
11238 no) AM_DEFAULT_VERBOSITY=1;;
11239 *) AM_DEFAULT_VERBOSITY=0;;
11240 esac
11241 am_make=${MAKE-make}
11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11243 printf %s "checking whether $am_make supports nested variables... " >&6; }
11244 if test ${am_cv_make_support_nested_variables+y}
11245 then :
11246 printf %s "(cached) " >&6
11247 else $as_nop
11248 if printf "%s\n" 'TRUE=$(BAR$(V))
11249 BAR0=false
11250 BAR1=true
11251 V=1
11252 am__doit:
11253 @$(TRUE)
11254 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11255 am_cv_make_support_nested_variables=yes
11256 else
11257 am_cv_make_support_nested_variables=no
11258 fi
11259 fi
11260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11261 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11262 if test $am_cv_make_support_nested_variables = yes; then
11263 AM_V='$(V)'
11264 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11265 else
11266 AM_V=$AM_DEFAULT_VERBOSITY
11267 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11268 fi
11269 AM_BACKSLASH='\'
11270
11271
11272
11273 # Checks for pkg-config packages
11274
11275 pkg_failed=no
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMH" >&5
11277 printf %s "checking for XMH... " >&6; }
11278
11279 if test -n "$XMH_CFLAGS"; then
11280 pkg_cv_XMH_CFLAGS="$XMH_CFLAGS"
11281 elif test -n "$PKG_CONFIG"; then
11282 if test -n "$PKG_CONFIG" && \
11283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xbitmaps >= 1.1.0\""; } >&5
11284 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0") 2>&5
11285 ac_status=$?
11286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; }; then
11288 pkg_cv_XMH_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>/dev/null`
11289 test "x$?" != "x0" && pkg_failed=yes
11290 else
11291 pkg_failed=yes
11292 fi
11293 else
11294 pkg_failed=untried
11295 fi
11296 if test -n "$XMH_LIBS"; then
11297 pkg_cv_XMH_LIBS="$XMH_LIBS"
11298 elif test -n "$PKG_CONFIG"; then
11299 if test -n "$PKG_CONFIG" && \
11300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xbitmaps >= 1.1.0\""; } >&5
11301 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0") 2>&5
11302 ac_status=$?
11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; }; then
11305 pkg_cv_XMH_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>/dev/null`
11306 test "x$?" != "x0" && pkg_failed=yes
11307 else
11308 pkg_failed=yes
11309 fi
11310 else
11311 pkg_failed=untried
11312 fi
11313
11314
11315
11316 if test $pkg_failed = yes; then
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 printf "%s\n" "no" >&6; }
11319
11320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11321 _pkg_short_errors_supported=yes
11322 else
11323 _pkg_short_errors_supported=no
11324 fi
11325 if test $_pkg_short_errors_supported = yes; then
11326 XMH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>&1`
11327 else
11328 XMH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>&1`
11329 fi
11330 # Put the nasty error message in config.log where it belongs
11331 echo "$XMH_PKG_ERRORS" >&5
11332
11333 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xbitmaps >= 1.1.0) were not met:
11334
11335 $XMH_PKG_ERRORS
11336
11337 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11338 installed software in a non-standard prefix.
11339
11340 Alternatively, you may set the environment variables XMH_CFLAGS
11341 and XMH_LIBS to avoid the need to call pkg-config.
11342 See the pkg-config man page for more details." "$LINENO" 5
11343 elif test $pkg_failed = untried; then
11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 printf "%s\n" "no" >&6; }
11346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11347 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11348 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11349 is in your PATH or set the PKG_CONFIG environment variable to the full
11350 path to pkg-config.
11351
11352 Alternatively, you may set the environment variables XMH_CFLAGS
11353 and XMH_LIBS to avoid the need to call pkg-config.
11354 See the pkg-config man page for more details.
11355
11356 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11357 See \`config.log' for more details" "$LINENO" 5; }
11358 else
11359 XMH_CFLAGS=$pkg_cv_XMH_CFLAGS
11360 XMH_LIBS=$pkg_cv_XMH_LIBS
11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 printf "%s\n" "yes" >&6; }
11363
11364 fi
11365
11366
11367 pkg_failed=no
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11369 printf %s "checking for APPDEFS... " >&6; }
11370
11371 if test -n "$APPDEFS_CFLAGS"; then
11372 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11373 elif test -n "$PKG_CONFIG"; then
11374 if test -n "$PKG_CONFIG" && \
11375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11376 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11377 ac_status=$?
11378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; }; then
11380 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11381 test "x$?" != "x0" && pkg_failed=yes
11382 else
11383 pkg_failed=yes
11384 fi
11385 else
11386 pkg_failed=untried
11387 fi
11388 if test -n "$APPDEFS_LIBS"; then
11389 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \
11392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11393 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11394 ac_status=$?
11395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11396 test $ac_status = 0; }; then
11397 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11398 test "x$?" != "x0" && pkg_failed=yes
11399 else
11400 pkg_failed=yes
11401 fi
11402 else
11403 pkg_failed=untried
11404 fi
11405
11406
11407
11408 if test $pkg_failed = yes; then
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 printf "%s\n" "no" >&6; }
11411
11412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11413 _pkg_short_errors_supported=yes
11414 else
11415 _pkg_short_errors_supported=no
11416 fi
11417 if test $_pkg_short_errors_supported = yes; then
11418 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11419 else
11420 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11421 fi
11422 # Put the nasty error message in config.log where it belongs
11423 echo "$APPDEFS_PKG_ERRORS" >&5
11424
11425 as_fn_error $? "Package requirements (xt) were not met:
11426
11427 $APPDEFS_PKG_ERRORS
11428
11429 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11430 installed software in a non-standard prefix.
11431
11432 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11433 and APPDEFS_LIBS to avoid the need to call pkg-config.
11434 See the pkg-config man page for more details." "$LINENO" 5
11435 elif test $pkg_failed = untried; then
11436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 printf "%s\n" "no" >&6; }
11438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11440 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11441 is in your PATH or set the PKG_CONFIG environment variable to the full
11442 path to pkg-config.
11443
11444 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11445 and APPDEFS_LIBS to avoid the need to call pkg-config.
11446 See the pkg-config man page for more details.
11447
11448 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11449 See \`config.log' for more details" "$LINENO" 5; }
11450 else
11451 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11452 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11454 printf "%s\n" "yes" >&6; }
11455
11456 fi
11457 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11458
11459 # Check whether --with-appdefaultdir was given.
11460 if test ${with_appdefaultdir+y}
11461 then :
11462 withval=$with_appdefaultdir; appdefaultdir="$withval"
11463 else $as_nop
11464 appdefaultdir="${xt_appdefaultdir}"
11465 fi
11466
11467
11468
11469 # Checks for library functions.
11470
11471 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
11472 "
11473 if test "x$ac_cv_type_pid_t" = xyes
11474 then :
11475
11476 else $as_nop
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479
11480 #if defined _WIN64 && !defined __CYGWIN__
11481 LLP64
11482 #endif
11483
11484 int
11485 main (void)
11486 {
11487
11488 ;
11489 return 0;
11490 }
11491
11492 _ACEOF
11493 if ac_fn_c_try_compile "$LINENO"
11494 then :
11495 ac_pid_type='int'
11496 else $as_nop
11497 ac_pid_type='__int64'
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11500
11501 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
11502
11503
11504 fi
11505
11506
11507
11508 ac_func=
11509 for ac_item in $ac_func_c_list
11510 do
11511 if test $ac_func; then
11512 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
11513 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
11514 echo "#define $ac_item 1" >> confdefs.h
11515 fi
11516 ac_func=
11517 else
11518 ac_func=$ac_item
11519 fi
11520 done
11521
11522
11523
11524 if test "x$ac_cv_func_fork" = xyes; then
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11526 printf %s "checking for working fork... " >&6; }
11527 if test ${ac_cv_func_fork_works+y}
11528 then :
11529 printf %s "(cached) " >&6
11530 else $as_nop
11531 if test "$cross_compiling" = yes
11532 then :
11533 ac_cv_func_fork_works=cross
11534 else $as_nop
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 $ac_includes_default
11538 int
11539 main (void)
11540 {
11541
11542 /* By Ruediger Kuhlmann. */
11543 return fork () < 0;
11544
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_run "$LINENO"
11550 then :
11551 ac_cv_func_fork_works=yes
11552 else $as_nop
11553 ac_cv_func_fork_works=no
11554 fi
11555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11556 conftest.$ac_objext conftest.beam conftest.$ac_ext
11557 fi
11558
11559 fi
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11561 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
11562
11563 else
11564 ac_cv_func_fork_works=$ac_cv_func_fork
11565 fi
11566 if test "x$ac_cv_func_fork_works" = xcross; then
11567 case $host in
11568 *-*-amigaos* | *-*-msdosdjgpp*)
11569 # Override, as these systems have only a dummy fork() stub
11570 ac_cv_func_fork_works=no
11571 ;;
11572 *)
11573 ac_cv_func_fork_works=yes
11574 ;;
11575 esac
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11577 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11578 fi
11579 ac_cv_func_vfork_works=$ac_cv_func_vfork
11580 if test "x$ac_cv_func_vfork" = xyes; then
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11582 printf %s "checking for working vfork... " >&6; }
11583 if test ${ac_cv_func_vfork_works+y}
11584 then :
11585 printf %s "(cached) " >&6
11586 else $as_nop
11587 if test "$cross_compiling" = yes
11588 then :
11589 ac_cv_func_vfork_works=cross
11590 else $as_nop
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 /* Thanks to Paul Eggert for this test. */
11594 $ac_includes_default
11595 #include <signal.h>
11596 #include <sys/wait.h>
11597 #ifdef HAVE_VFORK_H
11598 # include <vfork.h>
11599 #endif
11600
11601 static void
11602 do_nothing (int sig)
11603 {
11604 (void) sig;
11605 }
11606
11607 /* On some sparc systems, changes by the child to local and incoming
11608 argument registers are propagated back to the parent. The compiler
11609 is told about this with #include <vfork.h>, but some compilers
11610 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11611 static variable whose address is put into a register that is
11612 clobbered by the vfork. */
11613 static void
11614 sparc_address_test (int arg)
11615 {
11616 static pid_t child;
11617 if (!child) {
11618 child = vfork ();
11619 if (child < 0) {
11620 perror ("vfork");
11621 _exit(2);
11622 }
11623 if (!child) {
11624 arg = getpid();
11625 write(-1, "", 0);
11626 _exit (arg);
11627 }
11628 }
11629 }
11630
11631 int
11632 main (void)
11633 {
11634 pid_t parent = getpid ();
11635 pid_t child;
11636
11637 sparc_address_test (0);
11638
11639 /* On Solaris 2.4, changes by the child to the signal handler
11640 also munge signal handlers in the parent. To detect this,
11641 start by putting the parent's handler in a known state. */
11642 signal (SIGTERM, SIG_DFL);
11643
11644 child = vfork ();
11645
11646 if (child == 0) {
11647 /* Here is another test for sparc vfork register problems. This
11648 test uses lots of local variables, at least as many local
11649 variables as main has allocated so far including compiler
11650 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11651 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11652 reuse the register of parent for one of the local variables,
11653 since it will think that parent can't possibly be used any more
11654 in this routine. Assigning to the local variable will thus
11655 munge parent in the parent process. */
11656 pid_t
11657 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11658 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11659 /* Convince the compiler that p..p7 are live; otherwise, it might
11660 use the same hardware register for all 8 local variables. */
11661 if (p != p1 || p != p2 || p != p3 || p != p4
11662 || p != p5 || p != p6 || p != p7)
11663 _exit(1);
11664
11665 /* Alter the child's signal handler. */
11666 if (signal (SIGTERM, do_nothing) != SIG_DFL)
11667 _exit(1);
11668
11669 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11670 from child file descriptors. If the child closes a descriptor
11671 before it execs or exits, this munges the parent's descriptor
11672 as well. Test for this by closing stdout in the child. */
11673 _exit(close(fileno(stdout)) != 0);
11674 } else {
11675 int status;
11676 struct stat st;
11677
11678 while (wait(&status) != child)
11679 ;
11680 return (
11681 /* Was there some problem with vforking? */
11682 child < 0
11683
11684 /* Did the child munge the parent's signal handler? */
11685 || signal (SIGTERM, SIG_DFL) != SIG_DFL
11686
11687 /* Did the child fail? (This shouldn't happen.) */
11688 || status
11689
11690 /* Did the vfork/compiler bug occur? */
11691 || parent != getpid()
11692
11693 /* Did the file descriptor bug occur? */
11694 || fstat(fileno(stdout), &st) != 0
11695 );
11696 }
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_run "$LINENO"
11700 then :
11701 ac_cv_func_vfork_works=yes
11702 else $as_nop
11703 ac_cv_func_vfork_works=no
11704 fi
11705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11706 conftest.$ac_objext conftest.beam conftest.$ac_ext
11707 fi
11708
11709 fi
11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11711 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
11712
11713 fi;
11714 if test "x$ac_cv_func_fork_works" = xcross; then
11715 ac_cv_func_vfork_works=$ac_cv_func_vfork
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11717 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11718 fi
11719
11720 if test "x$ac_cv_func_vfork_works" = xyes; then
11721
11722 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11723
11724 else
11725
11726 printf "%s\n" "#define vfork fork" >>confdefs.h
11727
11728 fi
11729 if test "x$ac_cv_func_fork_works" = xyes; then
11730
11731 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
11732
11733 fi
11734
11735
11736 ac_config_files="$ac_config_files Makefile man/Makefile"
11737
11738 cat >confcache <<\_ACEOF
11739 # This file is a shell script that caches the results of configure
11740 # tests run on this system so they can be shared between configure
11741 # scripts and configure runs, see configure's option --config-cache.
11742 # It is not useful on other systems. If it contains results you don't
11743 # want to keep, you may remove or edit it.
11744 #
11745 # config.status only pays attention to the cache file if you give it
11746 # the --recheck option to rerun configure.
11747 #
11748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11750 # following values.
11751
11752 _ACEOF
11753
11754 # The following way of writing the cache mishandles newlines in values,
11755 # but we know of no workaround that is simple, portable, and efficient.
11756 # So, we kill variables containing newlines.
11757 # Ultrix sh set writes to stderr and can't be redirected directly,
11758 # and sets the high bit in the cache file unless we assign to the vars.
11759 (
11760 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11761 eval ac_val=\$$ac_var
11762 case $ac_val in #(
11763 *${as_nl}*)
11764 case $ac_var in #(
11765 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11766 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11767 esac
11768 case $ac_var in #(
11769 _ | IFS | as_nl) ;; #(
11770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11771 *) { eval $ac_var=; unset $ac_var;} ;;
11772 esac ;;
11773 esac
11774 done
11775
11776 (set) 2>&1 |
11777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11778 *${as_nl}ac_space=\ *)
11779 # `set' does not quote correctly, so add quotes: double-quote
11780 # substitution turns \\\\ into \\, and sed turns \\ into \.
11781 sed -n \
11782 "s/'/'\\\\''/g;
11783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11784 ;; #(
11785 *)
11786 # `set' quotes correctly as required by POSIX, so do not add quotes.
11787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11788 ;;
11789 esac |
11790 sort
11791 ) |
11792 sed '
11793 /^ac_cv_env_/b end
11794 t clear
11795 :clear
11796 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11797 t end
11798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11799 :end' >>confcache
11800 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11801 if test -w "$cache_file"; then
11802 if test "x$cache_file" != "x/dev/null"; then
11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11804 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11805 if test ! -f "$cache_file" || test -h "$cache_file"; then
11806 cat confcache >"$cache_file"
11807 else
11808 case $cache_file in #(
11809 */* | ?:*)
11810 mv -f confcache "$cache_file"$$ &&
11811 mv -f "$cache_file"$$ "$cache_file" ;; #(
11812 *)
11813 mv -f confcache "$cache_file" ;;
11814 esac
11815 fi
11816 fi
11817 else
11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11819 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11820 fi
11821 fi
11822 rm -f confcache
11823
11824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11825 # Let make expand exec_prefix.
11826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11827
11828 DEFS=-DHAVE_CONFIG_H
11829
11830 ac_libobjs=
11831 ac_ltlibobjs=
11832 U=
11833 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11834 # 1. Remove the extension, and $U if already installed.
11835 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11836 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11837 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11838 # will be set to the directory where LIBOBJS objects are built.
11839 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11840 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11841 done
11842 LIBOBJS=$ac_libobjs
11843
11844 LTLIBOBJS=$ac_ltlibobjs
11845
11846
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11848 printf %s "checking that generated files are newer than configure... " >&6; }
11849 if test -n "$am_sleep_pid"; then
11850 # Hide warnings about reused PIDs.
11851 wait $am_sleep_pid 2>/dev/null
11852 fi
11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11854 printf "%s\n" "done" >&6; }
11855 if test -n "$EXEEXT"; then
11856 am__EXEEXT_TRUE=
11857 am__EXEEXT_FALSE='#'
11858 else
11859 am__EXEEXT_TRUE='#'
11860 am__EXEEXT_FALSE=
11861 fi
11862
11863 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11864 as_fn_error $? "conditional \"AMDEP\" was never defined.
11865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11866 fi
11867 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11868 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11870 fi
11871
11872 : "${CONFIG_STATUS=./config.status}"
11873 ac_write_fail=0
11874 ac_clean_files_save=$ac_clean_files
11875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11877 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11878 as_write_fail=0
11879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11880 #! $SHELL
11881 # Generated by $as_me.
11882 # Run this file to recreate the current configuration.
11883 # Compiler output produced by configure, useful for debugging
11884 # configure, is in config.log if it exists.
11885
11886 debug=false
11887 ac_cs_recheck=false
11888 ac_cs_silent=false
11889
11890 SHELL=\${CONFIG_SHELL-$SHELL}
11891 export SHELL
11892 _ASEOF
11893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11894 ## -------------------- ##
11895 ## M4sh Initialization. ##
11896 ## -------------------- ##
11897
11898 # Be more Bourne compatible
11899 DUALCASE=1; export DUALCASE # for MKS sh
11900 as_nop=:
11901 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11902 then :
11903 emulate sh
11904 NULLCMD=:
11905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11906 # is contrary to our usage. Disable this feature.
11907 alias -g '${1+"$@"}'='"$@"'
11908 setopt NO_GLOB_SUBST
11909 else $as_nop
11910 case `(set -o) 2>/dev/null` in #(
11911 *posix*) :
11912 set -o posix ;; #(
11913 *) :
11914 ;;
11915 esac
11916 fi
11917
11918
11919
11920 # Reset variables that may have inherited troublesome values from
11921 # the environment.
11922
11923 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11924 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11925 # side effect of setting IFS to empty, thus disabling word splitting.)
11926 # Quoting is to prevent editors from complaining about space-tab.
11927 as_nl='
11928 '
11929 export as_nl
11930 IFS=" "" $as_nl"
11931
11932 PS1='$ '
11933 PS2='> '
11934 PS4='+ '
11935
11936 # Ensure predictable behavior from utilities with locale-dependent output.
11937 LC_ALL=C
11938 export LC_ALL
11939 LANGUAGE=C
11940 export LANGUAGE
11941
11942 # We cannot yet rely on "unset" to work, but we need these variables
11943 # to be unset--not just set to an empty or harmless value--now, to
11944 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11945 # also avoids known problems related to "unset" and subshell syntax
11946 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11947 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11948 do eval test \${$as_var+y} \
11949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11950 done
11951
11952 # Ensure that fds 0, 1, and 2 are open.
11953 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11954 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11955 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11956
11957 # The user is always right.
11958 if ${PATH_SEPARATOR+false} :; then
11959 PATH_SEPARATOR=:
11960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11962 PATH_SEPARATOR=';'
11963 }
11964 fi
11965
11966
11967 # Find who we are. Look in the path if we contain no directory separator.
11968 as_myself=
11969 case $0 in #((
11970 *[\\/]* ) as_myself=$0 ;;
11971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH
11973 do
11974 IFS=$as_save_IFS
11975 case $as_dir in #(((
11976 '') as_dir=./ ;;
11977 */) ;;
11978 *) as_dir=$as_dir/ ;;
11979 esac
11980 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11981 done
11982 IFS=$as_save_IFS
11983
11984 ;;
11985 esac
11986 # We did not find ourselves, most probably we were run as `sh COMMAND'
11987 # in which case we are not to be found in the path.
11988 if test "x$as_myself" = x; then
11989 as_myself=$0
11990 fi
11991 if test ! -f "$as_myself"; then
11992 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11993 exit 1
11994 fi
11995
11996
11997
11998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11999 # ----------------------------------------
12000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12002 # script with STATUS, using 1 if that was 0.
12003 as_fn_error ()
12004 {
12005 as_status=$1; test $as_status -eq 0 && as_status=1
12006 if test "$4"; then
12007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12009 fi
12010 printf "%s\n" "$as_me: error: $2" >&2
12011 as_fn_exit $as_status
12012 } # as_fn_error
12013
12014
12015
12016 # as_fn_set_status STATUS
12017 # -----------------------
12018 # Set $? to STATUS, without forking.
12019 as_fn_set_status ()
12020 {
12021 return $1
12022 } # as_fn_set_status
12023
12024 # as_fn_exit STATUS
12025 # -----------------
12026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12027 as_fn_exit ()
12028 {
12029 set +e
12030 as_fn_set_status $1
12031 exit $1
12032 } # as_fn_exit
12033
12034 # as_fn_unset VAR
12035 # ---------------
12036 # Portably unset VAR.
12037 as_fn_unset ()
12038 {
12039 { eval $1=; unset $1;}
12040 }
12041 as_unset=as_fn_unset
12042
12043 # as_fn_append VAR VALUE
12044 # ----------------------
12045 # Append the text in VALUE to the end of the definition contained in VAR. Take
12046 # advantage of any shell optimizations that allow amortized linear growth over
12047 # repeated appends, instead of the typical quadratic growth present in naive
12048 # implementations.
12049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12050 then :
12051 eval 'as_fn_append ()
12052 {
12053 eval $1+=\$2
12054 }'
12055 else $as_nop
12056 as_fn_append ()
12057 {
12058 eval $1=\$$1\$2
12059 }
12060 fi # as_fn_append
12061
12062 # as_fn_arith ARG...
12063 # ------------------
12064 # Perform arithmetic evaluation on the ARGs, and store the result in the
12065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12066 # must be portable across $(()) and expr.
12067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12068 then :
12069 eval 'as_fn_arith ()
12070 {
12071 as_val=$(( $* ))
12072 }'
12073 else $as_nop
12074 as_fn_arith ()
12075 {
12076 as_val=`expr "$@" || test $? -eq 1`
12077 }
12078 fi # as_fn_arith
12079
12080
12081 if expr a : '\(a\)' >/dev/null 2>&1 &&
12082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12083 as_expr=expr
12084 else
12085 as_expr=false
12086 fi
12087
12088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12089 as_basename=basename
12090 else
12091 as_basename=false
12092 fi
12093
12094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12095 as_dirname=dirname
12096 else
12097 as_dirname=false
12098 fi
12099
12100 as_me=`$as_basename -- "$0" ||
12101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12102 X"$0" : 'X\(//\)$' \| \
12103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12104 printf "%s\n" X/"$0" |
12105 sed '/^.*\/\([^/][^/]*\)\/*$/{
12106 s//\1/
12107 q
12108 }
12109 /^X\/\(\/\/\)$/{
12110 s//\1/
12111 q
12112 }
12113 /^X\/\(\/\).*/{
12114 s//\1/
12115 q
12116 }
12117 s/.*/./; q'`
12118
12119 # Avoid depending upon Character Ranges.
12120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12123 as_cr_digits='0123456789'
12124 as_cr_alnum=$as_cr_Letters$as_cr_digits
12125
12126
12127 # Determine whether it's possible to make 'echo' print without a newline.
12128 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12129 # for compatibility with existing Makefiles.
12130 ECHO_C= ECHO_N= ECHO_T=
12131 case `echo -n x` in #(((((
12132 -n*)
12133 case `echo 'xy\c'` in
12134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12135 xy) ECHO_C='\c';;
12136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12137 ECHO_T=' ';;
12138 esac;;
12139 *)
12140 ECHO_N='-n';;
12141 esac
12142
12143 # For backward compatibility with old third-party macros, we provide
12144 # the shell variables $as_echo and $as_echo_n. New code should use
12145 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12146 as_echo='printf %s\n'
12147 as_echo_n='printf %s'
12148
12149 rm -f conf$$ conf$$.exe conf$$.file
12150 if test -d conf$$.dir; then
12151 rm -f conf$$.dir/conf$$.file
12152 else
12153 rm -f conf$$.dir
12154 mkdir conf$$.dir 2>/dev/null
12155 fi
12156 if (echo >conf$$.file) 2>/dev/null; then
12157 if ln -s conf$$.file conf$$ 2>/dev/null; then
12158 as_ln_s='ln -s'
12159 # ... but there are two gotchas:
12160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12162 # In both cases, we have to default to `cp -pR'.
12163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12164 as_ln_s='cp -pR'
12165 elif ln conf$$.file conf$$ 2>/dev/null; then
12166 as_ln_s=ln
12167 else
12168 as_ln_s='cp -pR'
12169 fi
12170 else
12171 as_ln_s='cp -pR'
12172 fi
12173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12174 rmdir conf$$.dir 2>/dev/null
12175
12176
12177 # as_fn_mkdir_p
12178 # -------------
12179 # Create "$as_dir" as a directory, including parents if necessary.
12180 as_fn_mkdir_p ()
12181 {
12182
12183 case $as_dir in #(
12184 -*) as_dir=./$as_dir;;
12185 esac
12186 test -d "$as_dir" || eval $as_mkdir_p || {
12187 as_dirs=
12188 while :; do
12189 case $as_dir in #(
12190 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12191 *) as_qdir=$as_dir;;
12192 esac
12193 as_dirs="'$as_qdir' $as_dirs"
12194 as_dir=`$as_dirname -- "$as_dir" ||
12195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12196 X"$as_dir" : 'X\(//\)[^/]' \| \
12197 X"$as_dir" : 'X\(//\)$' \| \
12198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12199 printf "%s\n" X"$as_dir" |
12200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12201 s//\1/
12202 q
12203 }
12204 /^X\(\/\/\)[^/].*/{
12205 s//\1/
12206 q
12207 }
12208 /^X\(\/\/\)$/{
12209 s//\1/
12210 q
12211 }
12212 /^X\(\/\).*/{
12213 s//\1/
12214 q
12215 }
12216 s/.*/./; q'`
12217 test -d "$as_dir" && break
12218 done
12219 test -z "$as_dirs" || eval "mkdir $as_dirs"
12220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12221
12222
12223 } # as_fn_mkdir_p
12224 if mkdir -p . 2>/dev/null; then
12225 as_mkdir_p='mkdir -p "$as_dir"'
12226 else
12227 test -d ./-p && rmdir ./-p
12228 as_mkdir_p=false
12229 fi
12230
12231
12232 # as_fn_executable_p FILE
12233 # -----------------------
12234 # Test if FILE is an executable regular file.
12235 as_fn_executable_p ()
12236 {
12237 test -f "$1" && test -x "$1"
12238 } # as_fn_executable_p
12239 as_test_x='test -x'
12240 as_executable_p=as_fn_executable_p
12241
12242 # Sed expression to map a string onto a valid CPP name.
12243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12244
12245 # Sed expression to map a string onto a valid variable name.
12246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12247
12248
12249 exec 6>&1
12250 ## ----------------------------------- ##
12251 ## Main body of $CONFIG_STATUS script. ##
12252 ## ----------------------------------- ##
12253 _ASEOF
12254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12255
12256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257 # Save the log message, to keep $0 and so on meaningful, and to
12258 # report actual input values of CONFIG_FILES etc. instead of their
12259 # values after options handling.
12260 ac_log="
12261 This file was extended by xmh $as_me 1.0.4, which was
12262 generated by GNU Autoconf 2.71. Invocation command line was
12263
12264 CONFIG_FILES = $CONFIG_FILES
12265 CONFIG_HEADERS = $CONFIG_HEADERS
12266 CONFIG_LINKS = $CONFIG_LINKS
12267 CONFIG_COMMANDS = $CONFIG_COMMANDS
12268 $ $0 $@
12269
12270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12271 "
12272
12273 _ACEOF
12274
12275 case $ac_config_files in *"
12276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12277 esac
12278
12279 case $ac_config_headers in *"
12280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12281 esac
12282
12283
12284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12285 # Files that config.status was made for.
12286 config_files="$ac_config_files"
12287 config_headers="$ac_config_headers"
12288 config_commands="$ac_config_commands"
12289
12290 _ACEOF
12291
12292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12293 ac_cs_usage="\
12294 \`$as_me' instantiates files and other configuration actions
12295 from templates according to the current configuration. Unless the files
12296 and actions are specified as TAGs, all are instantiated by default.
12297
12298 Usage: $0 [OPTION]... [TAG]...
12299
12300 -h, --help print this help, then exit
12301 -V, --version print version number and configuration settings, then exit
12302 --config print configuration, then exit
12303 -q, --quiet, --silent
12304 do not print progress messages
12305 -d, --debug don't remove temporary files
12306 --recheck update $as_me by reconfiguring in the same conditions
12307 --file=FILE[:TEMPLATE]
12308 instantiate the configuration file FILE
12309 --header=FILE[:TEMPLATE]
12310 instantiate the configuration header FILE
12311
12312 Configuration files:
12313 $config_files
12314
12315 Configuration headers:
12316 $config_headers
12317
12318 Configuration commands:
12319 $config_commands
12320
12321 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>."
12322
12323 _ACEOF
12324 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12325 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12327 ac_cs_config='$ac_cs_config_escaped'
12328 ac_cs_version="\\
12329 xmh config.status 1.0.4
12330 configured by $0, generated by GNU Autoconf 2.71,
12331 with options \\"\$ac_cs_config\\"
12332
12333 Copyright (C) 2021 Free Software Foundation, Inc.
12334 This config.status script is free software; the Free Software Foundation
12335 gives unlimited permission to copy, distribute and modify it."
12336
12337 ac_pwd='$ac_pwd'
12338 srcdir='$srcdir'
12339 INSTALL='$INSTALL'
12340 MKDIR_P='$MKDIR_P'
12341 AWK='$AWK'
12342 test -n "\$AWK" || AWK=awk
12343 _ACEOF
12344
12345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12346 # The default lists apply if the user does not specify any file.
12347 ac_need_defaults=:
12348 while test $# != 0
12349 do
12350 case $1 in
12351 --*=?*)
12352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12354 ac_shift=:
12355 ;;
12356 --*=)
12357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12358 ac_optarg=
12359 ac_shift=:
12360 ;;
12361 *)
12362 ac_option=$1
12363 ac_optarg=$2
12364 ac_shift=shift
12365 ;;
12366 esac
12367
12368 case $ac_option in
12369 # Handling of the options.
12370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12371 ac_cs_recheck=: ;;
12372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12373 printf "%s\n" "$ac_cs_version"; exit ;;
12374 --config | --confi | --conf | --con | --co | --c )
12375 printf "%s\n" "$ac_cs_config"; exit ;;
12376 --debug | --debu | --deb | --de | --d | -d )
12377 debug=: ;;
12378 --file | --fil | --fi | --f )
12379 $ac_shift
12380 case $ac_optarg in
12381 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12382 '') as_fn_error $? "missing file argument" ;;
12383 esac
12384 as_fn_append CONFIG_FILES " '$ac_optarg'"
12385 ac_need_defaults=false;;
12386 --header | --heade | --head | --hea )
12387 $ac_shift
12388 case $ac_optarg in
12389 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12390 esac
12391 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12392 ac_need_defaults=false;;
12393 --he | --h)
12394 # Conflict between --help and --header
12395 as_fn_error $? "ambiguous option: \`$1'
12396 Try \`$0 --help' for more information.";;
12397 --help | --hel | -h )
12398 printf "%s\n" "$ac_cs_usage"; exit ;;
12399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12401 ac_cs_silent=: ;;
12402
12403 # This is an error.
12404 -*) as_fn_error $? "unrecognized option: \`$1'
12405 Try \`$0 --help' for more information." ;;
12406
12407 *) as_fn_append ac_config_targets " $1"
12408 ac_need_defaults=false ;;
12409
12410 esac
12411 shift
12412 done
12413
12414 ac_configure_extra_args=
12415
12416 if $ac_cs_silent; then
12417 exec 6>/dev/null
12418 ac_configure_extra_args="$ac_configure_extra_args --silent"
12419 fi
12420
12421 _ACEOF
12422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12423 if \$ac_cs_recheck; then
12424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12425 shift
12426 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12427 CONFIG_SHELL='$SHELL'
12428 export CONFIG_SHELL
12429 exec "\$@"
12430 fi
12431
12432 _ACEOF
12433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434 exec 5>>config.log
12435 {
12436 echo
12437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12438 ## Running $as_me. ##
12439 _ASBOX
12440 printf "%s\n" "$ac_log"
12441 } >&5
12442
12443 _ACEOF
12444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12445 #
12446 # INIT-COMMANDS
12447 #
12448 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12449
12450 _ACEOF
12451
12452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12453
12454 # Handling of arguments.
12455 for ac_config_target in $ac_config_targets
12456 do
12457 case $ac_config_target in
12458 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12459 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12460 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12461 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12462
12463 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12464 esac
12465 done
12466
12467
12468 # If the user did not use the arguments to specify the items to instantiate,
12469 # then the envvar interface is used. Set only those that are not.
12470 # We use the long form for the default assignment because of an extremely
12471 # bizarre bug on SunOS 4.1.3.
12472 if $ac_need_defaults; then
12473 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12474 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12475 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12476 fi
12477
12478 # Have a temporary directory for convenience. Make it in the build tree
12479 # simply because there is no reason against having it here, and in addition,
12480 # creating and moving files from /tmp can sometimes cause problems.
12481 # Hook for its removal unless debugging.
12482 # Note that there is a small window in which the directory will not be cleaned:
12483 # after its creation but before its name has been assigned to `$tmp'.
12484 $debug ||
12485 {
12486 tmp= ac_tmp=
12487 trap 'exit_status=$?
12488 : "${ac_tmp:=$tmp}"
12489 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12490 ' 0
12491 trap 'as_fn_exit 1' 1 2 13 15
12492 }
12493 # Create a (secure) tmp directory for tmp files.
12494
12495 {
12496 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12497 test -d "$tmp"
12498 } ||
12499 {
12500 tmp=./conf$$-$RANDOM
12501 (umask 077 && mkdir "$tmp")
12502 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12503 ac_tmp=$tmp
12504
12505 # Set up the scripts for CONFIG_FILES section.
12506 # No need to generate them if there are no CONFIG_FILES.
12507 # This happens for instance with `./config.status config.h'.
12508 if test -n "$CONFIG_FILES"; then
12509
12510
12511 ac_cr=`echo X | tr X '\015'`
12512 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12513 # But we know of no other shell where ac_cr would be empty at this
12514 # point, so we can use a bashism as a fallback.
12515 if test "x$ac_cr" = x; then
12516 eval ac_cr=\$\'\\r\'
12517 fi
12518 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12519 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12520 ac_cs_awk_cr='\\r'
12521 else
12522 ac_cs_awk_cr=$ac_cr
12523 fi
12524
12525 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12526 _ACEOF
12527
12528
12529 {
12530 echo "cat >conf$$subs.awk <<_ACEOF" &&
12531 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12532 echo "_ACEOF"
12533 } >conf$$subs.sh ||
12534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12535 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12536 ac_delim='%!_!# '
12537 for ac_last_try in false false false false false :; do
12538 . ./conf$$subs.sh ||
12539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12540
12541 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12542 if test $ac_delim_n = $ac_delim_num; then
12543 break
12544 elif $ac_last_try; then
12545 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12546 else
12547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12548 fi
12549 done
12550 rm -f conf$$subs.sh
12551
12552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12553 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12554 _ACEOF
12555 sed -n '
12556 h
12557 s/^/S["/; s/!.*/"]=/
12558 p
12559 g
12560 s/^[^!]*!//
12561 :repl
12562 t repl
12563 s/'"$ac_delim"'$//
12564 t delim
12565 :nl
12566 h
12567 s/\(.\{148\}\)..*/\1/
12568 t more1
12569 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12570 p
12571 n
12572 b repl
12573 :more1
12574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12575 p
12576 g
12577 s/.\{148\}//
12578 t nl
12579 :delim
12580 h
12581 s/\(.\{148\}\)..*/\1/
12582 t more2
12583 s/["\\]/\\&/g; s/^/"/; s/$/"/
12584 p
12585 b
12586 :more2
12587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12588 p
12589 g
12590 s/.\{148\}//
12591 t delim
12592 ' <conf$$subs.awk | sed '
12593 /^[^""]/{
12594 N
12595 s/\n//
12596 }
12597 ' >>$CONFIG_STATUS || ac_write_fail=1
12598 rm -f conf$$subs.awk
12599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12600 _ACAWK
12601 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12602 for (key in S) S_is_set[key] = 1
12603 FS = ""
12604
12605 }
12606 {
12607 line = $ 0
12608 nfields = split(line, field, "@")
12609 substed = 0
12610 len = length(field[1])
12611 for (i = 2; i < nfields; i++) {
12612 key = field[i]
12613 keylen = length(key)
12614 if (S_is_set[key]) {
12615 value = S[key]
12616 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12617 len += length(value) + length(field[++i])
12618 substed = 1
12619 } else
12620 len += 1 + keylen
12621 }
12622
12623 print line
12624 }
12625
12626 _ACAWK
12627 _ACEOF
12628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12630 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12631 else
12632 cat
12633 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12634 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12635 _ACEOF
12636
12637 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12638 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12639 # trailing colons and then remove the whole line if VPATH becomes empty
12640 # (actually we leave an empty line to preserve line numbers).
12641 if test "x$srcdir" = x.; then
12642 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12643 h
12644 s///
12645 s/^/:/
12646 s/[ ]*$/:/
12647 s/:\$(srcdir):/:/g
12648 s/:\${srcdir}:/:/g
12649 s/:@srcdir@:/:/g
12650 s/^:*//
12651 s/:*$//
12652 x
12653 s/\(=[ ]*\).*/\1/
12654 G
12655 s/\n//
12656 s/^[^=]*=[ ]*$//
12657 }'
12658 fi
12659
12660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12661 fi # test -n "$CONFIG_FILES"
12662
12663 # Set up the scripts for CONFIG_HEADERS section.
12664 # No need to generate them if there are no CONFIG_HEADERS.
12665 # This happens for instance with `./config.status Makefile'.
12666 if test -n "$CONFIG_HEADERS"; then
12667 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12668 BEGIN {
12669 _ACEOF
12670
12671 # Transform confdefs.h into an awk script `defines.awk', embedded as
12672 # here-document in config.status, that substitutes the proper values into
12673 # config.h.in to produce config.h.
12674
12675 # Create a delimiter string that does not exist in confdefs.h, to ease
12676 # handling of long lines.
12677 ac_delim='%!_!# '
12678 for ac_last_try in false false :; do
12679 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12680 if test -z "$ac_tt"; then
12681 break
12682 elif $ac_last_try; then
12683 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12684 else
12685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12686 fi
12687 done
12688
12689 # For the awk script, D is an array of macro values keyed by name,
12690 # likewise P contains macro parameters if any. Preserve backslash
12691 # newline sequences.
12692
12693 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12694 sed -n '
12695 s/.\{148\}/&'"$ac_delim"'/g
12696 t rset
12697 :rset
12698 s/^[ ]*#[ ]*define[ ][ ]*/ /
12699 t def
12700 d
12701 :def
12702 s/\\$//
12703 t bsnl
12704 s/["\\]/\\&/g
12705 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12706 D["\1"]=" \3"/p
12707 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12708 d
12709 :bsnl
12710 s/["\\]/\\&/g
12711 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12712 D["\1"]=" \3\\\\\\n"\\/p
12713 t cont
12714 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12715 t cont
12716 d
12717 :cont
12718 n
12719 s/.\{148\}/&'"$ac_delim"'/g
12720 t clear
12721 :clear
12722 s/\\$//
12723 t bsnlc
12724 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12725 d
12726 :bsnlc
12727 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12728 b cont
12729 ' <confdefs.h | sed '
12730 s/'"$ac_delim"'/"\\\
12731 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12732
12733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734 for (key in D) D_is_set[key] = 1
12735 FS = ""
12736 }
12737 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12738 line = \$ 0
12739 split(line, arg, " ")
12740 if (arg[1] == "#") {
12741 defundef = arg[2]
12742 mac1 = arg[3]
12743 } else {
12744 defundef = substr(arg[1], 2)
12745 mac1 = arg[2]
12746 }
12747 split(mac1, mac2, "(") #)
12748 macro = mac2[1]
12749 prefix = substr(line, 1, index(line, defundef) - 1)
12750 if (D_is_set[macro]) {
12751 # Preserve the white space surrounding the "#".
12752 print prefix "define", macro P[macro] D[macro]
12753 next
12754 } else {
12755 # Replace #undef with comments. This is necessary, for example,
12756 # in the case of _POSIX_SOURCE, which is predefined and required
12757 # on some systems where configure will not decide to define it.
12758 if (defundef == "undef") {
12759 print "/*", prefix defundef, macro, "*/"
12760 next
12761 }
12762 }
12763 }
12764 { print }
12765 _ACAWK
12766 _ACEOF
12767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12768 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12769 fi # test -n "$CONFIG_HEADERS"
12770
12771
12772 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12773 shift
12774 for ac_tag
12775 do
12776 case $ac_tag in
12777 :[FHLC]) ac_mode=$ac_tag; continue;;
12778 esac
12779 case $ac_mode$ac_tag in
12780 :[FHL]*:*);;
12781 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12782 :[FH]-) ac_tag=-:-;;
12783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12784 esac
12785 ac_save_IFS=$IFS
12786 IFS=:
12787 set x $ac_tag
12788 IFS=$ac_save_IFS
12789 shift
12790 ac_file=$1
12791 shift
12792
12793 case $ac_mode in
12794 :L) ac_source=$1;;
12795 :[FH])
12796 ac_file_inputs=
12797 for ac_f
12798 do
12799 case $ac_f in
12800 -) ac_f="$ac_tmp/stdin";;
12801 *) # Look for the file first in the build tree, then in the source tree
12802 # (if the path is not absolute). The absolute path cannot be DOS-style,
12803 # because $ac_f cannot contain `:'.
12804 test -f "$ac_f" ||
12805 case $ac_f in
12806 [\\/$]*) false;;
12807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12808 esac ||
12809 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12810 esac
12811 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12812 as_fn_append ac_file_inputs " '$ac_f'"
12813 done
12814
12815 # Let's still pretend it is `configure' which instantiates (i.e., don't
12816 # use $as_me), people would be surprised to read:
12817 # /* config.h. Generated by config.status. */
12818 configure_input='Generated from '`
12819 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12820 `' by configure.'
12821 if test x"$ac_file" != x-; then
12822 configure_input="$ac_file. $configure_input"
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12824 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12825 fi
12826 # Neutralize special characters interpreted by sed in replacement strings.
12827 case $configure_input in #(
12828 *\&* | *\|* | *\\* )
12829 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12830 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12831 *) ac_sed_conf_input=$configure_input;;
12832 esac
12833
12834 case $ac_tag in
12835 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12837 esac
12838 ;;
12839 esac
12840
12841 ac_dir=`$as_dirname -- "$ac_file" ||
12842 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12843 X"$ac_file" : 'X\(//\)[^/]' \| \
12844 X"$ac_file" : 'X\(//\)$' \| \
12845 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12846 printf "%s\n" X"$ac_file" |
12847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12848 s//\1/
12849 q
12850 }
12851 /^X\(\/\/\)[^/].*/{
12852 s//\1/
12853 q
12854 }
12855 /^X\(\/\/\)$/{
12856 s//\1/
12857 q
12858 }
12859 /^X\(\/\).*/{
12860 s//\1/
12861 q
12862 }
12863 s/.*/./; q'`
12864 as_dir="$ac_dir"; as_fn_mkdir_p
12865 ac_builddir=.
12866
12867 case "$ac_dir" in
12868 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12869 *)
12870 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12871 # A ".." for each directory in $ac_dir_suffix.
12872 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12873 case $ac_top_builddir_sub in
12874 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12875 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12876 esac ;;
12877 esac
12878 ac_abs_top_builddir=$ac_pwd
12879 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12880 # for backward compatibility:
12881 ac_top_builddir=$ac_top_build_prefix
12882
12883 case $srcdir in
12884 .) # We are building in place.
12885 ac_srcdir=.
12886 ac_top_srcdir=$ac_top_builddir_sub
12887 ac_abs_top_srcdir=$ac_pwd ;;
12888 [\\/]* | ?:[\\/]* ) # Absolute name.
12889 ac_srcdir=$srcdir$ac_dir_suffix;
12890 ac_top_srcdir=$srcdir
12891 ac_abs_top_srcdir=$srcdir ;;
12892 *) # Relative name.
12893 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12894 ac_top_srcdir=$ac_top_build_prefix$srcdir
12895 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12896 esac
12897 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12898
12899
12900 case $ac_mode in
12901 :F)
12902 #
12903 # CONFIG_FILE
12904 #
12905
12906 case $INSTALL in
12907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12908 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12909 esac
12910 ac_MKDIR_P=$MKDIR_P
12911 case $MKDIR_P in
12912 [\\/$]* | ?:[\\/]* ) ;;
12913 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12914 esac
12915 _ACEOF
12916
12917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12918 # If the template does not know about datarootdir, expand it.
12919 # FIXME: This hack should be removed a few years after 2.60.
12920 ac_datarootdir_hack=; ac_datarootdir_seen=
12921 ac_sed_dataroot='
12922 /datarootdir/ {
12923 p
12924 q
12925 }
12926 /@datadir@/p
12927 /@docdir@/p
12928 /@infodir@/p
12929 /@localedir@/p
12930 /@mandir@/p'
12931 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12932 *datarootdir*) ac_datarootdir_seen=yes;;
12933 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12935 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12936 _ACEOF
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 ac_datarootdir_hack='
12939 s&@datadir@&$datadir&g
12940 s&@docdir@&$docdir&g
12941 s&@infodir@&$infodir&g
12942 s&@localedir@&$localedir&g
12943 s&@mandir@&$mandir&g
12944 s&\\\${datarootdir}&$datarootdir&g' ;;
12945 esac
12946 _ACEOF
12947
12948 # Neutralize VPATH when `$srcdir' = `.'.
12949 # Shell code in configure.ac might set extrasub.
12950 # FIXME: do we really want to maintain this feature?
12951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12952 ac_sed_extra="$ac_vpsub
12953 $extrasub
12954 _ACEOF
12955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12956 :t
12957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12958 s|@configure_input@|$ac_sed_conf_input|;t t
12959 s&@top_builddir@&$ac_top_builddir_sub&;t t
12960 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12961 s&@srcdir@&$ac_srcdir&;t t
12962 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12963 s&@top_srcdir@&$ac_top_srcdir&;t t
12964 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12965 s&@builddir@&$ac_builddir&;t t
12966 s&@abs_builddir@&$ac_abs_builddir&;t t
12967 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12968 s&@INSTALL@&$ac_INSTALL&;t t
12969 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12970 $ac_datarootdir_hack
12971 "
12972 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12973 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12974
12975 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12976 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12978 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12980 which seems to be undefined. Please make sure it is defined" >&5
12981 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12982 which seems to be undefined. Please make sure it is defined" >&2;}
12983
12984 rm -f "$ac_tmp/stdin"
12985 case $ac_file in
12986 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12987 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12988 esac \
12989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12990 ;;
12991 :H)
12992 #
12993 # CONFIG_HEADER
12994 #
12995 if test x"$ac_file" != x-; then
12996 {
12997 printf "%s\n" "/* $configure_input */" >&1 \
12998 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12999 } >"$ac_tmp/config.h" \
13000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13001 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13003 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13004 else
13005 rm -f "$ac_file"
13006 mv "$ac_tmp/config.h" "$ac_file" \
13007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13008 fi
13009 else
13010 printf "%s\n" "/* $configure_input */" >&1 \
13011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13012 || as_fn_error $? "could not create -" "$LINENO" 5
13013 fi
13014 # Compute "$ac_file"'s index in $config_headers.
13015 _am_arg="$ac_file"
13016 _am_stamp_count=1
13017 for _am_header in $config_headers :; do
13018 case $_am_header in
13019 $_am_arg | $_am_arg:* )
13020 break ;;
13021 * )
13022 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13023 esac
13024 done
13025 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13026 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13027 X"$_am_arg" : 'X\(//\)[^/]' \| \
13028 X"$_am_arg" : 'X\(//\)$' \| \
13029 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13030 printf "%s\n" X"$_am_arg" |
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'`/stamp-h$_am_stamp_count
13048 ;;
13049
13050 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13051 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13052 ;;
13053 esac
13054
13055
13056 case $ac_file$ac_mode in
13057 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13058 # Older Autoconf quotes --file arguments for eval, but not when files
13059 # are listed without --file. Let's play safe and only enable the eval
13060 # if we detect the quoting.
13061 # TODO: see whether this extra hack can be removed once we start
13062 # requiring Autoconf 2.70 or later.
13063 case $CONFIG_FILES in #(
13064 *\'*) :
13065 eval set x "$CONFIG_FILES" ;; #(
13066 *) :
13067 set x $CONFIG_FILES ;; #(
13068 *) :
13069 ;;
13070 esac
13071 shift
13072 # Used to flag and report bootstrapping failures.
13073 am_rc=0
13074 for am_mf
13075 do
13076 # Strip MF so we end up with the name of the file.
13077 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13078 # Check whether this is an Automake generated Makefile which includes
13079 # dependency-tracking related rules and includes.
13080 # Grep'ing the whole file directly is not great: AIX grep has a line
13081 # limit of 2048, but all sed's we know have understand at least 4000.
13082 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13083 || continue
13084 am_dirpart=`$as_dirname -- "$am_mf" ||
13085 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13086 X"$am_mf" : 'X\(//\)[^/]' \| \
13087 X"$am_mf" : 'X\(//\)$' \| \
13088 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13089 printf "%s\n" X"$am_mf" |
13090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13091 s//\1/
13092 q
13093 }
13094 /^X\(\/\/\)[^/].*/{
13095 s//\1/
13096 q
13097 }
13098 /^X\(\/\/\)$/{
13099 s//\1/
13100 q
13101 }
13102 /^X\(\/\).*/{
13103 s//\1/
13104 q
13105 }
13106 s/.*/./; q'`
13107 am_filepart=`$as_basename -- "$am_mf" ||
13108 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13109 X"$am_mf" : 'X\(//\)$' \| \
13110 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13111 printf "%s\n" X/"$am_mf" |
13112 sed '/^.*\/\([^/][^/]*\)\/*$/{
13113 s//\1/
13114 q
13115 }
13116 /^X\/\(\/\/\)$/{
13117 s//\1/
13118 q
13119 }
13120 /^X\/\(\/\).*/{
13121 s//\1/
13122 q
13123 }
13124 s/.*/./; q'`
13125 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13126 && sed -e '/# am--include-marker/d' "$am_filepart" \
13127 | $MAKE -f - am--depfiles" >&5
13128 (cd "$am_dirpart" \
13129 && sed -e '/# am--include-marker/d' "$am_filepart" \
13130 | $MAKE -f - am--depfiles) >&5 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } || am_rc=$?
13134 done
13135 if test $am_rc -ne 0; then
13136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13138 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13139 for automatic dependency tracking. If GNU make was not used, consider
13140 re-running the configure script with MAKE=\"gmake\" (or whatever is
13141 necessary). You can also try re-running configure with the
13142 '--disable-dependency-tracking' option to at least be able to build
13143 the package (albeit without support for automatic dependency tracking).
13144 See \`config.log' for more details" "$LINENO" 5; }
13145 fi
13146 { am_dirpart=; unset am_dirpart;}
13147 { am_filepart=; unset am_filepart;}
13148 { am_mf=; unset am_mf;}
13149 { am_rc=; unset am_rc;}
13150 rm -f conftest-deps.mk
13151 }
13152 ;;
13153
13154 esac
13155 done # for ac_tag
13156
13157
13158 as_fn_exit 0
13159 _ACEOF
13160 ac_clean_files=$ac_clean_files_save
13161
13162 test $ac_write_fail = 0 ||
13163 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13164
13165
13166 # configure is writing to config.log, and then calls config.status.
13167 # config.status does its own redirection, appending to config.log.
13168 # Unfortunately, on DOS this fails, as config.log is still kept open
13169 # by configure, so config.status won't be able to write to it; its
13170 # output is simply discarded. So we exec the FD to /dev/null,
13171 # effectively closing config.log, so it can be properly (re)opened and
13172 # appended to by config.status. When coming back to configure, we
13173 # need to make the FD available again.
13174 if test "$no_create" != yes; then
13175 ac_cs_success=:
13176 ac_config_status_args=
13177 test "$silent" = yes &&
13178 ac_config_status_args="$ac_config_status_args --quiet"
13179 exec 5>/dev/null
13180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13181 exec 5>>config.log
13182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13183 # would make configure fail if this is the last instruction.
13184 $ac_cs_success || as_fn_exit 1
13185 fi
13186 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13188 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13189 fi
13190
13191
13192