configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for imake 1.0.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/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/util/imake/-/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='imake'
614 PACKAGE_TARNAME='imake'
615 PACKAGE_VERSION='1.0.9'
616 PACKAGE_STRING='imake 1.0.9'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/imake/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 XPROTO_LIBS
658 XPROTO_CFLAGS
659 BUILD_MKHTMLINDEX_FALSE
660 BUILD_MKHTMLINDEX_TRUE
661 BUILD_CLEANLINKS_FALSE
662 BUILD_CLEANLINKS_TRUE
663 BUILD_MKDIRHIER_FALSE
664 BUILD_MKDIRHIER_TRUE
665 BUILD_MERGELIB_FALSE
666 BUILD_MERGELIB_TRUE
667 BUILD_CCMAKEDEP_FALSE
668 BUILD_CCMAKEDEP_TRUE
669 BUILD_XMKMF_FALSE
670 BUILD_XMKMF_TRUE
671 BUILD_MAKEG_FALSE
672 BUILD_MAKEG_TRUE
673 BUILD_REVPATH_FALSE
674 BUILD_REVPATH_TRUE
675 RANLIB
676 ARCMD
677 PREPROCESSCMD_MKDEPEND
678 XCONFDIR
679 HAS_PERL_FALSE
680 HAS_PERL_TRUE
681 HAS_PERL
682 CPP_PROGRAM
683 TRADITIONALCPPFLAGS
684 RAWCPPFLAGS
685 RAWCPP
686 CPP
687 MAN_SUBSTS
688 XORG_MAN_PAGE
689 ADMIN_MAN_DIR
690 DRIVER_MAN_DIR
691 MISC_MAN_DIR
692 FILE_MAN_DIR
693 LIB_MAN_DIR
694 APP_MAN_DIR
695 ADMIN_MAN_SUFFIX
696 DRIVER_MAN_SUFFIX
697 MISC_MAN_SUFFIX
698 FILE_MAN_SUFFIX
699 LIB_MAN_SUFFIX
700 APP_MAN_SUFFIX
701 SED
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 INSTALL_CMD
711 PKG_CONFIG_LIBDIR
712 PKG_CONFIG_PATH
713 PKG_CONFIG
714 CHANGELOG_CMD
715 STRICT_CFLAGS
716 CWARNFLAGS
717 BASE_CFLAGS
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 CSCOPE
739 ETAGS
740 CTAGS
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
746 AWK
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 runstatedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL
803 am__quote'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_silent_rules
808 enable_dependency_tracking
809 enable_selective_werror
810 enable_strict_compilation
811 with_config_dir
812 with_script_preproc_cmd
813 with_create_lib_cmd
814 with_clean_lib_cmd
815 enable_revpath
816 enable_makeg
817 enable_xmkmf
818 enable_ccmakedep
819 enable_mergelib
820 enable_mkdirhier
821 enable_cleanlinks
822 enable_mkhtmlindex
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 PKG_CONFIG
833 PKG_CONFIG_PATH
834 PKG_CONFIG_LIBDIR
835 CPP
836 XPROTO_CFLAGS
837 XPROTO_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 runstatedir='${localstatedir}/run'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: \`$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: \`$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: \`$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information"
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 printf "%s\n" X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures imake 1.0.9 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/imake]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of imake 1.0.9:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
1467 --enable-dependency-tracking
1468 do not reject slow dependency extractors
1469 --disable-dependency-tracking
1470 speeds up one-time build
1471 --disable-selective-werror
1472 Turn off selective compiler errors. (default:
1473 enabled)
1474 --enable-strict-compilation
1475 Enable all warnings from compiler and make them
1476 errors (default: disabled)
1477 --disable-revpath Build revpath (default: enabled)
1478 --disable-makeg Build makeg (default: enabled)
1479 --disable-xmkmf Build xmkmf (default: enabled)
1480 --disable-ccmakedep Build ccmakedep (default: enabled)
1481 --disable-mergelib Build mergelib (default: enabled)
1482 --disable-mkdirhier Build mkdirhier (default: enabled)
1483 --disable-cleanlinks Build cleanlinks (default: enabled)
1484 --disable-mkhtmlindex Build mkhtmlindex (default: enabled)
1485
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-config-dir=<path>
1490 Path to config dir (default: ${libdir}/X11/config)
1491 --with-script-preproc-cmd=CMD
1492 Preprocessor command to run on scripts (default:
1493 "gcc -E")
1494 --with-create-lib-cmd=CMD
1495 Command to create libraries (default: "ar clq")
1496 --with-clean-lib-cmd=CMD
1497 Command to clean up libraries (default: "ranlib")
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 PKG_CONFIG path to pkg-config utility
1508 PKG_CONFIG_PATH
1509 directories to add to pkg-config's search path
1510 PKG_CONFIG_LIBDIR
1511 path overriding pkg-config's built-in search path
1512 CPP C preprocessor
1513 XPROTO_CFLAGS
1514 C compiler flags for XPROTO, overriding pkg-config
1515 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/issues>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for configure.gnu first; this name is used for a wrapper for
1567 # Metaconfig's "Configure" on case-insensitive file systems.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1574 else
1575 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 fi || ac_status=$?
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1578 done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583 cat <<\_ACEOF
1584 imake configure 1.0.9
1585 generated by GNU Autoconf 2.71
1586
1587 Copyright (C) 2021 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest.beam
1605 if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 printf "%s\n" "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext
1624 then :
1625 ac_retval=0
1626 else $as_nop
1627 printf "%s\n" "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1638 # ------------------------------------------------------------------
1639 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1640 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1641 ac_fn_check_decl ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 as_decl_name=`echo $2|sed 's/ *(.*//'`
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1646 printf %s "checking whether $as_decl_name is declared... " >&6; }
1647 if eval test \${$3+y}
1648 then :
1649 printf %s "(cached) " >&6
1650 else $as_nop
1651 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1652 eval ac_save_FLAGS=\$$6
1653 as_fn_append $6 " $5"
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 int
1658 main (void)
1659 {
1660 #ifndef $as_decl_name
1661 #ifdef __cplusplus
1662 (void) $as_decl_use;
1663 #else
1664 (void) $as_decl_name;
1665 #endif
1666 #endif
1667
1668 ;
1669 return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"
1673 then :
1674 eval "$3=yes"
1675 else $as_nop
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679 eval $6=\$ac_save_FLAGS
1680
1681 fi
1682 eval ac_res=\$$3
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 printf "%s\n" "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_check_decl
1688
1689 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists and can be compiled using the include files in
1692 # INCLUDES, setting the cache variable VAR accordingly.
1693 ac_fn_c_check_header_compile ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 printf %s "checking for $2... " >&6; }
1698 if eval test \${$3+y}
1699 then :
1700 printf %s "(cached) " >&6
1701 else $as_nop
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"
1708 then :
1709 eval "$3=yes"
1710 else $as_nop
1711 eval "$3=no"
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1714 fi
1715 eval ac_res=\$$3
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 printf "%s\n" "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720 } # ac_fn_c_check_header_compile
1721
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_link ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 printf "%s\n" "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 test -x conftest$ac_exeext
1750 }
1751 then :
1752 ac_retval=0
1753 else $as_nop
1754 printf "%s\n" "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_link
1768
1769 # ac_fn_c_try_cpp LINENO
1770 # ----------------------
1771 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_cpp ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_cpp conftest.$ac_ext"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 printf "%s\n" "$ac_try_echo"; } >&5
1782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } > conftest.i && {
1791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 }
1794 then :
1795 ac_retval=0
1796 else $as_nop
1797 printf "%s\n" "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_cpp
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 printf %s "checking for $2... " >&6; }
1815 if eval test \${$3+y}
1816 then :
1817 printf %s "(cached) " >&6
1818 else $as_nop
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1824
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below. */
1827
1828 #include <limits.h>
1829 #undef $2
1830
1831 /* Override any GCC internal prototype to avoid an error.
1832 Use char because int might match the return type of a GCC
1833 builtin and then its argument prototype would still apply. */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 char $2 ();
1838 /* The GNU C library defines this for functions which it implements
1839 to always fail with ENOSYS. Some functions are actually named
1840 something starting with __ and the normal name is an alias. */
1841 #if defined __stub_$2 || defined __stub___$2
1842 choke me
1843 #endif
1844
1845 int
1846 main (void)
1847 {
1848 return $2 ();
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_link "$LINENO"
1854 then :
1855 eval "$3=yes"
1856 else $as_nop
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1860 conftest$ac_exeext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 printf "%s\n" "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_func
1868 ac_configure_args_raw=
1869 for ac_arg
1870 do
1871 case $ac_arg in
1872 *\'*)
1873 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 esac
1875 as_fn_append ac_configure_args_raw " '$ac_arg'"
1876 done
1877
1878 case $ac_configure_args_raw in
1879 *$as_nl*)
1880 ac_safe_unquote= ;;
1881 *)
1882 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1883 ac_unsafe_a="$ac_unsafe_z#~"
1884 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1885 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1886 esac
1887
1888 cat >config.log <<_ACEOF
1889 This file contains any messages produced by compilers while
1890 running configure, to aid debugging if configure makes a mistake.
1891
1892 It was created by imake $as_me 1.0.9, which was
1893 generated by GNU Autoconf 2.71. Invocation command line was
1894
1895 $ $0$ac_configure_args_raw
1896
1897 _ACEOF
1898 exec 5>>config.log
1899 {
1900 cat <<_ASUNAME
1901 ## --------- ##
1902 ## Platform. ##
1903 ## --------- ##
1904
1905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910
1911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913
1914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1921
1922 _ASUNAME
1923
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 case $as_dir in #(((
1929 '') as_dir=./ ;;
1930 */) ;;
1931 *) as_dir=$as_dir/ ;;
1932 esac
1933 printf "%s\n" "PATH: $as_dir"
1934 done
1935 IFS=$as_save_IFS
1936
1937 } >&5
1938
1939 cat >&5 <<_ACEOF
1940
1941
1942 ## ----------- ##
1943 ## Core tests. ##
1944 ## ----------- ##
1945
1946 _ACEOF
1947
1948
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_configure_args=
1955 ac_configure_args0=
1956 ac_configure_args1=
1957 ac_must_keep_next=false
1958 for ac_pass in 1 2
1959 do
1960 for ac_arg
1961 do
1962 case $ac_arg in
1963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965 | -silent | --silent | --silen | --sile | --sil)
1966 continue ;;
1967 *\'*)
1968 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 esac
1970 case $ac_pass in
1971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972 2)
1973 as_fn_append ac_configure_args1 " '$ac_arg'"
1974 if test $ac_must_keep_next = true; then
1975 ac_must_keep_next=false # Got value, back to normal.
1976 else
1977 case $ac_arg in
1978 *=* | --config-cache | -C | -disable-* | --disable-* \
1979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981 | -with-* | --with-* | -without-* | --without-* | --x)
1982 case "$ac_configure_args0 " in
1983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984 esac
1985 ;;
1986 -* ) ac_must_keep_next=true ;;
1987 esac
1988 fi
1989 as_fn_append ac_configure_args " '$ac_arg'"
1990 ;;
1991 esac
1992 done
1993 done
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1996
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log. We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003 # Sanitize IFS.
2004 IFS=" "" $as_nl"
2005 # Save into config.log some information that might help in debugging.
2006 {
2007 echo
2008
2009 printf "%s\n" "## ---------------- ##
2010 ## Cache variables. ##
2011 ## ---------------- ##"
2012 echo
2013 # The following way of writing the cache mishandles newlines in values,
2014 (
2015 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2016 eval ac_val=\$$ac_var
2017 case $ac_val in #(
2018 *${as_nl}*)
2019 case $ac_var in #(
2020 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2021 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022 esac
2023 case $ac_var in #(
2024 _ | IFS | as_nl) ;; #(
2025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2026 *) { eval $ac_var=; unset $ac_var;} ;;
2027 esac ;;
2028 esac
2029 done
2030 (set) 2>&1 |
2031 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2032 *${as_nl}ac_space=\ *)
2033 sed -n \
2034 "s/'\''/'\''\\\\'\'''\''/g;
2035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036 ;; #(
2037 *)
2038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039 ;;
2040 esac |
2041 sort
2042 )
2043 echo
2044
2045 printf "%s\n" "## ----------------- ##
2046 ## Output variables. ##
2047 ## ----------------- ##"
2048 echo
2049 for ac_var in $ac_subst_vars
2050 do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 printf "%s\n" "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2058
2059 if test -n "$ac_subst_files"; then
2060 printf "%s\n" "## ------------------- ##
2061 ## File substitutions. ##
2062 ## ------------------- ##"
2063 echo
2064 for ac_var in $ac_subst_files
2065 do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in
2068 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 esac
2070 printf "%s\n" "$ac_var='\''$ac_val'\''"
2071 done | sort
2072 echo
2073 fi
2074
2075 if test -s confdefs.h; then
2076 printf "%s\n" "## ----------- ##
2077 ## confdefs.h. ##
2078 ## ----------- ##"
2079 echo
2080 cat confdefs.h
2081 echo
2082 fi
2083 test "$ac_signal" != 0 &&
2084 printf "%s\n" "$as_me: caught signal $ac_signal"
2085 printf "%s\n" "$as_me: exit $exit_status"
2086 } >&5
2087 rm -f core *.core core.conftest.* &&
2088 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089 exit $exit_status
2090 ' 0
2091 for ac_signal in 1 2 13 15; do
2092 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2093 done
2094 ac_signal=0
2095
2096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2097 rm -f -r conftest* confdefs.h
2098
2099 printf "%s\n" "/* confdefs.h */" > confdefs.h
2100
2101 # Predefined preprocessor variables.
2102
2103 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2104
2105 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2106
2107 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2108
2109 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2110
2111 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2112
2113 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2114
2115
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 if test -n "$CONFIG_SITE"; then
2119 ac_site_files="$CONFIG_SITE"
2120 elif test "x$prefix" != xNONE; then
2121 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2122 else
2123 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2124 fi
2125
2126 for ac_site_file in $ac_site_files
2127 do
2128 case $ac_site_file in #(
2129 */*) :
2130 ;; #(
2131 *) :
2132 ac_site_file=./$ac_site_file ;;
2133 esac
2134 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file" \
2139 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143 fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2156 fi
2157 else
2158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2161 fi
2162
2163 # Test code for whether the C compiler supports C89 (global declarations)
2164 ac_c_conftest_c89_globals='
2165 /* Does the compiler advertise C89 conformance?
2166 Do not test the value of __STDC__, because some compilers set it to 0
2167 while being otherwise adequately conformant. */
2168 #if !defined __STDC__
2169 # error "Compiler does not advertise C89 conformance"
2170 #endif
2171
2172 #include <stddef.h>
2173 #include <stdarg.h>
2174 struct stat;
2175 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2176 struct buf { int x; };
2177 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2178 static char *e (p, i)
2179 char **p;
2180 int i;
2181 {
2182 return p[i];
2183 }
2184 static char *f (char * (*g) (char **, int), char **p, ...)
2185 {
2186 char *s;
2187 va_list v;
2188 va_start (v,p);
2189 s = g (p, va_arg (v,int));
2190 va_end (v);
2191 return s;
2192 }
2193
2194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2195 function prototypes and stuff, but not \xHH hex character constants.
2196 These do not provoke an error unfortunately, instead are silently treated
2197 as an "x". The following induces an error, until -std is added to get
2198 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2199 array size at least. It is necessary to write \x00 == 0 to get something
2200 that is true only with -std. */
2201 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2202
2203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2204 inside strings and character constants. */
2205 #define FOO(x) '\''x'\''
2206 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2207
2208 int test (int i, double x);
2209 struct s1 {int (*f) (int a);};
2210 struct s2 {int (*f) (double a);};
2211 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2212 int, int);'
2213
2214 # Test code for whether the C compiler supports C89 (body of main).
2215 ac_c_conftest_c89_main='
2216 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2217 '
2218
2219 # Test code for whether the C compiler supports C99 (global declarations)
2220 ac_c_conftest_c99_globals='
2221 // Does the compiler advertise C99 conformance?
2222 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2223 # error "Compiler does not advertise C99 conformance"
2224 #endif
2225
2226 #include <stdbool.h>
2227 extern int puts (const char *);
2228 extern int printf (const char *, ...);
2229 extern int dprintf (int, const char *, ...);
2230 extern void *malloc (size_t);
2231
2232 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2233 // dprintf is used instead of fprintf to avoid needing to declare
2234 // FILE and stderr.
2235 #define debug(...) dprintf (2, __VA_ARGS__)
2236 #define showlist(...) puts (#__VA_ARGS__)
2237 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2238 static void
2239 test_varargs_macros (void)
2240 {
2241 int x = 1234;
2242 int y = 5678;
2243 debug ("Flag");
2244 debug ("X = %d\n", x);
2245 showlist (The first, second, and third items.);
2246 report (x>y, "x is %d but y is %d", x, y);
2247 }
2248
2249 // Check long long types.
2250 #define BIG64 18446744073709551615ull
2251 #define BIG32 4294967295ul
2252 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2253 #if !BIG_OK
2254 #error "your preprocessor is broken"
2255 #endif
2256 #if BIG_OK
2257 #else
2258 #error "your preprocessor is broken"
2259 #endif
2260 static long long int bignum = -9223372036854775807LL;
2261 static unsigned long long int ubignum = BIG64;
2262
2263 struct incomplete_array
2264 {
2265 int datasize;
2266 double data[];
2267 };
2268
2269 struct named_init {
2270 int number;
2271 const wchar_t *name;
2272 double average;
2273 };
2274
2275 typedef const char *ccp;
2276
2277 static inline int
2278 test_restrict (ccp restrict text)
2279 {
2280 // See if C++-style comments work.
2281 // Iterate through items via the restricted pointer.
2282 // Also check for declarations in for loops.
2283 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2284 continue;
2285 return 0;
2286 }
2287
2288 // Check varargs and va_copy.
2289 static bool
2290 test_varargs (const char *format, ...)
2291 {
2292 va_list args;
2293 va_start (args, format);
2294 va_list args_copy;
2295 va_copy (args_copy, args);
2296
2297 const char *str = "";
2298 int number = 0;
2299 float fnumber = 0;
2300
2301 while (*format)
2302 {
2303 switch (*format++)
2304 {
2305 case '\''s'\'': // string
2306 str = va_arg (args_copy, const char *);
2307 break;
2308 case '\''d'\'': // int
2309 number = va_arg (args_copy, int);
2310 break;
2311 case '\''f'\'': // float
2312 fnumber = va_arg (args_copy, double);
2313 break;
2314 default:
2315 break;
2316 }
2317 }
2318 va_end (args_copy);
2319 va_end (args);
2320
2321 return *str && number && fnumber;
2322 }
2323 '
2324
2325 # Test code for whether the C compiler supports C99 (body of main).
2326 ac_c_conftest_c99_main='
2327 // Check bool.
2328 _Bool success = false;
2329 success |= (argc != 0);
2330
2331 // Check restrict.
2332 if (test_restrict ("String literal") == 0)
2333 success = true;
2334 char *restrict newvar = "Another string";
2335
2336 // Check varargs.
2337 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2338 test_varargs_macros ();
2339
2340 // Check flexible array members.
2341 struct incomplete_array *ia =
2342 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2343 ia->datasize = 10;
2344 for (int i = 0; i < ia->datasize; ++i)
2345 ia->data[i] = i * 1.234;
2346
2347 // Check named initializers.
2348 struct named_init ni = {
2349 .number = 34,
2350 .name = L"Test wide string",
2351 .average = 543.34343,
2352 };
2353
2354 ni.number = 58;
2355
2356 int dynamic_array[ni.number];
2357 dynamic_array[0] = argv[0][0];
2358 dynamic_array[ni.number - 1] = 543;
2359
2360 // work around unused variable warnings
2361 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2362 || dynamic_array[ni.number - 1] != 543);
2363 '
2364
2365 # Test code for whether the C compiler supports C11 (global declarations)
2366 ac_c_conftest_c11_globals='
2367 // Does the compiler advertise C11 conformance?
2368 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2369 # error "Compiler does not advertise C11 conformance"
2370 #endif
2371
2372 // Check _Alignas.
2373 char _Alignas (double) aligned_as_double;
2374 char _Alignas (0) no_special_alignment;
2375 extern char aligned_as_int;
2376 char _Alignas (0) _Alignas (int) aligned_as_int;
2377
2378 // Check _Alignof.
2379 enum
2380 {
2381 int_alignment = _Alignof (int),
2382 int_array_alignment = _Alignof (int[100]),
2383 char_alignment = _Alignof (char)
2384 };
2385 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2386
2387 // Check _Noreturn.
2388 int _Noreturn does_not_return (void) { for (;;) continue; }
2389
2390 // Check _Static_assert.
2391 struct test_static_assert
2392 {
2393 int x;
2394 _Static_assert (sizeof (int) <= sizeof (long int),
2395 "_Static_assert does not work in struct");
2396 long int y;
2397 };
2398
2399 // Check UTF-8 literals.
2400 #define u8 syntax error!
2401 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2402
2403 // Check duplicate typedefs.
2404 typedef long *long_ptr;
2405 typedef long int *long_ptr;
2406 typedef long_ptr long_ptr;
2407
2408 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2409 struct anonymous
2410 {
2411 union {
2412 struct { int i; int j; };
2413 struct { int k; long int l; } w;
2414 };
2415 int m;
2416 } v1;
2417 '
2418
2419 # Test code for whether the C compiler supports C11 (body of main).
2420 ac_c_conftest_c11_main='
2421 _Static_assert ((offsetof (struct anonymous, i)
2422 == offsetof (struct anonymous, w.k)),
2423 "Anonymous union alignment botch");
2424 v1.i = 2;
2425 v1.w.k = 5;
2426 ok |= v1.i != 5;
2427 '
2428
2429 # Test code for whether the C compiler supports C11 (complete).
2430 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2431 ${ac_c_conftest_c99_globals}
2432 ${ac_c_conftest_c11_globals}
2433
2434 int
2435 main (int argc, char **argv)
2436 {
2437 int ok = 0;
2438 ${ac_c_conftest_c89_main}
2439 ${ac_c_conftest_c99_main}
2440 ${ac_c_conftest_c11_main}
2441 return ok;
2442 }
2443 "
2444
2445 # Test code for whether the C compiler supports C99 (complete).
2446 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2447 ${ac_c_conftest_c99_globals}
2448
2449 int
2450 main (int argc, char **argv)
2451 {
2452 int ok = 0;
2453 ${ac_c_conftest_c89_main}
2454 ${ac_c_conftest_c99_main}
2455 return ok;
2456 }
2457 "
2458
2459 # Test code for whether the C compiler supports C89 (complete).
2460 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2461
2462 int
2463 main (int argc, char **argv)
2464 {
2465 int ok = 0;
2466 ${ac_c_conftest_c89_main}
2467 return ok;
2468 }
2469 "
2470
2471 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2472 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2473 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2474 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2475 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2476 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2477 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2478 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2479 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2480
2481 # Auxiliary files required by this configure script.
2482 ac_aux_files="config.guess config.sub compile missing install-sh"
2483
2484 # Locations in which to look for auxiliary files.
2485 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2486
2487 # Search for a directory containing all of the required auxiliary files,
2488 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2489 # If we don't find one directory that contains all the files we need,
2490 # we report the set of missing files from the *first* directory in
2491 # $ac_aux_dir_candidates and give up.
2492 ac_missing_aux_files=""
2493 ac_first_candidate=:
2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 as_found=false
2497 for as_dir in $ac_aux_dir_candidates
2498 do
2499 IFS=$as_save_IFS
2500 case $as_dir in #(((
2501 '') as_dir=./ ;;
2502 */) ;;
2503 *) as_dir=$as_dir/ ;;
2504 esac
2505 as_found=:
2506
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2508 ac_aux_dir_found=yes
2509 ac_install_sh=
2510 for ac_aux in $ac_aux_files
2511 do
2512 # As a special case, if "install-sh" is required, that requirement
2513 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2514 # and $ac_install_sh is set appropriately for whichever one is found.
2515 if test x"$ac_aux" = x"install-sh"
2516 then
2517 if test -f "${as_dir}install-sh"; then
2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2519 ac_install_sh="${as_dir}install-sh -c"
2520 elif test -f "${as_dir}install.sh"; then
2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2522 ac_install_sh="${as_dir}install.sh -c"
2523 elif test -f "${as_dir}shtool"; then
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2525 ac_install_sh="${as_dir}shtool install -c"
2526 else
2527 ac_aux_dir_found=no
2528 if $ac_first_candidate; then
2529 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2530 else
2531 break
2532 fi
2533 fi
2534 else
2535 if test -f "${as_dir}${ac_aux}"; then
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2537 else
2538 ac_aux_dir_found=no
2539 if $ac_first_candidate; then
2540 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2541 else
2542 break
2543 fi
2544 fi
2545 fi
2546 done
2547 if test "$ac_aux_dir_found" = yes; then
2548 ac_aux_dir="$as_dir"
2549 break
2550 fi
2551 ac_first_candidate=false
2552
2553 as_found=false
2554 done
2555 IFS=$as_save_IFS
2556 if $as_found
2557 then :
2558
2559 else $as_nop
2560 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2561 fi
2562
2563
2564 # These three variables are undocumented and unsupported,
2565 # and are intended to be withdrawn in a future Autoconf release.
2566 # They can cause serious problems if a builder's source tree is in a directory
2567 # whose full name contains unusual characters.
2568 if test -f "${ac_aux_dir}config.guess"; then
2569 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2570 fi
2571 if test -f "${ac_aux_dir}config.sub"; then
2572 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2573 fi
2574 if test -f "$ac_aux_dir/configure"; then
2575 ac_configure="$SHELL ${ac_aux_dir}configure"
2576 fi
2577
2578 # Check that the precious variables saved in the cache have kept the same
2579 # value.
2580 ac_cache_corrupted=false
2581 for ac_var in $ac_precious_vars; do
2582 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583 eval ac_new_set=\$ac_env_${ac_var}_set
2584 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585 eval ac_new_val=\$ac_env_${ac_var}_value
2586 case $ac_old_set,$ac_new_set in
2587 set,)
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,set)
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594 ac_cache_corrupted=: ;;
2595 ,);;
2596 *)
2597 if test "x$ac_old_val" != "x$ac_new_val"; then
2598 # differences in whitespace do not lead to failure.
2599 ac_old_val_w=`echo x $ac_old_val`
2600 ac_new_val_w=`echo x $ac_new_val`
2601 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604 ac_cache_corrupted=:
2605 else
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608 eval $ac_var=\$ac_old_val
2609 fi
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2611 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2613 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2614 fi;;
2615 esac
2616 # Pass precious variables to config.status.
2617 if test "$ac_new_set" = set; then
2618 case $ac_new_val in
2619 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620 *) ac_arg=$ac_var=$ac_new_val ;;
2621 esac
2622 case " $ac_configure_args " in
2623 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2624 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625 esac
2626 fi
2627 done
2628 if $ac_cache_corrupted; then
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2633 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2634 and start over" "$LINENO" 5
2635 fi
2636 ## -------------------- ##
2637 ## Main body of script. ##
2638 ## -------------------- ##
2639
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648 ac_config_headers="$ac_config_headers config.h"
2649
2650
2651 # Initialize Automake
2652 am__api_version='1.16'
2653
2654
2655
2656 # Find a good install program. We prefer a C program (faster),
2657 # so one script is as good as another. But avoid the broken or
2658 # incompatible versions:
2659 # SysV /etc/install, /usr/sbin/install
2660 # SunOS /usr/etc/install
2661 # IRIX /sbin/install
2662 # AIX /bin/install
2663 # AmigaOS /C/install, which installs bootblocks on floppy discs
2664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2667 # OS/2's system install, which has a completely different semantic
2668 # ./install, which can be erroneously created by make from ./install.sh.
2669 # Reject install programs that cannot install multiple files.
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2671 printf %s "checking for a BSD-compatible install... " >&6; }
2672 if test -z "$INSTALL"; then
2673 if test ${ac_cv_path_install+y}
2674 then :
2675 printf %s "(cached) " >&6
2676 else $as_nop
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 case $as_dir in #(((
2682 '') as_dir=./ ;;
2683 */) ;;
2684 *) as_dir=$as_dir/ ;;
2685 esac
2686 # Account for fact that we put trailing slashes in our PATH walk.
2687 case $as_dir in #((
2688 ./ | /[cC]/* | \
2689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2691 /usr/ucb/* ) ;;
2692 *)
2693 # OSF1 and SCO ODT 3.0 have their own names for install.
2694 # Don't use installbsd from OSF since it installs stuff as root
2695 # by default.
2696 for ac_prog in ginstall scoinst install; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2699 if test $ac_prog = install &&
2700 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701 # AIX install. It has an incompatible calling convention.
2702 :
2703 elif test $ac_prog = install &&
2704 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705 # program-specific install script used by HP pwplus--don't use.
2706 :
2707 else
2708 rm -rf conftest.one conftest.two conftest.dir
2709 echo one > conftest.one
2710 echo two > conftest.two
2711 mkdir conftest.dir
2712 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2713 test -s conftest.one && test -s conftest.two &&
2714 test -s conftest.dir/conftest.one &&
2715 test -s conftest.dir/conftest.two
2716 then
2717 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2718 break 3
2719 fi
2720 fi
2721 fi
2722 done
2723 done
2724 ;;
2725 esac
2726
2727 done
2728 IFS=$as_save_IFS
2729
2730 rm -rf conftest.one conftest.two conftest.dir
2731
2732 fi
2733 if test ${ac_cv_path_install+y}; then
2734 INSTALL=$ac_cv_path_install
2735 else
2736 # As a last resort, use the slow shell script. Don't cache a
2737 # value for INSTALL within a source directory, because that will
2738 # break other packages using the cache if that directory is
2739 # removed, or if the value is a relative name.
2740 INSTALL=$ac_install_sh
2741 fi
2742 fi
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2744 printf "%s\n" "$INSTALL" >&6; }
2745
2746 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2747 # It thinks the first close brace ends the variable substitution.
2748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2749
2750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2751
2752 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2753
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2755 printf %s "checking whether build environment is sane... " >&6; }
2756 # Reject unsafe characters in $srcdir or the absolute working directory
2757 # name. Accept space and tab only in the latter.
2758 am_lf='
2759 '
2760 case `pwd` in
2761 *[\\\"\#\$\&\'\`$am_lf]*)
2762 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2763 esac
2764 case $srcdir in
2765 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2766 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2767 esac
2768
2769 # Do 'set' in a subshell so we don't clobber the current shell's
2770 # arguments. Must try -L first in case configure is actually a
2771 # symlink; some systems play weird games with the mod time of symlinks
2772 # (eg FreeBSD returns the mod time of the symlink's containing
2773 # directory).
2774 if (
2775 am_has_slept=no
2776 for am_try in 1 2; do
2777 echo "timestamp, slept: $am_has_slept" > conftest.file
2778 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2779 if test "$*" = "X"; then
2780 # -L didn't work.
2781 set X `ls -t "$srcdir/configure" conftest.file`
2782 fi
2783 if test "$*" != "X $srcdir/configure conftest.file" \
2784 && test "$*" != "X conftest.file $srcdir/configure"; then
2785
2786 # If neither matched, then we have a broken ls. This can happen
2787 # if, for instance, CONFIG_SHELL is bash and it inherits a
2788 # broken ls alias from the environment. This has actually
2789 # happened. Such a system could not be considered "sane".
2790 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2791 alias in your environment" "$LINENO" 5
2792 fi
2793 if test "$2" = conftest.file || test $am_try -eq 2; then
2794 break
2795 fi
2796 # Just in case.
2797 sleep 1
2798 am_has_slept=yes
2799 done
2800 test "$2" = conftest.file
2801 )
2802 then
2803 # Ok.
2804 :
2805 else
2806 as_fn_error $? "newly created file is older than distributed files!
2807 Check your system clock" "$LINENO" 5
2808 fi
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810 printf "%s\n" "yes" >&6; }
2811 # If we didn't sleep, we still need to ensure time stamps of config.status and
2812 # generated files are strictly newer.
2813 am_sleep_pid=
2814 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2815 ( sleep 1 ) &
2816 am_sleep_pid=$!
2817 fi
2818
2819 rm -f conftest.file
2820
2821 test "$program_prefix" != NONE &&
2822 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2823 # Use a double $ so make ignores it.
2824 test "$program_suffix" != NONE &&
2825 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2826 # Double any \ or $.
2827 # By default was `s,x,x', remove it if useless.
2828 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2829 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2830
2831
2832 # Expand $ac_aux_dir to an absolute path.
2833 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2834
2835
2836 if test x"${MISSING+set}" != xset; then
2837 MISSING="\${SHELL} '$am_aux_dir/missing'"
2838 fi
2839 # Use eval to expand $SHELL
2840 if eval "$MISSING --is-lightweight"; then
2841 am_missing_run="$MISSING "
2842 else
2843 am_missing_run=
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2845 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2846 fi
2847
2848 if test x"${install_sh+set}" != xset; then
2849 case $am_aux_dir in
2850 *\ * | *\ *)
2851 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 *)
2853 install_sh="\${SHELL} $am_aux_dir/install-sh"
2854 esac
2855 fi
2856
2857 # Installed binaries are usually stripped using 'strip' when the user
2858 # run "make install-strip". However 'strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the 'STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 printf %s "checking for $ac_word... " >&6; }
2867 if test ${ac_cv_prog_STRIP+y}
2868 then :
2869 printf %s "(cached) " >&6
2870 else $as_nop
2871 if test -n "$STRIP"; then
2872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 case $as_dir in #(((
2879 '') as_dir=./ ;;
2880 */) ;;
2881 *) as_dir=$as_dir/ ;;
2882 esac
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 STRIP=$ac_cv_prog_STRIP
2896 if test -n "$STRIP"; then
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898 printf "%s\n" "$STRIP" >&6; }
2899 else
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 printf "%s\n" "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 printf %s "checking for $ac_word... " >&6; }
2912 if test ${ac_cv_prog_ac_ct_STRIP+y}
2913 then :
2914 printf %s "(cached) " >&6
2915 else $as_nop
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 case $as_dir in #(((
2924 '') as_dir=./ ;;
2925 */) ;;
2926 *) as_dir=$as_dir/ ;;
2927 esac
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941 if test -n "$ac_ct_STRIP"; then
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2943 printf "%s\n" "$ac_ct_STRIP" >&6; }
2944 else
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 printf "%s\n" "no" >&6; }
2947 fi
2948
2949 if test "x$ac_ct_STRIP" = x; then
2950 STRIP=":"
2951 else
2952 case $cross_compiling:$ac_tool_warned in
2953 yes:)
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958 STRIP=$ac_ct_STRIP
2959 fi
2960 else
2961 STRIP="$ac_cv_prog_STRIP"
2962 fi
2963
2964 fi
2965 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2966
2967
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2969 printf %s "checking for a race-free mkdir -p... " >&6; }
2970 if test -z "$MKDIR_P"; then
2971 if test ${ac_cv_path_mkdir+y}
2972 then :
2973 printf %s "(cached) " >&6
2974 else $as_nop
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977 do
2978 IFS=$as_save_IFS
2979 case $as_dir in #(((
2980 '') as_dir=./ ;;
2981 */) ;;
2982 *) as_dir=$as_dir/ ;;
2983 esac
2984 for ac_prog in mkdir gmkdir; do
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2987 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988 'mkdir ('*'coreutils) '* | \
2989 'BusyBox '* | \
2990 'mkdir (fileutils) '4.1*)
2991 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2992 break 3;;
2993 esac
2994 done
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000
3001 test -d ./--version && rmdir ./--version
3002 if test ${ac_cv_path_mkdir+y}; then
3003 MKDIR_P="$ac_cv_path_mkdir -p"
3004 else
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for MKDIR_P within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the value is a relative name.
3009 MKDIR_P="$ac_install_sh -d"
3010 fi
3011 fi
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3013 printf "%s\n" "$MKDIR_P" >&6; }
3014
3015 for ac_prog in gawk mawk nawk awk
3016 do
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 printf %s "checking for $ac_word... " >&6; }
3021 if test ${ac_cv_prog_AWK+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else $as_nop
3025 if test -n "$AWK"; then
3026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 case $as_dir in #(((
3033 '') as_dir=./ ;;
3034 */) ;;
3035 *) as_dir=$as_dir/ ;;
3036 esac
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_AWK="$ac_prog"
3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 AWK=$ac_cv_prog_AWK
3050 if test -n "$AWK"; then
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3052 printf "%s\n" "$AWK" >&6; }
3053 else
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 printf "%s\n" "no" >&6; }
3056 fi
3057
3058
3059 test -n "$AWK" && break
3060 done
3061
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3064 set x ${MAKE-make}
3065 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3066 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3067 then :
3068 printf %s "(cached) " >&6
3069 else $as_nop
3070 cat >conftest.make <<\_ACEOF
3071 SHELL = /bin/sh
3072 all:
3073 @echo '@@@%%%=$(MAKE)=@@@%%%'
3074 _ACEOF
3075 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3076 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077 *@@@%%%=?*=@@@%%%*)
3078 eval ac_cv_prog_make_${ac_make}_set=yes;;
3079 *)
3080 eval ac_cv_prog_make_${ac_make}_set=no;;
3081 esac
3082 rm -f conftest.make
3083 fi
3084 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 printf "%s\n" "yes" >&6; }
3087 SET_MAKE=
3088 else
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 printf "%s\n" "no" >&6; }
3091 SET_MAKE="MAKE=${MAKE-make}"
3092 fi
3093
3094 rm -rf .tst 2>/dev/null
3095 mkdir .tst 2>/dev/null
3096 if test -d .tst; then
3097 am__leading_dot=.
3098 else
3099 am__leading_dot=_
3100 fi
3101 rmdir .tst 2>/dev/null
3102
3103 # Check whether --enable-silent-rules was given.
3104 if test ${enable_silent_rules+y}
3105 then :
3106 enableval=$enable_silent_rules;
3107 fi
3108
3109 case $enable_silent_rules in # (((
3110 yes) AM_DEFAULT_VERBOSITY=0;;
3111 no) AM_DEFAULT_VERBOSITY=1;;
3112 *) AM_DEFAULT_VERBOSITY=1;;
3113 esac
3114 am_make=${MAKE-make}
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3116 printf %s "checking whether $am_make supports nested variables... " >&6; }
3117 if test ${am_cv_make_support_nested_variables+y}
3118 then :
3119 printf %s "(cached) " >&6
3120 else $as_nop
3121 if printf "%s\n" 'TRUE=$(BAR$(V))
3122 BAR0=false
3123 BAR1=true
3124 V=1
3125 am__doit:
3126 @$(TRUE)
3127 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3128 am_cv_make_support_nested_variables=yes
3129 else
3130 am_cv_make_support_nested_variables=no
3131 fi
3132 fi
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3134 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3135 if test $am_cv_make_support_nested_variables = yes; then
3136 AM_V='$(V)'
3137 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3138 else
3139 AM_V=$AM_DEFAULT_VERBOSITY
3140 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3141 fi
3142 AM_BACKSLASH='\'
3143
3144 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3145 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3146 # is not polluted with repeated "-I."
3147 am__isrc=' -I$(srcdir)'
3148 # test to see if srcdir already configured
3149 if test -f $srcdir/config.status; then
3150 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3151 fi
3152 fi
3153
3154 # test whether we have cygpath
3155 if test -z "$CYGPATH_W"; then
3156 if (cygpath --version) >/dev/null 2>/dev/null; then
3157 CYGPATH_W='cygpath -w'
3158 else
3159 CYGPATH_W=echo
3160 fi
3161 fi
3162
3163
3164 # Define the identity of the package.
3165 PACKAGE='imake'
3166 VERSION='1.0.9'
3167
3168
3169 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3170
3171
3172 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3173
3174 # Some tools Automake needs.
3175
3176 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3177
3178
3179 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3180
3181
3182 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3183
3184
3185 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3186
3187
3188 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3189
3190 # For better backward compatibility. To be removed once Automake 1.9.x
3191 # dies out for good. For more background, see:
3192 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3193 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3194 mkdir_p='$(MKDIR_P)'
3195
3196 # We need awk for the "check" target (and possibly the TAP driver). The
3197 # system "awk" is bad on some platforms.
3198 # Always define AMTAR for backward compatibility. Yes, it's still used
3199 # in the wild :-( We should find a proper way to deprecate it ...
3200 AMTAR='$${TAR-tar}'
3201
3202
3203 # We'll loop over all known methods to create a tar archive until one works.
3204 _am_tools='gnutar pax cpio none'
3205
3206 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3207
3208
3209
3210
3211
3212 # Variables for tags utilities; see am/tags.am
3213 if test -z "$CTAGS"; then
3214 CTAGS=ctags
3215 fi
3216
3217 if test -z "$ETAGS"; then
3218 ETAGS=etags
3219 fi
3220
3221 if test -z "$CSCOPE"; then
3222 CSCOPE=cscope
3223 fi
3224
3225
3226
3227 # POSIX will say in a future version that running "rm -f" with no argument
3228 # is OK; and we want to be able to make that assumption in our Makefile
3229 # recipes. So use an aggressive probe to check that the usage we want is
3230 # actually supported "in the wild" to an acceptable degree.
3231 # See automake bug#10828.
3232 # To make any issue more visible, cause the running configure to be aborted
3233 # by default if the 'rm' program in use doesn't match our expectations; the
3234 # user can still override this though.
3235 if rm -f && rm -fr && rm -rf; then : OK; else
3236 cat >&2 <<'END'
3237 Oops!
3238
3239 Your 'rm' program seems unable to run without file operands specified
3240 on the command line, even when the '-f' option is present. This is contrary
3241 to the behaviour of most rm programs out there, and not conforming with
3242 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3243
3244 Please tell bug-automake@gnu.org about your system, including the value
3245 of your $PATH and any error possibly output before this message. This
3246 can help us improve future automake versions.
3247
3248 END
3249 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3250 echo 'Configuration will proceed anyway, since you have set the' >&2
3251 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3252 echo >&2
3253 else
3254 cat >&2 <<'END'
3255 Aborting the configuration process, to ensure you take notice of the issue.
3256
3257 You can download and install GNU coreutils to get an 'rm' implementation
3258 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3259
3260 If you want to complete the configuration process using your problematic
3261 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3262 to "yes", and re-run configure.
3263
3264 END
3265 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3266 fi
3267 fi
3268
3269
3270 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291 DEPDIR="${am__leading_dot}deps"
3292
3293 ac_config_commands="$ac_config_commands depfiles"
3294
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3296 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3297 cat > confinc.mk << 'END'
3298 am__doit:
3299 @echo this is the am__doit target >confinc.out
3300 .PHONY: am__doit
3301 END
3302 am__include="#"
3303 am__quote=
3304 # BSD make does it like this.
3305 echo '.include "confinc.mk" # ignored' > confmf.BSD
3306 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3307 echo 'include confinc.mk # ignored' > confmf.GNU
3308 _am_result=no
3309 for s in GNU BSD; do
3310 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3311 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }
3315 case $?:`cat confinc.out 2>/dev/null` in #(
3316 '0:this is the am__doit target') :
3317 case $s in #(
3318 BSD) :
3319 am__include='.include' am__quote='"' ;; #(
3320 *) :
3321 am__include='include' am__quote='' ;;
3322 esac ;; #(
3323 *) :
3324 ;;
3325 esac
3326 if test "$am__include" != "#"; then
3327 _am_result="yes ($s style)"
3328 break
3329 fi
3330 done
3331 rm -f confinc.* confmf.*
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3333 printf "%s\n" "${_am_result}" >&6; }
3334
3335 # Check whether --enable-dependency-tracking was given.
3336 if test ${enable_dependency_tracking+y}
3337 then :
3338 enableval=$enable_dependency_tracking;
3339 fi
3340
3341 if test "x$enable_dependency_tracking" != xno; then
3342 am_depcomp="$ac_aux_dir/depcomp"
3343 AMDEPBACKSLASH='\'
3344 am__nodep='_no'
3345 fi
3346 if test "x$enable_dependency_tracking" != xno; then
3347 AMDEP_TRUE=
3348 AMDEP_FALSE='#'
3349 else
3350 AMDEP_TRUE='#'
3351 AMDEP_FALSE=
3352 fi
3353
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 if test -n "$ac_tool_prefix"; then
3361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 printf %s "checking for $ac_word... " >&6; }
3365 if test ${ac_cv_prog_CC+y}
3366 then :
3367 printf %s "(cached) " >&6
3368 else $as_nop
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 case $as_dir in #(((
3377 '') as_dir=./ ;;
3378 */) ;;
3379 *) as_dir=$as_dir/ ;;
3380 esac
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 printf "%s\n" "$CC" >&6; }
3397 else
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 printf "%s\n" "no" >&6; }
3400 fi
3401
3402
3403 fi
3404 if test -z "$ac_cv_prog_CC"; then
3405 ac_ct_CC=$CC
3406 # Extract the first word of "gcc", so it can be a program name with args.
3407 set dummy gcc; ac_word=$2
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 printf %s "checking for $ac_word... " >&6; }
3410 if test ${ac_cv_prog_ac_ct_CC+y}
3411 then :
3412 printf %s "(cached) " >&6
3413 else $as_nop
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 case $as_dir in #(((
3422 '') as_dir=./ ;;
3423 */) ;;
3424 *) as_dir=$as_dir/ ;;
3425 esac
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_ac_ct_CC="gcc"
3429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439 if test -n "$ac_ct_CC"; then
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441 printf "%s\n" "$ac_ct_CC" >&6; }
3442 else
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 printf "%s\n" "no" >&6; }
3445 fi
3446
3447 if test "x$ac_ct_CC" = x; then
3448 CC=""
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451 yes:)
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456 CC=$ac_ct_CC
3457 fi
3458 else
3459 CC="$ac_cv_prog_CC"
3460 fi
3461
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3465 set dummy ${ac_tool_prefix}cc; ac_word=$2
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 printf %s "checking for $ac_word... " >&6; }
3468 if test ${ac_cv_prog_CC+y}
3469 then :
3470 printf %s "(cached) " >&6
3471 else $as_nop
3472 if test -n "$CC"; then
3473 ac_cv_prog_CC="$CC" # Let the user override the test.
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478 IFS=$as_save_IFS
3479 case $as_dir in #(((
3480 '') as_dir=./ ;;
3481 */) ;;
3482 *) as_dir=$as_dir/ ;;
3483 esac
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC="${ac_tool_prefix}cc"
3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 printf "%s\n" "$CC" >&6; }
3500 else
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 printf "%s\n" "no" >&6; }
3503 fi
3504
3505
3506 fi
3507 fi
3508 if test -z "$CC"; then
3509 # Extract the first word of "cc", so it can be a program name with args.
3510 set dummy cc; ac_word=$2
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 printf %s "checking for $ac_word... " >&6; }
3513 if test ${ac_cv_prog_CC+y}
3514 then :
3515 printf %s "(cached) " >&6
3516 else $as_nop
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520 ac_prog_rejected=no
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 case $as_dir in #(((
3526 '') as_dir=./ ;;
3527 */) ;;
3528 *) as_dir=$as_dir/ ;;
3529 esac
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3532 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533 ac_prog_rejected=yes
3534 continue
3535 fi
3536 ac_cv_prog_CC="cc"
3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 if test $ac_prog_rejected = yes; then
3545 # We found a bogon in the path, so make sure we never use it.
3546 set dummy $ac_cv_prog_CC
3547 shift
3548 if test $# != 0; then
3549 # We chose a different compiler from the bogus one.
3550 # However, it has the same basename, so the bogon will be chosen
3551 # first if we set CC to just the basename; use the full file name.
3552 shift
3553 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3554 fi
3555 fi
3556 fi
3557 fi
3558 CC=$ac_cv_prog_CC
3559 if test -n "$CC"; then
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561 printf "%s\n" "$CC" >&6; }
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 fi
3566
3567
3568 fi
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 for ac_prog in cl.exe
3572 do
3573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 printf %s "checking for $ac_word... " >&6; }
3577 if test ${ac_cv_prog_CC+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else $as_nop
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587 IFS=$as_save_IFS
3588 case $as_dir in #(((
3589 '') as_dir=./ ;;
3590 */) ;;
3591 *) as_dir=$as_dir/ ;;
3592 esac
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 fi
3604 fi
3605 CC=$ac_cv_prog_CC
3606 if test -n "$CC"; then
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608 printf "%s\n" "$CC" >&6; }
3609 else
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 printf "%s\n" "no" >&6; }
3612 fi
3613
3614
3615 test -n "$CC" && break
3616 done
3617 fi
3618 if test -z "$CC"; then
3619 ac_ct_CC=$CC
3620 for ac_prog in cl.exe
3621 do
3622 # Extract the first word of "$ac_prog", so it can be a program name with args.
3623 set dummy $ac_prog; ac_word=$2
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 printf %s "checking for $ac_word... " >&6; }
3626 if test ${ac_cv_prog_ac_ct_CC+y}
3627 then :
3628 printf %s "(cached) " >&6
3629 else $as_nop
3630 if test -n "$ac_ct_CC"; then
3631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 case $as_dir in #(((
3638 '') as_dir=./ ;;
3639 */) ;;
3640 *) as_dir=$as_dir/ ;;
3641 esac
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_CC="$ac_prog"
3645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 printf "%s\n" "$ac_ct_CC" >&6; }
3658 else
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 printf "%s\n" "no" >&6; }
3661 fi
3662
3663
3664 test -n "$ac_ct_CC" && break
3665 done
3666
3667 if test "x$ac_ct_CC" = x; then
3668 CC=""
3669 else
3670 case $cross_compiling:$ac_tool_warned in
3671 yes:)
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3675 esac
3676 CC=$ac_ct_CC
3677 fi
3678 fi
3679
3680 fi
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3684 set dummy ${ac_tool_prefix}clang; ac_word=$2
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 printf %s "checking for $ac_word... " >&6; }
3687 if test ${ac_cv_prog_CC+y}
3688 then :
3689 printf %s "(cached) " >&6
3690 else $as_nop
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 case $as_dir in #(((
3699 '') as_dir=./ ;;
3700 */) ;;
3701 *) as_dir=$as_dir/ ;;
3702 esac
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_CC="${ac_tool_prefix}clang"
3706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 printf "%s\n" "$CC" >&6; }
3719 else
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 printf "%s\n" "no" >&6; }
3722 fi
3723
3724
3725 fi
3726 if test -z "$ac_cv_prog_CC"; then
3727 ac_ct_CC=$CC
3728 # Extract the first word of "clang", so it can be a program name with args.
3729 set dummy clang; ac_word=$2
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 printf %s "checking for $ac_word... " >&6; }
3732 if test ${ac_cv_prog_ac_ct_CC+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else $as_nop
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 case $as_dir in #(((
3744 '') as_dir=./ ;;
3745 */) ;;
3746 *) as_dir=$as_dir/ ;;
3747 esac
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="clang"
3751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761 if test -n "$ac_ct_CC"; then
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763 printf "%s\n" "$ac_ct_CC" >&6; }
3764 else
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 printf "%s\n" "no" >&6; }
3767 fi
3768
3769 if test "x$ac_ct_CC" = x; then
3770 CC=""
3771 else
3772 case $cross_compiling:$ac_tool_warned in
3773 yes:)
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3777 esac
3778 CC=$ac_ct_CC
3779 fi
3780 else
3781 CC="$ac_cv_prog_CC"
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error $? "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details" "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion -version; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 printf "%s\n" "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 fi
3812 rm -f conftest.er1 conftest.err
3813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 int
3821 main (void)
3822 {
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834 printf %s "checking whether the C compiler works... " >&6; }
3835 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 printf "%s\n" "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3861 then :
3862 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3863 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3864 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3865 # so that the user can short-circuit this test for compilers unknown to
3866 # Autoconf.
3867 for ac_file in $ac_files ''
3868 do
3869 test -f "$ac_file" || continue
3870 case $ac_file in
3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3872 ;;
3873 [ab].out )
3874 # We found the default executable, but exeext='' is most
3875 # certainly right.
3876 break;;
3877 *.* )
3878 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3879 then :; else
3880 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 fi
3882 # We set ac_cv_exeext here because the later test for it is not
3883 # safe: cross compilers may not add the suffix if given an `-o'
3884 # argument, so we may need to know it at that point already.
3885 # Even if this section looks crufty: it has the advantage of
3886 # actually working.
3887 break;;
3888 * )
3889 break;;
3890 esac
3891 done
3892 test "$ac_cv_exeext" = no && ac_cv_exeext=
3893
3894 else $as_nop
3895 ac_file=''
3896 fi
3897 if test -z "$ac_file"
3898 then :
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 printf "%s\n" "no" >&6; }
3901 printf "%s\n" "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error 77 "C compiler cannot create executables
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 else $as_nop
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 printf "%s\n" "yes" >&6; }
3911 fi
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913 printf %s "checking for C compiler default output file name... " >&6; }
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3915 printf "%s\n" "$ac_file" >&6; }
3916 ac_exeext=$ac_cv_exeext
3917
3918 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3919 ac_clean_files=$ac_clean_files_save
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3921 printf %s "checking for suffix of executables... " >&6; }
3922 if { { ac_try="$ac_link"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 printf "%s\n" "$ac_try_echo"; } >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }
3933 then :
3934 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3935 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3936 # work properly (i.e., refer to `conftest.exe'), while it won't with
3937 # `rm'.
3938 for ac_file in conftest.exe conftest conftest.*; do
3939 test -f "$ac_file" || continue
3940 case $ac_file in
3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3943 break;;
3944 * ) break;;
3945 esac
3946 done
3947 else $as_nop
3948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3951 See \`config.log' for more details" "$LINENO" 5; }
3952 fi
3953 rm -f conftest conftest$ac_cv_exeext
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3955 printf "%s\n" "$ac_cv_exeext" >&6; }
3956
3957 rm -f conftest.$ac_ext
3958 EXEEXT=$ac_cv_exeext
3959 ac_exeext=$EXEEXT
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <stdio.h>
3963 int
3964 main (void)
3965 {
3966 FILE *f = fopen ("conftest.out", "w");
3967 return ferror (f) || fclose (f) != 0;
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 ac_clean_files="$ac_clean_files conftest.out"
3974 # Check that the compiler produces executables we can run. If not, either
3975 # the compiler is broken, or we cross compile.
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3977 printf %s "checking whether we are cross compiling... " >&6; }
3978 if test "$cross_compiling" != yes; then
3979 { { ac_try="$ac_link"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 printf "%s\n" "$ac_try_echo"; } >&5
3986 (eval "$ac_link") 2>&5
3987 ac_status=$?
3988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }
3990 if { ac_try='./conftest$ac_cv_exeext'
3991 { { case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 printf "%s\n" "$ac_try_echo"; } >&5
3997 (eval "$ac_try") 2>&5
3998 ac_status=$?
3999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4000 test $ac_status = 0; }; }; then
4001 cross_compiling=no
4002 else
4003 if test "$cross_compiling" = maybe; then
4004 cross_compiling=yes
4005 else
4006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error 77 "cannot run C compiled programs.
4009 If you meant to cross compile, use \`--host'.
4010 See \`config.log' for more details" "$LINENO" 5; }
4011 fi
4012 fi
4013 fi
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4015 printf "%s\n" "$cross_compiling" >&6; }
4016
4017 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4018 ac_clean_files=$ac_clean_files_save
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4020 printf %s "checking for suffix of object files... " >&6; }
4021 if test ${ac_cv_objext+y}
4022 then :
4023 printf %s "(cached) " >&6
4024 else $as_nop
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main (void)
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.o conftest.obj
4037 if { { ac_try="$ac_compile"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 printf "%s\n" "$ac_try_echo"; } >&5
4044 (eval "$ac_compile") 2>&5
4045 ac_status=$?
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 then :
4049 for ac_file in conftest.o conftest.obj conftest.*; do
4050 test -f "$ac_file" || continue;
4051 case $ac_file in
4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4054 break;;
4055 esac
4056 done
4057 else $as_nop
4058 printf "%s\n" "$as_me: failed program was:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4060
4061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error $? "cannot compute suffix of object files: cannot compile
4064 See \`config.log' for more details" "$LINENO" 5; }
4065 fi
4066 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4067 fi
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4069 printf "%s\n" "$ac_cv_objext" >&6; }
4070 OBJEXT=$ac_cv_objext
4071 ac_objext=$OBJEXT
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4073 printf %s "checking whether the compiler supports GNU C... " >&6; }
4074 if test ${ac_cv_c_compiler_gnu+y}
4075 then :
4076 printf %s "(cached) " >&6
4077 else $as_nop
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080
4081 int
4082 main (void)
4083 {
4084 #ifndef __GNUC__
4085 choke me
4086 #endif
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"
4093 then :
4094 ac_compiler_gnu=yes
4095 else $as_nop
4096 ac_compiler_gnu=no
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
4101 fi
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106 if test $ac_compiler_gnu = yes; then
4107 GCC=yes
4108 else
4109 GCC=
4110 fi
4111 ac_test_CFLAGS=${CFLAGS+y}
4112 ac_save_CFLAGS=$CFLAGS
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4114 printf %s "checking whether $CC accepts -g... " >&6; }
4115 if test ${ac_cv_prog_cc_g+y}
4116 then :
4117 printf %s "(cached) " >&6
4118 else $as_nop
4119 ac_save_c_werror_flag=$ac_c_werror_flag
4120 ac_c_werror_flag=yes
4121 ac_cv_prog_cc_g=no
4122 CFLAGS="-g"
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125
4126 int
4127 main (void)
4128 {
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"
4135 then :
4136 ac_cv_prog_cc_g=yes
4137 else $as_nop
4138 CFLAGS=""
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main (void)
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"
4151 then :
4152
4153 else $as_nop
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158
4159 int
4160 main (void)
4161 {
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"
4168 then :
4169 ac_cv_prog_cc_g=yes
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4177 fi
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4180 if test $ac_test_CFLAGS; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4184 CFLAGS="-g -O2"
4185 else
4186 CFLAGS="-g"
4187 fi
4188 else
4189 if test "$GCC" = yes; then
4190 CFLAGS="-O2"
4191 else
4192 CFLAGS=
4193 fi
4194 fi
4195 ac_prog_cc_stdc=no
4196 if test x$ac_prog_cc_stdc = xno
4197 then :
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4199 printf %s "checking for $CC option to enable C11 features... " >&6; }
4200 if test ${ac_cv_prog_cc_c11+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else $as_nop
4204 ac_cv_prog_cc_c11=no
4205 ac_save_CC=$CC
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 $ac_c_conftest_c11_program
4209 _ACEOF
4210 for ac_arg in '' -std=gnu11
4211 do
4212 CC="$ac_save_CC $ac_arg"
4213 if ac_fn_c_try_compile "$LINENO"
4214 then :
4215 ac_cv_prog_cc_c11=$ac_arg
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.beam
4218 test "x$ac_cv_prog_cc_c11" != "xno" && break
4219 done
4220 rm -f conftest.$ac_ext
4221 CC=$ac_save_CC
4222 fi
4223
4224 if test "x$ac_cv_prog_cc_c11" = xno
4225 then :
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 printf "%s\n" "unsupported" >&6; }
4228 else $as_nop
4229 if test "x$ac_cv_prog_cc_c11" = x
4230 then :
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 printf "%s\n" "none needed" >&6; }
4233 else $as_nop
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4235 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4236 CC="$CC $ac_cv_prog_cc_c11"
4237 fi
4238 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4239 ac_prog_cc_stdc=c11
4240 fi
4241 fi
4242 if test x$ac_prog_cc_stdc = xno
4243 then :
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4245 printf %s "checking for $CC option to enable C99 features... " >&6; }
4246 if test ${ac_cv_prog_cc_c99+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else $as_nop
4250 ac_cv_prog_cc_c99=no
4251 ac_save_CC=$CC
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 $ac_c_conftest_c99_program
4255 _ACEOF
4256 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4257 do
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"
4260 then :
4261 ac_cv_prog_cc_c99=$ac_arg
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext conftest.beam
4264 test "x$ac_cv_prog_cc_c99" != "xno" && break
4265 done
4266 rm -f conftest.$ac_ext
4267 CC=$ac_save_CC
4268 fi
4269
4270 if test "x$ac_cv_prog_cc_c99" = xno
4271 then :
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273 printf "%s\n" "unsupported" >&6; }
4274 else $as_nop
4275 if test "x$ac_cv_prog_cc_c99" = x
4276 then :
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4278 printf "%s\n" "none needed" >&6; }
4279 else $as_nop
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4281 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4282 CC="$CC $ac_cv_prog_cc_c99"
4283 fi
4284 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4285 ac_prog_cc_stdc=c99
4286 fi
4287 fi
4288 if test x$ac_prog_cc_stdc = xno
4289 then :
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4291 printf %s "checking for $CC option to enable C89 features... " >&6; }
4292 if test ${ac_cv_prog_cc_c89+y}
4293 then :
4294 printf %s "(cached) " >&6
4295 else $as_nop
4296 ac_cv_prog_cc_c89=no
4297 ac_save_CC=$CC
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 $ac_c_conftest_c89_program
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4303 do
4304 CC="$ac_save_CC $ac_arg"
4305 if ac_fn_c_try_compile "$LINENO"
4306 then :
4307 ac_cv_prog_cc_c89=$ac_arg
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.beam
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4314 fi
4315
4316 if test "x$ac_cv_prog_cc_c89" = xno
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4319 printf "%s\n" "unsupported" >&6; }
4320 else $as_nop
4321 if test "x$ac_cv_prog_cc_c89" = x
4322 then :
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4324 printf "%s\n" "none needed" >&6; }
4325 else $as_nop
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 fi
4330 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4331 ac_prog_cc_stdc=c89
4332 fi
4333 fi
4334
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4348 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4349 if test ${am_cv_prog_cc_c_o+y}
4350 then :
4351 printf %s "(cached) " >&6
4352 else $as_nop
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355
4356 int
4357 main (void)
4358 {
4359
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 # Make sure it works both with $CC and with simple cc.
4365 # Following AC_PROG_CC_C_O, we do the test twice because some
4366 # compilers refuse to overwrite an existing .o file with -o,
4367 # though they will create one.
4368 am_cv_prog_cc_c_o=yes
4369 for am_i in 1 2; do
4370 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4371 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } \
4375 && test -f conftest2.$ac_objext; then
4376 : OK
4377 else
4378 am_cv_prog_cc_c_o=no
4379 break
4380 fi
4381 done
4382 rm -f core conftest*
4383 unset am_i
4384 fi
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4386 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4387 if test "$am_cv_prog_cc_c_o" != yes; then
4388 # Losing compiler, so override with the script.
4389 # FIXME: It is wrong to rewrite CC.
4390 # But if we don't then we get into trouble of one sort or another.
4391 # A longer-term fix would be to have automake use am__CC in this case,
4392 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4393 CC="$am_aux_dir/compile $CC"
4394 fi
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400
4401
4402 depcc="$CC" am_compiler_list=
4403
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4405 printf %s "checking dependency style of $depcc... " >&6; }
4406 if test ${am_cv_CC_dependencies_compiler_type+y}
4407 then :
4408 printf %s "(cached) " >&6
4409 else $as_nop
4410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411 # We make a subdir and do the tests there. Otherwise we can end up
4412 # making bogus files that we don't know about and never remove. For
4413 # instance it was reported that on HP-UX the gcc test will end up
4414 # making a dummy file named 'D' -- because '-MD' means "put the output
4415 # in D".
4416 rm -rf conftest.dir
4417 mkdir conftest.dir
4418 # Copy depcomp to subdir because otherwise we won't find it if we're
4419 # using a relative directory.
4420 cp "$am_depcomp" conftest.dir
4421 cd conftest.dir
4422 # We will build objects and dependencies in a subdirectory because
4423 # it helps to detect inapplicable dependency modes. For instance
4424 # both Tru64's cc and ICC support -MD to output dependencies as a
4425 # side effect of compilation, but ICC will put the dependencies in
4426 # the current directory while Tru64 will put them in the object
4427 # directory.
4428 mkdir sub
4429
4430 am_cv_CC_dependencies_compiler_type=none
4431 if test "$am_compiler_list" = ""; then
4432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4433 fi
4434 am__universal=false
4435 case " $depcc " in #(
4436 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4437 esac
4438
4439 for depmode in $am_compiler_list; do
4440 # Setup a source with many dependencies, because some compilers
4441 # like to wrap large dependency lists on column 80 (with \), and
4442 # we should not choose a depcomp mode which is confused by this.
4443 #
4444 # We need to recreate these files for each test, as the compiler may
4445 # overwrite some of them when testing with obscure command lines.
4446 # This happens at least with the AIX C compiler.
4447 : > sub/conftest.c
4448 for i in 1 2 3 4 5 6; do
4449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4451 # Solaris 10 /bin/sh.
4452 echo '/* dummy */' > sub/conftst$i.h
4453 done
4454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4455
4456 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4457 # mode. It turns out that the SunPro C++ compiler does not properly
4458 # handle '-M -o', and we need to detect this. Also, some Intel
4459 # versions had trouble with output in subdirs.
4460 am__obj=sub/conftest.${OBJEXT-o}
4461 am__minus_obj="-o $am__obj"
4462 case $depmode in
4463 gcc)
4464 # This depmode causes a compiler race in universal mode.
4465 test "$am__universal" = false || continue
4466 ;;
4467 nosideeffect)
4468 # After this tag, mechanisms are not by side-effect, so they'll
4469 # only be used when explicitly requested.
4470 if test "x$enable_dependency_tracking" = xyes; then
4471 continue
4472 else
4473 break
4474 fi
4475 ;;
4476 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4477 # This compiler won't grok '-c -o', but also, the minuso test has
4478 # not run yet. These depmodes are late enough in the game, and
4479 # so weak that their functioning should not be impacted.
4480 am__obj=conftest.${OBJEXT-o}
4481 am__minus_obj=
4482 ;;
4483 none) break ;;
4484 esac
4485 if depmode=$depmode \
4486 source=sub/conftest.c object=$am__obj \
4487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489 >/dev/null 2>conftest.err &&
4490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494 # icc doesn't choke on unknown options, it will just issue warnings
4495 # or remarks (even with -Werror). So we grep stderr for any message
4496 # that says an option was ignored or not supported.
4497 # When given -MP, icc 7.0 and 7.1 complain thusly:
4498 # icc: Command line warning: ignoring option '-M'; no argument required
4499 # The diagnosis changed in icc 8.0:
4500 # icc: Command line remark: option '-MP' not supported
4501 if (grep 'ignoring option' conftest.err ||
4502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503 am_cv_CC_dependencies_compiler_type=$depmode
4504 break
4505 fi
4506 fi
4507 done
4508
4509 cd ..
4510 rm -rf conftest.dir
4511 else
4512 am_cv_CC_dependencies_compiler_type=none
4513 fi
4514
4515 fi
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4517 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4518 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4519
4520 if
4521 test "x$enable_dependency_tracking" != xno \
4522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4523 am__fastdepCC_TRUE=
4524 am__fastdepCC_FALSE='#'
4525 else
4526 am__fastdepCC_TRUE='#'
4527 am__fastdepCC_FALSE=
4528 fi
4529
4530
4531
4532
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4534 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4535 if test ${ac_cv_c_undeclared_builtin_options+y}
4536 then :
4537 printf %s "(cached) " >&6
4538 else $as_nop
4539 ac_save_CFLAGS=$CFLAGS
4540 ac_cv_c_undeclared_builtin_options='cannot detect'
4541 for ac_arg in '' -fno-builtin; do
4542 CFLAGS="$ac_save_CFLAGS $ac_arg"
4543 # This test program should *not* compile successfully.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546
4547 int
4548 main (void)
4549 {
4550 (void) strchr;
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"
4556 then :
4557
4558 else $as_nop
4559 # This test program should compile successfully.
4560 # No library function is consistently available on
4561 # freestanding implementations, so test against a dummy
4562 # declaration. Include always-available headers on the
4563 # off chance that they somehow elicit warnings.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <float.h>
4567 #include <limits.h>
4568 #include <stdarg.h>
4569 #include <stddef.h>
4570 extern void ac_decl (int, char *);
4571
4572 int
4573 main (void)
4574 {
4575 (void) ac_decl (0, (char *) 0);
4576 (void) ac_decl;
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"
4583 then :
4584 if test x"$ac_arg" = x
4585 then :
4586 ac_cv_c_undeclared_builtin_options='none needed'
4587 else $as_nop
4588 ac_cv_c_undeclared_builtin_options=$ac_arg
4589 fi
4590 break
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4593 fi
4594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4595 done
4596 CFLAGS=$ac_save_CFLAGS
4597
4598 fi
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4600 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4601 case $ac_cv_c_undeclared_builtin_options in #(
4602 'cannot detect') :
4603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error $? "cannot make $CC report undeclared builtins
4606 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4607 'none needed') :
4608 ac_c_undeclared_builtin_options='' ;; #(
4609 *) :
4610 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4611 esac
4612
4613 ac_header= ac_cache=
4614 for ac_item in $ac_header_c_list
4615 do
4616 if test $ac_cache; then
4617 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4618 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4619 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4620 fi
4621 ac_header= ac_cache=
4622 elif test $ac_header; then
4623 ac_cache=$ac_item
4624 else
4625 ac_header=$ac_item
4626 fi
4627 done
4628
4629
4630
4631
4632
4633
4634
4635
4636 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4637 then :
4638
4639 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4640
4641 fi
4642
4643
4644
4645
4646 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4647 if test "x$ac_cv_have_decl___clang__" = xyes
4648 then :
4649 CLANGCC="yes"
4650 else $as_nop
4651 CLANGCC="no"
4652 fi
4653 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4654 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4655 then :
4656 INTELCC="yes"
4657 else $as_nop
4658 INTELCC="no"
4659 fi
4660 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4661 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4662 then :
4663 SUNCC="yes"
4664 else $as_nop
4665 SUNCC="no"
4666 fi
4667
4668
4669
4670
4671
4672
4673
4674
4675 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4676 if test -n "$ac_tool_prefix"; then
4677 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4678 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 printf %s "checking for $ac_word... " >&6; }
4681 if test ${ac_cv_path_PKG_CONFIG+y}
4682 then :
4683 printf %s "(cached) " >&6
4684 else $as_nop
4685 case $PKG_CONFIG in
4686 [\\/]* | ?:[\\/]*)
4687 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4688 ;;
4689 *)
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 case $as_dir in #(((
4695 '') as_dir=./ ;;
4696 */) ;;
4697 *) as_dir=$as_dir/ ;;
4698 esac
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4701 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 ;;
4710 esac
4711 fi
4712 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4713 if test -n "$PKG_CONFIG"; then
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4715 printf "%s\n" "$PKG_CONFIG" >&6; }
4716 else
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 printf "%s\n" "no" >&6; }
4719 fi
4720
4721
4722 fi
4723 if test -z "$ac_cv_path_PKG_CONFIG"; then
4724 ac_pt_PKG_CONFIG=$PKG_CONFIG
4725 # Extract the first word of "pkg-config", so it can be a program name with args.
4726 set dummy pkg-config; ac_word=$2
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 printf %s "checking for $ac_word... " >&6; }
4729 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4730 then :
4731 printf %s "(cached) " >&6
4732 else $as_nop
4733 case $ac_pt_PKG_CONFIG in
4734 [\\/]* | ?:[\\/]*)
4735 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4736 ;;
4737 *)
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 case $as_dir in #(((
4743 '') as_dir=./ ;;
4744 */) ;;
4745 *) as_dir=$as_dir/ ;;
4746 esac
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4749 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757 ;;
4758 esac
4759 fi
4760 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4761 if test -n "$ac_pt_PKG_CONFIG"; then
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4763 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4764 else
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 printf "%s\n" "no" >&6; }
4767 fi
4768
4769 if test "x$ac_pt_PKG_CONFIG" = x; then
4770 PKG_CONFIG=""
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773 yes:)
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778 PKG_CONFIG=$ac_pt_PKG_CONFIG
4779 fi
4780 else
4781 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4782 fi
4783
4784 fi
4785 if test -n "$PKG_CONFIG"; then
4786 _pkg_min_version=0.9.0
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4788 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4789 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 printf "%s\n" "yes" >&6; }
4792 else
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 printf "%s\n" "no" >&6; }
4795 PKG_CONFIG=""
4796 fi
4797 fi
4798
4799
4800 # Make sure we can run config.sub.
4801 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4802 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4803
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4805 printf %s "checking build system type... " >&6; }
4806 if test ${ac_cv_build+y}
4807 then :
4808 printf %s "(cached) " >&6
4809 else $as_nop
4810 ac_build_alias=$build_alias
4811 test "x$ac_build_alias" = x &&
4812 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4813 test "x$ac_build_alias" = x &&
4814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4815 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4816 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4817
4818 fi
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4820 printf "%s\n" "$ac_cv_build" >&6; }
4821 case $ac_cv_build in
4822 *-*-*) ;;
4823 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4824 esac
4825 build=$ac_cv_build
4826 ac_save_IFS=$IFS; IFS='-'
4827 set x $ac_cv_build
4828 shift
4829 build_cpu=$1
4830 build_vendor=$2
4831 shift; shift
4832 # Remember, the first character of IFS is used to create $*,
4833 # except with old shells:
4834 build_os=$*
4835 IFS=$ac_save_IFS
4836 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4837
4838
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4840 printf %s "checking host system type... " >&6; }
4841 if test ${ac_cv_host+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else $as_nop
4845 if test "x$host_alias" = x; then
4846 ac_cv_host=$ac_cv_build
4847 else
4848 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4849 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4850 fi
4851
4852 fi
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4854 printf "%s\n" "$ac_cv_host" >&6; }
4855 case $ac_cv_host in
4856 *-*-*) ;;
4857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4858 esac
4859 host=$ac_cv_host
4860 ac_save_IFS=$IFS; IFS='-'
4861 set x $ac_cv_host
4862 shift
4863 host_cpu=$1
4864 host_vendor=$2
4865 shift; shift
4866 # Remember, the first character of IFS is used to create $*,
4867 # except with old shells:
4868 host_os=$*
4869 IFS=$ac_save_IFS
4870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4871
4872
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4874 printf %s "checking for a sed that does not truncate output... " >&6; }
4875 if test ${ac_cv_path_SED+y}
4876 then :
4877 printf %s "(cached) " >&6
4878 else $as_nop
4879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4880 for ac_i in 1 2 3 4 5 6 7; do
4881 ac_script="$ac_script$as_nl$ac_script"
4882 done
4883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4884 { ac_script=; unset ac_script;}
4885 if test -z "$SED"; then
4886 ac_path_SED_found=false
4887 # Loop through the user's path and test for each of PROGNAME-LIST
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 case $as_dir in #(((
4893 '') as_dir=./ ;;
4894 */) ;;
4895 *) as_dir=$as_dir/ ;;
4896 esac
4897 for ac_prog in sed gsed
4898 do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4901 as_fn_executable_p "$ac_path_SED" || continue
4902 # Check for GNU ac_path_SED and select it if it is found.
4903 # Check for GNU $ac_path_SED
4904 case `"$ac_path_SED" --version 2>&1` in
4905 *GNU*)
4906 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4907 *)
4908 ac_count=0
4909 printf %s 0123456789 >"conftest.in"
4910 while :
4911 do
4912 cat "conftest.in" "conftest.in" >"conftest.tmp"
4913 mv "conftest.tmp" "conftest.in"
4914 cp "conftest.in" "conftest.nl"
4915 printf "%s\n" '' >> "conftest.nl"
4916 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918 as_fn_arith $ac_count + 1 && ac_count=$as_val
4919 if test $ac_count -gt ${ac_path_SED_max-0}; then
4920 # Best one so far, save it but keep looking for a better one
4921 ac_cv_path_SED="$ac_path_SED"
4922 ac_path_SED_max=$ac_count
4923 fi
4924 # 10*(2^10) chars as input seems more than enough
4925 test $ac_count -gt 10 && break
4926 done
4927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928 esac
4929
4930 $ac_path_SED_found && break 3
4931 done
4932 done
4933 done
4934 IFS=$as_save_IFS
4935 if test -z "$ac_cv_path_SED"; then
4936 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4937 fi
4938 else
4939 ac_cv_path_SED=$SED
4940 fi
4941
4942 fi
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4944 printf "%s\n" "$ac_cv_path_SED" >&6; }
4945 SED="$ac_cv_path_SED"
4946 rm -f conftest.sed
4947
4948
4949
4950
4951
4952
4953 # Check whether --enable-selective-werror was given.
4954 if test ${enable_selective_werror+y}
4955 then :
4956 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4957 else $as_nop
4958 SELECTIVE_WERROR=yes
4959 fi
4960
4961
4962
4963
4964
4965 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4966 if test "x$SUNCC" = "xyes"; then
4967 BASE_CFLAGS="-v"
4968 else
4969 BASE_CFLAGS=""
4970 fi
4971
4972 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 xorg_testset_save_CFLAGS="$CFLAGS"
4987
4988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4992 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4993 then :
4994 printf %s "(cached) " >&6
4995 else $as_nop
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 int i;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"
5001 then :
5002 xorg_cv_cc_flag_unknown_warning_option=yes
5003 else $as_nop
5004 xorg_cv_cc_flag_unknown_warning_option=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5007 fi
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017 fi
5018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5022 then :
5023 printf %s "(cached) " >&6
5024 else $as_nop
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027 int i;
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"
5030 then :
5031 xorg_cv_cc_flag_unused_command_line_argument=yes
5032 else $as_nop
5033 xorg_cv_cc_flag_unused_command_line_argument=no
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5036 fi
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5038 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5040 CFLAGS="$xorg_testset_save_CFLAGS"
5041 fi
5042
5043 found="no"
5044
5045 if test $found = "no" ; then
5046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5048 fi
5049
5050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5052 fi
5053
5054 CFLAGS="$CFLAGS -Wall"
5055
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5057 printf %s "checking if $CC supports -Wall... " >&6; }
5058 cacheid=xorg_cv_cc_flag__Wall
5059 if eval test \${$cacheid+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else $as_nop
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 int i;
5066 int
5067 main (void)
5068 {
5069
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_c_try_link "$LINENO"
5075 then :
5076 eval $cacheid=yes
5077 else $as_nop
5078 eval $cacheid=no
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5081 conftest$ac_exeext conftest.$ac_ext
5082 fi
5083
5084
5085 CFLAGS="$xorg_testset_save_CFLAGS"
5086
5087 eval supported=\$$cacheid
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5089 printf "%s\n" "$supported" >&6; }
5090 if test "$supported" = "yes" ; then
5091 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5092 found="yes"
5093 fi
5094 fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 xorg_testset_save_CFLAGS="$CFLAGS"
5111
5112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5116 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5117 then :
5118 printf %s "(cached) " >&6
5119 else $as_nop
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 int i;
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"
5125 then :
5126 xorg_cv_cc_flag_unknown_warning_option=yes
5127 else $as_nop
5128 xorg_cv_cc_flag_unknown_warning_option=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5131 fi
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5135 CFLAGS="$xorg_testset_save_CFLAGS"
5136 fi
5137
5138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141 fi
5142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5146 then :
5147 printf %s "(cached) " >&6
5148 else $as_nop
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 int i;
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"
5154 then :
5155 xorg_cv_cc_flag_unused_command_line_argument=yes
5156 else $as_nop
5157 xorg_cv_cc_flag_unused_command_line_argument=no
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5160 fi
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5164 CFLAGS="$xorg_testset_save_CFLAGS"
5165 fi
5166
5167 found="no"
5168
5169 if test $found = "no" ; then
5170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5172 fi
5173
5174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5176 fi
5177
5178 CFLAGS="$CFLAGS -Wpointer-arith"
5179
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5181 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5182 cacheid=xorg_cv_cc_flag__Wpointer_arith
5183 if eval test \${$cacheid+y}
5184 then :
5185 printf %s "(cached) " >&6
5186 else $as_nop
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 int i;
5190 int
5191 main (void)
5192 {
5193
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 if ac_fn_c_try_link "$LINENO"
5199 then :
5200 eval $cacheid=yes
5201 else $as_nop
5202 eval $cacheid=no
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5205 conftest$ac_exeext conftest.$ac_ext
5206 fi
5207
5208
5209 CFLAGS="$xorg_testset_save_CFLAGS"
5210
5211 eval supported=\$$cacheid
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5213 printf "%s\n" "$supported" >&6; }
5214 if test "$supported" = "yes" ; then
5215 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5216 found="yes"
5217 fi
5218 fi
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234 xorg_testset_save_CFLAGS="$CFLAGS"
5235
5236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5241 then :
5242 printf %s "(cached) " >&6
5243 else $as_nop
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 int i;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"
5249 then :
5250 xorg_cv_cc_flag_unknown_warning_option=yes
5251 else $as_nop
5252 xorg_cv_cc_flag_unknown_warning_option=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5255 fi
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5259 CFLAGS="$xorg_testset_save_CFLAGS"
5260 fi
5261
5262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265 fi
5266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else $as_nop
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 int i;
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"
5278 then :
5279 xorg_cv_cc_flag_unused_command_line_argument=yes
5280 else $as_nop
5281 xorg_cv_cc_flag_unused_command_line_argument=no
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5284 fi
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5288 CFLAGS="$xorg_testset_save_CFLAGS"
5289 fi
5290
5291 found="no"
5292
5293 if test $found = "no" ; then
5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296 fi
5297
5298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5300 fi
5301
5302 CFLAGS="$CFLAGS -Wmissing-declarations"
5303
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5305 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5306 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5307 if eval test \${$cacheid+y}
5308 then :
5309 printf %s "(cached) " >&6
5310 else $as_nop
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 int i;
5314 int
5315 main (void)
5316 {
5317
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_link "$LINENO"
5323 then :
5324 eval $cacheid=yes
5325 else $as_nop
5326 eval $cacheid=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5329 conftest$ac_exeext conftest.$ac_ext
5330 fi
5331
5332
5333 CFLAGS="$xorg_testset_save_CFLAGS"
5334
5335 eval supported=\$$cacheid
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5337 printf "%s\n" "$supported" >&6; }
5338 if test "$supported" = "yes" ; then
5339 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5340 found="yes"
5341 fi
5342 fi
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 xorg_testset_save_CFLAGS="$CFLAGS"
5359
5360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5364 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5365 then :
5366 printf %s "(cached) " >&6
5367 else $as_nop
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 int i;
5371 _ACEOF
5372 if ac_fn_c_try_compile "$LINENO"
5373 then :
5374 xorg_cv_cc_flag_unknown_warning_option=yes
5375 else $as_nop
5376 xorg_cv_cc_flag_unknown_warning_option=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5379 fi
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5383 CFLAGS="$xorg_testset_save_CFLAGS"
5384 fi
5385
5386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389 fi
5390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5394 then :
5395 printf %s "(cached) " >&6
5396 else $as_nop
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 int i;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"
5402 then :
5403 xorg_cv_cc_flag_unused_command_line_argument=yes
5404 else $as_nop
5405 xorg_cv_cc_flag_unused_command_line_argument=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5408 fi
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5412 CFLAGS="$xorg_testset_save_CFLAGS"
5413 fi
5414
5415 found="no"
5416
5417 if test $found = "no" ; then
5418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5420 fi
5421
5422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424 fi
5425
5426 CFLAGS="$CFLAGS -Wformat=2"
5427
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5429 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5430 cacheid=xorg_cv_cc_flag__Wformat_2
5431 if eval test \${$cacheid+y}
5432 then :
5433 printf %s "(cached) " >&6
5434 else $as_nop
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 int i;
5438 int
5439 main (void)
5440 {
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_link "$LINENO"
5447 then :
5448 eval $cacheid=yes
5449 else $as_nop
5450 eval $cacheid=no
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5453 conftest$ac_exeext conftest.$ac_ext
5454 fi
5455
5456
5457 CFLAGS="$xorg_testset_save_CFLAGS"
5458
5459 eval supported=\$$cacheid
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5461 printf "%s\n" "$supported" >&6; }
5462 if test "$supported" = "yes" ; then
5463 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5464 found="yes"
5465 fi
5466 fi
5467
5468 if test $found = "no" ; then
5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471 fi
5472
5473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475 fi
5476
5477 CFLAGS="$CFLAGS -Wformat"
5478
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5480 printf %s "checking if $CC supports -Wformat... " >&6; }
5481 cacheid=xorg_cv_cc_flag__Wformat
5482 if eval test \${$cacheid+y}
5483 then :
5484 printf %s "(cached) " >&6
5485 else $as_nop
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 int i;
5489 int
5490 main (void)
5491 {
5492
5493 ;
5494 return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_link "$LINENO"
5498 then :
5499 eval $cacheid=yes
5500 else $as_nop
5501 eval $cacheid=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5504 conftest$ac_exeext conftest.$ac_ext
5505 fi
5506
5507
5508 CFLAGS="$xorg_testset_save_CFLAGS"
5509
5510 eval supported=\$$cacheid
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512 printf "%s\n" "$supported" >&6; }
5513 if test "$supported" = "yes" ; then
5514 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5515 found="yes"
5516 fi
5517 fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535 xorg_testset_save_CFLAGS="$CFLAGS"
5536
5537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5540 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5541 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5542 then :
5543 printf %s "(cached) " >&6
5544 else $as_nop
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 int i;
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"
5550 then :
5551 xorg_cv_cc_flag_unknown_warning_option=yes
5552 else $as_nop
5553 xorg_cv_cc_flag_unknown_warning_option=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5556 fi
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560 CFLAGS="$xorg_testset_save_CFLAGS"
5561 fi
5562
5563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 fi
5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else $as_nop
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 int i;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"
5579 then :
5580 xorg_cv_cc_flag_unused_command_line_argument=yes
5581 else $as_nop
5582 xorg_cv_cc_flag_unused_command_line_argument=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5585 fi
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5589 CFLAGS="$xorg_testset_save_CFLAGS"
5590 fi
5591
5592 found="no"
5593
5594 if test $found = "no" ; then
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 fi
5598
5599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601 fi
5602
5603 CFLAGS="$CFLAGS -Wstrict-prototypes"
5604
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5606 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5607 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5608 if eval test \${$cacheid+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else $as_nop
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 int i;
5615 int
5616 main (void)
5617 {
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_link "$LINENO"
5624 then :
5625 eval $cacheid=yes
5626 else $as_nop
5627 eval $cacheid=no
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5630 conftest$ac_exeext conftest.$ac_ext
5631 fi
5632
5633
5634 CFLAGS="$xorg_testset_save_CFLAGS"
5635
5636 eval supported=\$$cacheid
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5638 printf "%s\n" "$supported" >&6; }
5639 if test "$supported" = "yes" ; then
5640 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5641 found="yes"
5642 fi
5643 fi
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 xorg_testset_save_CFLAGS="$CFLAGS"
5660
5661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5665 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else $as_nop
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"
5674 then :
5675 xorg_cv_cc_flag_unknown_warning_option=yes
5676 else $as_nop
5677 xorg_cv_cc_flag_unknown_warning_option=no
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5680 fi
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5682 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5684 CFLAGS="$xorg_testset_save_CFLAGS"
5685 fi
5686
5687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690 fi
5691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5693 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5694 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5695 then :
5696 printf %s "(cached) " >&6
5697 else $as_nop
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 int i;
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"
5703 then :
5704 xorg_cv_cc_flag_unused_command_line_argument=yes
5705 else $as_nop
5706 xorg_cv_cc_flag_unused_command_line_argument=no
5707 fi
5708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5709 fi
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5711 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5713 CFLAGS="$xorg_testset_save_CFLAGS"
5714 fi
5715
5716 found="no"
5717
5718 if test $found = "no" ; then
5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5721 fi
5722
5723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725 fi
5726
5727 CFLAGS="$CFLAGS -Wmissing-prototypes"
5728
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5730 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5731 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5732 if eval test \${$cacheid+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else $as_nop
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 int
5740 main (void)
5741 {
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_link "$LINENO"
5748 then :
5749 eval $cacheid=yes
5750 else $as_nop
5751 eval $cacheid=no
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5754 conftest$ac_exeext conftest.$ac_ext
5755 fi
5756
5757
5758 CFLAGS="$xorg_testset_save_CFLAGS"
5759
5760 eval supported=\$$cacheid
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5762 printf "%s\n" "$supported" >&6; }
5763 if test "$supported" = "yes" ; then
5764 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5765 found="yes"
5766 fi
5767 fi
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783 xorg_testset_save_CFLAGS="$CFLAGS"
5784
5785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5788 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5789 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5790 then :
5791 printf %s "(cached) " >&6
5792 else $as_nop
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 int i;
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"
5798 then :
5799 xorg_cv_cc_flag_unknown_warning_option=yes
5800 else $as_nop
5801 xorg_cv_cc_flag_unknown_warning_option=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804 fi
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5806 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809 fi
5810
5811 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814 fi
5815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5817 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5818 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5819 then :
5820 printf %s "(cached) " >&6
5821 else $as_nop
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 int i;
5825 _ACEOF
5826 if ac_fn_c_try_compile "$LINENO"
5827 then :
5828 xorg_cv_cc_flag_unused_command_line_argument=yes
5829 else $as_nop
5830 xorg_cv_cc_flag_unused_command_line_argument=no
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5833 fi
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5835 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5837 CFLAGS="$xorg_testset_save_CFLAGS"
5838 fi
5839
5840 found="no"
5841
5842 if test $found = "no" ; then
5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 fi
5846
5847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5849 fi
5850
5851 CFLAGS="$CFLAGS -Wnested-externs"
5852
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5854 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5855 cacheid=xorg_cv_cc_flag__Wnested_externs
5856 if eval test \${$cacheid+y}
5857 then :
5858 printf %s "(cached) " >&6
5859 else $as_nop
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 int
5864 main (void)
5865 {
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_link "$LINENO"
5872 then :
5873 eval $cacheid=yes
5874 else $as_nop
5875 eval $cacheid=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5878 conftest$ac_exeext conftest.$ac_ext
5879 fi
5880
5881
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883
5884 eval supported=\$$cacheid
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5886 printf "%s\n" "$supported" >&6; }
5887 if test "$supported" = "yes" ; then
5888 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5889 found="yes"
5890 fi
5891 fi
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907 xorg_testset_save_CFLAGS="$CFLAGS"
5908
5909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5912 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5913 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5914 then :
5915 printf %s "(cached) " >&6
5916 else $as_nop
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 int i;
5920 _ACEOF
5921 if ac_fn_c_try_compile "$LINENO"
5922 then :
5923 xorg_cv_cc_flag_unknown_warning_option=yes
5924 else $as_nop
5925 xorg_cv_cc_flag_unknown_warning_option=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5928 fi
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5933 fi
5934
5935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938 fi
5939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5943 then :
5944 printf %s "(cached) " >&6
5945 else $as_nop
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 int i;
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"
5951 then :
5952 xorg_cv_cc_flag_unused_command_line_argument=yes
5953 else $as_nop
5954 xorg_cv_cc_flag_unused_command_line_argument=no
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5957 fi
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5962 fi
5963
5964 found="no"
5965
5966 if test $found = "no" ; then
5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969 fi
5970
5971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973 fi
5974
5975 CFLAGS="$CFLAGS -Wbad-function-cast"
5976
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5978 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5979 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5980 if eval test \${$cacheid+y}
5981 then :
5982 printf %s "(cached) " >&6
5983 else $as_nop
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 int i;
5987 int
5988 main (void)
5989 {
5990
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_c_try_link "$LINENO"
5996 then :
5997 eval $cacheid=yes
5998 else $as_nop
5999 eval $cacheid=no
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6002 conftest$ac_exeext conftest.$ac_ext
6003 fi
6004
6005
6006 CFLAGS="$xorg_testset_save_CFLAGS"
6007
6008 eval supported=\$$cacheid
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010 printf "%s\n" "$supported" >&6; }
6011 if test "$supported" = "yes" ; then
6012 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6013 found="yes"
6014 fi
6015 fi
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031 xorg_testset_save_CFLAGS="$CFLAGS"
6032
6033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6037 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6038 then :
6039 printf %s "(cached) " >&6
6040 else $as_nop
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 int i;
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"
6046 then :
6047 xorg_cv_cc_flag_unknown_warning_option=yes
6048 else $as_nop
6049 xorg_cv_cc_flag_unknown_warning_option=no
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6052 fi
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6054 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6056 CFLAGS="$xorg_testset_save_CFLAGS"
6057 fi
6058
6059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062 fi
6063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6067 then :
6068 printf %s "(cached) " >&6
6069 else $as_nop
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 int i;
6073 _ACEOF
6074 if ac_fn_c_try_compile "$LINENO"
6075 then :
6076 xorg_cv_cc_flag_unused_command_line_argument=yes
6077 else $as_nop
6078 xorg_cv_cc_flag_unused_command_line_argument=no
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6081 fi
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085 CFLAGS="$xorg_testset_save_CFLAGS"
6086 fi
6087
6088 found="no"
6089
6090 if test $found = "no" ; then
6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093 fi
6094
6095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097 fi
6098
6099 CFLAGS="$CFLAGS -Wold-style-definition"
6100
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6102 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6103 cacheid=xorg_cv_cc_flag__Wold_style_definition
6104 if eval test \${$cacheid+y}
6105 then :
6106 printf %s "(cached) " >&6
6107 else $as_nop
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 int
6112 main (void)
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"
6120 then :
6121 eval $cacheid=yes
6122 else $as_nop
6123 eval $cacheid=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6126 conftest$ac_exeext conftest.$ac_ext
6127 fi
6128
6129
6130 CFLAGS="$xorg_testset_save_CFLAGS"
6131
6132 eval supported=\$$cacheid
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6134 printf "%s\n" "$supported" >&6; }
6135 if test "$supported" = "yes" ; then
6136 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6137 found="yes"
6138 fi
6139 fi
6140
6141 if test $found = "no" ; then
6142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6144 fi
6145
6146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6148 fi
6149
6150 CFLAGS="$CFLAGS -fd"
6151
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6153 printf %s "checking if $CC supports -fd... " >&6; }
6154 cacheid=xorg_cv_cc_flag__fd
6155 if eval test \${$cacheid+y}
6156 then :
6157 printf %s "(cached) " >&6
6158 else $as_nop
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 int i;
6162 int
6163 main (void)
6164 {
6165
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 if ac_fn_c_try_link "$LINENO"
6171 then :
6172 eval $cacheid=yes
6173 else $as_nop
6174 eval $cacheid=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6177 conftest$ac_exeext conftest.$ac_ext
6178 fi
6179
6180
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6182
6183 eval supported=\$$cacheid
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6185 printf "%s\n" "$supported" >&6; }
6186 if test "$supported" = "yes" ; then
6187 BASE_CFLAGS="$BASE_CFLAGS -fd"
6188 found="yes"
6189 fi
6190 fi
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 xorg_testset_save_CFLAGS="$CFLAGS"
6207
6208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6213 then :
6214 printf %s "(cached) " >&6
6215 else $as_nop
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 int i;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"
6221 then :
6222 xorg_cv_cc_flag_unknown_warning_option=yes
6223 else $as_nop
6224 xorg_cv_cc_flag_unknown_warning_option=no
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6227 fi
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6229 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6231 CFLAGS="$xorg_testset_save_CFLAGS"
6232 fi
6233
6234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 fi
6238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6240 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6241 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int i;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"
6250 then :
6251 xorg_cv_cc_flag_unused_command_line_argument=yes
6252 else $as_nop
6253 xorg_cv_cc_flag_unused_command_line_argument=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6256 fi
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6258 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6260 CFLAGS="$xorg_testset_save_CFLAGS"
6261 fi
6262
6263 found="no"
6264
6265 if test $found = "no" ; then
6266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6268 fi
6269
6270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6272 fi
6273
6274 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6275
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6277 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6278 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6279 if eval test \${$cacheid+y}
6280 then :
6281 printf %s "(cached) " >&6
6282 else $as_nop
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 int i;
6286 int
6287 main (void)
6288 {
6289
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 if ac_fn_c_try_link "$LINENO"
6295 then :
6296 eval $cacheid=yes
6297 else $as_nop
6298 eval $cacheid=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6301 conftest$ac_exeext conftest.$ac_ext
6302 fi
6303
6304
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6306
6307 eval supported=\$$cacheid
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6309 printf "%s\n" "$supported" >&6; }
6310 if test "$supported" = "yes" ; then
6311 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6312 found="yes"
6313 fi
6314 fi
6315
6316
6317
6318
6319
6320 # This chunk adds additional warnings that could catch undesired effects.
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 xorg_testset_save_CFLAGS="$CFLAGS"
6335
6336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6341 then :
6342 printf %s "(cached) " >&6
6343 else $as_nop
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 int i;
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"
6349 then :
6350 xorg_cv_cc_flag_unknown_warning_option=yes
6351 else $as_nop
6352 xorg_cv_cc_flag_unknown_warning_option=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6355 fi
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365 fi
6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else $as_nop
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 int i;
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"
6378 then :
6379 xorg_cv_cc_flag_unused_command_line_argument=yes
6380 else $as_nop
6381 xorg_cv_cc_flag_unused_command_line_argument=no
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6384 fi
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6388 CFLAGS="$xorg_testset_save_CFLAGS"
6389 fi
6390
6391 found="no"
6392
6393 if test $found = "no" ; then
6394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396 fi
6397
6398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6400 fi
6401
6402 CFLAGS="$CFLAGS -Wunused"
6403
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6405 printf %s "checking if $CC supports -Wunused... " >&6; }
6406 cacheid=xorg_cv_cc_flag__Wunused
6407 if eval test \${$cacheid+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else $as_nop
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413 int i;
6414 int
6415 main (void)
6416 {
6417
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_link "$LINENO"
6423 then :
6424 eval $cacheid=yes
6425 else $as_nop
6426 eval $cacheid=no
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6429 conftest$ac_exeext conftest.$ac_ext
6430 fi
6431
6432
6433 CFLAGS="$xorg_testset_save_CFLAGS"
6434
6435 eval supported=\$$cacheid
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6437 printf "%s\n" "$supported" >&6; }
6438 if test "$supported" = "yes" ; then
6439 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6440 found="yes"
6441 fi
6442 fi
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458 xorg_testset_save_CFLAGS="$CFLAGS"
6459
6460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6464 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6465 then :
6466 printf %s "(cached) " >&6
6467 else $as_nop
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 int i;
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"
6473 then :
6474 xorg_cv_cc_flag_unknown_warning_option=yes
6475 else $as_nop
6476 xorg_cv_cc_flag_unknown_warning_option=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6479 fi
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6481 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484 fi
6485
6486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489 fi
6490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6492 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6493 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6494 then :
6495 printf %s "(cached) " >&6
6496 else $as_nop
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 int i;
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"
6502 then :
6503 xorg_cv_cc_flag_unused_command_line_argument=yes
6504 else $as_nop
6505 xorg_cv_cc_flag_unused_command_line_argument=no
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6508 fi
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6512 CFLAGS="$xorg_testset_save_CFLAGS"
6513 fi
6514
6515 found="no"
6516
6517 if test $found = "no" ; then
6518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520 fi
6521
6522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524 fi
6525
6526 CFLAGS="$CFLAGS -Wuninitialized"
6527
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6529 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6530 cacheid=xorg_cv_cc_flag__Wuninitialized
6531 if eval test \${$cacheid+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 int i;
6538 int
6539 main (void)
6540 {
6541
6542 ;
6543 return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_link "$LINENO"
6547 then :
6548 eval $cacheid=yes
6549 else $as_nop
6550 eval $cacheid=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6553 conftest$ac_exeext conftest.$ac_ext
6554 fi
6555
6556
6557 CFLAGS="$xorg_testset_save_CFLAGS"
6558
6559 eval supported=\$$cacheid
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561 printf "%s\n" "$supported" >&6; }
6562 if test "$supported" = "yes" ; then
6563 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6564 found="yes"
6565 fi
6566 fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 xorg_testset_save_CFLAGS="$CFLAGS"
6583
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"
6597 then :
6598 xorg_cv_cc_flag_unknown_warning_option=yes
6599 else $as_nop
6600 xorg_cv_cc_flag_unknown_warning_option=no
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6603 fi
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6605 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6607 CFLAGS="$xorg_testset_save_CFLAGS"
6608 fi
6609
6610 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613 fi
6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6616 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6617 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6618 then :
6619 printf %s "(cached) " >&6
6620 else $as_nop
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 int i;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"
6626 then :
6627 xorg_cv_cc_flag_unused_command_line_argument=yes
6628 else $as_nop
6629 xorg_cv_cc_flag_unused_command_line_argument=no
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6632 fi
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6634 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6636 CFLAGS="$xorg_testset_save_CFLAGS"
6637 fi
6638
6639 found="no"
6640
6641 if test $found = "no" ; then
6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644 fi
6645
6646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6648 fi
6649
6650 CFLAGS="$CFLAGS -Wshadow"
6651
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6653 printf %s "checking if $CC supports -Wshadow... " >&6; }
6654 cacheid=xorg_cv_cc_flag__Wshadow
6655 if eval test \${$cacheid+y}
6656 then :
6657 printf %s "(cached) " >&6
6658 else $as_nop
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 int i;
6662 int
6663 main (void)
6664 {
6665
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"
6671 then :
6672 eval $cacheid=yes
6673 else $as_nop
6674 eval $cacheid=no
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6677 conftest$ac_exeext conftest.$ac_ext
6678 fi
6679
6680
6681 CFLAGS="$xorg_testset_save_CFLAGS"
6682
6683 eval supported=\$$cacheid
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6685 printf "%s\n" "$supported" >&6; }
6686 if test "$supported" = "yes" ; then
6687 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6688 found="yes"
6689 fi
6690 fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 xorg_testset_save_CFLAGS="$CFLAGS"
6707
6708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6711 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6712 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else $as_nop
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 int i;
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"
6721 then :
6722 xorg_cv_cc_flag_unknown_warning_option=yes
6723 else $as_nop
6724 xorg_cv_cc_flag_unknown_warning_option=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6727 fi
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6729 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6731 CFLAGS="$xorg_testset_save_CFLAGS"
6732 fi
6733
6734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737 fi
6738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6742 then :
6743 printf %s "(cached) " >&6
6744 else $as_nop
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 int i;
6748 _ACEOF
6749 if ac_fn_c_try_compile "$LINENO"
6750 then :
6751 xorg_cv_cc_flag_unused_command_line_argument=yes
6752 else $as_nop
6753 xorg_cv_cc_flag_unused_command_line_argument=no
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6756 fi
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6758 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6760 CFLAGS="$xorg_testset_save_CFLAGS"
6761 fi
6762
6763 found="no"
6764
6765 if test $found = "no" ; then
6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 fi
6769
6770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772 fi
6773
6774 CFLAGS="$CFLAGS -Wmissing-noreturn"
6775
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6777 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6778 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6779 if eval test \${$cacheid+y}
6780 then :
6781 printf %s "(cached) " >&6
6782 else $as_nop
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 int i;
6786 int
6787 main (void)
6788 {
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_link "$LINENO"
6795 then :
6796 eval $cacheid=yes
6797 else $as_nop
6798 eval $cacheid=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6801 conftest$ac_exeext conftest.$ac_ext
6802 fi
6803
6804
6805 CFLAGS="$xorg_testset_save_CFLAGS"
6806
6807 eval supported=\$$cacheid
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6809 printf "%s\n" "$supported" >&6; }
6810 if test "$supported" = "yes" ; then
6811 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6812 found="yes"
6813 fi
6814 fi
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830 xorg_testset_save_CFLAGS="$CFLAGS"
6831
6832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6836 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6837 then :
6838 printf %s "(cached) " >&6
6839 else $as_nop
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 int i;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"
6845 then :
6846 xorg_cv_cc_flag_unknown_warning_option=yes
6847 else $as_nop
6848 xorg_cv_cc_flag_unknown_warning_option=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6851 fi
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6853 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856 fi
6857
6858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861 fi
6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6864 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6865 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6866 then :
6867 printf %s "(cached) " >&6
6868 else $as_nop
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 int i;
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"
6874 then :
6875 xorg_cv_cc_flag_unused_command_line_argument=yes
6876 else $as_nop
6877 xorg_cv_cc_flag_unused_command_line_argument=no
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6880 fi
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6884 CFLAGS="$xorg_testset_save_CFLAGS"
6885 fi
6886
6887 found="no"
6888
6889 if test $found = "no" ; then
6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892 fi
6893
6894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896 fi
6897
6898 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6899
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6901 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6902 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6903 if eval test \${$cacheid+y}
6904 then :
6905 printf %s "(cached) " >&6
6906 else $as_nop
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 int i;
6910 int
6911 main (void)
6912 {
6913
6914 ;
6915 return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_link "$LINENO"
6919 then :
6920 eval $cacheid=yes
6921 else $as_nop
6922 eval $cacheid=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6925 conftest$ac_exeext conftest.$ac_ext
6926 fi
6927
6928
6929 CFLAGS="$xorg_testset_save_CFLAGS"
6930
6931 eval supported=\$$cacheid
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6933 printf "%s\n" "$supported" >&6; }
6934 if test "$supported" = "yes" ; then
6935 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6936 found="yes"
6937 fi
6938 fi
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954 xorg_testset_save_CFLAGS="$CFLAGS"
6955
6956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6961 then :
6962 printf %s "(cached) " >&6
6963 else $as_nop
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 int i;
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"
6969 then :
6970 xorg_cv_cc_flag_unknown_warning_option=yes
6971 else $as_nop
6972 xorg_cv_cc_flag_unknown_warning_option=no
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6975 fi
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980 fi
6981
6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985 fi
6986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6990 then :
6991 printf %s "(cached) " >&6
6992 else $as_nop
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 int i;
6996 _ACEOF
6997 if ac_fn_c_try_compile "$LINENO"
6998 then :
6999 xorg_cv_cc_flag_unused_command_line_argument=yes
7000 else $as_nop
7001 xorg_cv_cc_flag_unused_command_line_argument=no
7002 fi
7003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7004 fi
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7008 CFLAGS="$xorg_testset_save_CFLAGS"
7009 fi
7010
7011 found="no"
7012
7013 if test $found = "no" ; then
7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016 fi
7017
7018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7020 fi
7021
7022 CFLAGS="$CFLAGS -Wredundant-decls"
7023
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7025 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7026 cacheid=xorg_cv_cc_flag__Wredundant_decls
7027 if eval test \${$cacheid+y}
7028 then :
7029 printf %s "(cached) " >&6
7030 else $as_nop
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 int i;
7034 int
7035 main (void)
7036 {
7037
7038 ;
7039 return 0;
7040 }
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"
7043 then :
7044 eval $cacheid=yes
7045 else $as_nop
7046 eval $cacheid=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7049 conftest$ac_exeext conftest.$ac_ext
7050 fi
7051
7052
7053 CFLAGS="$xorg_testset_save_CFLAGS"
7054
7055 eval supported=\$$cacheid
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7057 printf "%s\n" "$supported" >&6; }
7058 if test "$supported" = "yes" ; then
7059 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7060 found="yes"
7061 fi
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 xorg_testset_save_CFLAGS="$CFLAGS"
7079
7080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7083 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7084 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7085 then :
7086 printf %s "(cached) " >&6
7087 else $as_nop
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 int i;
7091 _ACEOF
7092 if ac_fn_c_try_compile "$LINENO"
7093 then :
7094 xorg_cv_cc_flag_unknown_warning_option=yes
7095 else $as_nop
7096 xorg_cv_cc_flag_unknown_warning_option=no
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7099 fi
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7103 CFLAGS="$xorg_testset_save_CFLAGS"
7104 fi
7105
7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109 fi
7110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7114 then :
7115 printf %s "(cached) " >&6
7116 else $as_nop
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 int i;
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"
7122 then :
7123 xorg_cv_cc_flag_unused_command_line_argument=yes
7124 else $as_nop
7125 xorg_cv_cc_flag_unused_command_line_argument=no
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7128 fi
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132 CFLAGS="$xorg_testset_save_CFLAGS"
7133 fi
7134
7135 found="no"
7136
7137 if test $found = "no" ; then
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 fi
7141
7142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144 fi
7145
7146 CFLAGS="$CFLAGS -Wlogical-op"
7147
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7149 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7150 cacheid=xorg_cv_cc_flag__Wlogical_op
7151 if eval test \${$cacheid+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else $as_nop
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 int i;
7158 int
7159 main (void)
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"
7167 then :
7168 eval $cacheid=yes
7169 else $as_nop
7170 eval $cacheid=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7173 conftest$ac_exeext conftest.$ac_ext
7174 fi
7175
7176
7177 CFLAGS="$xorg_testset_save_CFLAGS"
7178
7179 eval supported=\$$cacheid
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7181 printf "%s\n" "$supported" >&6; }
7182 if test "$supported" = "yes" ; then
7183 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7184 found="yes"
7185 fi
7186 fi
7187
7188
7189
7190 # These are currently disabled because they are noisy. They will be enabled
7191 # in the future once the codebase is sufficiently modernized to silence
7192 # them. For now, I don't want them to drown out the other warnings.
7193 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7194 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7195 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7196
7197 # Turn some warnings into errors, so we don't accidently get successful builds
7198 # when there are problems that should be fixed.
7199
7200 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 xorg_testset_save_CFLAGS="$CFLAGS"
7215
7216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7221 then :
7222 printf %s "(cached) " >&6
7223 else $as_nop
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 int i;
7227 _ACEOF
7228 if ac_fn_c_try_compile "$LINENO"
7229 then :
7230 xorg_cv_cc_flag_unknown_warning_option=yes
7231 else $as_nop
7232 xorg_cv_cc_flag_unknown_warning_option=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7235 fi
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240 fi
7241
7242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 fi
7246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7250 then :
7251 printf %s "(cached) " >&6
7252 else $as_nop
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 int i;
7256 _ACEOF
7257 if ac_fn_c_try_compile "$LINENO"
7258 then :
7259 xorg_cv_cc_flag_unused_command_line_argument=yes
7260 else $as_nop
7261 xorg_cv_cc_flag_unused_command_line_argument=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7264 fi
7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268 CFLAGS="$xorg_testset_save_CFLAGS"
7269 fi
7270
7271 found="no"
7272
7273 if test $found = "no" ; then
7274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 fi
7277
7278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280 fi
7281
7282 CFLAGS="$CFLAGS -Werror=implicit"
7283
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7285 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7286 cacheid=xorg_cv_cc_flag__Werror_implicit
7287 if eval test \${$cacheid+y}
7288 then :
7289 printf %s "(cached) " >&6
7290 else $as_nop
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293 int i;
7294 int
7295 main (void)
7296 {
7297
7298 ;
7299 return 0;
7300 }
7301 _ACEOF
7302 if ac_fn_c_try_link "$LINENO"
7303 then :
7304 eval $cacheid=yes
7305 else $as_nop
7306 eval $cacheid=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7309 conftest$ac_exeext conftest.$ac_ext
7310 fi
7311
7312
7313 CFLAGS="$xorg_testset_save_CFLAGS"
7314
7315 eval supported=\$$cacheid
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7317 printf "%s\n" "$supported" >&6; }
7318 if test "$supported" = "yes" ; then
7319 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7320 found="yes"
7321 fi
7322 fi
7323
7324 if test $found = "no" ; then
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328
7329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331 fi
7332
7333 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7334
7335 { 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
7336 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7337 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7338 if eval test \${$cacheid+y}
7339 then :
7340 printf %s "(cached) " >&6
7341 else $as_nop
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 int i;
7345 int
7346 main (void)
7347 {
7348
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 if ac_fn_c_try_link "$LINENO"
7354 then :
7355 eval $cacheid=yes
7356 else $as_nop
7357 eval $cacheid=no
7358 fi
7359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7360 conftest$ac_exeext conftest.$ac_ext
7361 fi
7362
7363
7364 CFLAGS="$xorg_testset_save_CFLAGS"
7365
7366 eval supported=\$$cacheid
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7368 printf "%s\n" "$supported" >&6; }
7369 if test "$supported" = "yes" ; then
7370 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7371 found="yes"
7372 fi
7373 fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389 xorg_testset_save_CFLAGS="$CFLAGS"
7390
7391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7395 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7396 then :
7397 printf %s "(cached) " >&6
7398 else $as_nop
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 int i;
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"
7404 then :
7405 xorg_cv_cc_flag_unknown_warning_option=yes
7406 else $as_nop
7407 xorg_cv_cc_flag_unknown_warning_option=no
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7410 fi
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7415 fi
7416
7417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420 fi
7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7425 then :
7426 printf %s "(cached) " >&6
7427 else $as_nop
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 int i;
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"
7433 then :
7434 xorg_cv_cc_flag_unused_command_line_argument=yes
7435 else $as_nop
7436 xorg_cv_cc_flag_unused_command_line_argument=no
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7439 fi
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7443 CFLAGS="$xorg_testset_save_CFLAGS"
7444 fi
7445
7446 found="no"
7447
7448 if test $found = "no" ; then
7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451 fi
7452
7453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455 fi
7456
7457 CFLAGS="$CFLAGS -Werror=nonnull"
7458
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7460 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7461 cacheid=xorg_cv_cc_flag__Werror_nonnull
7462 if eval test \${$cacheid+y}
7463 then :
7464 printf %s "(cached) " >&6
7465 else $as_nop
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 int i;
7469 int
7470 main (void)
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"
7478 then :
7479 eval $cacheid=yes
7480 else $as_nop
7481 eval $cacheid=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7484 conftest$ac_exeext conftest.$ac_ext
7485 fi
7486
7487
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490 eval supported=\$$cacheid
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492 printf "%s\n" "$supported" >&6; }
7493 if test "$supported" = "yes" ; then
7494 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7495 found="yes"
7496 fi
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 xorg_testset_save_CFLAGS="$CFLAGS"
7514
7515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7519 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7520 then :
7521 printf %s "(cached) " >&6
7522 else $as_nop
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 int i;
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"
7528 then :
7529 xorg_cv_cc_flag_unknown_warning_option=yes
7530 else $as_nop
7531 xorg_cv_cc_flag_unknown_warning_option=no
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7534 fi
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7538 CFLAGS="$xorg_testset_save_CFLAGS"
7539 fi
7540
7541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544 fi
7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7549 then :
7550 printf %s "(cached) " >&6
7551 else $as_nop
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 int i;
7555 _ACEOF
7556 if ac_fn_c_try_compile "$LINENO"
7557 then :
7558 xorg_cv_cc_flag_unused_command_line_argument=yes
7559 else $as_nop
7560 xorg_cv_cc_flag_unused_command_line_argument=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7563 fi
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7567 CFLAGS="$xorg_testset_save_CFLAGS"
7568 fi
7569
7570 found="no"
7571
7572 if test $found = "no" ; then
7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575 fi
7576
7577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7579 fi
7580
7581 CFLAGS="$CFLAGS -Werror=init-self"
7582
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7584 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7585 cacheid=xorg_cv_cc_flag__Werror_init_self
7586 if eval test \${$cacheid+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 int i;
7593 int
7594 main (void)
7595 {
7596
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_link "$LINENO"
7602 then :
7603 eval $cacheid=yes
7604 else $as_nop
7605 eval $cacheid=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7608 conftest$ac_exeext conftest.$ac_ext
7609 fi
7610
7611
7612 CFLAGS="$xorg_testset_save_CFLAGS"
7613
7614 eval supported=\$$cacheid
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7616 printf "%s\n" "$supported" >&6; }
7617 if test "$supported" = "yes" ; then
7618 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7619 found="yes"
7620 fi
7621 fi
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637 xorg_testset_save_CFLAGS="$CFLAGS"
7638
7639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7643 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7644 then :
7645 printf %s "(cached) " >&6
7646 else $as_nop
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 int i;
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"
7652 then :
7653 xorg_cv_cc_flag_unknown_warning_option=yes
7654 else $as_nop
7655 xorg_cv_cc_flag_unknown_warning_option=no
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7658 fi
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7662 CFLAGS="$xorg_testset_save_CFLAGS"
7663 fi
7664
7665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668 fi
7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7673 then :
7674 printf %s "(cached) " >&6
7675 else $as_nop
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 int i;
7679 _ACEOF
7680 if ac_fn_c_try_compile "$LINENO"
7681 then :
7682 xorg_cv_cc_flag_unused_command_line_argument=yes
7683 else $as_nop
7684 xorg_cv_cc_flag_unused_command_line_argument=no
7685 fi
7686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7687 fi
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7691 CFLAGS="$xorg_testset_save_CFLAGS"
7692 fi
7693
7694 found="no"
7695
7696 if test $found = "no" ; then
7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699 fi
7700
7701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703 fi
7704
7705 CFLAGS="$CFLAGS -Werror=main"
7706
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7708 printf %s "checking if $CC supports -Werror=main... " >&6; }
7709 cacheid=xorg_cv_cc_flag__Werror_main
7710 if eval test \${$cacheid+y}
7711 then :
7712 printf %s "(cached) " >&6
7713 else $as_nop
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 int i;
7717 int
7718 main (void)
7719 {
7720
7721 ;
7722 return 0;
7723 }
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"
7726 then :
7727 eval $cacheid=yes
7728 else $as_nop
7729 eval $cacheid=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7732 conftest$ac_exeext conftest.$ac_ext
7733 fi
7734
7735
7736 CFLAGS="$xorg_testset_save_CFLAGS"
7737
7738 eval supported=\$$cacheid
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7740 printf "%s\n" "$supported" >&6; }
7741 if test "$supported" = "yes" ; then
7742 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7743 found="yes"
7744 fi
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761 xorg_testset_save_CFLAGS="$CFLAGS"
7762
7763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7766 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7767 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7768 then :
7769 printf %s "(cached) " >&6
7770 else $as_nop
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 _ACEOF
7775 if ac_fn_c_try_compile "$LINENO"
7776 then :
7777 xorg_cv_cc_flag_unknown_warning_option=yes
7778 else $as_nop
7779 xorg_cv_cc_flag_unknown_warning_option=no
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7782 fi
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7784 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7786 CFLAGS="$xorg_testset_save_CFLAGS"
7787 fi
7788
7789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792 fi
7793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7797 then :
7798 printf %s "(cached) " >&6
7799 else $as_nop
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 int i;
7803 _ACEOF
7804 if ac_fn_c_try_compile "$LINENO"
7805 then :
7806 xorg_cv_cc_flag_unused_command_line_argument=yes
7807 else $as_nop
7808 xorg_cv_cc_flag_unused_command_line_argument=no
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7811 fi
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7813 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7815 CFLAGS="$xorg_testset_save_CFLAGS"
7816 fi
7817
7818 found="no"
7819
7820 if test $found = "no" ; then
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 fi
7824
7825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7827 fi
7828
7829 CFLAGS="$CFLAGS -Werror=missing-braces"
7830
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7832 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7833 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7834 if eval test \${$cacheid+y}
7835 then :
7836 printf %s "(cached) " >&6
7837 else $as_nop
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 int i;
7841 int
7842 main (void)
7843 {
7844
7845 ;
7846 return 0;
7847 }
7848 _ACEOF
7849 if ac_fn_c_try_link "$LINENO"
7850 then :
7851 eval $cacheid=yes
7852 else $as_nop
7853 eval $cacheid=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7856 conftest$ac_exeext conftest.$ac_ext
7857 fi
7858
7859
7860 CFLAGS="$xorg_testset_save_CFLAGS"
7861
7862 eval supported=\$$cacheid
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7864 printf "%s\n" "$supported" >&6; }
7865 if test "$supported" = "yes" ; then
7866 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7867 found="yes"
7868 fi
7869 fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 xorg_testset_save_CFLAGS="$CFLAGS"
7886
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7891 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7892 then :
7893 printf %s "(cached) " >&6
7894 else $as_nop
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 int i;
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"
7900 then :
7901 xorg_cv_cc_flag_unknown_warning_option=yes
7902 else $as_nop
7903 xorg_cv_cc_flag_unknown_warning_option=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7906 fi
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911 fi
7912
7913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 fi
7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7921 then :
7922 printf %s "(cached) " >&6
7923 else $as_nop
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 int i;
7927 _ACEOF
7928 if ac_fn_c_try_compile "$LINENO"
7929 then :
7930 xorg_cv_cc_flag_unused_command_line_argument=yes
7931 else $as_nop
7932 xorg_cv_cc_flag_unused_command_line_argument=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7935 fi
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7937 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7939 CFLAGS="$xorg_testset_save_CFLAGS"
7940 fi
7941
7942 found="no"
7943
7944 if test $found = "no" ; then
7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 fi
7948
7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 fi
7952
7953 CFLAGS="$CFLAGS -Werror=sequence-point"
7954
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7956 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7957 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7958 if eval test \${$cacheid+y}
7959 then :
7960 printf %s "(cached) " >&6
7961 else $as_nop
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 int i;
7965 int
7966 main (void)
7967 {
7968
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 if ac_fn_c_try_link "$LINENO"
7974 then :
7975 eval $cacheid=yes
7976 else $as_nop
7977 eval $cacheid=no
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980 conftest$ac_exeext conftest.$ac_ext
7981 fi
7982
7983
7984 CFLAGS="$xorg_testset_save_CFLAGS"
7985
7986 eval supported=\$$cacheid
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7988 printf "%s\n" "$supported" >&6; }
7989 if test "$supported" = "yes" ; then
7990 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7991 found="yes"
7992 fi
7993 fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 xorg_testset_save_CFLAGS="$CFLAGS"
8010
8011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8014 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8015 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else $as_nop
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 int i;
8022 _ACEOF
8023 if ac_fn_c_try_compile "$LINENO"
8024 then :
8025 xorg_cv_cc_flag_unknown_warning_option=yes
8026 else $as_nop
8027 xorg_cv_cc_flag_unknown_warning_option=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8030 fi
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8032 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8034 CFLAGS="$xorg_testset_save_CFLAGS"
8035 fi
8036
8037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040 fi
8041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8043 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8044 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8045 then :
8046 printf %s "(cached) " >&6
8047 else $as_nop
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 int i;
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"
8053 then :
8054 xorg_cv_cc_flag_unused_command_line_argument=yes
8055 else $as_nop
8056 xorg_cv_cc_flag_unused_command_line_argument=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8059 fi
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8061 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8063 CFLAGS="$xorg_testset_save_CFLAGS"
8064 fi
8065
8066 found="no"
8067
8068 if test $found = "no" ; then
8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071 fi
8072
8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075 fi
8076
8077 CFLAGS="$CFLAGS -Werror=return-type"
8078
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8080 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8081 cacheid=xorg_cv_cc_flag__Werror_return_type
8082 if eval test \${$cacheid+y}
8083 then :
8084 printf %s "(cached) " >&6
8085 else $as_nop
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 int i;
8089 int
8090 main (void)
8091 {
8092
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 if ac_fn_c_try_link "$LINENO"
8098 then :
8099 eval $cacheid=yes
8100 else $as_nop
8101 eval $cacheid=no
8102 fi
8103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8104 conftest$ac_exeext conftest.$ac_ext
8105 fi
8106
8107
8108 CFLAGS="$xorg_testset_save_CFLAGS"
8109
8110 eval supported=\$$cacheid
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8112 printf "%s\n" "$supported" >&6; }
8113 if test "$supported" = "yes" ; then
8114 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8115 found="yes"
8116 fi
8117 fi
8118
8119 if test $found = "no" ; then
8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122 fi
8123
8124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8126 fi
8127
8128 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8129
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8131 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8132 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8133 if eval test \${$cacheid+y}
8134 then :
8135 printf %s "(cached) " >&6
8136 else $as_nop
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 int i;
8140 int
8141 main (void)
8142 {
8143
8144 ;
8145 return 0;
8146 }
8147 _ACEOF
8148 if ac_fn_c_try_link "$LINENO"
8149 then :
8150 eval $cacheid=yes
8151 else $as_nop
8152 eval $cacheid=no
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8155 conftest$ac_exeext conftest.$ac_ext
8156 fi
8157
8158
8159 CFLAGS="$xorg_testset_save_CFLAGS"
8160
8161 eval supported=\$$cacheid
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8163 printf "%s\n" "$supported" >&6; }
8164 if test "$supported" = "yes" ; then
8165 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8166 found="yes"
8167 fi
8168 fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184 xorg_testset_save_CFLAGS="$CFLAGS"
8185
8186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8191 then :
8192 printf %s "(cached) " >&6
8193 else $as_nop
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 int i;
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"
8199 then :
8200 xorg_cv_cc_flag_unknown_warning_option=yes
8201 else $as_nop
8202 xorg_cv_cc_flag_unknown_warning_option=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8205 fi
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210 fi
8211
8212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215 fi
8216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8220 then :
8221 printf %s "(cached) " >&6
8222 else $as_nop
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"
8228 then :
8229 xorg_cv_cc_flag_unused_command_line_argument=yes
8230 else $as_nop
8231 xorg_cv_cc_flag_unused_command_line_argument=no
8232 fi
8233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8234 fi
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8238 CFLAGS="$xorg_testset_save_CFLAGS"
8239 fi
8240
8241 found="no"
8242
8243 if test $found = "no" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247
8248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8250 fi
8251
8252 CFLAGS="$CFLAGS -Werror=trigraphs"
8253
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8255 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8256 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8257 if eval test \${$cacheid+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else $as_nop
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int i;
8264 int
8265 main (void)
8266 {
8267
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"
8273 then :
8274 eval $cacheid=yes
8275 else $as_nop
8276 eval $cacheid=no
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8279 conftest$ac_exeext conftest.$ac_ext
8280 fi
8281
8282
8283 CFLAGS="$xorg_testset_save_CFLAGS"
8284
8285 eval supported=\$$cacheid
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8287 printf "%s\n" "$supported" >&6; }
8288 if test "$supported" = "yes" ; then
8289 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8290 found="yes"
8291 fi
8292 fi
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 xorg_testset_save_CFLAGS="$CFLAGS"
8309
8310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8314 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8315 then :
8316 printf %s "(cached) " >&6
8317 else $as_nop
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 int i;
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"
8323 then :
8324 xorg_cv_cc_flag_unknown_warning_option=yes
8325 else $as_nop
8326 xorg_cv_cc_flag_unknown_warning_option=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8329 fi
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8333 CFLAGS="$xorg_testset_save_CFLAGS"
8334 fi
8335
8336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339 fi
8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8344 then :
8345 printf %s "(cached) " >&6
8346 else $as_nop
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 int i;
8350 _ACEOF
8351 if ac_fn_c_try_compile "$LINENO"
8352 then :
8353 xorg_cv_cc_flag_unused_command_line_argument=yes
8354 else $as_nop
8355 xorg_cv_cc_flag_unused_command_line_argument=no
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8358 fi
8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8360 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8362 CFLAGS="$xorg_testset_save_CFLAGS"
8363 fi
8364
8365 found="no"
8366
8367 if test $found = "no" ; then
8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 fi
8371
8372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374 fi
8375
8376 CFLAGS="$CFLAGS -Werror=array-bounds"
8377
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8379 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8380 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8381 if eval test \${$cacheid+y}
8382 then :
8383 printf %s "(cached) " >&6
8384 else $as_nop
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 int i;
8388 int
8389 main (void)
8390 {
8391
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_link "$LINENO"
8397 then :
8398 eval $cacheid=yes
8399 else $as_nop
8400 eval $cacheid=no
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8403 conftest$ac_exeext conftest.$ac_ext
8404 fi
8405
8406
8407 CFLAGS="$xorg_testset_save_CFLAGS"
8408
8409 eval supported=\$$cacheid
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8411 printf "%s\n" "$supported" >&6; }
8412 if test "$supported" = "yes" ; then
8413 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8414 found="yes"
8415 fi
8416 fi
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432 xorg_testset_save_CFLAGS="$CFLAGS"
8433
8434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8438 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8439 then :
8440 printf %s "(cached) " >&6
8441 else $as_nop
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 int i;
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"
8447 then :
8448 xorg_cv_cc_flag_unknown_warning_option=yes
8449 else $as_nop
8450 xorg_cv_cc_flag_unknown_warning_option=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8453 fi
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8457 CFLAGS="$xorg_testset_save_CFLAGS"
8458 fi
8459
8460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8463 fi
8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8468 then :
8469 printf %s "(cached) " >&6
8470 else $as_nop
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 int i;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"
8476 then :
8477 xorg_cv_cc_flag_unused_command_line_argument=yes
8478 else $as_nop
8479 xorg_cv_cc_flag_unused_command_line_argument=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8482 fi
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8484 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8486 CFLAGS="$xorg_testset_save_CFLAGS"
8487 fi
8488
8489 found="no"
8490
8491 if test $found = "no" ; then
8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494 fi
8495
8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8498 fi
8499
8500 CFLAGS="$CFLAGS -Werror=write-strings"
8501
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8503 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8504 cacheid=xorg_cv_cc_flag__Werror_write_strings
8505 if eval test \${$cacheid+y}
8506 then :
8507 printf %s "(cached) " >&6
8508 else $as_nop
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 int i;
8512 int
8513 main (void)
8514 {
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"
8521 then :
8522 eval $cacheid=yes
8523 else $as_nop
8524 eval $cacheid=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8527 conftest$ac_exeext conftest.$ac_ext
8528 fi
8529
8530
8531 CFLAGS="$xorg_testset_save_CFLAGS"
8532
8533 eval supported=\$$cacheid
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8535 printf "%s\n" "$supported" >&6; }
8536 if test "$supported" = "yes" ; then
8537 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8538 found="yes"
8539 fi
8540 fi
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556 xorg_testset_save_CFLAGS="$CFLAGS"
8557
8558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8561 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8562 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8563 then :
8564 printf %s "(cached) " >&6
8565 else $as_nop
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 int i;
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"
8571 then :
8572 xorg_cv_cc_flag_unknown_warning_option=yes
8573 else $as_nop
8574 xorg_cv_cc_flag_unknown_warning_option=no
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8577 fi
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582 fi
8583
8584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 fi
8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8592 then :
8593 printf %s "(cached) " >&6
8594 else $as_nop
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 _ACEOF
8599 if ac_fn_c_try_compile "$LINENO"
8600 then :
8601 xorg_cv_cc_flag_unused_command_line_argument=yes
8602 else $as_nop
8603 xorg_cv_cc_flag_unused_command_line_argument=no
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8606 fi
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610 CFLAGS="$xorg_testset_save_CFLAGS"
8611 fi
8612
8613 found="no"
8614
8615 if test $found = "no" ; then
8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618 fi
8619
8620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622 fi
8623
8624 CFLAGS="$CFLAGS -Werror=address"
8625
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8627 printf %s "checking if $CC supports -Werror=address... " >&6; }
8628 cacheid=xorg_cv_cc_flag__Werror_address
8629 if eval test \${$cacheid+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else $as_nop
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 int i;
8636 int
8637 main (void)
8638 {
8639
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 if ac_fn_c_try_link "$LINENO"
8645 then :
8646 eval $cacheid=yes
8647 else $as_nop
8648 eval $cacheid=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8651 conftest$ac_exeext conftest.$ac_ext
8652 fi
8653
8654
8655 CFLAGS="$xorg_testset_save_CFLAGS"
8656
8657 eval supported=\$$cacheid
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8659 printf "%s\n" "$supported" >&6; }
8660 if test "$supported" = "yes" ; then
8661 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8662 found="yes"
8663 fi
8664 fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 xorg_testset_save_CFLAGS="$CFLAGS"
8681
8682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8686 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8687 then :
8688 printf %s "(cached) " >&6
8689 else $as_nop
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 int i;
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"
8695 then :
8696 xorg_cv_cc_flag_unknown_warning_option=yes
8697 else $as_nop
8698 xorg_cv_cc_flag_unknown_warning_option=no
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8701 fi
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8703 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8705 CFLAGS="$xorg_testset_save_CFLAGS"
8706 fi
8707
8708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711 fi
8712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8714 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8715 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8716 then :
8717 printf %s "(cached) " >&6
8718 else $as_nop
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 int i;
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"
8724 then :
8725 xorg_cv_cc_flag_unused_command_line_argument=yes
8726 else $as_nop
8727 xorg_cv_cc_flag_unused_command_line_argument=no
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8730 fi
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8734 CFLAGS="$xorg_testset_save_CFLAGS"
8735 fi
8736
8737 found="no"
8738
8739 if test $found = "no" ; then
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 fi
8743
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746 fi
8747
8748 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8749
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8751 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8752 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8753 if eval test \${$cacheid+y}
8754 then :
8755 printf %s "(cached) " >&6
8756 else $as_nop
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 int i;
8760 int
8761 main (void)
8762 {
8763
8764 ;
8765 return 0;
8766 }
8767 _ACEOF
8768 if ac_fn_c_try_link "$LINENO"
8769 then :
8770 eval $cacheid=yes
8771 else $as_nop
8772 eval $cacheid=no
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8775 conftest$ac_exeext conftest.$ac_ext
8776 fi
8777
8778
8779 CFLAGS="$xorg_testset_save_CFLAGS"
8780
8781 eval supported=\$$cacheid
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8783 printf "%s\n" "$supported" >&6; }
8784 if test "$supported" = "yes" ; then
8785 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8786 found="yes"
8787 fi
8788 fi
8789
8790 if test $found = "no" ; then
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 fi
8794
8795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8797 fi
8798
8799 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8800
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8802 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8803 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8804 if eval test \${$cacheid+y}
8805 then :
8806 printf %s "(cached) " >&6
8807 else $as_nop
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 int i;
8811 int
8812 main (void)
8813 {
8814
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"
8820 then :
8821 eval $cacheid=yes
8822 else $as_nop
8823 eval $cacheid=no
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8826 conftest$ac_exeext conftest.$ac_ext
8827 fi
8828
8829
8830 CFLAGS="$xorg_testset_save_CFLAGS"
8831
8832 eval supported=\$$cacheid
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8834 printf "%s\n" "$supported" >&6; }
8835 if test "$supported" = "yes" ; then
8836 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8837 found="yes"
8838 fi
8839 fi
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855 xorg_testset_save_CFLAGS="$CFLAGS"
8856
8857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8862 then :
8863 printf %s "(cached) " >&6
8864 else $as_nop
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 int i;
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"
8870 then :
8871 xorg_cv_cc_flag_unknown_warning_option=yes
8872 else $as_nop
8873 xorg_cv_cc_flag_unknown_warning_option=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8876 fi
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881 fi
8882
8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 fi
8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8891 then :
8892 printf %s "(cached) " >&6
8893 else $as_nop
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 int i;
8897 _ACEOF
8898 if ac_fn_c_try_compile "$LINENO"
8899 then :
8900 xorg_cv_cc_flag_unused_command_line_argument=yes
8901 else $as_nop
8902 xorg_cv_cc_flag_unused_command_line_argument=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 fi
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910 fi
8911
8912 found="no"
8913
8914 if test $found = "no" ; then
8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917 fi
8918
8919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 fi
8922
8923 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8924
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8926 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8927 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8928 if eval test \${$cacheid+y}
8929 then :
8930 printf %s "(cached) " >&6
8931 else $as_nop
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934 int i;
8935 int
8936 main (void)
8937 {
8938
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 if ac_fn_c_try_link "$LINENO"
8944 then :
8945 eval $cacheid=yes
8946 else $as_nop
8947 eval $cacheid=no
8948 fi
8949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8950 conftest$ac_exeext conftest.$ac_ext
8951 fi
8952
8953
8954 CFLAGS="$xorg_testset_save_CFLAGS"
8955
8956 eval supported=\$$cacheid
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8958 printf "%s\n" "$supported" >&6; }
8959 if test "$supported" = "yes" ; then
8960 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8961 found="yes"
8962 fi
8963 fi
8964
8965 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8966 else
8967 { 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
8968 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;}
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982 xorg_testset_save_CFLAGS="$CFLAGS"
8983
8984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8988 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else $as_nop
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"
8997 then :
8998 xorg_cv_cc_flag_unknown_warning_option=yes
8999 else $as_nop
9000 xorg_cv_cc_flag_unknown_warning_option=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9003 fi
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9007 CFLAGS="$xorg_testset_save_CFLAGS"
9008 fi
9009
9010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013 fi
9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9018 then :
9019 printf %s "(cached) " >&6
9020 else $as_nop
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 int i;
9024 _ACEOF
9025 if ac_fn_c_try_compile "$LINENO"
9026 then :
9027 xorg_cv_cc_flag_unused_command_line_argument=yes
9028 else $as_nop
9029 xorg_cv_cc_flag_unused_command_line_argument=no
9030 fi
9031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9032 fi
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9036 CFLAGS="$xorg_testset_save_CFLAGS"
9037 fi
9038
9039 found="no"
9040
9041 if test $found = "no" ; then
9042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044 fi
9045
9046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9048 fi
9049
9050 CFLAGS="$CFLAGS -Wimplicit"
9051
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9053 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9054 cacheid=xorg_cv_cc_flag__Wimplicit
9055 if eval test \${$cacheid+y}
9056 then :
9057 printf %s "(cached) " >&6
9058 else $as_nop
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 int i;
9062 int
9063 main (void)
9064 {
9065
9066 ;
9067 return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"
9071 then :
9072 eval $cacheid=yes
9073 else $as_nop
9074 eval $cacheid=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi
9079
9080
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082
9083 eval supported=\$$cacheid
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9085 printf "%s\n" "$supported" >&6; }
9086 if test "$supported" = "yes" ; then
9087 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9088 found="yes"
9089 fi
9090 fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106 xorg_testset_save_CFLAGS="$CFLAGS"
9107
9108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else $as_nop
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 int i;
9119 _ACEOF
9120 if ac_fn_c_try_compile "$LINENO"
9121 then :
9122 xorg_cv_cc_flag_unknown_warning_option=yes
9123 else $as_nop
9124 xorg_cv_cc_flag_unknown_warning_option=no
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9127 fi
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9131 CFLAGS="$xorg_testset_save_CFLAGS"
9132 fi
9133
9134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 fi
9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9142 then :
9143 printf %s "(cached) " >&6
9144 else $as_nop
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 int i;
9148 _ACEOF
9149 if ac_fn_c_try_compile "$LINENO"
9150 then :
9151 xorg_cv_cc_flag_unused_command_line_argument=yes
9152 else $as_nop
9153 xorg_cv_cc_flag_unused_command_line_argument=no
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9156 fi
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9160 CFLAGS="$xorg_testset_save_CFLAGS"
9161 fi
9162
9163 found="no"
9164
9165 if test $found = "no" ; then
9166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168 fi
9169
9170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9172 fi
9173
9174 CFLAGS="$CFLAGS -Wnonnull"
9175
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9177 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9178 cacheid=xorg_cv_cc_flag__Wnonnull
9179 if eval test \${$cacheid+y}
9180 then :
9181 printf %s "(cached) " >&6
9182 else $as_nop
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 int i;
9186 int
9187 main (void)
9188 {
9189
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"
9195 then :
9196 eval $cacheid=yes
9197 else $as_nop
9198 eval $cacheid=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi
9203
9204
9205 CFLAGS="$xorg_testset_save_CFLAGS"
9206
9207 eval supported=\$$cacheid
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9209 printf "%s\n" "$supported" >&6; }
9210 if test "$supported" = "yes" ; then
9211 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9212 found="yes"
9213 fi
9214 fi
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 xorg_testset_save_CFLAGS="$CFLAGS"
9231
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9236 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9237 then :
9238 printf %s "(cached) " >&6
9239 else $as_nop
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 int i;
9243 _ACEOF
9244 if ac_fn_c_try_compile "$LINENO"
9245 then :
9246 xorg_cv_cc_flag_unknown_warning_option=yes
9247 else $as_nop
9248 xorg_cv_cc_flag_unknown_warning_option=no
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9251 fi
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9256 fi
9257
9258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261 fi
9262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9266 then :
9267 printf %s "(cached) " >&6
9268 else $as_nop
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int i;
9272 _ACEOF
9273 if ac_fn_c_try_compile "$LINENO"
9274 then :
9275 xorg_cv_cc_flag_unused_command_line_argument=yes
9276 else $as_nop
9277 xorg_cv_cc_flag_unused_command_line_argument=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9280 fi
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285 fi
9286
9287 found="no"
9288
9289 if test $found = "no" ; then
9290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292 fi
9293
9294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296 fi
9297
9298 CFLAGS="$CFLAGS -Winit-self"
9299
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9301 printf %s "checking if $CC supports -Winit-self... " >&6; }
9302 cacheid=xorg_cv_cc_flag__Winit_self
9303 if eval test \${$cacheid+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else $as_nop
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 int i;
9310 int
9311 main (void)
9312 {
9313
9314 ;
9315 return 0;
9316 }
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"
9319 then :
9320 eval $cacheid=yes
9321 else $as_nop
9322 eval $cacheid=no
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9325 conftest$ac_exeext conftest.$ac_ext
9326 fi
9327
9328
9329 CFLAGS="$xorg_testset_save_CFLAGS"
9330
9331 eval supported=\$$cacheid
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9333 printf "%s\n" "$supported" >&6; }
9334 if test "$supported" = "yes" ; then
9335 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9336 found="yes"
9337 fi
9338 fi
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354 xorg_testset_save_CFLAGS="$CFLAGS"
9355
9356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9361 then :
9362 printf %s "(cached) " >&6
9363 else $as_nop
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 int i;
9367 _ACEOF
9368 if ac_fn_c_try_compile "$LINENO"
9369 then :
9370 xorg_cv_cc_flag_unknown_warning_option=yes
9371 else $as_nop
9372 xorg_cv_cc_flag_unknown_warning_option=no
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9375 fi
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9379 CFLAGS="$xorg_testset_save_CFLAGS"
9380 fi
9381
9382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385 fi
9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9390 then :
9391 printf %s "(cached) " >&6
9392 else $as_nop
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"
9398 then :
9399 xorg_cv_cc_flag_unused_command_line_argument=yes
9400 else $as_nop
9401 xorg_cv_cc_flag_unused_command_line_argument=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9404 fi
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9408 CFLAGS="$xorg_testset_save_CFLAGS"
9409 fi
9410
9411 found="no"
9412
9413 if test $found = "no" ; then
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 fi
9417
9418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9420 fi
9421
9422 CFLAGS="$CFLAGS -Wmain"
9423
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9425 printf %s "checking if $CC supports -Wmain... " >&6; }
9426 cacheid=xorg_cv_cc_flag__Wmain
9427 if eval test \${$cacheid+y}
9428 then :
9429 printf %s "(cached) " >&6
9430 else $as_nop
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 int i;
9434 int
9435 main (void)
9436 {
9437
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"
9443 then :
9444 eval $cacheid=yes
9445 else $as_nop
9446 eval $cacheid=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9449 conftest$ac_exeext conftest.$ac_ext
9450 fi
9451
9452
9453 CFLAGS="$xorg_testset_save_CFLAGS"
9454
9455 eval supported=\$$cacheid
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9457 printf "%s\n" "$supported" >&6; }
9458 if test "$supported" = "yes" ; then
9459 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9460 found="yes"
9461 fi
9462 fi
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478 xorg_testset_save_CFLAGS="$CFLAGS"
9479
9480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9485 then :
9486 printf %s "(cached) " >&6
9487 else $as_nop
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 int i;
9491 _ACEOF
9492 if ac_fn_c_try_compile "$LINENO"
9493 then :
9494 xorg_cv_cc_flag_unknown_warning_option=yes
9495 else $as_nop
9496 xorg_cv_cc_flag_unknown_warning_option=no
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9499 fi
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9503 CFLAGS="$xorg_testset_save_CFLAGS"
9504 fi
9505
9506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509 fi
9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9514 then :
9515 printf %s "(cached) " >&6
9516 else $as_nop
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 int i;
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"
9522 then :
9523 xorg_cv_cc_flag_unused_command_line_argument=yes
9524 else $as_nop
9525 xorg_cv_cc_flag_unused_command_line_argument=no
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9528 fi
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9532 CFLAGS="$xorg_testset_save_CFLAGS"
9533 fi
9534
9535 found="no"
9536
9537 if test $found = "no" ; then
9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9540 fi
9541
9542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9544 fi
9545
9546 CFLAGS="$CFLAGS -Wmissing-braces"
9547
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9549 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9550 cacheid=xorg_cv_cc_flag__Wmissing_braces
9551 if eval test \${$cacheid+y}
9552 then :
9553 printf %s "(cached) " >&6
9554 else $as_nop
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557 int i;
9558 int
9559 main (void)
9560 {
9561
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 if ac_fn_c_try_link "$LINENO"
9567 then :
9568 eval $cacheid=yes
9569 else $as_nop
9570 eval $cacheid=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9573 conftest$ac_exeext conftest.$ac_ext
9574 fi
9575
9576
9577 CFLAGS="$xorg_testset_save_CFLAGS"
9578
9579 eval supported=\$$cacheid
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9581 printf "%s\n" "$supported" >&6; }
9582 if test "$supported" = "yes" ; then
9583 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9584 found="yes"
9585 fi
9586 fi
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 xorg_testset_save_CFLAGS="$CFLAGS"
9603
9604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9608 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9609 then :
9610 printf %s "(cached) " >&6
9611 else $as_nop
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 int i;
9615 _ACEOF
9616 if ac_fn_c_try_compile "$LINENO"
9617 then :
9618 xorg_cv_cc_flag_unknown_warning_option=yes
9619 else $as_nop
9620 xorg_cv_cc_flag_unknown_warning_option=no
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9623 fi
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9627 CFLAGS="$xorg_testset_save_CFLAGS"
9628 fi
9629
9630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633 fi
9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9638 then :
9639 printf %s "(cached) " >&6
9640 else $as_nop
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 int i;
9644 _ACEOF
9645 if ac_fn_c_try_compile "$LINENO"
9646 then :
9647 xorg_cv_cc_flag_unused_command_line_argument=yes
9648 else $as_nop
9649 xorg_cv_cc_flag_unused_command_line_argument=no
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9652 fi
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9656 CFLAGS="$xorg_testset_save_CFLAGS"
9657 fi
9658
9659 found="no"
9660
9661 if test $found = "no" ; then
9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664 fi
9665
9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9668 fi
9669
9670 CFLAGS="$CFLAGS -Wsequence-point"
9671
9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9673 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9674 cacheid=xorg_cv_cc_flag__Wsequence_point
9675 if eval test \${$cacheid+y}
9676 then :
9677 printf %s "(cached) " >&6
9678 else $as_nop
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681 int i;
9682 int
9683 main (void)
9684 {
9685
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"
9691 then :
9692 eval $cacheid=yes
9693 else $as_nop
9694 eval $cacheid=no
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9697 conftest$ac_exeext conftest.$ac_ext
9698 fi
9699
9700
9701 CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703 eval supported=\$$cacheid
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705 printf "%s\n" "$supported" >&6; }
9706 if test "$supported" = "yes" ; then
9707 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9708 found="yes"
9709 fi
9710 fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726 xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9733 then :
9734 printf %s "(cached) " >&6
9735 else $as_nop
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 _ACEOF
9740 if ac_fn_c_try_compile "$LINENO"
9741 then :
9742 xorg_cv_cc_flag_unknown_warning_option=yes
9743 else $as_nop
9744 xorg_cv_cc_flag_unknown_warning_option=no
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9747 fi
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9751 CFLAGS="$xorg_testset_save_CFLAGS"
9752 fi
9753
9754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757 fi
9758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9762 then :
9763 printf %s "(cached) " >&6
9764 else $as_nop
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 int i;
9768 _ACEOF
9769 if ac_fn_c_try_compile "$LINENO"
9770 then :
9771 xorg_cv_cc_flag_unused_command_line_argument=yes
9772 else $as_nop
9773 xorg_cv_cc_flag_unused_command_line_argument=no
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9776 fi
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9780 CFLAGS="$xorg_testset_save_CFLAGS"
9781 fi
9782
9783 found="no"
9784
9785 if test $found = "no" ; then
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 fi
9789
9790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792 fi
9793
9794 CFLAGS="$CFLAGS -Wreturn-type"
9795
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9797 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9798 cacheid=xorg_cv_cc_flag__Wreturn_type
9799 if eval test \${$cacheid+y}
9800 then :
9801 printf %s "(cached) " >&6
9802 else $as_nop
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 int i;
9806 int
9807 main (void)
9808 {
9809
9810 ;
9811 return 0;
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"
9815 then :
9816 eval $cacheid=yes
9817 else $as_nop
9818 eval $cacheid=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9821 conftest$ac_exeext conftest.$ac_ext
9822 fi
9823
9824
9825 CFLAGS="$xorg_testset_save_CFLAGS"
9826
9827 eval supported=\$$cacheid
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9829 printf "%s\n" "$supported" >&6; }
9830 if test "$supported" = "yes" ; then
9831 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9832 found="yes"
9833 fi
9834 fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850 xorg_testset_save_CFLAGS="$CFLAGS"
9851
9852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9856 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9857 then :
9858 printf %s "(cached) " >&6
9859 else $as_nop
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 int i;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"
9865 then :
9866 xorg_cv_cc_flag_unknown_warning_option=yes
9867 else $as_nop
9868 xorg_cv_cc_flag_unknown_warning_option=no
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9871 fi
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9875 CFLAGS="$xorg_testset_save_CFLAGS"
9876 fi
9877
9878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 fi
9882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9886 then :
9887 printf %s "(cached) " >&6
9888 else $as_nop
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 int i;
9892 _ACEOF
9893 if ac_fn_c_try_compile "$LINENO"
9894 then :
9895 xorg_cv_cc_flag_unused_command_line_argument=yes
9896 else $as_nop
9897 xorg_cv_cc_flag_unused_command_line_argument=no
9898 fi
9899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9900 fi
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9904 CFLAGS="$xorg_testset_save_CFLAGS"
9905 fi
9906
9907 found="no"
9908
9909 if test $found = "no" ; then
9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912 fi
9913
9914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9916 fi
9917
9918 CFLAGS="$CFLAGS -Wtrigraphs"
9919
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9921 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9922 cacheid=xorg_cv_cc_flag__Wtrigraphs
9923 if eval test \${$cacheid+y}
9924 then :
9925 printf %s "(cached) " >&6
9926 else $as_nop
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929 int i;
9930 int
9931 main (void)
9932 {
9933
9934 ;
9935 return 0;
9936 }
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"
9939 then :
9940 eval $cacheid=yes
9941 else $as_nop
9942 eval $cacheid=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9945 conftest$ac_exeext conftest.$ac_ext
9946 fi
9947
9948
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951 eval supported=\$$cacheid
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953 printf "%s\n" "$supported" >&6; }
9954 if test "$supported" = "yes" ; then
9955 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9956 found="yes"
9957 fi
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974 xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9981 then :
9982 printf %s "(cached) " >&6
9983 else $as_nop
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986 int i;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"
9989 then :
9990 xorg_cv_cc_flag_unknown_warning_option=yes
9991 else $as_nop
9992 xorg_cv_cc_flag_unknown_warning_option=no
9993 fi
9994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 fi
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9999 CFLAGS="$xorg_testset_save_CFLAGS"
10000 fi
10001
10002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005 fi
10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10010 then :
10011 printf %s "(cached) " >&6
10012 else $as_nop
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 int i;
10016 _ACEOF
10017 if ac_fn_c_try_compile "$LINENO"
10018 then :
10019 xorg_cv_cc_flag_unused_command_line_argument=yes
10020 else $as_nop
10021 xorg_cv_cc_flag_unused_command_line_argument=no
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10024 fi
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10028 CFLAGS="$xorg_testset_save_CFLAGS"
10029 fi
10030
10031 found="no"
10032
10033 if test $found = "no" ; then
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 fi
10037
10038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040 fi
10041
10042 CFLAGS="$CFLAGS -Warray-bounds"
10043
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10045 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10046 cacheid=xorg_cv_cc_flag__Warray_bounds
10047 if eval test \${$cacheid+y}
10048 then :
10049 printf %s "(cached) " >&6
10050 else $as_nop
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int i;
10054 int
10055 main (void)
10056 {
10057
10058 ;
10059 return 0;
10060 }
10061 _ACEOF
10062 if ac_fn_c_try_link "$LINENO"
10063 then :
10064 eval $cacheid=yes
10065 else $as_nop
10066 eval $cacheid=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10069 conftest$ac_exeext conftest.$ac_ext
10070 fi
10071
10072
10073 CFLAGS="$xorg_testset_save_CFLAGS"
10074
10075 eval supported=\$$cacheid
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10077 printf "%s\n" "$supported" >&6; }
10078 if test "$supported" = "yes" ; then
10079 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10080 found="yes"
10081 fi
10082 fi
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 xorg_testset_save_CFLAGS="$CFLAGS"
10099
10100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10104 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else $as_nop
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 int i;
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"
10113 then :
10114 xorg_cv_cc_flag_unknown_warning_option=yes
10115 else $as_nop
10116 xorg_cv_cc_flag_unknown_warning_option=no
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10119 fi
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10123 CFLAGS="$xorg_testset_save_CFLAGS"
10124 fi
10125
10126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129 fi
10130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10134 then :
10135 printf %s "(cached) " >&6
10136 else $as_nop
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 int i;
10140 _ACEOF
10141 if ac_fn_c_try_compile "$LINENO"
10142 then :
10143 xorg_cv_cc_flag_unused_command_line_argument=yes
10144 else $as_nop
10145 xorg_cv_cc_flag_unused_command_line_argument=no
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10148 fi
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10152 CFLAGS="$xorg_testset_save_CFLAGS"
10153 fi
10154
10155 found="no"
10156
10157 if test $found = "no" ; then
10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160 fi
10161
10162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10164 fi
10165
10166 CFLAGS="$CFLAGS -Wwrite-strings"
10167
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10169 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10170 cacheid=xorg_cv_cc_flag__Wwrite_strings
10171 if eval test \${$cacheid+y}
10172 then :
10173 printf %s "(cached) " >&6
10174 else $as_nop
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 int i;
10178 int
10179 main (void)
10180 {
10181
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"
10187 then :
10188 eval $cacheid=yes
10189 else $as_nop
10190 eval $cacheid=no
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10193 conftest$ac_exeext conftest.$ac_ext
10194 fi
10195
10196
10197 CFLAGS="$xorg_testset_save_CFLAGS"
10198
10199 eval supported=\$$cacheid
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10201 printf "%s\n" "$supported" >&6; }
10202 if test "$supported" = "yes" ; then
10203 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10204 found="yes"
10205 fi
10206 fi
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 xorg_testset_save_CFLAGS="$CFLAGS"
10223
10224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10229 then :
10230 printf %s "(cached) " >&6
10231 else $as_nop
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 int i;
10235 _ACEOF
10236 if ac_fn_c_try_compile "$LINENO"
10237 then :
10238 xorg_cv_cc_flag_unknown_warning_option=yes
10239 else $as_nop
10240 xorg_cv_cc_flag_unknown_warning_option=no
10241 fi
10242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10243 fi
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10247 CFLAGS="$xorg_testset_save_CFLAGS"
10248 fi
10249
10250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253 fi
10254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10258 then :
10259 printf %s "(cached) " >&6
10260 else $as_nop
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 int i;
10264 _ACEOF
10265 if ac_fn_c_try_compile "$LINENO"
10266 then :
10267 xorg_cv_cc_flag_unused_command_line_argument=yes
10268 else $as_nop
10269 xorg_cv_cc_flag_unused_command_line_argument=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10272 fi
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10276 CFLAGS="$xorg_testset_save_CFLAGS"
10277 fi
10278
10279 found="no"
10280
10281 if test $found = "no" ; then
10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10284 fi
10285
10286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10288 fi
10289
10290 CFLAGS="$CFLAGS -Waddress"
10291
10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10293 printf %s "checking if $CC supports -Waddress... " >&6; }
10294 cacheid=xorg_cv_cc_flag__Waddress
10295 if eval test \${$cacheid+y}
10296 then :
10297 printf %s "(cached) " >&6
10298 else $as_nop
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 int i;
10302 int
10303 main (void)
10304 {
10305
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_link "$LINENO"
10311 then :
10312 eval $cacheid=yes
10313 else $as_nop
10314 eval $cacheid=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319
10320
10321 CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323 eval supported=\$$cacheid
10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325 printf "%s\n" "$supported" >&6; }
10326 if test "$supported" = "yes" ; then
10327 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10328 found="yes"
10329 fi
10330 fi
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346 xorg_testset_save_CFLAGS="$CFLAGS"
10347
10348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10352 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10353 then :
10354 printf %s "(cached) " >&6
10355 else $as_nop
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 int i;
10359 _ACEOF
10360 if ac_fn_c_try_compile "$LINENO"
10361 then :
10362 xorg_cv_cc_flag_unknown_warning_option=yes
10363 else $as_nop
10364 xorg_cv_cc_flag_unknown_warning_option=no
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10367 fi
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10371 CFLAGS="$xorg_testset_save_CFLAGS"
10372 fi
10373
10374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10377 fi
10378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10382 then :
10383 printf %s "(cached) " >&6
10384 else $as_nop
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 int i;
10388 _ACEOF
10389 if ac_fn_c_try_compile "$LINENO"
10390 then :
10391 xorg_cv_cc_flag_unused_command_line_argument=yes
10392 else $as_nop
10393 xorg_cv_cc_flag_unused_command_line_argument=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10396 fi
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10400 CFLAGS="$xorg_testset_save_CFLAGS"
10401 fi
10402
10403 found="no"
10404
10405 if test $found = "no" ; then
10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408 fi
10409
10410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412 fi
10413
10414 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10415
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10417 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10418 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10419 if eval test \${$cacheid+y}
10420 then :
10421 printf %s "(cached) " >&6
10422 else $as_nop
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 int i;
10426 int
10427 main (void)
10428 {
10429
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"
10435 then :
10436 eval $cacheid=yes
10437 else $as_nop
10438 eval $cacheid=no
10439 fi
10440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10441 conftest$ac_exeext conftest.$ac_ext
10442 fi
10443
10444
10445 CFLAGS="$xorg_testset_save_CFLAGS"
10446
10447 eval supported=\$$cacheid
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10449 printf "%s\n" "$supported" >&6; }
10450 if test "$supported" = "yes" ; then
10451 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10452 found="yes"
10453 fi
10454 fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 xorg_testset_save_CFLAGS="$CFLAGS"
10471
10472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10477 then :
10478 printf %s "(cached) " >&6
10479 else $as_nop
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 int i;
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"
10485 then :
10486 xorg_cv_cc_flag_unknown_warning_option=yes
10487 else $as_nop
10488 xorg_cv_cc_flag_unknown_warning_option=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10491 fi
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10495 CFLAGS="$xorg_testset_save_CFLAGS"
10496 fi
10497
10498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501 fi
10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10506 then :
10507 printf %s "(cached) " >&6
10508 else $as_nop
10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511 int i;
10512 _ACEOF
10513 if ac_fn_c_try_compile "$LINENO"
10514 then :
10515 xorg_cv_cc_flag_unused_command_line_argument=yes
10516 else $as_nop
10517 xorg_cv_cc_flag_unused_command_line_argument=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10520 fi
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10524 CFLAGS="$xorg_testset_save_CFLAGS"
10525 fi
10526
10527 found="no"
10528
10529 if test $found = "no" ; then
10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532 fi
10533
10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10536 fi
10537
10538 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10539
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10541 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10542 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10543 if eval test \${$cacheid+y}
10544 then :
10545 printf %s "(cached) " >&6
10546 else $as_nop
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 int i;
10550 int
10551 main (void)
10552 {
10553
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"
10559 then :
10560 eval $cacheid=yes
10561 else $as_nop
10562 eval $cacheid=no
10563 fi
10564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10565 conftest$ac_exeext conftest.$ac_ext
10566 fi
10567
10568
10569 CFLAGS="$xorg_testset_save_CFLAGS"
10570
10571 eval supported=\$$cacheid
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10573 printf "%s\n" "$supported" >&6; }
10574 if test "$supported" = "yes" ; then
10575 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10576 found="yes"
10577 fi
10578 fi
10579
10580
10581 fi
10582
10583
10584
10585
10586
10587
10588
10589 CWARNFLAGS="$BASE_CFLAGS"
10590 if test "x$GCC" = xyes ; then
10591 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10592 fi
10593
10594
10595
10596
10597
10598
10599
10600
10601 # Check whether --enable-strict-compilation was given.
10602 if test ${enable_strict_compilation+y}
10603 then :
10604 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10605 else $as_nop
10606 STRICT_COMPILE=no
10607 fi
10608
10609
10610
10611
10612
10613
10614 STRICT_CFLAGS=""
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628 xorg_testset_save_CFLAGS="$CFLAGS"
10629
10630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10635 then :
10636 printf %s "(cached) " >&6
10637 else $as_nop
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 int i;
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"
10643 then :
10644 xorg_cv_cc_flag_unknown_warning_option=yes
10645 else $as_nop
10646 xorg_cv_cc_flag_unknown_warning_option=no
10647 fi
10648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10649 fi
10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10651 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10653 CFLAGS="$xorg_testset_save_CFLAGS"
10654 fi
10655
10656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10659 fi
10660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10663 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10664 then :
10665 printf %s "(cached) " >&6
10666 else $as_nop
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 int i;
10670 _ACEOF
10671 if ac_fn_c_try_compile "$LINENO"
10672 then :
10673 xorg_cv_cc_flag_unused_command_line_argument=yes
10674 else $as_nop
10675 xorg_cv_cc_flag_unused_command_line_argument=no
10676 fi
10677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10678 fi
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10682 CFLAGS="$xorg_testset_save_CFLAGS"
10683 fi
10684
10685 found="no"
10686
10687 if test $found = "no" ; then
10688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10690 fi
10691
10692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10694 fi
10695
10696 CFLAGS="$CFLAGS -pedantic"
10697
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10699 printf %s "checking if $CC supports -pedantic... " >&6; }
10700 cacheid=xorg_cv_cc_flag__pedantic
10701 if eval test \${$cacheid+y}
10702 then :
10703 printf %s "(cached) " >&6
10704 else $as_nop
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 int i;
10708 int
10709 main (void)
10710 {
10711
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"
10717 then :
10718 eval $cacheid=yes
10719 else $as_nop
10720 eval $cacheid=no
10721 fi
10722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10723 conftest$ac_exeext conftest.$ac_ext
10724 fi
10725
10726
10727 CFLAGS="$xorg_testset_save_CFLAGS"
10728
10729 eval supported=\$$cacheid
10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10731 printf "%s\n" "$supported" >&6; }
10732 if test "$supported" = "yes" ; then
10733 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10734 found="yes"
10735 fi
10736 fi
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752 xorg_testset_save_CFLAGS="$CFLAGS"
10753
10754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10759 then :
10760 printf %s "(cached) " >&6
10761 else $as_nop
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 int i;
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"
10767 then :
10768 xorg_cv_cc_flag_unknown_warning_option=yes
10769 else $as_nop
10770 xorg_cv_cc_flag_unknown_warning_option=no
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10773 fi
10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10775 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10777 CFLAGS="$xorg_testset_save_CFLAGS"
10778 fi
10779
10780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783 fi
10784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10786 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10787 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10788 then :
10789 printf %s "(cached) " >&6
10790 else $as_nop
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 int i;
10794 _ACEOF
10795 if ac_fn_c_try_compile "$LINENO"
10796 then :
10797 xorg_cv_cc_flag_unused_command_line_argument=yes
10798 else $as_nop
10799 xorg_cv_cc_flag_unused_command_line_argument=no
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10802 fi
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10806 CFLAGS="$xorg_testset_save_CFLAGS"
10807 fi
10808
10809 found="no"
10810
10811 if test $found = "no" ; then
10812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10814 fi
10815
10816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10818 fi
10819
10820 CFLAGS="$CFLAGS -Werror"
10821
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10823 printf %s "checking if $CC supports -Werror... " >&6; }
10824 cacheid=xorg_cv_cc_flag__Werror
10825 if eval test \${$cacheid+y}
10826 then :
10827 printf %s "(cached) " >&6
10828 else $as_nop
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 int i;
10832 int
10833 main (void)
10834 {
10835
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"
10841 then :
10842 eval $cacheid=yes
10843 else $as_nop
10844 eval $cacheid=no
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10847 conftest$ac_exeext conftest.$ac_ext
10848 fi
10849
10850
10851 CFLAGS="$xorg_testset_save_CFLAGS"
10852
10853 eval supported=\$$cacheid
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10855 printf "%s\n" "$supported" >&6; }
10856 if test "$supported" = "yes" ; then
10857 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10858 found="yes"
10859 fi
10860 fi
10861
10862 if test $found = "no" ; then
10863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10865 fi
10866
10867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10869 fi
10870
10871 CFLAGS="$CFLAGS -errwarn"
10872
10873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10874 printf %s "checking if $CC supports -errwarn... " >&6; }
10875 cacheid=xorg_cv_cc_flag__errwarn
10876 if eval test \${$cacheid+y}
10877 then :
10878 printf %s "(cached) " >&6
10879 else $as_nop
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10882 int i;
10883 int
10884 main (void)
10885 {
10886
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"
10892 then :
10893 eval $cacheid=yes
10894 else $as_nop
10895 eval $cacheid=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10898 conftest$ac_exeext conftest.$ac_ext
10899 fi
10900
10901
10902 CFLAGS="$xorg_testset_save_CFLAGS"
10903
10904 eval supported=\$$cacheid
10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10906 printf "%s\n" "$supported" >&6; }
10907 if test "$supported" = "yes" ; then
10908 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10909 found="yes"
10910 fi
10911 fi
10912
10913
10914
10915 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10916 # activate it with -Werror, so we add it here explicitly.
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 xorg_testset_save_CFLAGS="$CFLAGS"
10931
10932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10937 then :
10938 printf %s "(cached) " >&6
10939 else $as_nop
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 int i;
10943 _ACEOF
10944 if ac_fn_c_try_compile "$LINENO"
10945 then :
10946 xorg_cv_cc_flag_unknown_warning_option=yes
10947 else $as_nop
10948 xorg_cv_cc_flag_unknown_warning_option=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10951 fi
10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10955 CFLAGS="$xorg_testset_save_CFLAGS"
10956 fi
10957
10958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10961 fi
10962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10966 then :
10967 printf %s "(cached) " >&6
10968 else $as_nop
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10971 int i;
10972 _ACEOF
10973 if ac_fn_c_try_compile "$LINENO"
10974 then :
10975 xorg_cv_cc_flag_unused_command_line_argument=yes
10976 else $as_nop
10977 xorg_cv_cc_flag_unused_command_line_argument=no
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10980 fi
10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10984 CFLAGS="$xorg_testset_save_CFLAGS"
10985 fi
10986
10987 found="no"
10988
10989 if test $found = "no" ; then
10990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10992 fi
10993
10994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10996 fi
10997
10998 CFLAGS="$CFLAGS -Werror=attributes"
10999
11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11001 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11002 cacheid=xorg_cv_cc_flag__Werror_attributes
11003 if eval test \${$cacheid+y}
11004 then :
11005 printf %s "(cached) " >&6
11006 else $as_nop
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 int i;
11010 int
11011 main (void)
11012 {
11013
11014 ;
11015 return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"
11019 then :
11020 eval $cacheid=yes
11021 else $as_nop
11022 eval $cacheid=no
11023 fi
11024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11025 conftest$ac_exeext conftest.$ac_ext
11026 fi
11027
11028
11029 CFLAGS="$xorg_testset_save_CFLAGS"
11030
11031 eval supported=\$$cacheid
11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11033 printf "%s\n" "$supported" >&6; }
11034 if test "$supported" = "yes" ; then
11035 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11036 found="yes"
11037 fi
11038 fi
11039
11040
11041
11042 if test "x$STRICT_COMPILE" = "xyes"; then
11043 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11044 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11045 fi
11046
11047
11048
11049
11050
11051
11052 cat >>confdefs.h <<_ACEOF
11053 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11054 _ACEOF
11055
11056 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11057 if test "x$PVM" = "x"; then
11058 PVM="0"
11059 fi
11060
11061 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11062
11063 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11064 if test "x$PVP" = "x"; then
11065 PVP="0"
11066 fi
11067
11068 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11069
11070
11071
11072 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11073 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11074 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11075 touch \$(top_srcdir)/ChangeLog; \
11076 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11077
11078
11079
11080
11081 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11082 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11083 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11084 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11085 touch \$(top_srcdir)/INSTALL; \
11086 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11087
11088
11089
11090
11091
11092
11093 case $host_os in
11094 solaris*)
11095 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11096 # check for a man page file found in later versions that use
11097 # traditional section numbers instead
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11099 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11100 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11101 then :
11102 printf %s "(cached) " >&6
11103 else $as_nop
11104 test "$cross_compiling" = yes &&
11105 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11106 if test -r "/usr/share/man/man7/attributes.7"; then
11107 ac_cv_file__usr_share_man_man7_attributes_7=yes
11108 else
11109 ac_cv_file__usr_share_man_man7_attributes_7=no
11110 fi
11111 fi
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11113 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11114 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11115 then :
11116 SYSV_MAN_SECTIONS=false
11117 else $as_nop
11118 SYSV_MAN_SECTIONS=true
11119 fi
11120
11121 ;;
11122 *) SYSV_MAN_SECTIONS=false ;;
11123 esac
11124
11125 if test x$APP_MAN_SUFFIX = x ; then
11126 APP_MAN_SUFFIX=1
11127 fi
11128 if test x$APP_MAN_DIR = x ; then
11129 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11130 fi
11131
11132 if test x$LIB_MAN_SUFFIX = x ; then
11133 LIB_MAN_SUFFIX=3
11134 fi
11135 if test x$LIB_MAN_DIR = x ; then
11136 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11137 fi
11138
11139 if test x$FILE_MAN_SUFFIX = x ; then
11140 case $SYSV_MAN_SECTIONS in
11141 true) FILE_MAN_SUFFIX=4 ;;
11142 *) FILE_MAN_SUFFIX=5 ;;
11143 esac
11144 fi
11145 if test x$FILE_MAN_DIR = x ; then
11146 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11147 fi
11148
11149 if test x$MISC_MAN_SUFFIX = x ; then
11150 case $SYSV_MAN_SECTIONS in
11151 true) MISC_MAN_SUFFIX=5 ;;
11152 *) MISC_MAN_SUFFIX=7 ;;
11153 esac
11154 fi
11155 if test x$MISC_MAN_DIR = x ; then
11156 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11157 fi
11158
11159 if test x$DRIVER_MAN_SUFFIX = x ; then
11160 case $SYSV_MAN_SECTIONS in
11161 true) DRIVER_MAN_SUFFIX=7 ;;
11162 *) DRIVER_MAN_SUFFIX=4 ;;
11163 esac
11164 fi
11165 if test x$DRIVER_MAN_DIR = x ; then
11166 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11167 fi
11168
11169 if test x$ADMIN_MAN_SUFFIX = x ; then
11170 case $SYSV_MAN_SECTIONS in
11171 true) ADMIN_MAN_SUFFIX=1m ;;
11172 *) ADMIN_MAN_SUFFIX=8 ;;
11173 esac
11174 fi
11175 if test x$ADMIN_MAN_DIR = x ; then
11176 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11177 fi
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193 XORG_MAN_PAGE="X Version 11"
11194
11195 MAN_SUBSTS="\
11196 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11197 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11198 -e 's|__xservername__|Xorg|g' \
11199 -e 's|__xconfigfile__|xorg.conf|g' \
11200 -e 's|__projectroot__|\$(prefix)|g' \
11201 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11202 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11203 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11204 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11205 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11206 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11207 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11208
11209
11210
11211 # Check whether --enable-silent-rules was given.
11212 if test ${enable_silent_rules+y}
11213 then :
11214 enableval=$enable_silent_rules;
11215 fi
11216
11217 case $enable_silent_rules in # (((
11218 yes) AM_DEFAULT_VERBOSITY=0;;
11219 no) AM_DEFAULT_VERBOSITY=1;;
11220 *) AM_DEFAULT_VERBOSITY=0;;
11221 esac
11222 am_make=${MAKE-make}
11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11224 printf %s "checking whether $am_make supports nested variables... " >&6; }
11225 if test ${am_cv_make_support_nested_variables+y}
11226 then :
11227 printf %s "(cached) " >&6
11228 else $as_nop
11229 if printf "%s\n" 'TRUE=$(BAR$(V))
11230 BAR0=false
11231 BAR1=true
11232 V=1
11233 am__doit:
11234 @$(TRUE)
11235 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11236 am_cv_make_support_nested_variables=yes
11237 else
11238 am_cv_make_support_nested_variables=no
11239 fi
11240 fi
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11242 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11243 if test $am_cv_make_support_nested_variables = yes; then
11244 AM_V='$(V)'
11245 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11246 else
11247 AM_V=$AM_DEFAULT_VERBOSITY
11248 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11249 fi
11250 AM_BACKSLASH='\'
11251
11252
11253
11254 ac_ext=c
11255 ac_cpp='$CPP $CPPFLAGS'
11256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11260 printf %s "checking how to run the C preprocessor... " >&6; }
11261 # On Suns, sometimes $CPP names a directory.
11262 if test -n "$CPP" && test -d "$CPP"; then
11263 CPP=
11264 fi
11265 if test -z "$CPP"; then
11266 if test ${ac_cv_prog_CPP+y}
11267 then :
11268 printf %s "(cached) " >&6
11269 else $as_nop
11270 # Double quotes because $CC needs to be expanded
11271 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11272 do
11273 ac_preproc_ok=false
11274 for ac_c_preproc_warn_flag in '' yes
11275 do
11276 # Use a header file that comes with gcc, so configuring glibc
11277 # with a fresh cross-compiler works.
11278 # On the NeXT, cc -E runs the code through the compiler's parser,
11279 # not just through cpp. "Syntax error" is here to catch this case.
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 #include <limits.h>
11283 Syntax error
11284 _ACEOF
11285 if ac_fn_c_try_cpp "$LINENO"
11286 then :
11287
11288 else $as_nop
11289 # Broken: fails on valid input.
11290 continue
11291 fi
11292 rm -f conftest.err conftest.i conftest.$ac_ext
11293
11294 # OK, works on sane cases. Now check whether nonexistent headers
11295 # can be detected and how.
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298 #include <ac_nonexistent.h>
11299 _ACEOF
11300 if ac_fn_c_try_cpp "$LINENO"
11301 then :
11302 # Broken: success on invalid input.
11303 continue
11304 else $as_nop
11305 # Passes both tests.
11306 ac_preproc_ok=:
11307 break
11308 fi
11309 rm -f conftest.err conftest.i conftest.$ac_ext
11310
11311 done
11312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11313 rm -f conftest.i conftest.err conftest.$ac_ext
11314 if $ac_preproc_ok
11315 then :
11316 break
11317 fi
11318
11319 done
11320 ac_cv_prog_CPP=$CPP
11321
11322 fi
11323 CPP=$ac_cv_prog_CPP
11324 else
11325 ac_cv_prog_CPP=$CPP
11326 fi
11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11328 printf "%s\n" "$CPP" >&6; }
11329 ac_preproc_ok=false
11330 for ac_c_preproc_warn_flag in '' yes
11331 do
11332 # Use a header file that comes with gcc, so configuring glibc
11333 # with a fresh cross-compiler works.
11334 # On the NeXT, cc -E runs the code through the compiler's parser,
11335 # not just through cpp. "Syntax error" is here to catch this case.
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <limits.h>
11339 Syntax error
11340 _ACEOF
11341 if ac_fn_c_try_cpp "$LINENO"
11342 then :
11343
11344 else $as_nop
11345 # Broken: fails on valid input.
11346 continue
11347 fi
11348 rm -f conftest.err conftest.i conftest.$ac_ext
11349
11350 # OK, works on sane cases. Now check whether nonexistent headers
11351 # can be detected and how.
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <ac_nonexistent.h>
11355 _ACEOF
11356 if ac_fn_c_try_cpp "$LINENO"
11357 then :
11358 # Broken: success on invalid input.
11359 continue
11360 else $as_nop
11361 # Passes both tests.
11362 ac_preproc_ok=:
11363 break
11364 fi
11365 rm -f conftest.err conftest.i conftest.$ac_ext
11366
11367 done
11368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11369 rm -f conftest.i conftest.err conftest.$ac_ext
11370 if $ac_preproc_ok
11371 then :
11372
11373 else $as_nop
11374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11375 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11376 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11377 See \`config.log' for more details" "$LINENO" 5; }
11378 fi
11379
11380 ac_ext=c
11381 ac_cpp='$CPP $CPPFLAGS'
11382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11385
11386
11387
11388 if test -n "$ac_tool_prefix"; then
11389 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
11390 set dummy ${ac_tool_prefix}cpp; ac_word=$2
11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 printf %s "checking for $ac_word... " >&6; }
11393 if test ${ac_cv_path_RAWCPP+y}
11394 then :
11395 printf %s "(cached) " >&6
11396 else $as_nop
11397 case $RAWCPP in
11398 [\\/]* | ?:[\\/]*)
11399 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
11400 ;;
11401 *)
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11404 for as_dir in $as_dummy
11405 do
11406 IFS=$as_save_IFS
11407 case $as_dir in #(((
11408 '') as_dir=./ ;;
11409 */) ;;
11410 *) as_dir=$as_dir/ ;;
11411 esac
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11414 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 ;;
11423 esac
11424 fi
11425 RAWCPP=$ac_cv_path_RAWCPP
11426 if test -n "$RAWCPP"; then
11427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
11428 printf "%s\n" "$RAWCPP" >&6; }
11429 else
11430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 printf "%s\n" "no" >&6; }
11432 fi
11433
11434
11435 fi
11436 if test -z "$ac_cv_path_RAWCPP"; then
11437 ac_pt_RAWCPP=$RAWCPP
11438 # Extract the first word of "cpp", so it can be a program name with args.
11439 set dummy cpp; ac_word=$2
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 printf %s "checking for $ac_word... " >&6; }
11442 if test ${ac_cv_path_ac_pt_RAWCPP+y}
11443 then :
11444 printf %s "(cached) " >&6
11445 else $as_nop
11446 case $ac_pt_RAWCPP in
11447 [\\/]* | ?:[\\/]*)
11448 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
11449 ;;
11450 *)
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11453 for as_dir in $as_dummy
11454 do
11455 IFS=$as_save_IFS
11456 case $as_dir in #(((
11457 '') as_dir=./ ;;
11458 */) ;;
11459 *) as_dir=$as_dir/ ;;
11460 esac
11461 for ac_exec_ext in '' $ac_executable_extensions; do
11462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11463 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11465 break 2
11466 fi
11467 done
11468 done
11469 IFS=$as_save_IFS
11470
11471 ;;
11472 esac
11473 fi
11474 ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
11475 if test -n "$ac_pt_RAWCPP"; then
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
11477 printf "%s\n" "$ac_pt_RAWCPP" >&6; }
11478 else
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 printf "%s\n" "no" >&6; }
11481 fi
11482
11483 if test "x$ac_pt_RAWCPP" = x; then
11484 RAWCPP="${CPP}"
11485 else
11486 case $cross_compiling:$ac_tool_warned in
11487 yes:)
11488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11489 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11490 ac_tool_warned=yes ;;
11491 esac
11492 RAWCPP=$ac_pt_RAWCPP
11493 fi
11494 else
11495 RAWCPP="$ac_cv_path_RAWCPP"
11496 fi
11497
11498
11499 # Check for flag to avoid builtin definitions - assumes unix is predefined,
11500 # which is not the best choice for supporting other OS'es, but covers most
11501 # of the ones we need for now.
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
11503 printf %s "checking if $RAWCPP requires -undef... " >&6; }
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 Does cpp redefine unix ?
11507 _ACEOF
11508 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 printf "%s\n" "no" >&6; }
11511 else
11512 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11513 RAWCPPFLAGS=-undef
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515 printf "%s\n" "yes" >&6; }
11516 # under Cygwin unix is still defined even with -undef
11517 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11518 RAWCPPFLAGS="-undef -ansi"
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
11520 printf "%s\n" "yes, with -ansi" >&6; }
11521 else
11522 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
11523 fi
11524 fi
11525 rm -f conftest.$ac_ext
11526
11527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
11528 printf %s "checking if $RAWCPP requires -traditional... " >&6; }
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531 Does cpp preserve "whitespace"?
11532 _ACEOF
11533 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 printf "%s\n" "no" >&6; }
11536 else
11537 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
11538 TRADITIONALCPPFLAGS="-traditional"
11539 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 printf "%s\n" "yes" >&6; }
11542 else
11543 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
11544 fi
11545 fi
11546 rm -f conftest.$ac_ext
11547
11548
11549
11550 CPP_PROGRAM=${RAWCPP}
11551
11552
11553 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11554 if test "x$ac_cv_func_mkstemp" = xyes
11555 then :
11556 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11557
11558 fi
11559
11560
11561 # Extract the first word of "perl", so it can be a program name with args.
11562 set dummy perl; ac_word=$2
11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 printf %s "checking for $ac_word... " >&6; }
11565 if test ${ac_cv_prog_HAS_PERL+y}
11566 then :
11567 printf %s "(cached) " >&6
11568 else $as_nop
11569 if test -n "$HAS_PERL"; then
11570 ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11574 do
11575 IFS=$as_save_IFS
11576 case $as_dir in #(((
11577 '') as_dir=./ ;;
11578 */) ;;
11579 *) as_dir=$as_dir/ ;;
11580 esac
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11583 ac_cv_prog_HAS_PERL="yes"
11584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11585 break 2
11586 fi
11587 done
11588 done
11589 IFS=$as_save_IFS
11590
11591 fi
11592 fi
11593 HAS_PERL=$ac_cv_prog_HAS_PERL
11594 if test -n "$HAS_PERL"; then
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
11596 printf "%s\n" "$HAS_PERL" >&6; }
11597 else
11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 printf "%s\n" "no" >&6; }
11600 fi
11601
11602
11603 if test "x$HAS_PERL" = xyes; then
11604 HAS_PERL_TRUE=
11605 HAS_PERL_FALSE='#'
11606 else
11607 HAS_PERL_TRUE='#'
11608 HAS_PERL_FALSE=
11609 fi
11610
11611
11612
11613
11614 DEFAULT_XCONFDIR="${libdir}/X11/config"
11615
11616 # Check whether --with-config-dir was given.
11617 if test ${with_config_dir+y}
11618 then :
11619 withval=$with_config_dir; XCONFDIR="$withval"
11620 else $as_nop
11621 XCONFDIR="$DEFAULT_XCONFDIR"
11622 fi
11623
11624
11625
11626 DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
11627
11628 # Check whether --with-script-preproc-cmd was given.
11629 if test ${with_script_preproc_cmd+y}
11630 then :
11631 withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
11632 else $as_nop
11633 PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"
11634 fi
11635
11636
11637
11638 DEFAULT_ARCMD="ar clq"
11639
11640 # Check whether --with-create-lib-cmd was given.
11641 if test ${with_create_lib_cmd+y}
11642 then :
11643 withval=$with_create_lib_cmd; ARCMD="$withval"
11644 else $as_nop
11645 ARCMD="$DEFAULT_ARCMD"
11646 fi
11647
11648
11649
11650 DEFAULT_RANLIB="ranlib"
11651
11652 # Check whether --with-clean-lib-cmd was given.
11653 if test ${with_clean_lib_cmd+y}
11654 then :
11655 withval=$with_clean_lib_cmd; RANLIB="$withval"
11656 else $as_nop
11657 RANLIB="$DEFAULT_RANLIB"
11658 fi
11659
11660
11661
11662 # Check whether --enable-revpath was given.
11663 if test ${enable_revpath+y}
11664 then :
11665 enableval=$enable_revpath; BUILD_REVPATH="$enableval"
11666 else $as_nop
11667 BUILD_REVPATH=yes
11668 fi
11669
11670 if test "x$BUILD_REVPATH" = xyes; then
11671 BUILD_REVPATH_TRUE=
11672 BUILD_REVPATH_FALSE='#'
11673 else
11674 BUILD_REVPATH_TRUE='#'
11675 BUILD_REVPATH_FALSE=
11676 fi
11677
11678
11679 # Check whether --enable-makeg was given.
11680 if test ${enable_makeg+y}
11681 then :
11682 enableval=$enable_makeg; BUILD_MAKEG="$enableval"
11683 else $as_nop
11684 BUILD_MAKEG=yes
11685 fi
11686
11687 if test "x$BUILD_MAKEG" = xyes; then
11688 BUILD_MAKEG_TRUE=
11689 BUILD_MAKEG_FALSE='#'
11690 else
11691 BUILD_MAKEG_TRUE='#'
11692 BUILD_MAKEG_FALSE=
11693 fi
11694
11695
11696 # Check whether --enable-xmkmf was given.
11697 if test ${enable_xmkmf+y}
11698 then :
11699 enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
11700 else $as_nop
11701 BUILD_XMKMF=yes
11702 fi
11703
11704 if test "x$BUILD_XMKMF" = xyes; then
11705 BUILD_XMKMF_TRUE=
11706 BUILD_XMKMF_FALSE='#'
11707 else
11708 BUILD_XMKMF_TRUE='#'
11709 BUILD_XMKMF_FALSE=
11710 fi
11711
11712
11713 # Check whether --enable-ccmakedep was given.
11714 if test ${enable_ccmakedep+y}
11715 then :
11716 enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
11717 else $as_nop
11718 BUILD_CCMAKEDEP=yes
11719 fi
11720
11721 if test "x$BUILD_CCMAKEDEP" = xyes; then
11722 BUILD_CCMAKEDEP_TRUE=
11723 BUILD_CCMAKEDEP_FALSE='#'
11724 else
11725 BUILD_CCMAKEDEP_TRUE='#'
11726 BUILD_CCMAKEDEP_FALSE=
11727 fi
11728
11729
11730 # Check whether --enable-mergelib was given.
11731 if test ${enable_mergelib+y}
11732 then :
11733 enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
11734 else $as_nop
11735 BUILD_MERGELIB=yes
11736 fi
11737
11738 if test "x$BUILD_MERGELIB" = xyes; then
11739 BUILD_MERGELIB_TRUE=
11740 BUILD_MERGELIB_FALSE='#'
11741 else
11742 BUILD_MERGELIB_TRUE='#'
11743 BUILD_MERGELIB_FALSE=
11744 fi
11745
11746
11747 # Check whether --enable-mkdirhier was given.
11748 if test ${enable_mkdirhier+y}
11749 then :
11750 enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
11751 else $as_nop
11752 BUILD_MKDIRHIER=yes
11753 fi
11754
11755 if test "x$BUILD_MKDIRHIER" = xyes; then
11756 BUILD_MKDIRHIER_TRUE=
11757 BUILD_MKDIRHIER_FALSE='#'
11758 else
11759 BUILD_MKDIRHIER_TRUE='#'
11760 BUILD_MKDIRHIER_FALSE=
11761 fi
11762
11763
11764 # Check whether --enable-cleanlinks was given.
11765 if test ${enable_cleanlinks+y}
11766 then :
11767 enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
11768 else $as_nop
11769 BUILD_CLEANLINKS=yes
11770 fi
11771
11772 if test "x$BUILD_CLEANLINKS" = xyes; then
11773 BUILD_CLEANLINKS_TRUE=
11774 BUILD_CLEANLINKS_FALSE='#'
11775 else
11776 BUILD_CLEANLINKS_TRUE='#'
11777 BUILD_CLEANLINKS_FALSE=
11778 fi
11779
11780
11781 # Check whether --enable-mkhtmlindex was given.
11782 if test ${enable_mkhtmlindex+y}
11783 then :
11784 enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
11785 else $as_nop
11786 BUILD_MKHTMLINDEX=yes
11787 fi
11788
11789 if test "x$BUILD_MKHTMLINDEX" = xyes; then
11790 BUILD_MKHTMLINDEX_TRUE=
11791 BUILD_MKHTMLINDEX_FALSE='#'
11792 else
11793 BUILD_MKHTMLINDEX_TRUE='#'
11794 BUILD_MKHTMLINDEX_FALSE=
11795 fi
11796
11797
11798 # Checks for pkg-config packages
11799
11800 pkg_failed=no
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
11802 printf %s "checking for XPROTO... " >&6; }
11803
11804 if test -n "$XPROTO_CFLAGS"; then
11805 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
11806 elif test -n "$PKG_CONFIG"; then
11807 if test -n "$PKG_CONFIG" && \
11808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11809 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11810 ac_status=$?
11811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812 test $ac_status = 0; }; then
11813 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11814 test "x$?" != "x0" && pkg_failed=yes
11815 else
11816 pkg_failed=yes
11817 fi
11818 else
11819 pkg_failed=untried
11820 fi
11821 if test -n "$XPROTO_LIBS"; then
11822 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
11823 elif test -n "$PKG_CONFIG"; then
11824 if test -n "$PKG_CONFIG" && \
11825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11826 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11827 ac_status=$?
11828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11829 test $ac_status = 0; }; then
11830 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11831 test "x$?" != "x0" && pkg_failed=yes
11832 else
11833 pkg_failed=yes
11834 fi
11835 else
11836 pkg_failed=untried
11837 fi
11838
11839
11840
11841 if test $pkg_failed = yes; then
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 printf "%s\n" "no" >&6; }
11844
11845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11846 _pkg_short_errors_supported=yes
11847 else
11848 _pkg_short_errors_supported=no
11849 fi
11850 if test $_pkg_short_errors_supported = yes; then
11851 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
11852 else
11853 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
11854 fi
11855 # Put the nasty error message in config.log where it belongs
11856 echo "$XPROTO_PKG_ERRORS" >&5
11857
11858 as_fn_error $? "Package requirements (xproto) were not met:
11859
11860 $XPROTO_PKG_ERRORS
11861
11862 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11863 installed software in a non-standard prefix.
11864
11865 Alternatively, you may set the environment variables XPROTO_CFLAGS
11866 and XPROTO_LIBS to avoid the need to call pkg-config.
11867 See the pkg-config man page for more details." "$LINENO" 5
11868 elif test $pkg_failed = untried; then
11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 printf "%s\n" "no" >&6; }
11871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11872 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11873 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11874 is in your PATH or set the PKG_CONFIG environment variable to the full
11875 path to pkg-config.
11876
11877 Alternatively, you may set the environment variables XPROTO_CFLAGS
11878 and XPROTO_LIBS to avoid the need to call pkg-config.
11879 See the pkg-config man page for more details.
11880
11881 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11882 See \`config.log' for more details" "$LINENO" 5; }
11883 else
11884 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
11885 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
11886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887 printf "%s\n" "yes" >&6; }
11888
11889 fi
11890
11891 ac_config_files="$ac_config_files Makefile"
11892
11893 cat >confcache <<\_ACEOF
11894 # This file is a shell script that caches the results of configure
11895 # tests run on this system so they can be shared between configure
11896 # scripts and configure runs, see configure's option --config-cache.
11897 # It is not useful on other systems. If it contains results you don't
11898 # want to keep, you may remove or edit it.
11899 #
11900 # config.status only pays attention to the cache file if you give it
11901 # the --recheck option to rerun configure.
11902 #
11903 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11904 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11905 # following values.
11906
11907 _ACEOF
11908
11909 # The following way of writing the cache mishandles newlines in values,
11910 # but we know of no workaround that is simple, portable, and efficient.
11911 # So, we kill variables containing newlines.
11912 # Ultrix sh set writes to stderr and can't be redirected directly,
11913 # and sets the high bit in the cache file unless we assign to the vars.
11914 (
11915 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11916 eval ac_val=\$$ac_var
11917 case $ac_val in #(
11918 *${as_nl}*)
11919 case $ac_var in #(
11920 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11921 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11922 esac
11923 case $ac_var in #(
11924 _ | IFS | as_nl) ;; #(
11925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11926 *) { eval $ac_var=; unset $ac_var;} ;;
11927 esac ;;
11928 esac
11929 done
11930
11931 (set) 2>&1 |
11932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11933 *${as_nl}ac_space=\ *)
11934 # `set' does not quote correctly, so add quotes: double-quote
11935 # substitution turns \\\\ into \\, and sed turns \\ into \.
11936 sed -n \
11937 "s/'/'\\\\''/g;
11938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11939 ;; #(
11940 *)
11941 # `set' quotes correctly as required by POSIX, so do not add quotes.
11942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11943 ;;
11944 esac |
11945 sort
11946 ) |
11947 sed '
11948 /^ac_cv_env_/b end
11949 t clear
11950 :clear
11951 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11952 t end
11953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11954 :end' >>confcache
11955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11956 if test -w "$cache_file"; then
11957 if test "x$cache_file" != "x/dev/null"; then
11958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11959 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11960 if test ! -f "$cache_file" || test -h "$cache_file"; then
11961 cat confcache >"$cache_file"
11962 else
11963 case $cache_file in #(
11964 */* | ?:*)
11965 mv -f confcache "$cache_file"$$ &&
11966 mv -f "$cache_file"$$ "$cache_file" ;; #(
11967 *)
11968 mv -f confcache "$cache_file" ;;
11969 esac
11970 fi
11971 fi
11972 else
11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11974 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11975 fi
11976 fi
11977 rm -f confcache
11978
11979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11980 # Let make expand exec_prefix.
11981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11982
11983 DEFS=-DHAVE_CONFIG_H
11984
11985 ac_libobjs=
11986 ac_ltlibobjs=
11987 U=
11988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11989 # 1. Remove the extension, and $U if already installed.
11990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11991 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11993 # will be set to the directory where LIBOBJS objects are built.
11994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11996 done
11997 LIBOBJS=$ac_libobjs
11998
11999 LTLIBOBJS=$ac_ltlibobjs
12000
12001
12002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12003 printf %s "checking that generated files are newer than configure... " >&6; }
12004 if test -n "$am_sleep_pid"; then
12005 # Hide warnings about reused PIDs.
12006 wait $am_sleep_pid 2>/dev/null
12007 fi
12008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12009 printf "%s\n" "done" >&6; }
12010 if test -n "$EXEEXT"; then
12011 am__EXEEXT_TRUE=
12012 am__EXEEXT_FALSE='#'
12013 else
12014 am__EXEEXT_TRUE='#'
12015 am__EXEEXT_FALSE=
12016 fi
12017
12018 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12019 as_fn_error $? "conditional \"AMDEP\" was never defined.
12020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12021 fi
12022 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12023 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12025 fi
12026 if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
12027 as_fn_error $? "conditional \"HAS_PERL\" was never defined.
12028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12029 fi
12030 if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
12031 as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
12032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12033 fi
12034 if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
12035 as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
12036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12037 fi
12038 if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
12039 as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
12040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12041 fi
12042 if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
12043 as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
12044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12045 fi
12046 if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
12047 as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
12048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12049 fi
12050 if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
12051 as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
12052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12053 fi
12054 if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
12055 as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
12056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12057 fi
12058 if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
12059 as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
12060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12061 fi
12062
12063 : "${CONFIG_STATUS=./config.status}"
12064 ac_write_fail=0
12065 ac_clean_files_save=$ac_clean_files
12066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12068 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12069 as_write_fail=0
12070 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12071 #! $SHELL
12072 # Generated by $as_me.
12073 # Run this file to recreate the current configuration.
12074 # Compiler output produced by configure, useful for debugging
12075 # configure, is in config.log if it exists.
12076
12077 debug=false
12078 ac_cs_recheck=false
12079 ac_cs_silent=false
12080
12081 SHELL=\${CONFIG_SHELL-$SHELL}
12082 export SHELL
12083 _ASEOF
12084 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12085 ## -------------------- ##
12086 ## M4sh Initialization. ##
12087 ## -------------------- ##
12088
12089 # Be more Bourne compatible
12090 DUALCASE=1; export DUALCASE # for MKS sh
12091 as_nop=:
12092 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12093 then :
12094 emulate sh
12095 NULLCMD=:
12096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12097 # is contrary to our usage. Disable this feature.
12098 alias -g '${1+"$@"}'='"$@"'
12099 setopt NO_GLOB_SUBST
12100 else $as_nop
12101 case `(set -o) 2>/dev/null` in #(
12102 *posix*) :
12103 set -o posix ;; #(
12104 *) :
12105 ;;
12106 esac
12107 fi
12108
12109
12110
12111 # Reset variables that may have inherited troublesome values from
12112 # the environment.
12113
12114 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12115 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12116 # side effect of setting IFS to empty, thus disabling word splitting.)
12117 # Quoting is to prevent editors from complaining about space-tab.
12118 as_nl='
12119 '
12120 export as_nl
12121 IFS=" "" $as_nl"
12122
12123 PS1='$ '
12124 PS2='> '
12125 PS4='+ '
12126
12127 # Ensure predictable behavior from utilities with locale-dependent output.
12128 LC_ALL=C
12129 export LC_ALL
12130 LANGUAGE=C
12131 export LANGUAGE
12132
12133 # We cannot yet rely on "unset" to work, but we need these variables
12134 # to be unset--not just set to an empty or harmless value--now, to
12135 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12136 # also avoids known problems related to "unset" and subshell syntax
12137 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12138 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12139 do eval test \${$as_var+y} \
12140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12141 done
12142
12143 # Ensure that fds 0, 1, and 2 are open.
12144 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12145 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12146 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12147
12148 # The user is always right.
12149 if ${PATH_SEPARATOR+false} :; then
12150 PATH_SEPARATOR=:
12151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12153 PATH_SEPARATOR=';'
12154 }
12155 fi
12156
12157
12158 # Find who we are. Look in the path if we contain no directory separator.
12159 as_myself=
12160 case $0 in #((
12161 *[\\/]* ) as_myself=$0 ;;
12162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165 IFS=$as_save_IFS
12166 case $as_dir in #(((
12167 '') as_dir=./ ;;
12168 */) ;;
12169 *) as_dir=$as_dir/ ;;
12170 esac
12171 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12172 done
12173 IFS=$as_save_IFS
12174
12175 ;;
12176 esac
12177 # We did not find ourselves, most probably we were run as `sh COMMAND'
12178 # in which case we are not to be found in the path.
12179 if test "x$as_myself" = x; then
12180 as_myself=$0
12181 fi
12182 if test ! -f "$as_myself"; then
12183 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12184 exit 1
12185 fi
12186
12187
12188
12189 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12190 # ----------------------------------------
12191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12193 # script with STATUS, using 1 if that was 0.
12194 as_fn_error ()
12195 {
12196 as_status=$1; test $as_status -eq 0 && as_status=1
12197 if test "$4"; then
12198 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12200 fi
12201 printf "%s\n" "$as_me: error: $2" >&2
12202 as_fn_exit $as_status
12203 } # as_fn_error
12204
12205
12206
12207 # as_fn_set_status STATUS
12208 # -----------------------
12209 # Set $? to STATUS, without forking.
12210 as_fn_set_status ()
12211 {
12212 return $1
12213 } # as_fn_set_status
12214
12215 # as_fn_exit STATUS
12216 # -----------------
12217 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12218 as_fn_exit ()
12219 {
12220 set +e
12221 as_fn_set_status $1
12222 exit $1
12223 } # as_fn_exit
12224
12225 # as_fn_unset VAR
12226 # ---------------
12227 # Portably unset VAR.
12228 as_fn_unset ()
12229 {
12230 { eval $1=; unset $1;}
12231 }
12232 as_unset=as_fn_unset
12233
12234 # as_fn_append VAR VALUE
12235 # ----------------------
12236 # Append the text in VALUE to the end of the definition contained in VAR. Take
12237 # advantage of any shell optimizations that allow amortized linear growth over
12238 # repeated appends, instead of the typical quadratic growth present in naive
12239 # implementations.
12240 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12241 then :
12242 eval 'as_fn_append ()
12243 {
12244 eval $1+=\$2
12245 }'
12246 else $as_nop
12247 as_fn_append ()
12248 {
12249 eval $1=\$$1\$2
12250 }
12251 fi # as_fn_append
12252
12253 # as_fn_arith ARG...
12254 # ------------------
12255 # Perform arithmetic evaluation on the ARGs, and store the result in the
12256 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12257 # must be portable across $(()) and expr.
12258 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12259 then :
12260 eval 'as_fn_arith ()
12261 {
12262 as_val=$(( $* ))
12263 }'
12264 else $as_nop
12265 as_fn_arith ()
12266 {
12267 as_val=`expr "$@" || test $? -eq 1`
12268 }
12269 fi # as_fn_arith
12270
12271
12272 if expr a : '\(a\)' >/dev/null 2>&1 &&
12273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12274 as_expr=expr
12275 else
12276 as_expr=false
12277 fi
12278
12279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12280 as_basename=basename
12281 else
12282 as_basename=false
12283 fi
12284
12285 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12286 as_dirname=dirname
12287 else
12288 as_dirname=false
12289 fi
12290
12291 as_me=`$as_basename -- "$0" ||
12292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12293 X"$0" : 'X\(//\)$' \| \
12294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12295 printf "%s\n" X/"$0" |
12296 sed '/^.*\/\([^/][^/]*\)\/*$/{
12297 s//\1/
12298 q
12299 }
12300 /^X\/\(\/\/\)$/{
12301 s//\1/
12302 q
12303 }
12304 /^X\/\(\/\).*/{
12305 s//\1/
12306 q
12307 }
12308 s/.*/./; q'`
12309
12310 # Avoid depending upon Character Ranges.
12311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12314 as_cr_digits='0123456789'
12315 as_cr_alnum=$as_cr_Letters$as_cr_digits
12316
12317
12318 # Determine whether it's possible to make 'echo' print without a newline.
12319 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12320 # for compatibility with existing Makefiles.
12321 ECHO_C= ECHO_N= ECHO_T=
12322 case `echo -n x` in #(((((
12323 -n*)
12324 case `echo 'xy\c'` in
12325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12326 xy) ECHO_C='\c';;
12327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12328 ECHO_T=' ';;
12329 esac;;
12330 *)
12331 ECHO_N='-n';;
12332 esac
12333
12334 # For backward compatibility with old third-party macros, we provide
12335 # the shell variables $as_echo and $as_echo_n. New code should use
12336 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12337 as_echo='printf %s\n'
12338 as_echo_n='printf %s'
12339
12340 rm -f conf$$ conf$$.exe conf$$.file
12341 if test -d conf$$.dir; then
12342 rm -f conf$$.dir/conf$$.file
12343 else
12344 rm -f conf$$.dir
12345 mkdir conf$$.dir 2>/dev/null
12346 fi
12347 if (echo >conf$$.file) 2>/dev/null; then
12348 if ln -s conf$$.file conf$$ 2>/dev/null; then
12349 as_ln_s='ln -s'
12350 # ... but there are two gotchas:
12351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12353 # In both cases, we have to default to `cp -pR'.
12354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12355 as_ln_s='cp -pR'
12356 elif ln conf$$.file conf$$ 2>/dev/null; then
12357 as_ln_s=ln
12358 else
12359 as_ln_s='cp -pR'
12360 fi
12361 else
12362 as_ln_s='cp -pR'
12363 fi
12364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12365 rmdir conf$$.dir 2>/dev/null
12366
12367
12368 # as_fn_mkdir_p
12369 # -------------
12370 # Create "$as_dir" as a directory, including parents if necessary.
12371 as_fn_mkdir_p ()
12372 {
12373
12374 case $as_dir in #(
12375 -*) as_dir=./$as_dir;;
12376 esac
12377 test -d "$as_dir" || eval $as_mkdir_p || {
12378 as_dirs=
12379 while :; do
12380 case $as_dir in #(
12381 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12382 *) as_qdir=$as_dir;;
12383 esac
12384 as_dirs="'$as_qdir' $as_dirs"
12385 as_dir=`$as_dirname -- "$as_dir" ||
12386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12387 X"$as_dir" : 'X\(//\)[^/]' \| \
12388 X"$as_dir" : 'X\(//\)$' \| \
12389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12390 printf "%s\n" X"$as_dir" |
12391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12392 s//\1/
12393 q
12394 }
12395 /^X\(\/\/\)[^/].*/{
12396 s//\1/
12397 q
12398 }
12399 /^X\(\/\/\)$/{
12400 s//\1/
12401 q
12402 }
12403 /^X\(\/\).*/{
12404 s//\1/
12405 q
12406 }
12407 s/.*/./; q'`
12408 test -d "$as_dir" && break
12409 done
12410 test -z "$as_dirs" || eval "mkdir $as_dirs"
12411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12412
12413
12414 } # as_fn_mkdir_p
12415 if mkdir -p . 2>/dev/null; then
12416 as_mkdir_p='mkdir -p "$as_dir"'
12417 else
12418 test -d ./-p && rmdir ./-p
12419 as_mkdir_p=false
12420 fi
12421
12422
12423 # as_fn_executable_p FILE
12424 # -----------------------
12425 # Test if FILE is an executable regular file.
12426 as_fn_executable_p ()
12427 {
12428 test -f "$1" && test -x "$1"
12429 } # as_fn_executable_p
12430 as_test_x='test -x'
12431 as_executable_p=as_fn_executable_p
12432
12433 # Sed expression to map a string onto a valid CPP name.
12434 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12435
12436 # Sed expression to map a string onto a valid variable name.
12437 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12438
12439
12440 exec 6>&1
12441 ## ----------------------------------- ##
12442 ## Main body of $CONFIG_STATUS script. ##
12443 ## ----------------------------------- ##
12444 _ASEOF
12445 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12446
12447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448 # Save the log message, to keep $0 and so on meaningful, and to
12449 # report actual input values of CONFIG_FILES etc. instead of their
12450 # values after options handling.
12451 ac_log="
12452 This file was extended by imake $as_me 1.0.9, which was
12453 generated by GNU Autoconf 2.71. Invocation command line was
12454
12455 CONFIG_FILES = $CONFIG_FILES
12456 CONFIG_HEADERS = $CONFIG_HEADERS
12457 CONFIG_LINKS = $CONFIG_LINKS
12458 CONFIG_COMMANDS = $CONFIG_COMMANDS
12459 $ $0 $@
12460
12461 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12462 "
12463
12464 _ACEOF
12465
12466 case $ac_config_files in *"
12467 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12468 esac
12469
12470 case $ac_config_headers in *"
12471 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12472 esac
12473
12474
12475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12476 # Files that config.status was made for.
12477 config_files="$ac_config_files"
12478 config_headers="$ac_config_headers"
12479 config_commands="$ac_config_commands"
12480
12481 _ACEOF
12482
12483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484 ac_cs_usage="\
12485 \`$as_me' instantiates files and other configuration actions
12486 from templates according to the current configuration. Unless the files
12487 and actions are specified as TAGs, all are instantiated by default.
12488
12489 Usage: $0 [OPTION]... [TAG]...
12490
12491 -h, --help print this help, then exit
12492 -V, --version print version number and configuration settings, then exit
12493 --config print configuration, then exit
12494 -q, --quiet, --silent
12495 do not print progress messages
12496 -d, --debug don't remove temporary files
12497 --recheck update $as_me by reconfiguring in the same conditions
12498 --file=FILE[:TEMPLATE]
12499 instantiate the configuration file FILE
12500 --header=FILE[:TEMPLATE]
12501 instantiate the configuration header FILE
12502
12503 Configuration files:
12504 $config_files
12505
12506 Configuration headers:
12507 $config_headers
12508
12509 Configuration commands:
12510 $config_commands
12511
12512 Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/-/issues>."
12513
12514 _ACEOF
12515 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12516 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12518 ac_cs_config='$ac_cs_config_escaped'
12519 ac_cs_version="\\
12520 imake config.status 1.0.9
12521 configured by $0, generated by GNU Autoconf 2.71,
12522 with options \\"\$ac_cs_config\\"
12523
12524 Copyright (C) 2021 Free Software Foundation, Inc.
12525 This config.status script is free software; the Free Software Foundation
12526 gives unlimited permission to copy, distribute and modify it."
12527
12528 ac_pwd='$ac_pwd'
12529 srcdir='$srcdir'
12530 INSTALL='$INSTALL'
12531 MKDIR_P='$MKDIR_P'
12532 AWK='$AWK'
12533 test -n "\$AWK" || AWK=awk
12534 _ACEOF
12535
12536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12537 # The default lists apply if the user does not specify any file.
12538 ac_need_defaults=:
12539 while test $# != 0
12540 do
12541 case $1 in
12542 --*=?*)
12543 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12544 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12545 ac_shift=:
12546 ;;
12547 --*=)
12548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12549 ac_optarg=
12550 ac_shift=:
12551 ;;
12552 *)
12553 ac_option=$1
12554 ac_optarg=$2
12555 ac_shift=shift
12556 ;;
12557 esac
12558
12559 case $ac_option in
12560 # Handling of the options.
12561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12562 ac_cs_recheck=: ;;
12563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12564 printf "%s\n" "$ac_cs_version"; exit ;;
12565 --config | --confi | --conf | --con | --co | --c )
12566 printf "%s\n" "$ac_cs_config"; exit ;;
12567 --debug | --debu | --deb | --de | --d | -d )
12568 debug=: ;;
12569 --file | --fil | --fi | --f )
12570 $ac_shift
12571 case $ac_optarg in
12572 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12573 '') as_fn_error $? "missing file argument" ;;
12574 esac
12575 as_fn_append CONFIG_FILES " '$ac_optarg'"
12576 ac_need_defaults=false;;
12577 --header | --heade | --head | --hea )
12578 $ac_shift
12579 case $ac_optarg in
12580 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12581 esac
12582 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12583 ac_need_defaults=false;;
12584 --he | --h)
12585 # Conflict between --help and --header
12586 as_fn_error $? "ambiguous option: \`$1'
12587 Try \`$0 --help' for more information.";;
12588 --help | --hel | -h )
12589 printf "%s\n" "$ac_cs_usage"; exit ;;
12590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12591 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12592 ac_cs_silent=: ;;
12593
12594 # This is an error.
12595 -*) as_fn_error $? "unrecognized option: \`$1'
12596 Try \`$0 --help' for more information." ;;
12597
12598 *) as_fn_append ac_config_targets " $1"
12599 ac_need_defaults=false ;;
12600
12601 esac
12602 shift
12603 done
12604
12605 ac_configure_extra_args=
12606
12607 if $ac_cs_silent; then
12608 exec 6>/dev/null
12609 ac_configure_extra_args="$ac_configure_extra_args --silent"
12610 fi
12611
12612 _ACEOF
12613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12614 if \$ac_cs_recheck; then
12615 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12616 shift
12617 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12618 CONFIG_SHELL='$SHELL'
12619 export CONFIG_SHELL
12620 exec "\$@"
12621 fi
12622
12623 _ACEOF
12624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12625 exec 5>>config.log
12626 {
12627 echo
12628 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12629 ## Running $as_me. ##
12630 _ASBOX
12631 printf "%s\n" "$ac_log"
12632 } >&5
12633
12634 _ACEOF
12635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12636 #
12637 # INIT-COMMANDS
12638 #
12639 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12640
12641 _ACEOF
12642
12643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644
12645 # Handling of arguments.
12646 for ac_config_target in $ac_config_targets
12647 do
12648 case $ac_config_target in
12649 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12650 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12651 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12652
12653 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12654 esac
12655 done
12656
12657
12658 # If the user did not use the arguments to specify the items to instantiate,
12659 # then the envvar interface is used. Set only those that are not.
12660 # We use the long form for the default assignment because of an extremely
12661 # bizarre bug on SunOS 4.1.3.
12662 if $ac_need_defaults; then
12663 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12664 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12665 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12666 fi
12667
12668 # Have a temporary directory for convenience. Make it in the build tree
12669 # simply because there is no reason against having it here, and in addition,
12670 # creating and moving files from /tmp can sometimes cause problems.
12671 # Hook for its removal unless debugging.
12672 # Note that there is a small window in which the directory will not be cleaned:
12673 # after its creation but before its name has been assigned to `$tmp'.
12674 $debug ||
12675 {
12676 tmp= ac_tmp=
12677 trap 'exit_status=$?
12678 : "${ac_tmp:=$tmp}"
12679 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12680 ' 0
12681 trap 'as_fn_exit 1' 1 2 13 15
12682 }
12683 # Create a (secure) tmp directory for tmp files.
12684
12685 {
12686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12687 test -d "$tmp"
12688 } ||
12689 {
12690 tmp=./conf$$-$RANDOM
12691 (umask 077 && mkdir "$tmp")
12692 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12693 ac_tmp=$tmp
12694
12695 # Set up the scripts for CONFIG_FILES section.
12696 # No need to generate them if there are no CONFIG_FILES.
12697 # This happens for instance with `./config.status config.h'.
12698 if test -n "$CONFIG_FILES"; then
12699
12700
12701 ac_cr=`echo X | tr X '\015'`
12702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12703 # But we know of no other shell where ac_cr would be empty at this
12704 # point, so we can use a bashism as a fallback.
12705 if test "x$ac_cr" = x; then
12706 eval ac_cr=\$\'\\r\'
12707 fi
12708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12710 ac_cs_awk_cr='\\r'
12711 else
12712 ac_cs_awk_cr=$ac_cr
12713 fi
12714
12715 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12716 _ACEOF
12717
12718
12719 {
12720 echo "cat >conf$$subs.awk <<_ACEOF" &&
12721 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12722 echo "_ACEOF"
12723 } >conf$$subs.sh ||
12724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12726 ac_delim='%!_!# '
12727 for ac_last_try in false false false false false :; do
12728 . ./conf$$subs.sh ||
12729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12730
12731 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12732 if test $ac_delim_n = $ac_delim_num; then
12733 break
12734 elif $ac_last_try; then
12735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12736 else
12737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12738 fi
12739 done
12740 rm -f conf$$subs.sh
12741
12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12744 _ACEOF
12745 sed -n '
12746 h
12747 s/^/S["/; s/!.*/"]=/
12748 p
12749 g
12750 s/^[^!]*!//
12751 :repl
12752 t repl
12753 s/'"$ac_delim"'$//
12754 t delim
12755 :nl
12756 h
12757 s/\(.\{148\}\)..*/\1/
12758 t more1
12759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12760 p
12761 n
12762 b repl
12763 :more1
12764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12765 p
12766 g
12767 s/.\{148\}//
12768 t nl
12769 :delim
12770 h
12771 s/\(.\{148\}\)..*/\1/
12772 t more2
12773 s/["\\]/\\&/g; s/^/"/; s/$/"/
12774 p
12775 b
12776 :more2
12777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12778 p
12779 g
12780 s/.\{148\}//
12781 t delim
12782 ' <conf$$subs.awk | sed '
12783 /^[^""]/{
12784 N
12785 s/\n//
12786 }
12787 ' >>$CONFIG_STATUS || ac_write_fail=1
12788 rm -f conf$$subs.awk
12789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12790 _ACAWK
12791 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12792 for (key in S) S_is_set[key] = 1
12793 FS = ""
12794
12795 }
12796 {
12797 line = $ 0
12798 nfields = split(line, field, "@")
12799 substed = 0
12800 len = length(field[1])
12801 for (i = 2; i < nfields; i++) {
12802 key = field[i]
12803 keylen = length(key)
12804 if (S_is_set[key]) {
12805 value = S[key]
12806 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12807 len += length(value) + length(field[++i])
12808 substed = 1
12809 } else
12810 len += 1 + keylen
12811 }
12812
12813 print line
12814 }
12815
12816 _ACAWK
12817 _ACEOF
12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12820 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12821 else
12822 cat
12823 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12824 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12825 _ACEOF
12826
12827 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12828 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12829 # trailing colons and then remove the whole line if VPATH becomes empty
12830 # (actually we leave an empty line to preserve line numbers).
12831 if test "x$srcdir" = x.; then
12832 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12833 h
12834 s///
12835 s/^/:/
12836 s/[ ]*$/:/
12837 s/:\$(srcdir):/:/g
12838 s/:\${srcdir}:/:/g
12839 s/:@srcdir@:/:/g
12840 s/^:*//
12841 s/:*$//
12842 x
12843 s/\(=[ ]*\).*/\1/
12844 G
12845 s/\n//
12846 s/^[^=]*=[ ]*$//
12847 }'
12848 fi
12849
12850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12851 fi # test -n "$CONFIG_FILES"
12852
12853 # Set up the scripts for CONFIG_HEADERS section.
12854 # No need to generate them if there are no CONFIG_HEADERS.
12855 # This happens for instance with `./config.status Makefile'.
12856 if test -n "$CONFIG_HEADERS"; then
12857 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12858 BEGIN {
12859 _ACEOF
12860
12861 # Transform confdefs.h into an awk script `defines.awk', embedded as
12862 # here-document in config.status, that substitutes the proper values into
12863 # config.h.in to produce config.h.
12864
12865 # Create a delimiter string that does not exist in confdefs.h, to ease
12866 # handling of long lines.
12867 ac_delim='%!_!# '
12868 for ac_last_try in false false :; do
12869 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12870 if test -z "$ac_tt"; then
12871 break
12872 elif $ac_last_try; then
12873 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12874 else
12875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12876 fi
12877 done
12878
12879 # For the awk script, D is an array of macro values keyed by name,
12880 # likewise P contains macro parameters if any. Preserve backslash
12881 # newline sequences.
12882
12883 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12884 sed -n '
12885 s/.\{148\}/&'"$ac_delim"'/g
12886 t rset
12887 :rset
12888 s/^[ ]*#[ ]*define[ ][ ]*/ /
12889 t def
12890 d
12891 :def
12892 s/\\$//
12893 t bsnl
12894 s/["\\]/\\&/g
12895 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12896 D["\1"]=" \3"/p
12897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12898 d
12899 :bsnl
12900 s/["\\]/\\&/g
12901 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12902 D["\1"]=" \3\\\\\\n"\\/p
12903 t cont
12904 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12905 t cont
12906 d
12907 :cont
12908 n
12909 s/.\{148\}/&'"$ac_delim"'/g
12910 t clear
12911 :clear
12912 s/\\$//
12913 t bsnlc
12914 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12915 d
12916 :bsnlc
12917 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12918 b cont
12919 ' <confdefs.h | sed '
12920 s/'"$ac_delim"'/"\\\
12921 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12922
12923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12924 for (key in D) D_is_set[key] = 1
12925 FS = ""
12926 }
12927 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12928 line = \$ 0
12929 split(line, arg, " ")
12930 if (arg[1] == "#") {
12931 defundef = arg[2]
12932 mac1 = arg[3]
12933 } else {
12934 defundef = substr(arg[1], 2)
12935 mac1 = arg[2]
12936 }
12937 split(mac1, mac2, "(") #)
12938 macro = mac2[1]
12939 prefix = substr(line, 1, index(line, defundef) - 1)
12940 if (D_is_set[macro]) {
12941 # Preserve the white space surrounding the "#".
12942 print prefix "define", macro P[macro] D[macro]
12943 next
12944 } else {
12945 # Replace #undef with comments. This is necessary, for example,
12946 # in the case of _POSIX_SOURCE, which is predefined and required
12947 # on some systems where configure will not decide to define it.
12948 if (defundef == "undef") {
12949 print "/*", prefix defundef, macro, "*/"
12950 next
12951 }
12952 }
12953 }
12954 { print }
12955 _ACAWK
12956 _ACEOF
12957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12958 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12959 fi # test -n "$CONFIG_HEADERS"
12960
12961
12962 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12963 shift
12964 for ac_tag
12965 do
12966 case $ac_tag in
12967 :[FHLC]) ac_mode=$ac_tag; continue;;
12968 esac
12969 case $ac_mode$ac_tag in
12970 :[FHL]*:*);;
12971 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12972 :[FH]-) ac_tag=-:-;;
12973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12974 esac
12975 ac_save_IFS=$IFS
12976 IFS=:
12977 set x $ac_tag
12978 IFS=$ac_save_IFS
12979 shift
12980 ac_file=$1
12981 shift
12982
12983 case $ac_mode in
12984 :L) ac_source=$1;;
12985 :[FH])
12986 ac_file_inputs=
12987 for ac_f
12988 do
12989 case $ac_f in
12990 -) ac_f="$ac_tmp/stdin";;
12991 *) # Look for the file first in the build tree, then in the source tree
12992 # (if the path is not absolute). The absolute path cannot be DOS-style,
12993 # because $ac_f cannot contain `:'.
12994 test -f "$ac_f" ||
12995 case $ac_f in
12996 [\\/$]*) false;;
12997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12998 esac ||
12999 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13000 esac
13001 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13002 as_fn_append ac_file_inputs " '$ac_f'"
13003 done
13004
13005 # Let's still pretend it is `configure' which instantiates (i.e., don't
13006 # use $as_me), people would be surprised to read:
13007 # /* config.h. Generated by config.status. */
13008 configure_input='Generated from '`
13009 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13010 `' by configure.'
13011 if test x"$ac_file" != x-; then
13012 configure_input="$ac_file. $configure_input"
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13014 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13015 fi
13016 # Neutralize special characters interpreted by sed in replacement strings.
13017 case $configure_input in #(
13018 *\&* | *\|* | *\\* )
13019 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13020 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13021 *) ac_sed_conf_input=$configure_input;;
13022 esac
13023
13024 case $ac_tag in
13025 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13027 esac
13028 ;;
13029 esac
13030
13031 ac_dir=`$as_dirname -- "$ac_file" ||
13032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13033 X"$ac_file" : 'X\(//\)[^/]' \| \
13034 X"$ac_file" : 'X\(//\)$' \| \
13035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13036 printf "%s\n" X"$ac_file" |
13037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13038 s//\1/
13039 q
13040 }
13041 /^X\(\/\/\)[^/].*/{
13042 s//\1/
13043 q
13044 }
13045 /^X\(\/\/\)$/{
13046 s//\1/
13047 q
13048 }
13049 /^X\(\/\).*/{
13050 s//\1/
13051 q
13052 }
13053 s/.*/./; q'`
13054 as_dir="$ac_dir"; as_fn_mkdir_p
13055 ac_builddir=.
13056
13057 case "$ac_dir" in
13058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13059 *)
13060 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13061 # A ".." for each directory in $ac_dir_suffix.
13062 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13063 case $ac_top_builddir_sub in
13064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13066 esac ;;
13067 esac
13068 ac_abs_top_builddir=$ac_pwd
13069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13070 # for backward compatibility:
13071 ac_top_builddir=$ac_top_build_prefix
13072
13073 case $srcdir in
13074 .) # We are building in place.
13075 ac_srcdir=.
13076 ac_top_srcdir=$ac_top_builddir_sub
13077 ac_abs_top_srcdir=$ac_pwd ;;
13078 [\\/]* | ?:[\\/]* ) # Absolute name.
13079 ac_srcdir=$srcdir$ac_dir_suffix;
13080 ac_top_srcdir=$srcdir
13081 ac_abs_top_srcdir=$srcdir ;;
13082 *) # Relative name.
13083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13084 ac_top_srcdir=$ac_top_build_prefix$srcdir
13085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13086 esac
13087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13088
13089
13090 case $ac_mode in
13091 :F)
13092 #
13093 # CONFIG_FILE
13094 #
13095
13096 case $INSTALL in
13097 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13098 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13099 esac
13100 ac_MKDIR_P=$MKDIR_P
13101 case $MKDIR_P in
13102 [\\/$]* | ?:[\\/]* ) ;;
13103 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13104 esac
13105 _ACEOF
13106
13107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108 # If the template does not know about datarootdir, expand it.
13109 # FIXME: This hack should be removed a few years after 2.60.
13110 ac_datarootdir_hack=; ac_datarootdir_seen=
13111 ac_sed_dataroot='
13112 /datarootdir/ {
13113 p
13114 q
13115 }
13116 /@datadir@/p
13117 /@docdir@/p
13118 /@infodir@/p
13119 /@localedir@/p
13120 /@mandir@/p'
13121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13122 *datarootdir*) ac_datarootdir_seen=yes;;
13123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13125 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13126 _ACEOF
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128 ac_datarootdir_hack='
13129 s&@datadir@&$datadir&g
13130 s&@docdir@&$docdir&g
13131 s&@infodir@&$infodir&g
13132 s&@localedir@&$localedir&g
13133 s&@mandir@&$mandir&g
13134 s&\\\${datarootdir}&$datarootdir&g' ;;
13135 esac
13136 _ACEOF
13137
13138 # Neutralize VPATH when `$srcdir' = `.'.
13139 # Shell code in configure.ac might set extrasub.
13140 # FIXME: do we really want to maintain this feature?
13141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13142 ac_sed_extra="$ac_vpsub
13143 $extrasub
13144 _ACEOF
13145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13146 :t
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13148 s|@configure_input@|$ac_sed_conf_input|;t t
13149 s&@top_builddir@&$ac_top_builddir_sub&;t t
13150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13151 s&@srcdir@&$ac_srcdir&;t t
13152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13153 s&@top_srcdir@&$ac_top_srcdir&;t t
13154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13155 s&@builddir@&$ac_builddir&;t t
13156 s&@abs_builddir@&$ac_abs_builddir&;t t
13157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13158 s&@INSTALL@&$ac_INSTALL&;t t
13159 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13160 $ac_datarootdir_hack
13161 "
13162 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13163 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13164
13165 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13166 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13167 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13168 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13170 which seems to be undefined. Please make sure it is defined" >&5
13171 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13172 which seems to be undefined. Please make sure it is defined" >&2;}
13173
13174 rm -f "$ac_tmp/stdin"
13175 case $ac_file in
13176 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13177 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13178 esac \
13179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13180 ;;
13181 :H)
13182 #
13183 # CONFIG_HEADER
13184 #
13185 if test x"$ac_file" != x-; then
13186 {
13187 printf "%s\n" "/* $configure_input */" >&1 \
13188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13189 } >"$ac_tmp/config.h" \
13190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13191 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13193 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13194 else
13195 rm -f "$ac_file"
13196 mv "$ac_tmp/config.h" "$ac_file" \
13197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13198 fi
13199 else
13200 printf "%s\n" "/* $configure_input */" >&1 \
13201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13202 || as_fn_error $? "could not create -" "$LINENO" 5
13203 fi
13204 # Compute "$ac_file"'s index in $config_headers.
13205 _am_arg="$ac_file"
13206 _am_stamp_count=1
13207 for _am_header in $config_headers :; do
13208 case $_am_header in
13209 $_am_arg | $_am_arg:* )
13210 break ;;
13211 * )
13212 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13213 esac
13214 done
13215 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13216 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13217 X"$_am_arg" : 'X\(//\)[^/]' \| \
13218 X"$_am_arg" : 'X\(//\)$' \| \
13219 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13220 printf "%s\n" X"$_am_arg" |
13221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13222 s//\1/
13223 q
13224 }
13225 /^X\(\/\/\)[^/].*/{
13226 s//\1/
13227 q
13228 }
13229 /^X\(\/\/\)$/{
13230 s//\1/
13231 q
13232 }
13233 /^X\(\/\).*/{
13234 s//\1/
13235 q
13236 }
13237 s/.*/./; q'`/stamp-h$_am_stamp_count
13238 ;;
13239
13240 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13241 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13242 ;;
13243 esac
13244
13245
13246 case $ac_file$ac_mode in
13247 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13248 # Older Autoconf quotes --file arguments for eval, but not when files
13249 # are listed without --file. Let's play safe and only enable the eval
13250 # if we detect the quoting.
13251 # TODO: see whether this extra hack can be removed once we start
13252 # requiring Autoconf 2.70 or later.
13253 case $CONFIG_FILES in #(
13254 *\'*) :
13255 eval set x "$CONFIG_FILES" ;; #(
13256 *) :
13257 set x $CONFIG_FILES ;; #(
13258 *) :
13259 ;;
13260 esac
13261 shift
13262 # Used to flag and report bootstrapping failures.
13263 am_rc=0
13264 for am_mf
13265 do
13266 # Strip MF so we end up with the name of the file.
13267 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13268 # Check whether this is an Automake generated Makefile which includes
13269 # dependency-tracking related rules and includes.
13270 # Grep'ing the whole file directly is not great: AIX grep has a line
13271 # limit of 2048, but all sed's we know have understand at least 4000.
13272 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13273 || continue
13274 am_dirpart=`$as_dirname -- "$am_mf" ||
13275 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13276 X"$am_mf" : 'X\(//\)[^/]' \| \
13277 X"$am_mf" : 'X\(//\)$' \| \
13278 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13279 printf "%s\n" X"$am_mf" |
13280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13281 s//\1/
13282 q
13283 }
13284 /^X\(\/\/\)[^/].*/{
13285 s//\1/
13286 q
13287 }
13288 /^X\(\/\/\)$/{
13289 s//\1/
13290 q
13291 }
13292 /^X\(\/\).*/{
13293 s//\1/
13294 q
13295 }
13296 s/.*/./; q'`
13297 am_filepart=`$as_basename -- "$am_mf" ||
13298 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13299 X"$am_mf" : 'X\(//\)$' \| \
13300 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13301 printf "%s\n" X/"$am_mf" |
13302 sed '/^.*\/\([^/][^/]*\)\/*$/{
13303 s//\1/
13304 q
13305 }
13306 /^X\/\(\/\/\)$/{
13307 s//\1/
13308 q
13309 }
13310 /^X\/\(\/\).*/{
13311 s//\1/
13312 q
13313 }
13314 s/.*/./; q'`
13315 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13316 && sed -e '/# am--include-marker/d' "$am_filepart" \
13317 | $MAKE -f - am--depfiles" >&5
13318 (cd "$am_dirpart" \
13319 && sed -e '/# am--include-marker/d' "$am_filepart" \
13320 | $MAKE -f - am--depfiles) >&5 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } || am_rc=$?
13324 done
13325 if test $am_rc -ne 0; then
13326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13328 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13329 for automatic dependency tracking. If GNU make was not used, consider
13330 re-running the configure script with MAKE=\"gmake\" (or whatever is
13331 necessary). You can also try re-running configure with the
13332 '--disable-dependency-tracking' option to at least be able to build
13333 the package (albeit without support for automatic dependency tracking).
13334 See \`config.log' for more details" "$LINENO" 5; }
13335 fi
13336 { am_dirpart=; unset am_dirpart;}
13337 { am_filepart=; unset am_filepart;}
13338 { am_mf=; unset am_mf;}
13339 { am_rc=; unset am_rc;}
13340 rm -f conftest-deps.mk
13341 }
13342 ;;
13343
13344 esac
13345 done # for ac_tag
13346
13347
13348 as_fn_exit 0
13349 _ACEOF
13350 ac_clean_files=$ac_clean_files_save
13351
13352 test $ac_write_fail = 0 ||
13353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13354
13355
13356 # configure is writing to config.log, and then calls config.status.
13357 # config.status does its own redirection, appending to config.log.
13358 # Unfortunately, on DOS this fails, as config.log is still kept open
13359 # by configure, so config.status won't be able to write to it; its
13360 # output is simply discarded. So we exec the FD to /dev/null,
13361 # effectively closing config.log, so it can be properly (re)opened and
13362 # appended to by config.status. When coming back to configure, we
13363 # need to make the FD available again.
13364 if test "$no_create" != yes; then
13365 ac_cs_success=:
13366 ac_config_status_args=
13367 test "$silent" = yes &&
13368 ac_config_status_args="$ac_config_status_args --quiet"
13369 exec 5>/dev/null
13370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13371 exec 5>>config.log
13372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13373 # would make configure fail if this is the last instruction.
13374 $ac_cs_success || as_fn_exit 1
13375 fi
13376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13378 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13379 fi
13380
13381
13382