configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for makedepend 1.0.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='makedepend'
607 PACKAGE_TARNAME='makedepend'
608 PACKAGE_VERSION='1.0.9'
609 PACKAGE_STRING='makedepend 1.0.9'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 LINT_FALSE
652 LINT_TRUE
653 LINT_FLAGS
654 LINT
655 MAN_SUBSTS
656 XORG_MAN_PAGE
657 ADMIN_MAN_DIR
658 DRIVER_MAN_DIR
659 MISC_MAN_DIR
660 FILE_MAN_DIR
661 LIB_MAN_DIR
662 APP_MAN_DIR
663 ADMIN_MAN_SUFFIX
664 DRIVER_MAN_SUFFIX
665 MISC_MAN_SUFFIX
666 FILE_MAN_SUFFIX
667 LIB_MAN_SUFFIX
668 APP_MAN_SUFFIX
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 INSTALL_CMD
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 CHANGELOG_CMD
683 STRICT_CFLAGS
684 CWARNFLAGS
685 BASE_CFLAGS
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 CSCOPE
691 ETAGS
692 CTAGS
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__include
701 DEPDIR
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 runstatedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL
771 am__quote'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_dependency_tracking
776 enable_silent_rules
777 enable_selective_werror
778 enable_strict_compilation
779 with_lint
780 enable_largefile
781 enable_year2038
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 PKG_CONFIG
792 PKG_CONFIG_PATH
793 PKG_CONFIG_LIBDIR
794 LINT
795 LINT_FLAGS'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 runstatedir='${localstatedir}/run'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
846
847 ac_prev=
848 ac_dashdash=
849 for ac_option
850 do
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
856 fi
857
858 case $ac_option in
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *=) ac_optarg= ;;
861 *) ac_optarg=yes ;;
862 esac
863
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
892
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: '$ac_useropt'"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
925
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: '$ac_useropt'"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -runstatedir | --runstatedir | --runstatedi | --runstated \
1086 | --runstate | --runstat | --runsta | --runst | --runs \
1087 | --run | --ru | --r)
1088 ac_prev=runstatedir ;;
1089 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1090 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1091 | --run=* | --ru=* | --r=*)
1092 runstatedir=$ac_optarg ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: '$ac_useropt'"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: '$ac_useropt'"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
1189 -*) as_fn_error $? "unrecognized option: '$ac_option'
1190 Try '$0 --help' for more information"
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 ;;
1210
1211 esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir runstatedir
1232 do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: '$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 printf "%s\n" X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309 else
1310 ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 'configure' configures makedepend 1.0.9 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print 'checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for '--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or '..']
1363
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370 By default, 'make install' will install all the files in
1371 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than '$ac_default_prefix' using '--prefix',
1373 for instance '--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1399
1400 cat <<\_ACEOF
1401
1402 Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 _ACEOF
1411 fi
1412
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of makedepend 1.0.9:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --disable-selective-werror
1430 Turn off selective compiler errors. (default:
1431 enabled)
1432 --enable-strict-compilation
1433 Enable all warnings from compiler and make them
1434 errors (default: disabled)
1435 --disable-largefile omit support for large files
1436 --enable-year2038 support timestamps after 2038
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-lint Use a lint-style source code checker (default:
1442 disabled)
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457 LINT Path to a lint-style command
1458 LINT_FLAGS Flags for the lint-style command
1459
1460 Use these variables to override the choices made by 'configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for configure.gnu first; this name is used for a wrapper for
1510 # Metaconfig's "Configure" on case-insensitive file systems.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 makedepend configure 1.0.9
1528 generated by GNU Autoconf 2.72
1529
1530 Copyright (C) 2023 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext conftest.beam
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 printf "%s\n" "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext
1567 then :
1568 ac_retval=0
1569 else case e in #(
1570 e) printf "%s\n" "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1 ;;
1574 esac
1575 fi
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1582 # -------------------------------------------------------
1583 # Tests whether HEADER exists and can be compiled using the include files in
1584 # INCLUDES, setting the cache variable VAR accordingly.
1585 ac_fn_c_check_header_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589 printf %s "checking for $2... " >&6; }
1590 if eval test \${$3+y}
1591 then :
1592 printf %s "(cached) " >&6
1593 else case e in #(
1594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1596 $4
1597 #include <$2>
1598 _ACEOF
1599 if ac_fn_c_try_compile "$LINENO"
1600 then :
1601 eval "$3=yes"
1602 else case e in #(
1603 e) eval "$3=no" ;;
1604 esac
1605 fi
1606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1607 esac
1608 fi
1609 eval ac_res=\$$3
1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 printf "%s\n" "$ac_res" >&6; }
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613
1614 } # ac_fn_c_check_header_compile
1615
1616 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1617 # ------------------------------------------------------------------
1618 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1619 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1620 ac_fn_check_decl ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 as_decl_name=`echo $2|sed 's/ *(.*//'`
1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1625 printf %s "checking whether $as_decl_name is declared... " >&6; }
1626 if eval test \${$3+y}
1627 then :
1628 printf %s "(cached) " >&6
1629 else case e in #(
1630 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1631 eval ac_save_FLAGS=\$$6
1632 as_fn_append $6 " $5"
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1635 $4
1636 int
1637 main (void)
1638 {
1639 #ifndef $as_decl_name
1640 #ifdef __cplusplus
1641 (void) $as_decl_use;
1642 #else
1643 (void) $as_decl_name;
1644 #endif
1645 #endif
1646
1647 ;
1648 return 0;
1649 }
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"
1652 then :
1653 eval "$3=yes"
1654 else case e in #(
1655 e) eval "$3=no" ;;
1656 esac
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1659 eval $6=\$ac_save_FLAGS
1660 ;;
1661 esac
1662 fi
1663 eval ac_res=\$$3
1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 printf "%s\n" "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_check_decl
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 printf "%s\n" "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }
1699 then :
1700 ac_retval=0
1701 else case e in #(
1702 e) printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1 ;;
1706 esac
1707 fi
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_link
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else case e in #(
1730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (void); below. */
1738
1739 #include <limits.h>
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 (void);
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main (void)
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"
1765 then :
1766 eval "$3=yes"
1767 else case e in #(
1768 e) eval "$3=no" ;;
1769 esac
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1772 conftest$ac_exeext conftest.$ac_ext ;;
1773 esac
1774 fi
1775 eval ac_res=\$$3
1776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 printf "%s\n" "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_func
1781 ac_configure_args_raw=
1782 for ac_arg
1783 do
1784 case $ac_arg in
1785 *\'*)
1786 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1787 esac
1788 as_fn_append ac_configure_args_raw " '$ac_arg'"
1789 done
1790
1791 case $ac_configure_args_raw in
1792 *$as_nl*)
1793 ac_safe_unquote= ;;
1794 *)
1795 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1796 ac_unsafe_a="$ac_unsafe_z#~"
1797 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1798 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1799 esac
1800
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1804
1805 It was created by makedepend $as_me 1.0.9, which was
1806 generated by GNU Autoconf 2.72. Invocation command line was
1807
1808 $ $0$ac_configure_args_raw
1809
1810 _ACEOF
1811 exec 5>>config.log
1812 {
1813 cat <<_ASUNAME
1814 ## --------- ##
1815 ## Platform. ##
1816 ## --------- ##
1817
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1834
1835 _ASUNAME
1836
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
1840 IFS=$as_save_IFS
1841 case $as_dir in #(((
1842 '') as_dir=./ ;;
1843 */) ;;
1844 *) as_dir=$as_dir/ ;;
1845 esac
1846 printf "%s\n" "PATH: $as_dir"
1847 done
1848 IFS=$as_save_IFS
1849
1850 } >&5
1851
1852 cat >&5 <<_ACEOF
1853
1854
1855 ## ----------- ##
1856 ## Core tests. ##
1857 ## ----------- ##
1858
1859 _ACEOF
1860
1861
1862 # Keep a trace of the command line.
1863 # Strip out --no-create and --no-recursion so they do not pile up.
1864 # Strip out --silent because we don't want to record it for future runs.
1865 # Also quote any args containing shell meta-characters.
1866 # Make two passes to allow for proper duplicate-argument suppression.
1867 ac_configure_args=
1868 ac_configure_args0=
1869 ac_configure_args1=
1870 ac_must_keep_next=false
1871 for ac_pass in 1 2
1872 do
1873 for ac_arg
1874 do
1875 case $ac_arg in
1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878 | -silent | --silent | --silen | --sile | --sil)
1879 continue ;;
1880 *\'*)
1881 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 esac
1883 case $ac_pass in
1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1885 2)
1886 as_fn_append ac_configure_args1 " '$ac_arg'"
1887 if test $ac_must_keep_next = true; then
1888 ac_must_keep_next=false # Got value, back to normal.
1889 else
1890 case $ac_arg in
1891 *=* | --config-cache | -C | -disable-* | --disable-* \
1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894 | -with-* | --with-* | -without-* | --without-* | --x)
1895 case "$ac_configure_args0 " in
1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 esac
1898 ;;
1899 -* ) ac_must_keep_next=true ;;
1900 esac
1901 fi
1902 as_fn_append ac_configure_args " '$ac_arg'"
1903 ;;
1904 esac
1905 done
1906 done
1907 { ac_configure_args0=; unset ac_configure_args0;}
1908 { ac_configure_args1=; unset ac_configure_args1;}
1909
1910 # When interrupted or exit'd, cleanup temporary files, and complete
1911 # config.log. We remove comments because anyway the quotes in there
1912 # would cause problems or look ugly.
1913 # WARNING: Use '\'' to represent an apostrophe within the trap.
1914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915 trap 'exit_status=$?
1916 # Sanitize IFS.
1917 IFS=" "" $as_nl"
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 printf "%s\n" "## ---------------- ##
1923 ## Cache variables. ##
1924 ## ---------------- ##"
1925 echo
1926 # The following way of writing the cache mishandles newlines in values,
1927 (
1928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1929 eval ac_val=\$$ac_var
1930 case $ac_val in #(
1931 *${as_nl}*)
1932 case $ac_var in #(
1933 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1934 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1935 esac
1936 case $ac_var in #(
1937 _ | IFS | as_nl) ;; #(
1938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1939 *) { eval $ac_var=; unset $ac_var;} ;;
1940 esac ;;
1941 esac
1942 done
1943 (set) 2>&1 |
1944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1945 *${as_nl}ac_space=\ *)
1946 sed -n \
1947 "s/'\''/'\''\\\\'\'''\''/g;
1948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1949 ;; #(
1950 *)
1951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952 ;;
1953 esac |
1954 sort
1955 )
1956 echo
1957
1958 printf "%s\n" "## ----------------- ##
1959 ## Output variables. ##
1960 ## ----------------- ##"
1961 echo
1962 for ac_var in $ac_subst_vars
1963 do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in
1966 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 esac
1968 printf "%s\n" "$ac_var='\''$ac_val'\''"
1969 done | sort
1970 echo
1971
1972 if test -n "$ac_subst_files"; then
1973 printf "%s\n" "## ------------------- ##
1974 ## File substitutions. ##
1975 ## ------------------- ##"
1976 echo
1977 for ac_var in $ac_subst_files
1978 do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 printf "%s\n" "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1986 fi
1987
1988 if test -s confdefs.h; then
1989 printf "%s\n" "## ----------- ##
1990 ## confdefs.h. ##
1991 ## ----------- ##"
1992 echo
1993 cat confdefs.h
1994 echo
1995 fi
1996 test "$ac_signal" != 0 &&
1997 printf "%s\n" "$as_me: caught signal $ac_signal"
1998 printf "%s\n" "$as_me: exit $exit_status"
1999 } >&5
2000 rm -f core *.core core.conftest.* &&
2001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2002 exit $exit_status
2003 ' 0
2004 for ac_signal in 1 2 13 15; do
2005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2006 done
2007 ac_signal=0
2008
2009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2010 rm -f -r conftest* confdefs.h
2011
2012 printf "%s\n" "/* confdefs.h */" > confdefs.h
2013
2014 # Predefined preprocessor variables.
2015
2016 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2017
2018 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2019
2020 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2021
2022 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2023
2024 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2025
2026 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2027
2028
2029 # Let the site file select an alternate cache file if it wants to.
2030 # Prefer an explicitly selected file to automatically selected ones.
2031 if test -n "$CONFIG_SITE"; then
2032 ac_site_files="$CONFIG_SITE"
2033 elif test "x$prefix" != xNONE; then
2034 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2035 else
2036 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2037 fi
2038
2039 for ac_site_file in $ac_site_files
2040 do
2041 case $ac_site_file in #(
2042 */*) :
2043 ;; #(
2044 *) :
2045 ac_site_file=./$ac_site_file ;;
2046 esac
2047 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2049 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2050 sed 's/^/| /' "$ac_site_file" >&5
2051 . "$ac_site_file" \
2052 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2053 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2054 as_fn_error $? "failed to load site script $ac_site_file
2055 See 'config.log' for more details" "$LINENO" 5; }
2056 fi
2057 done
2058
2059 if test -r "$cache_file"; then
2060 # Some versions of bash will fail to source /dev/null (special files
2061 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2062 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2064 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2065 case $cache_file in
2066 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2067 *) . "./$cache_file";;
2068 esac
2069 fi
2070 else
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2072 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2073 >$cache_file
2074 fi
2075
2076 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2077 # Test code for whether the C compiler supports C89 (global declarations)
2078 ac_c_conftest_c89_globals='
2079 /* Does the compiler advertise C89 conformance?
2080 Do not test the value of __STDC__, because some compilers set it to 0
2081 while being otherwise adequately conformant. */
2082 #if !defined __STDC__
2083 # error "Compiler does not advertise C89 conformance"
2084 #endif
2085
2086 #include <stddef.h>
2087 #include <stdarg.h>
2088 struct stat;
2089 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2090 struct buf { int x; };
2091 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2092 static char *e (char **p, int i)
2093 {
2094 return p[i];
2095 }
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2097 {
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104 }
2105
2106 /* C89 style stringification. */
2107 #define noexpand_stringify(a) #a
2108 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2109
2110 /* C89 style token pasting. Exercises some of the corner cases that
2111 e.g. old MSVC gets wrong, but not very hard. */
2112 #define noexpand_concat(a,b) a##b
2113 #define expand_concat(a,b) noexpand_concat(a,b)
2114 extern int vA;
2115 extern int vbee;
2116 #define aye A
2117 #define bee B
2118 int *pvA = &expand_concat(v,aye);
2119 int *pvbee = &noexpand_concat(v,bee);
2120
2121 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2122 function prototypes and stuff, but not \xHH hex character constants.
2123 These do not provoke an error unfortunately, instead are silently treated
2124 as an "x". The following induces an error, until -std is added to get
2125 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2126 array size at least. It is necessary to write \x00 == 0 to get something
2127 that is true only with -std. */
2128 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2129
2130 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2131 inside strings and character constants. */
2132 #define FOO(x) '\''x'\''
2133 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2134
2135 int test (int i, double x);
2136 struct s1 {int (*f) (int a);};
2137 struct s2 {int (*f) (double a);};
2138 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2139 int, int);'
2140
2141 # Test code for whether the C compiler supports C89 (body of main).
2142 ac_c_conftest_c89_main='
2143 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2144 '
2145
2146 # Test code for whether the C compiler supports C99 (global declarations)
2147 ac_c_conftest_c99_globals='
2148 /* Does the compiler advertise C99 conformance? */
2149 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2150 # error "Compiler does not advertise C99 conformance"
2151 #endif
2152
2153 // See if C++-style comments work.
2154
2155 #include <stdbool.h>
2156 extern int puts (const char *);
2157 extern int printf (const char *, ...);
2158 extern int dprintf (int, const char *, ...);
2159 extern void *malloc (size_t);
2160 extern void free (void *);
2161
2162 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2163 // dprintf is used instead of fprintf to avoid needing to declare
2164 // FILE and stderr.
2165 #define debug(...) dprintf (2, __VA_ARGS__)
2166 #define showlist(...) puts (#__VA_ARGS__)
2167 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2168 static void
2169 test_varargs_macros (void)
2170 {
2171 int x = 1234;
2172 int y = 5678;
2173 debug ("Flag");
2174 debug ("X = %d\n", x);
2175 showlist (The first, second, and third items.);
2176 report (x>y, "x is %d but y is %d", x, y);
2177 }
2178
2179 // Check long long types.
2180 #define BIG64 18446744073709551615ull
2181 #define BIG32 4294967295ul
2182 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2183 #if !BIG_OK
2184 #error "your preprocessor is broken"
2185 #endif
2186 #if BIG_OK
2187 #else
2188 #error "your preprocessor is broken"
2189 #endif
2190 static long long int bignum = -9223372036854775807LL;
2191 static unsigned long long int ubignum = BIG64;
2192
2193 struct incomplete_array
2194 {
2195 int datasize;
2196 double data[];
2197 };
2198
2199 struct named_init {
2200 int number;
2201 const wchar_t *name;
2202 double average;
2203 };
2204
2205 typedef const char *ccp;
2206
2207 static inline int
2208 test_restrict (ccp restrict text)
2209 {
2210 // Iterate through items via the restricted pointer.
2211 // Also check for declarations in for loops.
2212 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2213 continue;
2214 return 0;
2215 }
2216
2217 // Check varargs and va_copy.
2218 static bool
2219 test_varargs (const char *format, ...)
2220 {
2221 va_list args;
2222 va_start (args, format);
2223 va_list args_copy;
2224 va_copy (args_copy, args);
2225
2226 const char *str = "";
2227 int number = 0;
2228 float fnumber = 0;
2229
2230 while (*format)
2231 {
2232 switch (*format++)
2233 {
2234 case '\''s'\'': // string
2235 str = va_arg (args_copy, const char *);
2236 break;
2237 case '\''d'\'': // int
2238 number = va_arg (args_copy, int);
2239 break;
2240 case '\''f'\'': // float
2241 fnumber = va_arg (args_copy, double);
2242 break;
2243 default:
2244 break;
2245 }
2246 }
2247 va_end (args_copy);
2248 va_end (args);
2249
2250 return *str && number && fnumber;
2251 }
2252 '
2253
2254 # Test code for whether the C compiler supports C99 (body of main).
2255 ac_c_conftest_c99_main='
2256 // Check bool.
2257 _Bool success = false;
2258 success |= (argc != 0);
2259
2260 // Check restrict.
2261 if (test_restrict ("String literal") == 0)
2262 success = true;
2263 char *restrict newvar = "Another string";
2264
2265 // Check varargs.
2266 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2267 test_varargs_macros ();
2268
2269 // Check flexible array members.
2270 struct incomplete_array *ia =
2271 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2272 ia->datasize = 10;
2273 for (int i = 0; i < ia->datasize; ++i)
2274 ia->data[i] = i * 1.234;
2275 // Work around memory leak warnings.
2276 free (ia);
2277
2278 // Check named initializers.
2279 struct named_init ni = {
2280 .number = 34,
2281 .name = L"Test wide string",
2282 .average = 543.34343,
2283 };
2284
2285 ni.number = 58;
2286
2287 int dynamic_array[ni.number];
2288 dynamic_array[0] = argv[0][0];
2289 dynamic_array[ni.number - 1] = 543;
2290
2291 // work around unused variable warnings
2292 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2293 || dynamic_array[ni.number - 1] != 543);
2294 '
2295
2296 # Test code for whether the C compiler supports C11 (global declarations)
2297 ac_c_conftest_c11_globals='
2298 /* Does the compiler advertise C11 conformance? */
2299 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2300 # error "Compiler does not advertise C11 conformance"
2301 #endif
2302
2303 // Check _Alignas.
2304 char _Alignas (double) aligned_as_double;
2305 char _Alignas (0) no_special_alignment;
2306 extern char aligned_as_int;
2307 char _Alignas (0) _Alignas (int) aligned_as_int;
2308
2309 // Check _Alignof.
2310 enum
2311 {
2312 int_alignment = _Alignof (int),
2313 int_array_alignment = _Alignof (int[100]),
2314 char_alignment = _Alignof (char)
2315 };
2316 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2317
2318 // Check _Noreturn.
2319 int _Noreturn does_not_return (void) { for (;;) continue; }
2320
2321 // Check _Static_assert.
2322 struct test_static_assert
2323 {
2324 int x;
2325 _Static_assert (sizeof (int) <= sizeof (long int),
2326 "_Static_assert does not work in struct");
2327 long int y;
2328 };
2329
2330 // Check UTF-8 literals.
2331 #define u8 syntax error!
2332 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2333
2334 // Check duplicate typedefs.
2335 typedef long *long_ptr;
2336 typedef long int *long_ptr;
2337 typedef long_ptr long_ptr;
2338
2339 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2340 struct anonymous
2341 {
2342 union {
2343 struct { int i; int j; };
2344 struct { int k; long int l; } w;
2345 };
2346 int m;
2347 } v1;
2348 '
2349
2350 # Test code for whether the C compiler supports C11 (body of main).
2351 ac_c_conftest_c11_main='
2352 _Static_assert ((offsetof (struct anonymous, i)
2353 == offsetof (struct anonymous, w.k)),
2354 "Anonymous union alignment botch");
2355 v1.i = 2;
2356 v1.w.k = 5;
2357 ok |= v1.i != 5;
2358 '
2359
2360 # Test code for whether the C compiler supports C11 (complete).
2361 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2362 ${ac_c_conftest_c99_globals}
2363 ${ac_c_conftest_c11_globals}
2364
2365 int
2366 main (int argc, char **argv)
2367 {
2368 int ok = 0;
2369 ${ac_c_conftest_c89_main}
2370 ${ac_c_conftest_c99_main}
2371 ${ac_c_conftest_c11_main}
2372 return ok;
2373 }
2374 "
2375
2376 # Test code for whether the C compiler supports C99 (complete).
2377 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2378 ${ac_c_conftest_c99_globals}
2379
2380 int
2381 main (int argc, char **argv)
2382 {
2383 int ok = 0;
2384 ${ac_c_conftest_c89_main}
2385 ${ac_c_conftest_c99_main}
2386 return ok;
2387 }
2388 "
2389
2390 # Test code for whether the C compiler supports C89 (complete).
2391 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2392
2393 int
2394 main (int argc, char **argv)
2395 {
2396 int ok = 0;
2397 ${ac_c_conftest_c89_main}
2398 return ok;
2399 }
2400 "
2401
2402 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2403 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2404 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2405 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2406 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2407 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2408 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2409 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2410 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2411 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2412
2413 # Auxiliary files required by this configure script.
2414 ac_aux_files="config.guess config.sub missing install-sh compile"
2415
2416 # Locations in which to look for auxiliary files.
2417 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2418
2419 # Search for a directory containing all of the required auxiliary files,
2420 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2421 # If we don't find one directory that contains all the files we need,
2422 # we report the set of missing files from the *first* directory in
2423 # $ac_aux_dir_candidates and give up.
2424 ac_missing_aux_files=""
2425 ac_first_candidate=:
2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 as_found=false
2429 for as_dir in $ac_aux_dir_candidates
2430 do
2431 IFS=$as_save_IFS
2432 case $as_dir in #(((
2433 '') as_dir=./ ;;
2434 */) ;;
2435 *) as_dir=$as_dir/ ;;
2436 esac
2437 as_found=:
2438
2439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2440 ac_aux_dir_found=yes
2441 ac_install_sh=
2442 for ac_aux in $ac_aux_files
2443 do
2444 # As a special case, if "install-sh" is required, that requirement
2445 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2446 # and $ac_install_sh is set appropriately for whichever one is found.
2447 if test x"$ac_aux" = x"install-sh"
2448 then
2449 if test -f "${as_dir}install-sh"; then
2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2451 ac_install_sh="${as_dir}install-sh -c"
2452 elif test -f "${as_dir}install.sh"; then
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2454 ac_install_sh="${as_dir}install.sh -c"
2455 elif test -f "${as_dir}shtool"; then
2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2457 ac_install_sh="${as_dir}shtool install -c"
2458 else
2459 ac_aux_dir_found=no
2460 if $ac_first_candidate; then
2461 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2462 else
2463 break
2464 fi
2465 fi
2466 else
2467 if test -f "${as_dir}${ac_aux}"; then
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2469 else
2470 ac_aux_dir_found=no
2471 if $ac_first_candidate; then
2472 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2473 else
2474 break
2475 fi
2476 fi
2477 fi
2478 done
2479 if test "$ac_aux_dir_found" = yes; then
2480 ac_aux_dir="$as_dir"
2481 break
2482 fi
2483 ac_first_candidate=false
2484
2485 as_found=false
2486 done
2487 IFS=$as_save_IFS
2488 if $as_found
2489 then :
2490
2491 else case e in #(
2492 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2493 esac
2494 fi
2495
2496
2497 # These three variables are undocumented and unsupported,
2498 # and are intended to be withdrawn in a future Autoconf release.
2499 # They can cause serious problems if a builder's source tree is in a directory
2500 # whose full name contains unusual characters.
2501 if test -f "${ac_aux_dir}config.guess"; then
2502 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2503 fi
2504 if test -f "${ac_aux_dir}config.sub"; then
2505 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2506 fi
2507 if test -f "$ac_aux_dir/configure"; then
2508 ac_configure="$SHELL ${ac_aux_dir}configure"
2509 fi
2510
2511 # Check that the precious variables saved in the cache have kept the same
2512 # value.
2513 ac_cache_corrupted=false
2514 for ac_var in $ac_precious_vars; do
2515 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2516 eval ac_new_set=\$ac_env_${ac_var}_set
2517 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2518 eval ac_new_val=\$ac_env_${ac_var}_value
2519 case $ac_old_set,$ac_new_set in
2520 set,)
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2522 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,set)
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2526 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2527 ac_cache_corrupted=: ;;
2528 ,);;
2529 *)
2530 if test "x$ac_old_val" != "x$ac_new_val"; then
2531 # differences in whitespace do not lead to failure.
2532 ac_old_val_w=`echo x $ac_old_val`
2533 ac_new_val_w=`echo x $ac_new_val`
2534 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2536 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2537 ac_cache_corrupted=:
2538 else
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2540 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2541 eval $ac_var=\$ac_old_val
2542 fi
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2544 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2546 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2547 fi;;
2548 esac
2549 # Pass precious variables to config.status.
2550 if test "$ac_new_set" = set; then
2551 case $ac_new_val in
2552 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2553 *) ac_arg=$ac_var=$ac_new_val ;;
2554 esac
2555 case " $ac_configure_args " in
2556 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2557 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2558 esac
2559 fi
2560 done
2561 if $ac_cache_corrupted; then
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2563 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2565 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2566 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2567 and start over" "$LINENO" 5
2568 fi
2569 ## -------------------- ##
2570 ## Main body of script. ##
2571 ## -------------------- ##
2572
2573 ac_ext=c
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578
2579
2580
2581 ac_config_headers="$ac_config_headers makedepend-config.h"
2582
2583 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2584 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2585 # to avoid autoconf errors.
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597 # Expand $ac_aux_dir to an absolute path.
2598 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 printf %s "checking for $ac_word... " >&6; }
2610 if test ${ac_cv_prog_CC+y}
2611 then :
2612 printf %s "(cached) " >&6
2613 else case e in #(
2614 e) if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 case $as_dir in #(((
2622 '') as_dir=./ ;;
2623 */) ;;
2624 *) as_dir=$as_dir/ ;;
2625 esac
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi ;;
2637 esac
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 printf "%s\n" "$CC" >&6; }
2643 else
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 printf "%s\n" "no" >&6; }
2646 fi
2647
2648
2649 fi
2650 if test -z "$ac_cv_prog_CC"; then
2651 ac_ct_CC=$CC
2652 # Extract the first word of "gcc", so it can be a program name with args.
2653 set dummy gcc; ac_word=$2
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 printf %s "checking for $ac_word... " >&6; }
2656 if test ${ac_cv_prog_ac_ct_CC+y}
2657 then :
2658 printf %s "(cached) " >&6
2659 else case e in #(
2660 e) if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 case $as_dir in #(((
2668 '') as_dir=./ ;;
2669 */) ;;
2670 *) as_dir=$as_dir/ ;;
2671 esac
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_CC="gcc"
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi ;;
2683 esac
2684 fi
2685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686 if test -n "$ac_ct_CC"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688 printf "%s\n" "$ac_ct_CC" >&6; }
2689 else
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 printf "%s\n" "no" >&6; }
2692 fi
2693
2694 if test "x$ac_ct_CC" = x; then
2695 CC=""
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703 CC=$ac_ct_CC
2704 fi
2705 else
2706 CC="$ac_cv_prog_CC"
2707 fi
2708
2709 if test -z "$CC"; then
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}cc; ac_word=$2
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 printf %s "checking for $ac_word... " >&6; }
2715 if test ${ac_cv_prog_CC+y}
2716 then :
2717 printf %s "(cached) " >&6
2718 else case e in #(
2719 e) if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 case $as_dir in #(((
2727 '') as_dir=./ ;;
2728 */) ;;
2729 *) as_dir=$as_dir/ ;;
2730 esac
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi ;;
2742 esac
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 printf "%s\n" "$CC" >&6; }
2748 else
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 printf "%s\n" "no" >&6; }
2751 fi
2752
2753
2754 fi
2755 fi
2756 if test -z "$CC"; then
2757 # Extract the first word of "cc", so it can be a program name with args.
2758 set dummy cc; ac_word=$2
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 printf %s "checking for $ac_word... " >&6; }
2761 if test ${ac_cv_prog_CC+y}
2762 then :
2763 printf %s "(cached) " >&6
2764 else case e in #(
2765 e) if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 ac_prog_rejected=no
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 case $as_dir in #(((
2774 '') as_dir=./ ;;
2775 */) ;;
2776 *) as_dir=$as_dir/ ;;
2777 esac
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2780 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2781 ac_prog_rejected=yes
2782 continue
2783 fi
2784 ac_cv_prog_CC="cc"
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 if test $ac_prog_rejected = yes; then
2793 # We found a bogon in the path, so make sure we never use it.
2794 set dummy $ac_cv_prog_CC
2795 shift
2796 if test $# != 0; then
2797 # We chose a different compiler from the bogus one.
2798 # However, it has the same basename, so the bogon will be chosen
2799 # first if we set CC to just the basename; use the full file name.
2800 shift
2801 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2802 fi
2803 fi
2804 fi ;;
2805 esac
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 printf "%s\n" "$CC" >&6; }
2811 else
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 printf "%s\n" "no" >&6; }
2814 fi
2815
2816
2817 fi
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 for ac_prog in cl.exe
2821 do
2822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 printf %s "checking for $ac_word... " >&6; }
2826 if test ${ac_cv_prog_CC+y}
2827 then :
2828 printf %s "(cached) " >&6
2829 else case e in #(
2830 e) if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 case $as_dir in #(((
2838 '') as_dir=./ ;;
2839 */) ;;
2840 *) as_dir=$as_dir/ ;;
2841 esac
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi ;;
2853 esac
2854 fi
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 printf "%s\n" "$CC" >&6; }
2859 else
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 printf "%s\n" "no" >&6; }
2862 fi
2863
2864
2865 test -n "$CC" && break
2866 done
2867 fi
2868 if test -z "$CC"; then
2869 ac_ct_CC=$CC
2870 for ac_prog in cl.exe
2871 do
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 printf %s "checking for $ac_word... " >&6; }
2876 if test ${ac_cv_prog_ac_ct_CC+y}
2877 then :
2878 printf %s "(cached) " >&6
2879 else case e in #(
2880 e) if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 case $as_dir in #(((
2888 '') as_dir=./ ;;
2889 */) ;;
2890 *) as_dir=$as_dir/ ;;
2891 esac
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_ac_ct_CC="$ac_prog"
2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi ;;
2903 esac
2904 fi
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908 printf "%s\n" "$ac_ct_CC" >&6; }
2909 else
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 printf "%s\n" "no" >&6; }
2912 fi
2913
2914
2915 test -n "$ac_ct_CC" && break
2916 done
2917
2918 if test "x$ac_ct_CC" = x; then
2919 CC=""
2920 else
2921 case $cross_compiling:$ac_tool_warned in
2922 yes:)
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2926 esac
2927 CC=$ac_ct_CC
2928 fi
2929 fi
2930
2931 fi
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}clang; ac_word=$2
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 printf %s "checking for $ac_word... " >&6; }
2938 if test ${ac_cv_prog_CC+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else case e in #(
2942 e) if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 case $as_dir in #(((
2950 '') as_dir=./ ;;
2951 */) ;;
2952 *) as_dir=$as_dir/ ;;
2953 esac
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_CC="${ac_tool_prefix}clang"
2957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi ;;
2965 esac
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 printf "%s\n" "$CC" >&6; }
2971 else
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 printf "%s\n" "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$ac_cv_prog_CC"; then
2979 ac_ct_CC=$CC
2980 # Extract the first word of "clang", so it can be a program name with args.
2981 set dummy clang; ac_word=$2
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 printf %s "checking for $ac_word... " >&6; }
2984 if test ${ac_cv_prog_ac_ct_CC+y}
2985 then :
2986 printf %s "(cached) " >&6
2987 else case e in #(
2988 e) if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 case $as_dir in #(((
2996 '') as_dir=./ ;;
2997 */) ;;
2998 *) as_dir=$as_dir/ ;;
2999 esac
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="clang"
3003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi ;;
3011 esac
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 printf "%s\n" "$ac_ct_CC" >&6; }
3017 else
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 printf "%s\n" "no" >&6; }
3020 fi
3021
3022 if test "x$ac_ct_CC" = x; then
3023 CC=""
3024 else
3025 case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031 CC=$ac_ct_CC
3032 fi
3033 else
3034 CC="$ac_cv_prog_CC"
3035 fi
3036
3037 fi
3038
3039
3040 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3042 as_fn_error $? "no acceptable C compiler found in \$PATH
3043 See 'config.log' for more details" "$LINENO" 5; }
3044
3045 # Provide some information about the compiler.
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047 set X $ac_compile
3048 ac_compiler=$2
3049 for ac_option in --version -v -V -qversion -version; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 printf "%s\n" "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3058 ac_status=$?
3059 if test -s conftest.err; then
3060 sed '10a\
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3064 fi
3065 rm -f conftest.er1 conftest.err
3066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068 done
3069
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3072
3073 int
3074 main (void)
3075 {
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 ac_clean_files_save=$ac_clean_files
3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3085 # of exeext.
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3087 printf %s "checking whether the C compiler works... " >&6; }
3088 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3089
3090 # The possible output files:
3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092
3093 ac_rmfiles=
3094 for ac_file in $ac_files
3095 do
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099 esac
3100 done
3101 rm -f $ac_rmfiles
3102
3103 if { { ac_try="$ac_link_default"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 printf "%s\n" "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3111 ac_status=$?
3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 then :
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3116 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3119 # Autoconf.
3120 for ac_file in $ac_files ''
3121 do
3122 test -f "$ac_file" || continue
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3125 ;;
3126 [ab].out )
3127 # We found the default executable, but exeext='' is most
3128 # certainly right.
3129 break;;
3130 *.* )
3131 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3132 then :; else
3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 fi
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an '-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3139 # actually working.
3140 break;;
3141 * )
3142 break;;
3143 esac
3144 done
3145 test "$ac_cv_exeext" = no && ac_cv_exeext=
3146
3147 else case e in #(
3148 e) ac_file='' ;;
3149 esac
3150 fi
3151 if test -z "$ac_file"
3152 then :
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf "%s\n" "no" >&6; }
3155 printf "%s\n" "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3159 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3160 as_fn_error 77 "C compiler cannot create executables
3161 See 'config.log' for more details" "$LINENO" 5; }
3162 else case e in #(
3163 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 printf "%s\n" "yes" >&6; } ;;
3165 esac
3166 fi
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3168 printf %s "checking for C compiler default output file name... " >&6; }
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3170 printf "%s\n" "$ac_file" >&6; }
3171 ac_exeext=$ac_cv_exeext
3172
3173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3174 ac_clean_files=$ac_clean_files_save
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176 printf %s "checking for suffix of executables... " >&6; }
3177 if { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 printf "%s\n" "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3185 ac_status=$?
3186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188 then :
3189 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3190 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3191 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3192 # 'rm'.
3193 for ac_file in conftest.exe conftest conftest.*; do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 break;;
3199 * ) break;;
3200 esac
3201 done
3202 else case e in #(
3203 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3204 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3205 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3206 See 'config.log' for more details" "$LINENO" 5; } ;;
3207 esac
3208 fi
3209 rm -f conftest conftest$ac_cv_exeext
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3211 printf "%s\n" "$ac_cv_exeext" >&6; }
3212
3213 rm -f conftest.$ac_ext
3214 EXEEXT=$ac_cv_exeext
3215 ac_exeext=$EXEEXT
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218 #include <stdio.h>
3219 int
3220 main (void)
3221 {
3222 FILE *f = fopen ("conftest.out", "w");
3223 if (!f)
3224 return 1;
3225 return ferror (f) || fclose (f) != 0;
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 ac_clean_files="$ac_clean_files conftest.out"
3232 # Check that the compiler produces executables we can run. If not, either
3233 # the compiler is broken, or we cross compile.
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 printf %s "checking whether we are cross compiling... " >&6; }
3236 if test "$cross_compiling" != yes; then
3237 { { ac_try="$ac_link"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 printf "%s\n" "$ac_try_echo"; } >&5
3244 (eval "$ac_link") 2>&5
3245 ac_status=$?
3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3248 if { ac_try='./conftest$ac_cv_exeext'
3249 { { case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 printf "%s\n" "$ac_try_echo"; } >&5
3255 (eval "$ac_try") 2>&5
3256 ac_status=$?
3257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3265 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3266 as_fn_error 77 "cannot run C compiled programs.
3267 If you meant to cross compile, use '--host'.
3268 See 'config.log' for more details" "$LINENO" 5; }
3269 fi
3270 fi
3271 fi
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3273 printf "%s\n" "$cross_compiling" >&6; }
3274
3275 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3276 conftest.o conftest.obj conftest.out
3277 ac_clean_files=$ac_clean_files_save
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3279 printf %s "checking for suffix of object files... " >&6; }
3280 if test ${ac_cv_objext+y}
3281 then :
3282 printf %s "(cached) " >&6
3283 else case e in #(
3284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286
3287 int
3288 main (void)
3289 {
3290
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 rm -f conftest.o conftest.obj
3296 if { { ac_try="$ac_compile"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 printf "%s\n" "$ac_try_echo"; } >&5
3303 (eval "$ac_compile") 2>&5
3304 ac_status=$?
3305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }
3307 then :
3308 for ac_file in conftest.o conftest.obj conftest.*; do
3309 test -f "$ac_file" || continue;
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3313 break;;
3314 esac
3315 done
3316 else case e in #(
3317 e) printf "%s\n" "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3321 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of object files: cannot compile
3323 See 'config.log' for more details" "$LINENO" 5; } ;;
3324 esac
3325 fi
3326 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3327 esac
3328 fi
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3330 printf "%s\n" "$ac_cv_objext" >&6; }
3331 OBJEXT=$ac_cv_objext
3332 ac_objext=$OBJEXT
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3334 printf %s "checking whether the compiler supports GNU C... " >&6; }
3335 if test ${ac_cv_c_compiler_gnu+y}
3336 then :
3337 printf %s "(cached) " >&6
3338 else case e in #(
3339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341
3342 int
3343 main (void)
3344 {
3345 #ifndef __GNUC__
3346 choke me
3347 #endif
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"
3354 then :
3355 ac_compiler_gnu=yes
3356 else case e in #(
3357 e) ac_compiler_gnu=no ;;
3358 esac
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3362 ;;
3363 esac
3364 fi
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368
3369 if test $ac_compiler_gnu = yes; then
3370 GCC=yes
3371 else
3372 GCC=
3373 fi
3374 ac_test_CFLAGS=${CFLAGS+y}
3375 ac_save_CFLAGS=$CFLAGS
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3377 printf %s "checking whether $CC accepts -g... " >&6; }
3378 if test ${ac_cv_prog_cc_g+y}
3379 then :
3380 printf %s "(cached) " >&6
3381 else case e in #(
3382 e) ac_save_c_werror_flag=$ac_c_werror_flag
3383 ac_c_werror_flag=yes
3384 ac_cv_prog_cc_g=no
3385 CFLAGS="-g"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388
3389 int
3390 main (void)
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"
3398 then :
3399 ac_cv_prog_cc_g=yes
3400 else case e in #(
3401 e) CFLAGS=""
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main (void)
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"
3414 then :
3415
3416 else case e in #(
3417 e) ac_c_werror_flag=$ac_save_c_werror_flag
3418 CFLAGS="-g"
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main (void)
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"
3431 then :
3432 ac_cv_prog_cc_g=yes
3433 fi
3434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3435 esac
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3438 esac
3439 fi
3440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3441 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3442 esac
3443 fi
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3445 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3446 if test $ac_test_CFLAGS; then
3447 CFLAGS=$ac_save_CFLAGS
3448 elif test $ac_cv_prog_cc_g = yes; then
3449 if test "$GCC" = yes; then
3450 CFLAGS="-g -O2"
3451 else
3452 CFLAGS="-g"
3453 fi
3454 else
3455 if test "$GCC" = yes; then
3456 CFLAGS="-O2"
3457 else
3458 CFLAGS=
3459 fi
3460 fi
3461 ac_prog_cc_stdc=no
3462 if test x$ac_prog_cc_stdc = xno
3463 then :
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3465 printf %s "checking for $CC option to enable C11 features... " >&6; }
3466 if test ${ac_cv_prog_cc_c11+y}
3467 then :
3468 printf %s "(cached) " >&6
3469 else case e in #(
3470 e) ac_cv_prog_cc_c11=no
3471 ac_save_CC=$CC
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 $ac_c_conftest_c11_program
3475 _ACEOF
3476 for ac_arg in '' -std=gnu11
3477 do
3478 CC="$ac_save_CC $ac_arg"
3479 if ac_fn_c_try_compile "$LINENO"
3480 then :
3481 ac_cv_prog_cc_c11=$ac_arg
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.beam
3484 test "x$ac_cv_prog_cc_c11" != "xno" && break
3485 done
3486 rm -f conftest.$ac_ext
3487 CC=$ac_save_CC ;;
3488 esac
3489 fi
3490
3491 if test "x$ac_cv_prog_cc_c11" = xno
3492 then :
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3494 printf "%s\n" "unsupported" >&6; }
3495 else case e in #(
3496 e) if test "x$ac_cv_prog_cc_c11" = x
3497 then :
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3499 printf "%s\n" "none needed" >&6; }
3500 else case e in #(
3501 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3502 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3503 CC="$CC $ac_cv_prog_cc_c11" ;;
3504 esac
3505 fi
3506 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3507 ac_prog_cc_stdc=c11 ;;
3508 esac
3509 fi
3510 fi
3511 if test x$ac_prog_cc_stdc = xno
3512 then :
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3514 printf %s "checking for $CC option to enable C99 features... " >&6; }
3515 if test ${ac_cv_prog_cc_c99+y}
3516 then :
3517 printf %s "(cached) " >&6
3518 else case e in #(
3519 e) ac_cv_prog_cc_c99=no
3520 ac_save_CC=$CC
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523 $ac_c_conftest_c99_program
3524 _ACEOF
3525 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3526 do
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"
3529 then :
3530 ac_cv_prog_cc_c99=$ac_arg
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.beam
3533 test "x$ac_cv_prog_cc_c99" != "xno" && break
3534 done
3535 rm -f conftest.$ac_ext
3536 CC=$ac_save_CC ;;
3537 esac
3538 fi
3539
3540 if test "x$ac_cv_prog_cc_c99" = xno
3541 then :
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3543 printf "%s\n" "unsupported" >&6; }
3544 else case e in #(
3545 e) if test "x$ac_cv_prog_cc_c99" = x
3546 then :
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3548 printf "%s\n" "none needed" >&6; }
3549 else case e in #(
3550 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3551 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3552 CC="$CC $ac_cv_prog_cc_c99" ;;
3553 esac
3554 fi
3555 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3556 ac_prog_cc_stdc=c99 ;;
3557 esac
3558 fi
3559 fi
3560 if test x$ac_prog_cc_stdc = xno
3561 then :
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3563 printf %s "checking for $CC option to enable C89 features... " >&6; }
3564 if test ${ac_cv_prog_cc_c89+y}
3565 then :
3566 printf %s "(cached) " >&6
3567 else case e in #(
3568 e) ac_cv_prog_cc_c89=no
3569 ac_save_CC=$CC
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 $ac_c_conftest_c89_program
3573 _ACEOF
3574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3575 do
3576 CC="$ac_save_CC $ac_arg"
3577 if ac_fn_c_try_compile "$LINENO"
3578 then :
3579 ac_cv_prog_cc_c89=$ac_arg
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.beam
3582 test "x$ac_cv_prog_cc_c89" != "xno" && break
3583 done
3584 rm -f conftest.$ac_ext
3585 CC=$ac_save_CC ;;
3586 esac
3587 fi
3588
3589 if test "x$ac_cv_prog_cc_c89" = xno
3590 then :
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3592 printf "%s\n" "unsupported" >&6; }
3593 else case e in #(
3594 e) if test "x$ac_cv_prog_cc_c89" = x
3595 then :
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3597 printf "%s\n" "none needed" >&6; }
3598 else case e in #(
3599 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3600 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3601 CC="$CC $ac_cv_prog_cc_c89" ;;
3602 esac
3603 fi
3604 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3605 ac_prog_cc_stdc=c89 ;;
3606 esac
3607 fi
3608 fi
3609
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3623 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3624 if test ${am_cv_prog_cc_c_o+y}
3625 then :
3626 printf %s "(cached) " >&6
3627 else case e in #(
3628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630
3631 int
3632 main (void)
3633 {
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 # Make sure it works both with $CC and with simple cc.
3640 # Following AC_PROG_CC_C_O, we do the test twice because some
3641 # compilers refuse to overwrite an existing .o file with -o,
3642 # though they will create one.
3643 am_cv_prog_cc_c_o=yes
3644 for am_i in 1 2; do
3645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } \
3650 && test -f conftest2.$ac_objext; then
3651 : OK
3652 else
3653 am_cv_prog_cc_c_o=no
3654 break
3655 fi
3656 done
3657 rm -f core conftest*
3658 unset am_i ;;
3659 esac
3660 fi
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3662 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3663 if test "$am_cv_prog_cc_c_o" != yes; then
3664 # Losing compiler, so override with the script.
3665 # FIXME: It is wrong to rewrite CC.
3666 # But if we don't then we get into trouble of one sort or another.
3667 # A longer-term fix would be to have automake use am__CC in this case,
3668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3669 CC="$am_aux_dir/compile $CC"
3670 fi
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676
3677
3678
3679 ac_header= ac_cache=
3680 for ac_item in $ac_header_c_list
3681 do
3682 if test $ac_cache; then
3683 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3684 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3685 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3686 fi
3687 ac_header= ac_cache=
3688 elif test $ac_header; then
3689 ac_cache=$ac_item
3690 else
3691 ac_header=$ac_item
3692 fi
3693 done
3694
3695
3696
3697
3698
3699
3700
3701
3702 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3703 then :
3704
3705 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3706
3707 fi
3708
3709
3710
3711
3712
3713
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3715 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3716 if test ${ac_cv_safe_to_define___extensions__+y}
3717 then :
3718 printf %s "(cached) " >&6
3719 else case e in #(
3720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 # define __EXTENSIONS__ 1
3724 $ac_includes_default
3725 int
3726 main (void)
3727 {
3728
3729 ;
3730 return 0;
3731 }
3732 _ACEOF
3733 if ac_fn_c_try_compile "$LINENO"
3734 then :
3735 ac_cv_safe_to_define___extensions__=yes
3736 else case e in #(
3737 e) ac_cv_safe_to_define___extensions__=no ;;
3738 esac
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3741 esac
3742 fi
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3744 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3745
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3747 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3748 if test ${ac_cv_should_define__xopen_source+y}
3749 then :
3750 printf %s "(cached) " >&6
3751 else case e in #(
3752 e) ac_cv_should_define__xopen_source=no
3753 if test $ac_cv_header_wchar_h = yes
3754 then :
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 #include <wchar.h>
3759 mbstate_t x;
3760 int
3761 main (void)
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"
3769 then :
3770
3771 else case e in #(
3772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 #define _XOPEN_SOURCE 500
3776 #include <wchar.h>
3777 mbstate_t x;
3778 int
3779 main (void)
3780 {
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"
3787 then :
3788 ac_cv_should_define__xopen_source=yes
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3791 esac
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3794 fi ;;
3795 esac
3796 fi
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3798 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3799
3800 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3801
3802 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3803
3804 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3805
3806 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3807
3808 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3809
3810 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3811
3812 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3813
3814 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3815
3816 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3817
3818 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3819
3820 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3821
3822 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3823
3824 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3825
3826 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3827
3828 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3829
3830 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3831
3832 if test $ac_cv_header_minix_config_h = yes
3833 then :
3834 MINIX=yes
3835 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3836
3837 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3838
3839 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3840
3841 else case e in #(
3842 e) MINIX= ;;
3843 esac
3844 fi
3845 if test $ac_cv_safe_to_define___extensions__ = yes
3846 then :
3847 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3848
3849 fi
3850 if test $ac_cv_should_define__xopen_source = yes
3851 then :
3852 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3853
3854 fi
3855
3856
3857 # Initialize Automake
3858 am__api_version='1.16'
3859
3860
3861 # Find a good install program. We prefer a C program (faster),
3862 # so one script is as good as another. But avoid the broken or
3863 # incompatible versions:
3864 # SysV /etc/install, /usr/sbin/install
3865 # SunOS /usr/etc/install
3866 # IRIX /sbin/install
3867 # AIX /bin/install
3868 # AmigaOS /C/install, which installs bootblocks on floppy discs
3869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3872 # OS/2's system install, which has a completely different semantic
3873 # ./install, which can be erroneously created by make from ./install.sh.
3874 # Reject install programs that cannot install multiple files.
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3876 printf %s "checking for a BSD-compatible install... " >&6; }
3877 if test -z "$INSTALL"; then
3878 if test ${ac_cv_path_install+y}
3879 then :
3880 printf %s "(cached) " >&6
3881 else case e in #(
3882 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 case $as_dir in #(((
3887 '') as_dir=./ ;;
3888 */) ;;
3889 *) as_dir=$as_dir/ ;;
3890 esac
3891 # Account for fact that we put trailing slashes in our PATH walk.
3892 case $as_dir in #((
3893 ./ | /[cC]/* | \
3894 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3895 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3896 /usr/ucb/* ) ;;
3897 *)
3898 # OSF1 and SCO ODT 3.0 have their own names for install.
3899 # Don't use installbsd from OSF since it installs stuff as root
3900 # by default.
3901 for ac_prog in ginstall scoinst install; do
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3904 if test $ac_prog = install &&
3905 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3906 # AIX install. It has an incompatible calling convention.
3907 :
3908 elif test $ac_prog = install &&
3909 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3910 # program-specific install script used by HP pwplus--don't use.
3911 :
3912 else
3913 rm -rf conftest.one conftest.two conftest.dir
3914 echo one > conftest.one
3915 echo two > conftest.two
3916 mkdir conftest.dir
3917 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3918 test -s conftest.one && test -s conftest.two &&
3919 test -s conftest.dir/conftest.one &&
3920 test -s conftest.dir/conftest.two
3921 then
3922 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3923 break 3
3924 fi
3925 fi
3926 fi
3927 done
3928 done
3929 ;;
3930 esac
3931
3932 done
3933 IFS=$as_save_IFS
3934
3935 rm -rf conftest.one conftest.two conftest.dir
3936 ;;
3937 esac
3938 fi
3939 if test ${ac_cv_path_install+y}; then
3940 INSTALL=$ac_cv_path_install
3941 else
3942 # As a last resort, use the slow shell script. Don't cache a
3943 # value for INSTALL within a source directory, because that will
3944 # break other packages using the cache if that directory is
3945 # removed, or if the value is a relative name.
3946 INSTALL=$ac_install_sh
3947 fi
3948 fi
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3950 printf "%s\n" "$INSTALL" >&6; }
3951
3952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3953 # It thinks the first close brace ends the variable substitution.
3954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3955
3956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3957
3958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3959
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3961 printf %s "checking whether build environment is sane... " >&6; }
3962 # Reject unsafe characters in $srcdir or the absolute working directory
3963 # name. Accept space and tab only in the latter.
3964 am_lf='
3965 '
3966 case `pwd` in
3967 *[\\\"\#\$\&\'\`$am_lf]*)
3968 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3969 esac
3970 case $srcdir in
3971 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3972 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3973 esac
3974
3975 # Do 'set' in a subshell so we don't clobber the current shell's
3976 # arguments. Must try -L first in case configure is actually a
3977 # symlink; some systems play weird games with the mod time of symlinks
3978 # (eg FreeBSD returns the mod time of the symlink's containing
3979 # directory).
3980 if (
3981 am_has_slept=no
3982 for am_try in 1 2; do
3983 echo "timestamp, slept: $am_has_slept" > conftest.file
3984 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3985 if test "$*" = "X"; then
3986 # -L didn't work.
3987 set X `ls -t "$srcdir/configure" conftest.file`
3988 fi
3989 if test "$*" != "X $srcdir/configure conftest.file" \
3990 && test "$*" != "X conftest.file $srcdir/configure"; then
3991
3992 # If neither matched, then we have a broken ls. This can happen
3993 # if, for instance, CONFIG_SHELL is bash and it inherits a
3994 # broken ls alias from the environment. This has actually
3995 # happened. Such a system could not be considered "sane".
3996 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3997 alias in your environment" "$LINENO" 5
3998 fi
3999 if test "$2" = conftest.file || test $am_try -eq 2; then
4000 break
4001 fi
4002 # Just in case.
4003 sleep 1
4004 am_has_slept=yes
4005 done
4006 test "$2" = conftest.file
4007 )
4008 then
4009 # Ok.
4010 :
4011 else
4012 as_fn_error $? "newly created file is older than distributed files!
4013 Check your system clock" "$LINENO" 5
4014 fi
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 printf "%s\n" "yes" >&6; }
4017 # If we didn't sleep, we still need to ensure time stamps of config.status and
4018 # generated files are strictly newer.
4019 am_sleep_pid=
4020 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4021 ( sleep 1 ) &
4022 am_sleep_pid=$!
4023 fi
4024
4025 rm -f conftest.file
4026
4027 test "$program_prefix" != NONE &&
4028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4029 # Use a double $ so make ignores it.
4030 test "$program_suffix" != NONE &&
4031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4032 # Double any \ or $.
4033 # By default was 's,x,x', remove it if useless.
4034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4035 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4036
4037
4038 if test x"${MISSING+set}" != xset; then
4039 MISSING="\${SHELL} '$am_aux_dir/missing'"
4040 fi
4041 # Use eval to expand $SHELL
4042 if eval "$MISSING --is-lightweight"; then
4043 am_missing_run="$MISSING "
4044 else
4045 am_missing_run=
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4047 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4048 fi
4049
4050 if test x"${install_sh+set}" != xset; then
4051 case $am_aux_dir in
4052 *\ * | *\ *)
4053 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4054 *)
4055 install_sh="\${SHELL} $am_aux_dir/install-sh"
4056 esac
4057 fi
4058
4059 # Installed binaries are usually stripped using 'strip' when the user
4060 # run "make install-strip". However 'strip' might not be the right
4061 # tool to use in cross-compilation environments, therefore Automake
4062 # will honor the 'STRIP' environment variable to overrule this program.
4063 if test "$cross_compiling" != no; then
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4066 set dummy ${ac_tool_prefix}strip; ac_word=$2
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 printf %s "checking for $ac_word... " >&6; }
4069 if test ${ac_cv_prog_STRIP+y}
4070 then :
4071 printf %s "(cached) " >&6
4072 else case e in #(
4073 e) if test -n "$STRIP"; then
4074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 case $as_dir in #(((
4081 '') as_dir=./ ;;
4082 */) ;;
4083 *) as_dir=$as_dir/ ;;
4084 esac
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091 done
4092 done
4093 IFS=$as_save_IFS
4094
4095 fi ;;
4096 esac
4097 fi
4098 STRIP=$ac_cv_prog_STRIP
4099 if test -n "$STRIP"; then
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4101 printf "%s\n" "$STRIP" >&6; }
4102 else
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 printf "%s\n" "no" >&6; }
4105 fi
4106
4107
4108 fi
4109 if test -z "$ac_cv_prog_STRIP"; then
4110 ac_ct_STRIP=$STRIP
4111 # Extract the first word of "strip", so it can be a program name with args.
4112 set dummy strip; ac_word=$2
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 printf %s "checking for $ac_word... " >&6; }
4115 if test ${ac_cv_prog_ac_ct_STRIP+y}
4116 then :
4117 printf %s "(cached) " >&6
4118 else case e in #(
4119 e) if test -n "$ac_ct_STRIP"; then
4120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125 IFS=$as_save_IFS
4126 case $as_dir in #(((
4127 '') as_dir=./ ;;
4128 */) ;;
4129 *) as_dir=$as_dir/ ;;
4130 esac
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_ac_ct_STRIP="strip"
4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi ;;
4142 esac
4143 fi
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4147 printf "%s\n" "$ac_ct_STRIP" >&6; }
4148 else
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 printf "%s\n" "no" >&6; }
4151 fi
4152
4153 if test "x$ac_ct_STRIP" = x; then
4154 STRIP=":"
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162 STRIP=$ac_ct_STRIP
4163 fi
4164 else
4165 STRIP="$ac_cv_prog_STRIP"
4166 fi
4167
4168 fi
4169 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4170
4171
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4173 printf %s "checking for a race-free mkdir -p... " >&6; }
4174 if test -z "$MKDIR_P"; then
4175 if test ${ac_cv_path_mkdir+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else case e in #(
4179 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4181 do
4182 IFS=$as_save_IFS
4183 case $as_dir in #(((
4184 '') as_dir=./ ;;
4185 */) ;;
4186 *) as_dir=$as_dir/ ;;
4187 esac
4188 for ac_prog in mkdir gmkdir; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4191 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4192 'mkdir ('*'coreutils) '* | \
4193 *'BusyBox '* | \
4194 'mkdir (fileutils) '4.1*)
4195 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4196 break 3;;
4197 esac
4198 done
4199 done
4200 done
4201 IFS=$as_save_IFS
4202 ;;
4203 esac
4204 fi
4205
4206 test -d ./--version && rmdir ./--version
4207 if test ${ac_cv_path_mkdir+y}; then
4208 MKDIR_P="$ac_cv_path_mkdir -p"
4209 else
4210 # As a last resort, use plain mkdir -p,
4211 # in the hope it doesn't have the bugs of ancient mkdir.
4212 MKDIR_P='mkdir -p'
4213 fi
4214 fi
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4216 printf "%s\n" "$MKDIR_P" >&6; }
4217
4218 for ac_prog in gawk mawk nawk awk
4219 do
4220 # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 printf %s "checking for $ac_word... " >&6; }
4224 if test ${ac_cv_prog_AWK+y}
4225 then :
4226 printf %s "(cached) " >&6
4227 else case e in #(
4228 e) if test -n "$AWK"; then
4229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 case $as_dir in #(((
4236 '') as_dir=./ ;;
4237 */) ;;
4238 *) as_dir=$as_dir/ ;;
4239 esac
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_AWK="$ac_prog"
4243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi ;;
4251 esac
4252 fi
4253 AWK=$ac_cv_prog_AWK
4254 if test -n "$AWK"; then
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4256 printf "%s\n" "$AWK" >&6; }
4257 else
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 printf "%s\n" "no" >&6; }
4260 fi
4261
4262
4263 test -n "$AWK" && break
4264 done
4265
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4267 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4268 set x ${MAKE-make}
4269 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4270 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4271 then :
4272 printf %s "(cached) " >&6
4273 else case e in #(
4274 e) cat >conftest.make <<\_ACEOF
4275 SHELL = /bin/sh
4276 all:
4277 @echo '@@@%%%=$(MAKE)=@@@%%%'
4278 _ACEOF
4279 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4281 *@@@%%%=?*=@@@%%%*)
4282 eval ac_cv_prog_make_${ac_make}_set=yes;;
4283 *)
4284 eval ac_cv_prog_make_${ac_make}_set=no;;
4285 esac
4286 rm -f conftest.make ;;
4287 esac
4288 fi
4289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 printf "%s\n" "yes" >&6; }
4292 SET_MAKE=
4293 else
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 printf "%s\n" "no" >&6; }
4296 SET_MAKE="MAKE=${MAKE-make}"
4297 fi
4298
4299 rm -rf .tst 2>/dev/null
4300 mkdir .tst 2>/dev/null
4301 if test -d .tst; then
4302 am__leading_dot=.
4303 else
4304 am__leading_dot=_
4305 fi
4306 rmdir .tst 2>/dev/null
4307
4308 DEPDIR="${am__leading_dot}deps"
4309
4310 ac_config_commands="$ac_config_commands depfiles"
4311
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4313 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4314 cat > confinc.mk << 'END'
4315 am__doit:
4316 @echo this is the am__doit target >confinc.out
4317 .PHONY: am__doit
4318 END
4319 am__include="#"
4320 am__quote=
4321 # BSD make does it like this.
4322 echo '.include "confinc.mk" # ignored' > confmf.BSD
4323 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4324 echo 'include confinc.mk # ignored' > confmf.GNU
4325 _am_result=no
4326 for s in GNU BSD; do
4327 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4328 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }
4332 case $?:`cat confinc.out 2>/dev/null` in #(
4333 '0:this is the am__doit target') :
4334 case $s in #(
4335 BSD) :
4336 am__include='.include' am__quote='"' ;; #(
4337 *) :
4338 am__include='include' am__quote='' ;;
4339 esac ;; #(
4340 *) :
4341 ;;
4342 esac
4343 if test "$am__include" != "#"; then
4344 _am_result="yes ($s style)"
4345 break
4346 fi
4347 done
4348 rm -f confinc.* confmf.*
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4350 printf "%s\n" "${_am_result}" >&6; }
4351
4352 # Check whether --enable-dependency-tracking was given.
4353 if test ${enable_dependency_tracking+y}
4354 then :
4355 enableval=$enable_dependency_tracking;
4356 fi
4357
4358 if test "x$enable_dependency_tracking" != xno; then
4359 am_depcomp="$ac_aux_dir/depcomp"
4360 AMDEPBACKSLASH='\'
4361 am__nodep='_no'
4362 fi
4363 if test "x$enable_dependency_tracking" != xno; then
4364 AMDEP_TRUE=
4365 AMDEP_FALSE='#'
4366 else
4367 AMDEP_TRUE='#'
4368 AMDEP_FALSE=
4369 fi
4370
4371
4372 # Check whether --enable-silent-rules was given.
4373 if test ${enable_silent_rules+y}
4374 then :
4375 enableval=$enable_silent_rules;
4376 fi
4377
4378 case $enable_silent_rules in # (((
4379 yes) AM_DEFAULT_VERBOSITY=0;;
4380 no) AM_DEFAULT_VERBOSITY=1;;
4381 *) AM_DEFAULT_VERBOSITY=1;;
4382 esac
4383 am_make=${MAKE-make}
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4385 printf %s "checking whether $am_make supports nested variables... " >&6; }
4386 if test ${am_cv_make_support_nested_variables+y}
4387 then :
4388 printf %s "(cached) " >&6
4389 else case e in #(
4390 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4391 BAR0=false
4392 BAR1=true
4393 V=1
4394 am__doit:
4395 @$(TRUE)
4396 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4397 am_cv_make_support_nested_variables=yes
4398 else
4399 am_cv_make_support_nested_variables=no
4400 fi ;;
4401 esac
4402 fi
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4404 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4405 if test $am_cv_make_support_nested_variables = yes; then
4406 AM_V='$(V)'
4407 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4408 else
4409 AM_V=$AM_DEFAULT_VERBOSITY
4410 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4411 fi
4412 AM_BACKSLASH='\'
4413
4414 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4416 # is not polluted with repeated "-I."
4417 am__isrc=' -I$(srcdir)'
4418 # test to see if srcdir already configured
4419 if test -f $srcdir/config.status; then
4420 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4421 fi
4422 fi
4423
4424 # test whether we have cygpath
4425 if test -z "$CYGPATH_W"; then
4426 if (cygpath --version) >/dev/null 2>/dev/null; then
4427 CYGPATH_W='cygpath -w'
4428 else
4429 CYGPATH_W=echo
4430 fi
4431 fi
4432
4433
4434 # Define the identity of the package.
4435 PACKAGE='makedepend'
4436 VERSION='1.0.9'
4437
4438
4439 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4440
4441
4442 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4443
4444 # Some tools Automake needs.
4445
4446 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447
4448
4449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450
4451
4452 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453
4454
4455 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456
4457
4458 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4459
4460 # For better backward compatibility. To be removed once Automake 1.9.x
4461 # dies out for good. For more background, see:
4462 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4464 mkdir_p='$(MKDIR_P)'
4465
4466 # We need awk for the "check" target (and possibly the TAP driver). The
4467 # system "awk" is bad on some platforms.
4468 # Always define AMTAR for backward compatibility. Yes, it's still used
4469 # in the wild :-( We should find a proper way to deprecate it ...
4470 AMTAR='$${TAR-tar}'
4471
4472
4473 # We'll loop over all known methods to create a tar archive until one works.
4474 _am_tools='gnutar pax cpio none'
4475
4476 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4477
4478
4479
4480
4481
4482 depcc="$CC" am_compiler_list=
4483
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4485 printf %s "checking dependency style of $depcc... " >&6; }
4486 if test ${am_cv_CC_dependencies_compiler_type+y}
4487 then :
4488 printf %s "(cached) " >&6
4489 else case e in #(
4490 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4491 # We make a subdir and do the tests there. Otherwise we can end up
4492 # making bogus files that we don't know about and never remove. For
4493 # instance it was reported that on HP-UX the gcc test will end up
4494 # making a dummy file named 'D' -- because '-MD' means "put the output
4495 # in D".
4496 rm -rf conftest.dir
4497 mkdir conftest.dir
4498 # Copy depcomp to subdir because otherwise we won't find it if we're
4499 # using a relative directory.
4500 cp "$am_depcomp" conftest.dir
4501 cd conftest.dir
4502 # We will build objects and dependencies in a subdirectory because
4503 # it helps to detect inapplicable dependency modes. For instance
4504 # both Tru64's cc and ICC support -MD to output dependencies as a
4505 # side effect of compilation, but ICC will put the dependencies in
4506 # the current directory while Tru64 will put them in the object
4507 # directory.
4508 mkdir sub
4509
4510 am_cv_CC_dependencies_compiler_type=none
4511 if test "$am_compiler_list" = ""; then
4512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4513 fi
4514 am__universal=false
4515 case " $depcc " in #(
4516 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4517 esac
4518
4519 for depmode in $am_compiler_list; do
4520 # Setup a source with many dependencies, because some compilers
4521 # like to wrap large dependency lists on column 80 (with \), and
4522 # we should not choose a depcomp mode which is confused by this.
4523 #
4524 # We need to recreate these files for each test, as the compiler may
4525 # overwrite some of them when testing with obscure command lines.
4526 # This happens at least with the AIX C compiler.
4527 : > sub/conftest.c
4528 for i in 1 2 3 4 5 6; do
4529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4531 # Solaris 10 /bin/sh.
4532 echo '/* dummy */' > sub/conftst$i.h
4533 done
4534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4535
4536 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4537 # mode. It turns out that the SunPro C++ compiler does not properly
4538 # handle '-M -o', and we need to detect this. Also, some Intel
4539 # versions had trouble with output in subdirs.
4540 am__obj=sub/conftest.${OBJEXT-o}
4541 am__minus_obj="-o $am__obj"
4542 case $depmode in
4543 gcc)
4544 # This depmode causes a compiler race in universal mode.
4545 test "$am__universal" = false || continue
4546 ;;
4547 nosideeffect)
4548 # After this tag, mechanisms are not by side-effect, so they'll
4549 # only be used when explicitly requested.
4550 if test "x$enable_dependency_tracking" = xyes; then
4551 continue
4552 else
4553 break
4554 fi
4555 ;;
4556 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4557 # This compiler won't grok '-c -o', but also, the minuso test has
4558 # not run yet. These depmodes are late enough in the game, and
4559 # so weak that their functioning should not be impacted.
4560 am__obj=conftest.${OBJEXT-o}
4561 am__minus_obj=
4562 ;;
4563 none) break ;;
4564 esac
4565 if depmode=$depmode \
4566 source=sub/conftest.c object=$am__obj \
4567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4569 >/dev/null 2>conftest.err &&
4570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4574 # icc doesn't choke on unknown options, it will just issue warnings
4575 # or remarks (even with -Werror). So we grep stderr for any message
4576 # that says an option was ignored or not supported.
4577 # When given -MP, icc 7.0 and 7.1 complain thusly:
4578 # icc: Command line warning: ignoring option '-M'; no argument required
4579 # The diagnosis changed in icc 8.0:
4580 # icc: Command line remark: option '-MP' not supported
4581 if (grep 'ignoring option' conftest.err ||
4582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4583 am_cv_CC_dependencies_compiler_type=$depmode
4584 break
4585 fi
4586 fi
4587 done
4588
4589 cd ..
4590 rm -rf conftest.dir
4591 else
4592 am_cv_CC_dependencies_compiler_type=none
4593 fi
4594 ;;
4595 esac
4596 fi
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4598 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4599 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4600
4601 if
4602 test "x$enable_dependency_tracking" != xno \
4603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4604 am__fastdepCC_TRUE=
4605 am__fastdepCC_FALSE='#'
4606 else
4607 am__fastdepCC_TRUE='#'
4608 am__fastdepCC_FALSE=
4609 fi
4610
4611
4612 # Variables for tags utilities; see am/tags.am
4613 if test -z "$CTAGS"; then
4614 CTAGS=ctags
4615 fi
4616
4617 if test -z "$ETAGS"; then
4618 ETAGS=etags
4619 fi
4620
4621 if test -z "$CSCOPE"; then
4622 CSCOPE=cscope
4623 fi
4624
4625
4626
4627 # POSIX will say in a future version that running "rm -f" with no argument
4628 # is OK; and we want to be able to make that assumption in our Makefile
4629 # recipes. So use an aggressive probe to check that the usage we want is
4630 # actually supported "in the wild" to an acceptable degree.
4631 # See automake bug#10828.
4632 # To make any issue more visible, cause the running configure to be aborted
4633 # by default if the 'rm' program in use doesn't match our expectations; the
4634 # user can still override this though.
4635 if rm -f && rm -fr && rm -rf; then : OK; else
4636 cat >&2 <<'END'
4637 Oops!
4638
4639 Your 'rm' program seems unable to run without file operands specified
4640 on the command line, even when the '-f' option is present. This is contrary
4641 to the behaviour of most rm programs out there, and not conforming with
4642 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4643
4644 Please tell bug-automake@gnu.org about your system, including the value
4645 of your $PATH and any error possibly output before this message. This
4646 can help us improve future automake versions.
4647
4648 END
4649 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4650 echo 'Configuration will proceed anyway, since you have set the' >&2
4651 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4652 echo >&2
4653 else
4654 cat >&2 <<'END'
4655 Aborting the configuration process, to ensure you take notice of the issue.
4656
4657 You can download and install GNU coreutils to get an 'rm' implementation
4658 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4659
4660 If you want to complete the configuration process using your problematic
4661 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4662 to "yes", and re-run configure.
4663
4664 END
4665 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4666 fi
4667 fi
4668
4669
4670 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4684 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4685 if test ${ac_cv_c_undeclared_builtin_options+y}
4686 then :
4687 printf %s "(cached) " >&6
4688 else case e in #(
4689 e) ac_save_CFLAGS=$CFLAGS
4690 ac_cv_c_undeclared_builtin_options='cannot detect'
4691 for ac_arg in '' -fno-builtin; do
4692 CFLAGS="$ac_save_CFLAGS $ac_arg"
4693 # This test program should *not* compile successfully.
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696
4697 int
4698 main (void)
4699 {
4700 (void) strchr;
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"
4706 then :
4707
4708 else case e in #(
4709 e) # This test program should compile successfully.
4710 # No library function is consistently available on
4711 # freestanding implementations, so test against a dummy
4712 # declaration. Include always-available headers on the
4713 # off chance that they somehow elicit warnings.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <float.h>
4717 #include <limits.h>
4718 #include <stdarg.h>
4719 #include <stddef.h>
4720 extern void ac_decl (int, char *);
4721
4722 int
4723 main (void)
4724 {
4725 (void) ac_decl (0, (char *) 0);
4726 (void) ac_decl;
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"
4733 then :
4734 if test x"$ac_arg" = x
4735 then :
4736 ac_cv_c_undeclared_builtin_options='none needed'
4737 else case e in #(
4738 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4739 esac
4740 fi
4741 break
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4744 esac
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4747 done
4748 CFLAGS=$ac_save_CFLAGS
4749 ;;
4750 esac
4751 fi
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4753 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4754 case $ac_cv_c_undeclared_builtin_options in #(
4755 'cannot detect') :
4756 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4757 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4758 as_fn_error $? "cannot make $CC report undeclared builtins
4759 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4760 'none needed') :
4761 ac_c_undeclared_builtin_options='' ;; #(
4762 *) :
4763 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4764 esac
4765
4766
4767
4768
4769
4770 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4771 if test "x$ac_cv_have_decl___clang__" = xyes
4772 then :
4773 CLANGCC="yes"
4774 else case e in #(
4775 e) CLANGCC="no" ;;
4776 esac
4777 fi
4778 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4779 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4780 then :
4781 INTELCC="yes"
4782 else case e in #(
4783 e) INTELCC="no" ;;
4784 esac
4785 fi
4786 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4787 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4788 then :
4789 SUNCC="yes"
4790 else case e in #(
4791 e) SUNCC="no" ;;
4792 esac
4793 fi
4794
4795
4796
4797
4798
4799
4800
4801
4802 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4803 if test -n "$ac_tool_prefix"; then
4804 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4805 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 printf %s "checking for $ac_word... " >&6; }
4808 if test ${ac_cv_path_PKG_CONFIG+y}
4809 then :
4810 printf %s "(cached) " >&6
4811 else case e in #(
4812 e) case $PKG_CONFIG in
4813 [\\/]* | ?:[\\/]*)
4814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4815 ;;
4816 *)
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 case $as_dir in #(((
4822 '') as_dir=./ ;;
4823 */) ;;
4824 *) as_dir=$as_dir/ ;;
4825 esac
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4828 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 ;;
4837 esac ;;
4838 esac
4839 fi
4840 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4841 if test -n "$PKG_CONFIG"; then
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4843 printf "%s\n" "$PKG_CONFIG" >&6; }
4844 else
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 printf "%s\n" "no" >&6; }
4847 fi
4848
4849
4850 fi
4851 if test -z "$ac_cv_path_PKG_CONFIG"; then
4852 ac_pt_PKG_CONFIG=$PKG_CONFIG
4853 # Extract the first word of "pkg-config", so it can be a program name with args.
4854 set dummy pkg-config; ac_word=$2
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 printf %s "checking for $ac_word... " >&6; }
4857 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) case $ac_pt_PKG_CONFIG in
4862 [\\/]* | ?:[\\/]*)
4863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4864 ;;
4865 *)
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 case $as_dir in #(((
4871 '') as_dir=./ ;;
4872 */) ;;
4873 *) as_dir=$as_dir/ ;;
4874 esac
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4877 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 ;;
4886 esac ;;
4887 esac
4888 fi
4889 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4890 if test -n "$ac_pt_PKG_CONFIG"; then
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4892 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4893 else
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 printf "%s\n" "no" >&6; }
4896 fi
4897
4898 if test "x$ac_pt_PKG_CONFIG" = x; then
4899 PKG_CONFIG=""
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907 PKG_CONFIG=$ac_pt_PKG_CONFIG
4908 fi
4909 else
4910 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4911 fi
4912
4913 fi
4914 if test -n "$PKG_CONFIG"; then
4915 _pkg_min_version=0.9.0
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4917 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4918 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4920 printf "%s\n" "yes" >&6; }
4921 else
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 printf "%s\n" "no" >&6; }
4924 PKG_CONFIG=""
4925 fi
4926 fi
4927
4928
4929 # Make sure we can run config.sub.
4930 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4931 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4932
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4934 printf %s "checking build system type... " >&6; }
4935 if test ${ac_cv_build+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else case e in #(
4939 e) ac_build_alias=$build_alias
4940 test "x$ac_build_alias" = x &&
4941 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4942 test "x$ac_build_alias" = x &&
4943 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4944 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4945 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4946 ;;
4947 esac
4948 fi
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4950 printf "%s\n" "$ac_cv_build" >&6; }
4951 case $ac_cv_build in
4952 *-*-*) ;;
4953 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4954 esac
4955 build=$ac_cv_build
4956 ac_save_IFS=$IFS; IFS='-'
4957 set x $ac_cv_build
4958 shift
4959 build_cpu=$1
4960 build_vendor=$2
4961 shift; shift
4962 # Remember, the first character of IFS is used to create $*,
4963 # except with old shells:
4964 build_os=$*
4965 IFS=$ac_save_IFS
4966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4967
4968
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4970 printf %s "checking host system type... " >&6; }
4971 if test ${ac_cv_host+y}
4972 then :
4973 printf %s "(cached) " >&6
4974 else case e in #(
4975 e) if test "x$host_alias" = x; then
4976 ac_cv_host=$ac_cv_build
4977 else
4978 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4979 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4980 fi
4981 ;;
4982 esac
4983 fi
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4985 printf "%s\n" "$ac_cv_host" >&6; }
4986 case $ac_cv_host in
4987 *-*-*) ;;
4988 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4989 esac
4990 host=$ac_cv_host
4991 ac_save_IFS=$IFS; IFS='-'
4992 set x $ac_cv_host
4993 shift
4994 host_cpu=$1
4995 host_vendor=$2
4996 shift; shift
4997 # Remember, the first character of IFS is used to create $*,
4998 # except with old shells:
4999 host_os=$*
5000 IFS=$ac_save_IFS
5001 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5002
5003
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5005 printf %s "checking for a sed that does not truncate output... " >&6; }
5006 if test ${ac_cv_path_SED+y}
5007 then :
5008 printf %s "(cached) " >&6
5009 else case e in #(
5010 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5011 for ac_i in 1 2 3 4 5 6 7; do
5012 ac_script="$ac_script$as_nl$ac_script"
5013 done
5014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5015 { ac_script=; unset ac_script;}
5016 if test -z "$SED"; then
5017 ac_path_SED_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 case $as_dir in #(((
5024 '') as_dir=./ ;;
5025 */) ;;
5026 *) as_dir=$as_dir/ ;;
5027 esac
5028 for ac_prog in sed gsed
5029 do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5032 as_fn_executable_p "$ac_path_SED" || continue
5033 # Check for GNU ac_path_SED and select it if it is found.
5034 # Check for GNU $ac_path_SED
5035 case `"$ac_path_SED" --version 2>&1` in #(
5036 *GNU*)
5037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5038 #(
5039 *)
5040 ac_count=0
5041 printf %s 0123456789 >"conftest.in"
5042 while :
5043 do
5044 cat "conftest.in" "conftest.in" >"conftest.tmp"
5045 mv "conftest.tmp" "conftest.in"
5046 cp "conftest.in" "conftest.nl"
5047 printf "%s\n" '' >> "conftest.nl"
5048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050 as_fn_arith $ac_count + 1 && ac_count=$as_val
5051 if test $ac_count -gt ${ac_path_SED_max-0}; then
5052 # Best one so far, save it but keep looking for a better one
5053 ac_cv_path_SED="$ac_path_SED"
5054 ac_path_SED_max=$ac_count
5055 fi
5056 # 10*(2^10) chars as input seems more than enough
5057 test $ac_count -gt 10 && break
5058 done
5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 esac
5061
5062 $ac_path_SED_found && break 3
5063 done
5064 done
5065 done
5066 IFS=$as_save_IFS
5067 if test -z "$ac_cv_path_SED"; then
5068 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5069 fi
5070 else
5071 ac_cv_path_SED=$SED
5072 fi
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5077 printf "%s\n" "$ac_cv_path_SED" >&6; }
5078 SED="$ac_cv_path_SED"
5079 rm -f conftest.sed
5080
5081
5082
5083
5084
5085
5086 # Check whether --enable-selective-werror was given.
5087 if test ${enable_selective_werror+y}
5088 then :
5089 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5090 else case e in #(
5091 e) SELECTIVE_WERROR=yes ;;
5092 esac
5093 fi
5094
5095
5096
5097
5098
5099 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5100 if test "x$SUNCC" = "xyes"; then
5101 BASE_CFLAGS="-v"
5102 else
5103 BASE_CFLAGS=""
5104 fi
5105
5106 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120 xorg_testset_save_CFLAGS="$CFLAGS"
5121
5122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5125 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5126 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5127 then :
5128 printf %s "(cached) " >&6
5129 else case e in #(
5130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 int i;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"
5135 then :
5136 xorg_cv_cc_flag_unknown_warning_option=yes
5137 else case e in #(
5138 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5139 esac
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5142 esac
5143 fi
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5145 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5147 CFLAGS="$xorg_testset_save_CFLAGS"
5148 fi
5149
5150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 fi
5154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5156 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5157 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5158 then :
5159 printf %s "(cached) " >&6
5160 else case e in #(
5161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int i;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"
5166 then :
5167 xorg_cv_cc_flag_unused_command_line_argument=yes
5168 else case e in #(
5169 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5170 esac
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5173 esac
5174 fi
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5176 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5178 CFLAGS="$xorg_testset_save_CFLAGS"
5179 fi
5180
5181 found="no"
5182
5183 if test $found = "no" ; then
5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186 fi
5187
5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5190 fi
5191
5192 CFLAGS="$CFLAGS -Wall"
5193
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5195 printf %s "checking if $CC supports -Wall... " >&6; }
5196 cacheid=xorg_cv_cc_flag__Wall
5197 if eval test \${$cacheid+y}
5198 then :
5199 printf %s "(cached) " >&6
5200 else case e in #(
5201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 int i;
5204 int
5205 main (void)
5206 {
5207
5208 ;
5209 return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_link "$LINENO"
5213 then :
5214 eval $cacheid=yes
5215 else case e in #(
5216 e) eval $cacheid=no ;;
5217 esac
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5220 conftest$ac_exeext conftest.$ac_ext ;;
5221 esac
5222 fi
5223
5224
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5226
5227 eval supported=\$$cacheid
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5229 printf "%s\n" "$supported" >&6; }
5230 if test "$supported" = "yes" ; then
5231 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5232 found="yes"
5233 fi
5234 fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 xorg_testset_save_CFLAGS="$CFLAGS"
5251
5252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5256 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5257 then :
5258 printf %s "(cached) " >&6
5259 else case e in #(
5260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 int i;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"
5265 then :
5266 xorg_cv_cc_flag_unknown_warning_option=yes
5267 else case e in #(
5268 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5269 esac
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5272 esac
5273 fi
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5275 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5277 CFLAGS="$xorg_testset_save_CFLAGS"
5278 fi
5279
5280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5283 fi
5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5286 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5287 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5288 then :
5289 printf %s "(cached) " >&6
5290 else case e in #(
5291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 int i;
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"
5296 then :
5297 xorg_cv_cc_flag_unused_command_line_argument=yes
5298 else case e in #(
5299 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5300 esac
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5303 esac
5304 fi
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5306 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5308 CFLAGS="$xorg_testset_save_CFLAGS"
5309 fi
5310
5311 found="no"
5312
5313 if test $found = "no" ; then
5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5316 fi
5317
5318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5320 fi
5321
5322 CFLAGS="$CFLAGS -Wpointer-arith"
5323
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5325 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5326 cacheid=xorg_cv_cc_flag__Wpointer_arith
5327 if eval test \${$cacheid+y}
5328 then :
5329 printf %s "(cached) " >&6
5330 else case e in #(
5331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 int i;
5334 int
5335 main (void)
5336 {
5337
5338 ;
5339 return 0;
5340 }
5341 _ACEOF
5342 if ac_fn_c_try_link "$LINENO"
5343 then :
5344 eval $cacheid=yes
5345 else case e in #(
5346 e) eval $cacheid=no ;;
5347 esac
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5350 conftest$ac_exeext conftest.$ac_ext ;;
5351 esac
5352 fi
5353
5354
5355 CFLAGS="$xorg_testset_save_CFLAGS"
5356
5357 eval supported=\$$cacheid
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5359 printf "%s\n" "$supported" >&6; }
5360 if test "$supported" = "yes" ; then
5361 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5362 found="yes"
5363 fi
5364 fi
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 xorg_testset_save_CFLAGS="$CFLAGS"
5381
5382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5385 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5386 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5387 then :
5388 printf %s "(cached) " >&6
5389 else case e in #(
5390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 int i;
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"
5395 then :
5396 xorg_cv_cc_flag_unknown_warning_option=yes
5397 else case e in #(
5398 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5399 esac
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5402 esac
5403 fi
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5405 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5407 CFLAGS="$xorg_testset_save_CFLAGS"
5408 fi
5409
5410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413 fi
5414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5416 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5417 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else case e in #(
5421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 int i;
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"
5426 then :
5427 xorg_cv_cc_flag_unused_command_line_argument=yes
5428 else case e in #(
5429 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5430 esac
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5433 esac
5434 fi
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5436 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5438 CFLAGS="$xorg_testset_save_CFLAGS"
5439 fi
5440
5441 found="no"
5442
5443 if test $found = "no" ; then
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 fi
5447
5448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450 fi
5451
5452 CFLAGS="$CFLAGS -Wmissing-declarations"
5453
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5455 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5456 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5457 if eval test \${$cacheid+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else case e in #(
5461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 int i;
5464 int
5465 main (void)
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_link "$LINENO"
5473 then :
5474 eval $cacheid=yes
5475 else case e in #(
5476 e) eval $cacheid=no ;;
5477 esac
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5480 conftest$ac_exeext conftest.$ac_ext ;;
5481 esac
5482 fi
5483
5484
5485 CFLAGS="$xorg_testset_save_CFLAGS"
5486
5487 eval supported=\$$cacheid
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5489 printf "%s\n" "$supported" >&6; }
5490 if test "$supported" = "yes" ; then
5491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5492 found="yes"
5493 fi
5494 fi
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 xorg_testset_save_CFLAGS="$CFLAGS"
5511
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5515 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5516 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5517 then :
5518 printf %s "(cached) " >&6
5519 else case e in #(
5520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"
5525 then :
5526 xorg_cv_cc_flag_unknown_warning_option=yes
5527 else case e in #(
5528 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5529 esac
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5532 esac
5533 fi
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538 fi
5539
5540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543 fi
5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5548 then :
5549 printf %s "(cached) " >&6
5550 else case e in #(
5551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 int i;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"
5556 then :
5557 xorg_cv_cc_flag_unused_command_line_argument=yes
5558 else case e in #(
5559 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5560 esac
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5563 esac
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5566 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569 fi
5570
5571 found="no"
5572
5573 if test $found = "no" ; then
5574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576 fi
5577
5578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5580 fi
5581
5582 CFLAGS="$CFLAGS -Wformat=2"
5583
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5585 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5586 cacheid=xorg_cv_cc_flag__Wformat_2
5587 if eval test \${$cacheid+y}
5588 then :
5589 printf %s "(cached) " >&6
5590 else case e in #(
5591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 int i;
5594 int
5595 main (void)
5596 {
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_link "$LINENO"
5603 then :
5604 eval $cacheid=yes
5605 else case e in #(
5606 e) eval $cacheid=no ;;
5607 esac
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5610 conftest$ac_exeext conftest.$ac_ext ;;
5611 esac
5612 fi
5613
5614
5615 CFLAGS="$xorg_testset_save_CFLAGS"
5616
5617 eval supported=\$$cacheid
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5619 printf "%s\n" "$supported" >&6; }
5620 if test "$supported" = "yes" ; then
5621 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5622 found="yes"
5623 fi
5624 fi
5625
5626 if test $found = "no" ; then
5627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629 fi
5630
5631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633 fi
5634
5635 CFLAGS="$CFLAGS -Wformat"
5636
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5638 printf %s "checking if $CC supports -Wformat... " >&6; }
5639 cacheid=xorg_cv_cc_flag__Wformat
5640 if eval test \${$cacheid+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else case e in #(
5644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 int i;
5647 int
5648 main (void)
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_link "$LINENO"
5656 then :
5657 eval $cacheid=yes
5658 else case e in #(
5659 e) eval $cacheid=no ;;
5660 esac
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5663 conftest$ac_exeext conftest.$ac_ext ;;
5664 esac
5665 fi
5666
5667
5668 CFLAGS="$xorg_testset_save_CFLAGS"
5669
5670 eval supported=\$$cacheid
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5672 printf "%s\n" "$supported" >&6; }
5673 if test "$supported" = "yes" ; then
5674 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5675 found="yes"
5676 fi
5677 fi
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 xorg_testset_save_CFLAGS="$CFLAGS"
5696
5697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5701 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5702 then :
5703 printf %s "(cached) " >&6
5704 else case e in #(
5705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 int i;
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"
5710 then :
5711 xorg_cv_cc_flag_unknown_warning_option=yes
5712 else case e in #(
5713 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5714 esac
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5717 esac
5718 fi
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5722 CFLAGS="$xorg_testset_save_CFLAGS"
5723 fi
5724
5725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 fi
5729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else case e in #(
5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"
5741 then :
5742 xorg_cv_cc_flag_unused_command_line_argument=yes
5743 else case e in #(
5744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5745 esac
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5748 esac
5749 fi
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5753 CFLAGS="$xorg_testset_save_CFLAGS"
5754 fi
5755
5756 found="no"
5757
5758 if test $found = "no" ; then
5759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761 fi
5762
5763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5765 fi
5766
5767 CFLAGS="$CFLAGS -Wstrict-prototypes"
5768
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5770 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5771 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5772 if eval test \${$cacheid+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else case e in #(
5776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 int i;
5779 int
5780 main (void)
5781 {
5782
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_link "$LINENO"
5788 then :
5789 eval $cacheid=yes
5790 else case e in #(
5791 e) eval $cacheid=no ;;
5792 esac
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795 conftest$ac_exeext conftest.$ac_ext ;;
5796 esac
5797 fi
5798
5799
5800 CFLAGS="$xorg_testset_save_CFLAGS"
5801
5802 eval supported=\$$cacheid
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5804 printf "%s\n" "$supported" >&6; }
5805 if test "$supported" = "yes" ; then
5806 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5807 found="yes"
5808 fi
5809 fi
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 xorg_testset_save_CFLAGS="$CFLAGS"
5826
5827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5831 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5832 then :
5833 printf %s "(cached) " >&6
5834 else case e in #(
5835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 int i;
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"
5840 then :
5841 xorg_cv_cc_flag_unknown_warning_option=yes
5842 else case e in #(
5843 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5844 esac
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5847 esac
5848 fi
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5852 CFLAGS="$xorg_testset_save_CFLAGS"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858 fi
5859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5863 then :
5864 printf %s "(cached) " >&6
5865 else case e in #(
5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 int i;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"
5871 then :
5872 xorg_cv_cc_flag_unused_command_line_argument=yes
5873 else case e in #(
5874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5875 esac
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5878 esac
5879 fi
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884 fi
5885
5886 found="no"
5887
5888 if test $found = "no" ; then
5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891 fi
5892
5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895 fi
5896
5897 CFLAGS="$CFLAGS -Wmissing-prototypes"
5898
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5900 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5901 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5902 if eval test \${$cacheid+y}
5903 then :
5904 printf %s "(cached) " >&6
5905 else case e in #(
5906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 int i;
5909 int
5910 main (void)
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_link "$LINENO"
5918 then :
5919 eval $cacheid=yes
5920 else case e in #(
5921 e) eval $cacheid=no ;;
5922 esac
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5925 conftest$ac_exeext conftest.$ac_ext ;;
5926 esac
5927 fi
5928
5929
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932 eval supported=\$$cacheid
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934 printf "%s\n" "$supported" >&6; }
5935 if test "$supported" = "yes" ; then
5936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5937 found="yes"
5938 fi
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 xorg_testset_save_CFLAGS="$CFLAGS"
5956
5957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5962 then :
5963 printf %s "(cached) " >&6
5964 else case e in #(
5965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"
5970 then :
5971 xorg_cv_cc_flag_unknown_warning_option=yes
5972 else case e in #(
5973 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5974 esac
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5977 esac
5978 fi
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5982 CFLAGS="$xorg_testset_save_CFLAGS"
5983 fi
5984
5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988 fi
5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5993 then :
5994 printf %s "(cached) " >&6
5995 else case e in #(
5996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 int i;
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"
6001 then :
6002 xorg_cv_cc_flag_unused_command_line_argument=yes
6003 else case e in #(
6004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6005 esac
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6008 esac
6009 fi
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6013 CFLAGS="$xorg_testset_save_CFLAGS"
6014 fi
6015
6016 found="no"
6017
6018 if test $found = "no" ; then
6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021 fi
6022
6023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6025 fi
6026
6027 CFLAGS="$CFLAGS -Wnested-externs"
6028
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6030 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6031 cacheid=xorg_cv_cc_flag__Wnested_externs
6032 if eval test \${$cacheid+y}
6033 then :
6034 printf %s "(cached) " >&6
6035 else case e in #(
6036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 int i;
6039 int
6040 main (void)
6041 {
6042
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"
6048 then :
6049 eval $cacheid=yes
6050 else case e in #(
6051 e) eval $cacheid=no ;;
6052 esac
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6055 conftest$ac_exeext conftest.$ac_ext ;;
6056 esac
6057 fi
6058
6059
6060 CFLAGS="$xorg_testset_save_CFLAGS"
6061
6062 eval supported=\$$cacheid
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6064 printf "%s\n" "$supported" >&6; }
6065 if test "$supported" = "yes" ; then
6066 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6067 found="yes"
6068 fi
6069 fi
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 xorg_testset_save_CFLAGS="$CFLAGS"
6086
6087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6092 then :
6093 printf %s "(cached) " >&6
6094 else case e in #(
6095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 int i;
6098 _ACEOF
6099 if ac_fn_c_try_compile "$LINENO"
6100 then :
6101 xorg_cv_cc_flag_unknown_warning_option=yes
6102 else case e in #(
6103 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6104 esac
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6107 esac
6108 fi
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6112 CFLAGS="$xorg_testset_save_CFLAGS"
6113 fi
6114
6115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6118 fi
6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6123 then :
6124 printf %s "(cached) " >&6
6125 else case e in #(
6126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 int i;
6129 _ACEOF
6130 if ac_fn_c_try_compile "$LINENO"
6131 then :
6132 xorg_cv_cc_flag_unused_command_line_argument=yes
6133 else case e in #(
6134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6135 esac
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6138 esac
6139 fi
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6143 CFLAGS="$xorg_testset_save_CFLAGS"
6144 fi
6145
6146 found="no"
6147
6148 if test $found = "no" ; then
6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151 fi
6152
6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155 fi
6156
6157 CFLAGS="$CFLAGS -Wbad-function-cast"
6158
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6160 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6161 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6162 if eval test \${$cacheid+y}
6163 then :
6164 printf %s "(cached) " >&6
6165 else case e in #(
6166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 int i;
6169 int
6170 main (void)
6171 {
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"
6178 then :
6179 eval $cacheid=yes
6180 else case e in #(
6181 e) eval $cacheid=no ;;
6182 esac
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185 conftest$ac_exeext conftest.$ac_ext ;;
6186 esac
6187 fi
6188
6189
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192 eval supported=\$$cacheid
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194 printf "%s\n" "$supported" >&6; }
6195 if test "$supported" = "yes" ; then
6196 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6197 found="yes"
6198 fi
6199 fi
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else case e in #(
6225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 int i;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"
6230 then :
6231 xorg_cv_cc_flag_unknown_warning_option=yes
6232 else case e in #(
6233 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6234 esac
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6237 esac
6238 fi
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6242 CFLAGS="$xorg_testset_save_CFLAGS"
6243 fi
6244
6245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6253 then :
6254 printf %s "(cached) " >&6
6255 else case e in #(
6256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 int i;
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"
6261 then :
6262 xorg_cv_cc_flag_unused_command_line_argument=yes
6263 else case e in #(
6264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6265 esac
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6268 esac
6269 fi
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6271 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6273 CFLAGS="$xorg_testset_save_CFLAGS"
6274 fi
6275
6276 found="no"
6277
6278 if test $found = "no" ; then
6279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281 fi
6282
6283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6285 fi
6286
6287 CFLAGS="$CFLAGS -Wold-style-definition"
6288
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6290 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6291 cacheid=xorg_cv_cc_flag__Wold_style_definition
6292 if eval test \${$cacheid+y}
6293 then :
6294 printf %s "(cached) " >&6
6295 else case e in #(
6296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 int i;
6299 int
6300 main (void)
6301 {
6302
6303 ;
6304 return 0;
6305 }
6306 _ACEOF
6307 if ac_fn_c_try_link "$LINENO"
6308 then :
6309 eval $cacheid=yes
6310 else case e in #(
6311 e) eval $cacheid=no ;;
6312 esac
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6315 conftest$ac_exeext conftest.$ac_ext ;;
6316 esac
6317 fi
6318
6319
6320 CFLAGS="$xorg_testset_save_CFLAGS"
6321
6322 eval supported=\$$cacheid
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6324 printf "%s\n" "$supported" >&6; }
6325 if test "$supported" = "yes" ; then
6326 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6327 found="yes"
6328 fi
6329 fi
6330
6331 if test $found = "no" ; then
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335
6336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338 fi
6339
6340 CFLAGS="$CFLAGS -fd"
6341
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6343 printf %s "checking if $CC supports -fd... " >&6; }
6344 cacheid=xorg_cv_cc_flag__fd
6345 if eval test \${$cacheid+y}
6346 then :
6347 printf %s "(cached) " >&6
6348 else case e in #(
6349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 int i;
6352 int
6353 main (void)
6354 {
6355
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"
6361 then :
6362 eval $cacheid=yes
6363 else case e in #(
6364 e) eval $cacheid=no ;;
6365 esac
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6368 conftest$ac_exeext conftest.$ac_ext ;;
6369 esac
6370 fi
6371
6372
6373 CFLAGS="$xorg_testset_save_CFLAGS"
6374
6375 eval supported=\$$cacheid
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6377 printf "%s\n" "$supported" >&6; }
6378 if test "$supported" = "yes" ; then
6379 BASE_CFLAGS="$BASE_CFLAGS -fd"
6380 found="yes"
6381 fi
6382 fi
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 xorg_testset_save_CFLAGS="$CFLAGS"
6399
6400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6405 then :
6406 printf %s "(cached) " >&6
6407 else case e in #(
6408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 int i;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"
6413 then :
6414 xorg_cv_cc_flag_unknown_warning_option=yes
6415 else case e in #(
6416 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6417 esac
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6420 esac
6421 fi
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6425 CFLAGS="$xorg_testset_save_CFLAGS"
6426 fi
6427
6428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431 fi
6432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6436 then :
6437 printf %s "(cached) " >&6
6438 else case e in #(
6439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 int i;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"
6444 then :
6445 xorg_cv_cc_flag_unused_command_line_argument=yes
6446 else case e in #(
6447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6448 esac
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6451 esac
6452 fi
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457 fi
6458
6459 found="no"
6460
6461 if test $found = "no" ; then
6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464 fi
6465
6466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468 fi
6469
6470 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6471
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6473 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6474 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6475 if eval test \${$cacheid+y}
6476 then :
6477 printf %s "(cached) " >&6
6478 else case e in #(
6479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481 int i;
6482 int
6483 main (void)
6484 {
6485
6486 ;
6487 return 0;
6488 }
6489 _ACEOF
6490 if ac_fn_c_try_link "$LINENO"
6491 then :
6492 eval $cacheid=yes
6493 else case e in #(
6494 e) eval $cacheid=no ;;
6495 esac
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6498 conftest$ac_exeext conftest.$ac_ext ;;
6499 esac
6500 fi
6501
6502
6503 CFLAGS="$xorg_testset_save_CFLAGS"
6504
6505 eval supported=\$$cacheid
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6507 printf "%s\n" "$supported" >&6; }
6508 if test "$supported" = "yes" ; then
6509 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6510 found="yes"
6511 fi
6512 fi
6513
6514
6515
6516
6517
6518 # This chunk adds additional warnings that could catch undesired effects.
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532 xorg_testset_save_CFLAGS="$CFLAGS"
6533
6534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6539 then :
6540 printf %s "(cached) " >&6
6541 else case e in #(
6542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6544 int i;
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"
6547 then :
6548 xorg_cv_cc_flag_unknown_warning_option=yes
6549 else case e in #(
6550 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6551 esac
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6554 esac
6555 fi
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560 fi
6561
6562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565 fi
6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else case e in #(
6573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 int i;
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"
6578 then :
6579 xorg_cv_cc_flag_unused_command_line_argument=yes
6580 else case e in #(
6581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6582 esac
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6585 esac
6586 fi
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6588 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6590 CFLAGS="$xorg_testset_save_CFLAGS"
6591 fi
6592
6593 found="no"
6594
6595 if test $found = "no" ; then
6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598 fi
6599
6600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6602 fi
6603
6604 CFLAGS="$CFLAGS -Wunused"
6605
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6607 printf %s "checking if $CC supports -Wunused... " >&6; }
6608 cacheid=xorg_cv_cc_flag__Wunused
6609 if eval test \${$cacheid+y}
6610 then :
6611 printf %s "(cached) " >&6
6612 else case e in #(
6613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 int i;
6616 int
6617 main (void)
6618 {
6619
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 if ac_fn_c_try_link "$LINENO"
6625 then :
6626 eval $cacheid=yes
6627 else case e in #(
6628 e) eval $cacheid=no ;;
6629 esac
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6632 conftest$ac_exeext conftest.$ac_ext ;;
6633 esac
6634 fi
6635
6636
6637 CFLAGS="$xorg_testset_save_CFLAGS"
6638
6639 eval supported=\$$cacheid
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6641 printf "%s\n" "$supported" >&6; }
6642 if test "$supported" = "yes" ; then
6643 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6644 found="yes"
6645 fi
6646 fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 xorg_testset_save_CFLAGS="$CFLAGS"
6663
6664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6669 then :
6670 printf %s "(cached) " >&6
6671 else case e in #(
6672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 int i;
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"
6677 then :
6678 xorg_cv_cc_flag_unknown_warning_option=yes
6679 else case e in #(
6680 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6681 esac
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6684 esac
6685 fi
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6690 fi
6691
6692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695 fi
6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6700 then :
6701 printf %s "(cached) " >&6
6702 else case e in #(
6703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 int i;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"
6708 then :
6709 xorg_cv_cc_flag_unused_command_line_argument=yes
6710 else case e in #(
6711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6712 esac
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6715 esac
6716 fi
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720 CFLAGS="$xorg_testset_save_CFLAGS"
6721 fi
6722
6723 found="no"
6724
6725 if test $found = "no" ; then
6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 fi
6729
6730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 fi
6733
6734 CFLAGS="$CFLAGS -Wuninitialized"
6735
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6737 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6738 cacheid=xorg_cv_cc_flag__Wuninitialized
6739 if eval test \${$cacheid+y}
6740 then :
6741 printf %s "(cached) " >&6
6742 else case e in #(
6743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 int i;
6746 int
6747 main (void)
6748 {
6749
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"
6755 then :
6756 eval $cacheid=yes
6757 else case e in #(
6758 e) eval $cacheid=no ;;
6759 esac
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6762 conftest$ac_exeext conftest.$ac_ext ;;
6763 esac
6764 fi
6765
6766
6767 CFLAGS="$xorg_testset_save_CFLAGS"
6768
6769 eval supported=\$$cacheid
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6771 printf "%s\n" "$supported" >&6; }
6772 if test "$supported" = "yes" ; then
6773 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6774 found="yes"
6775 fi
6776 fi
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792 xorg_testset_save_CFLAGS="$CFLAGS"
6793
6794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6799 then :
6800 printf %s "(cached) " >&6
6801 else case e in #(
6802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 _ACEOF
6806 if ac_fn_c_try_compile "$LINENO"
6807 then :
6808 xorg_cv_cc_flag_unknown_warning_option=yes
6809 else case e in #(
6810 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6811 esac
6812 fi
6813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6814 esac
6815 fi
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6817 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6819 CFLAGS="$xorg_testset_save_CFLAGS"
6820 fi
6821
6822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825 fi
6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6828 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6829 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6830 then :
6831 printf %s "(cached) " >&6
6832 else case e in #(
6833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 int i;
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"
6838 then :
6839 xorg_cv_cc_flag_unused_command_line_argument=yes
6840 else case e in #(
6841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6842 esac
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6845 esac
6846 fi
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850 CFLAGS="$xorg_testset_save_CFLAGS"
6851 fi
6852
6853 found="no"
6854
6855 if test $found = "no" ; then
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859
6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862 fi
6863
6864 CFLAGS="$CFLAGS -Wshadow"
6865
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6867 printf %s "checking if $CC supports -Wshadow... " >&6; }
6868 cacheid=xorg_cv_cc_flag__Wshadow
6869 if eval test \${$cacheid+y}
6870 then :
6871 printf %s "(cached) " >&6
6872 else case e in #(
6873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 int
6877 main (void)
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"
6885 then :
6886 eval $cacheid=yes
6887 else case e in #(
6888 e) eval $cacheid=no ;;
6889 esac
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6892 conftest$ac_exeext conftest.$ac_ext ;;
6893 esac
6894 fi
6895
6896
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6898
6899 eval supported=\$$cacheid
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6901 printf "%s\n" "$supported" >&6; }
6902 if test "$supported" = "yes" ; then
6903 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6904 found="yes"
6905 fi
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 xorg_testset_save_CFLAGS="$CFLAGS"
6923
6924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6927 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6928 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6929 then :
6930 printf %s "(cached) " >&6
6931 else case e in #(
6932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 int i;
6935 _ACEOF
6936 if ac_fn_c_try_compile "$LINENO"
6937 then :
6938 xorg_cv_cc_flag_unknown_warning_option=yes
6939 else case e in #(
6940 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6941 esac
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6944 esac
6945 fi
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6947 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6949 CFLAGS="$xorg_testset_save_CFLAGS"
6950 fi
6951
6952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6955 fi
6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6958 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6959 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6960 then :
6961 printf %s "(cached) " >&6
6962 else case e in #(
6963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 int i;
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"
6968 then :
6969 xorg_cv_cc_flag_unused_command_line_argument=yes
6970 else case e in #(
6971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6972 esac
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6975 esac
6976 fi
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6980 CFLAGS="$xorg_testset_save_CFLAGS"
6981 fi
6982
6983 found="no"
6984
6985 if test $found = "no" ; then
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 fi
6989
6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6992 fi
6993
6994 CFLAGS="$CFLAGS -Wmissing-noreturn"
6995
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6997 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6998 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6999 if eval test \${$cacheid+y}
7000 then :
7001 printf %s "(cached) " >&6
7002 else case e in #(
7003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 int i;
7006 int
7007 main (void)
7008 {
7009
7010 ;
7011 return 0;
7012 }
7013 _ACEOF
7014 if ac_fn_c_try_link "$LINENO"
7015 then :
7016 eval $cacheid=yes
7017 else case e in #(
7018 e) eval $cacheid=no ;;
7019 esac
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7022 conftest$ac_exeext conftest.$ac_ext ;;
7023 esac
7024 fi
7025
7026
7027 CFLAGS="$xorg_testset_save_CFLAGS"
7028
7029 eval supported=\$$cacheid
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7031 printf "%s\n" "$supported" >&6; }
7032 if test "$supported" = "yes" ; then
7033 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7034 found="yes"
7035 fi
7036 fi
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052 xorg_testset_save_CFLAGS="$CFLAGS"
7053
7054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7058 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else case e in #(
7062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 _ACEOF
7066 if ac_fn_c_try_compile "$LINENO"
7067 then :
7068 xorg_cv_cc_flag_unknown_warning_option=yes
7069 else case e in #(
7070 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7071 esac
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7074 esac
7075 fi
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7077 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080 fi
7081
7082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7085 fi
7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7088 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7089 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7090 then :
7091 printf %s "(cached) " >&6
7092 else case e in #(
7093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 int i;
7096 _ACEOF
7097 if ac_fn_c_try_compile "$LINENO"
7098 then :
7099 xorg_cv_cc_flag_unused_command_line_argument=yes
7100 else case e in #(
7101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7102 esac
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7105 esac
7106 fi
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7108 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7110 CFLAGS="$xorg_testset_save_CFLAGS"
7111 fi
7112
7113 found="no"
7114
7115 if test $found = "no" ; then
7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118 fi
7119
7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7122 fi
7123
7124 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7125
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7127 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7128 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7129 if eval test \${$cacheid+y}
7130 then :
7131 printf %s "(cached) " >&6
7132 else case e in #(
7133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 int i;
7136 int
7137 main (void)
7138 {
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_link "$LINENO"
7145 then :
7146 eval $cacheid=yes
7147 else case e in #(
7148 e) eval $cacheid=no ;;
7149 esac
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7152 conftest$ac_exeext conftest.$ac_ext ;;
7153 esac
7154 fi
7155
7156
7157 CFLAGS="$xorg_testset_save_CFLAGS"
7158
7159 eval supported=\$$cacheid
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7161 printf "%s\n" "$supported" >&6; }
7162 if test "$supported" = "yes" ; then
7163 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7164 found="yes"
7165 fi
7166 fi
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 xorg_testset_save_CFLAGS="$CFLAGS"
7183
7184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7189 then :
7190 printf %s "(cached) " >&6
7191 else case e in #(
7192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 int i;
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"
7197 then :
7198 xorg_cv_cc_flag_unknown_warning_option=yes
7199 else case e in #(
7200 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7201 esac
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7204 esac
7205 fi
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7210 fi
7211
7212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215 fi
7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7220 then :
7221 printf %s "(cached) " >&6
7222 else case e in #(
7223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 int i;
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"
7228 then :
7229 xorg_cv_cc_flag_unused_command_line_argument=yes
7230 else case e in #(
7231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7232 esac
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7235 esac
7236 fi
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7240 CFLAGS="$xorg_testset_save_CFLAGS"
7241 fi
7242
7243 found="no"
7244
7245 if test $found = "no" ; then
7246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 fi
7249
7250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7252 fi
7253
7254 CFLAGS="$CFLAGS -Wredundant-decls"
7255
7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7257 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7258 cacheid=xorg_cv_cc_flag__Wredundant_decls
7259 if eval test \${$cacheid+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else case e in #(
7263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265 int i;
7266 int
7267 main (void)
7268 {
7269
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_link "$LINENO"
7275 then :
7276 eval $cacheid=yes
7277 else case e in #(
7278 e) eval $cacheid=no ;;
7279 esac
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7282 conftest$ac_exeext conftest.$ac_ext ;;
7283 esac
7284 fi
7285
7286
7287 CFLAGS="$xorg_testset_save_CFLAGS"
7288
7289 eval supported=\$$cacheid
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7291 printf "%s\n" "$supported" >&6; }
7292 if test "$supported" = "yes" ; then
7293 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7294 found="yes"
7295 fi
7296 fi
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312 xorg_testset_save_CFLAGS="$CFLAGS"
7313
7314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7317 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7318 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else case e in #(
7322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 int i;
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"
7327 then :
7328 xorg_cv_cc_flag_unknown_warning_option=yes
7329 else case e in #(
7330 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7331 esac
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7334 esac
7335 fi
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7337 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7339 CFLAGS="$xorg_testset_save_CFLAGS"
7340 fi
7341
7342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345 fi
7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7348 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7349 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7350 then :
7351 printf %s "(cached) " >&6
7352 else case e in #(
7353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 int i;
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"
7358 then :
7359 xorg_cv_cc_flag_unused_command_line_argument=yes
7360 else case e in #(
7361 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7362 esac
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7365 esac
7366 fi
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7370 CFLAGS="$xorg_testset_save_CFLAGS"
7371 fi
7372
7373 found="no"
7374
7375 if test $found = "no" ; then
7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378 fi
7379
7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382 fi
7383
7384 CFLAGS="$CFLAGS -Wlogical-op"
7385
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7387 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7388 cacheid=xorg_cv_cc_flag__Wlogical_op
7389 if eval test \${$cacheid+y}
7390 then :
7391 printf %s "(cached) " >&6
7392 else case e in #(
7393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 int i;
7396 int
7397 main (void)
7398 {
7399
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"
7405 then :
7406 eval $cacheid=yes
7407 else case e in #(
7408 e) eval $cacheid=no ;;
7409 esac
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7412 conftest$ac_exeext conftest.$ac_ext ;;
7413 esac
7414 fi
7415
7416
7417 CFLAGS="$xorg_testset_save_CFLAGS"
7418
7419 eval supported=\$$cacheid
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7421 printf "%s\n" "$supported" >&6; }
7422 if test "$supported" = "yes" ; then
7423 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7424 found="yes"
7425 fi
7426 fi
7427
7428
7429
7430 # These are currently disabled because they are noisy. They will be enabled
7431 # in the future once the codebase is sufficiently modernized to silence
7432 # them. For now, I don't want them to drown out the other warnings.
7433 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7434 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7435 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7436
7437 # Turn some warnings into errors, so we don't accidentally get successful builds
7438 # when there are problems that should be fixed.
7439
7440 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 xorg_testset_save_CFLAGS="$CFLAGS"
7455
7456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7460 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7461 then :
7462 printf %s "(cached) " >&6
7463 else case e in #(
7464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 int i;
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"
7469 then :
7470 xorg_cv_cc_flag_unknown_warning_option=yes
7471 else case e in #(
7472 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7473 esac
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7476 esac
7477 fi
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7481 CFLAGS="$xorg_testset_save_CFLAGS"
7482 fi
7483
7484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487 fi
7488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7492 then :
7493 printf %s "(cached) " >&6
7494 else case e in #(
7495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 int i;
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"
7500 then :
7501 xorg_cv_cc_flag_unused_command_line_argument=yes
7502 else case e in #(
7503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7504 esac
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7507 esac
7508 fi
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7512 CFLAGS="$xorg_testset_save_CFLAGS"
7513 fi
7514
7515 found="no"
7516
7517 if test $found = "no" ; then
7518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7520 fi
7521
7522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7524 fi
7525
7526 CFLAGS="$CFLAGS -Werror=implicit"
7527
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7529 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7530 cacheid=xorg_cv_cc_flag__Werror_implicit
7531 if eval test \${$cacheid+y}
7532 then :
7533 printf %s "(cached) " >&6
7534 else case e in #(
7535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 int i;
7538 int
7539 main (void)
7540 {
7541
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_link "$LINENO"
7547 then :
7548 eval $cacheid=yes
7549 else case e in #(
7550 e) eval $cacheid=no ;;
7551 esac
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7554 conftest$ac_exeext conftest.$ac_ext ;;
7555 esac
7556 fi
7557
7558
7559 CFLAGS="$xorg_testset_save_CFLAGS"
7560
7561 eval supported=\$$cacheid
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7563 printf "%s\n" "$supported" >&6; }
7564 if test "$supported" = "yes" ; then
7565 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7566 found="yes"
7567 fi
7568 fi
7569
7570 if test $found = "no" ; then
7571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7573 fi
7574
7575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577 fi
7578
7579 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7580
7581 { 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
7582 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7583 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7584 if eval test \${$cacheid+y}
7585 then :
7586 printf %s "(cached) " >&6
7587 else case e in #(
7588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 int i;
7591 int
7592 main (void)
7593 {
7594
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_link "$LINENO"
7600 then :
7601 eval $cacheid=yes
7602 else case e in #(
7603 e) eval $cacheid=no ;;
7604 esac
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7607 conftest$ac_exeext conftest.$ac_ext ;;
7608 esac
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 -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
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 case e in #(
7647 e) 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 case e in #(
7655 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7656 esac
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7659 esac
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7662 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7664 CFLAGS="$xorg_testset_save_CFLAGS"
7665 fi
7666
7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7670 fi
7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7673 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7674 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else case e in #(
7678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 int i;
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"
7683 then :
7684 xorg_cv_cc_flag_unused_command_line_argument=yes
7685 else case e in #(
7686 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7687 esac
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7690 esac
7691 fi
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7693 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7695 CFLAGS="$xorg_testset_save_CFLAGS"
7696 fi
7697
7698 found="no"
7699
7700 if test $found = "no" ; then
7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703 fi
7704
7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7707 fi
7708
7709 CFLAGS="$CFLAGS -Werror=nonnull"
7710
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7712 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7713 cacheid=xorg_cv_cc_flag__Werror_nonnull
7714 if eval test \${$cacheid+y}
7715 then :
7716 printf %s "(cached) " >&6
7717 else case e in #(
7718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 int i;
7721 int
7722 main (void)
7723 {
7724
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"
7730 then :
7731 eval $cacheid=yes
7732 else case e in #(
7733 e) eval $cacheid=no ;;
7734 esac
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7737 conftest$ac_exeext conftest.$ac_ext ;;
7738 esac
7739 fi
7740
7741
7742 CFLAGS="$xorg_testset_save_CFLAGS"
7743
7744 eval supported=\$$cacheid
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7746 printf "%s\n" "$supported" >&6; }
7747 if test "$supported" = "yes" ; then
7748 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7749 found="yes"
7750 fi
7751 fi
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 xorg_testset_save_CFLAGS="$CFLAGS"
7768
7769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7773 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7774 then :
7775 printf %s "(cached) " >&6
7776 else case e in #(
7777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 int i;
7780 _ACEOF
7781 if ac_fn_c_try_compile "$LINENO"
7782 then :
7783 xorg_cv_cc_flag_unknown_warning_option=yes
7784 else case e in #(
7785 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7786 esac
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7789 esac
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800 fi
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else case e in #(
7808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 int i;
7811 _ACEOF
7812 if ac_fn_c_try_compile "$LINENO"
7813 then :
7814 xorg_cv_cc_flag_unused_command_line_argument=yes
7815 else case e in #(
7816 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7817 esac
7818 fi
7819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7820 esac
7821 fi
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7823 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7825 CFLAGS="$xorg_testset_save_CFLAGS"
7826 fi
7827
7828 found="no"
7829
7830 if test $found = "no" ; then
7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833 fi
7834
7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837 fi
7838
7839 CFLAGS="$CFLAGS -Werror=init-self"
7840
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7842 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7843 cacheid=xorg_cv_cc_flag__Werror_init_self
7844 if eval test \${$cacheid+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else case e in #(
7848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 int i;
7851 int
7852 main (void)
7853 {
7854
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_link "$LINENO"
7860 then :
7861 eval $cacheid=yes
7862 else case e in #(
7863 e) eval $cacheid=no ;;
7864 esac
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7867 conftest$ac_exeext conftest.$ac_ext ;;
7868 esac
7869 fi
7870
7871
7872 CFLAGS="$xorg_testset_save_CFLAGS"
7873
7874 eval supported=\$$cacheid
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7876 printf "%s\n" "$supported" >&6; }
7877 if test "$supported" = "yes" ; then
7878 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7879 found="yes"
7880 fi
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897 xorg_testset_save_CFLAGS="$CFLAGS"
7898
7899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7903 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7904 then :
7905 printf %s "(cached) " >&6
7906 else case e in #(
7907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 int i;
7910 _ACEOF
7911 if ac_fn_c_try_compile "$LINENO"
7912 then :
7913 xorg_cv_cc_flag_unknown_warning_option=yes
7914 else case e in #(
7915 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7916 esac
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7919 esac
7920 fi
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7924 CFLAGS="$xorg_testset_save_CFLAGS"
7925 fi
7926
7927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 fi
7931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else case e in #(
7938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 int i;
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"
7943 then :
7944 xorg_cv_cc_flag_unused_command_line_argument=yes
7945 else case e in #(
7946 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7947 esac
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7950 esac
7951 fi
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7953 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7955 CFLAGS="$xorg_testset_save_CFLAGS"
7956 fi
7957
7958 found="no"
7959
7960 if test $found = "no" ; then
7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963 fi
7964
7965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7967 fi
7968
7969 CFLAGS="$CFLAGS -Werror=main"
7970
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7972 printf %s "checking if $CC supports -Werror=main... " >&6; }
7973 cacheid=xorg_cv_cc_flag__Werror_main
7974 if eval test \${$cacheid+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else case e in #(
7978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 int i;
7981 int
7982 main (void)
7983 {
7984
7985 ;
7986 return 0;
7987 }
7988 _ACEOF
7989 if ac_fn_c_try_link "$LINENO"
7990 then :
7991 eval $cacheid=yes
7992 else case e in #(
7993 e) eval $cacheid=no ;;
7994 esac
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7997 conftest$ac_exeext conftest.$ac_ext ;;
7998 esac
7999 fi
8000
8001
8002 CFLAGS="$xorg_testset_save_CFLAGS"
8003
8004 eval supported=\$$cacheid
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8006 printf "%s\n" "$supported" >&6; }
8007 if test "$supported" = "yes" ; then
8008 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8009 found="yes"
8010 fi
8011 fi
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 xorg_testset_save_CFLAGS="$CFLAGS"
8028
8029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8033 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8034 then :
8035 printf %s "(cached) " >&6
8036 else case e in #(
8037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 int i;
8040 _ACEOF
8041 if ac_fn_c_try_compile "$LINENO"
8042 then :
8043 xorg_cv_cc_flag_unknown_warning_option=yes
8044 else case e in #(
8045 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8046 esac
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8049 esac
8050 fi
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8052 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8054 CFLAGS="$xorg_testset_save_CFLAGS"
8055 fi
8056
8057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060 fi
8061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8065 then :
8066 printf %s "(cached) " >&6
8067 else case e in #(
8068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 int i;
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"
8073 then :
8074 xorg_cv_cc_flag_unused_command_line_argument=yes
8075 else case e in #(
8076 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8077 esac
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8080 esac
8081 fi
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8083 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8085 CFLAGS="$xorg_testset_save_CFLAGS"
8086 fi
8087
8088 found="no"
8089
8090 if test $found = "no" ; then
8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093 fi
8094
8095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8097 fi
8098
8099 CFLAGS="$CFLAGS -Werror=missing-braces"
8100
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8102 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8103 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8104 if eval test \${$cacheid+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else case e in #(
8108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int i;
8111 int
8112 main (void)
8113 {
8114
8115 ;
8116 return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"
8120 then :
8121 eval $cacheid=yes
8122 else case e in #(
8123 e) eval $cacheid=no ;;
8124 esac
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8127 conftest$ac_exeext conftest.$ac_ext ;;
8128 esac
8129 fi
8130
8131
8132 CFLAGS="$xorg_testset_save_CFLAGS"
8133
8134 eval supported=\$$cacheid
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8136 printf "%s\n" "$supported" >&6; }
8137 if test "$supported" = "yes" ; then
8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8139 found="yes"
8140 fi
8141 fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157 xorg_testset_save_CFLAGS="$CFLAGS"
8158
8159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8164 then :
8165 printf %s "(cached) " >&6
8166 else case e in #(
8167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 int i;
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"
8172 then :
8173 xorg_cv_cc_flag_unknown_warning_option=yes
8174 else case e in #(
8175 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8176 esac
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8179 esac
8180 fi
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185 fi
8186
8187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190 fi
8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else case e in #(
8198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 int i;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"
8203 then :
8204 xorg_cv_cc_flag_unused_command_line_argument=yes
8205 else case e in #(
8206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8207 esac
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8210 esac
8211 fi
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8215 CFLAGS="$xorg_testset_save_CFLAGS"
8216 fi
8217
8218 found="no"
8219
8220 if test $found = "no" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224
8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227 fi
8228
8229 CFLAGS="$CFLAGS -Werror=sequence-point"
8230
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8232 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8233 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8234 if eval test \${$cacheid+y}
8235 then :
8236 printf %s "(cached) " >&6
8237 else case e in #(
8238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 int i;
8241 int
8242 main (void)
8243 {
8244
8245 ;
8246 return 0;
8247 }
8248 _ACEOF
8249 if ac_fn_c_try_link "$LINENO"
8250 then :
8251 eval $cacheid=yes
8252 else case e in #(
8253 e) eval $cacheid=no ;;
8254 esac
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8257 conftest$ac_exeext conftest.$ac_ext ;;
8258 esac
8259 fi
8260
8261
8262 CFLAGS="$xorg_testset_save_CFLAGS"
8263
8264 eval supported=\$$cacheid
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8266 printf "%s\n" "$supported" >&6; }
8267 if test "$supported" = "yes" ; then
8268 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8269 found="yes"
8270 fi
8271 fi
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 xorg_testset_save_CFLAGS="$CFLAGS"
8288
8289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8293 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8294 then :
8295 printf %s "(cached) " >&6
8296 else case e in #(
8297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 int i;
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"
8302 then :
8303 xorg_cv_cc_flag_unknown_warning_option=yes
8304 else case e in #(
8305 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8306 esac
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8309 esac
8310 fi
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315 fi
8316
8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else case e in #(
8328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 int i;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"
8333 then :
8334 xorg_cv_cc_flag_unused_command_line_argument=yes
8335 else case e in #(
8336 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8337 esac
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8340 esac
8341 fi
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8345 CFLAGS="$xorg_testset_save_CFLAGS"
8346 fi
8347
8348 found="no"
8349
8350 if test $found = "no" ; then
8351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353 fi
8354
8355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8357 fi
8358
8359 CFLAGS="$CFLAGS -Werror=return-type"
8360
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8362 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8363 cacheid=xorg_cv_cc_flag__Werror_return_type
8364 if eval test \${$cacheid+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else case e in #(
8368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 int i;
8371 int
8372 main (void)
8373 {
8374
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"
8380 then :
8381 eval $cacheid=yes
8382 else case e in #(
8383 e) eval $cacheid=no ;;
8384 esac
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8387 conftest$ac_exeext conftest.$ac_ext ;;
8388 esac
8389 fi
8390
8391
8392 CFLAGS="$xorg_testset_save_CFLAGS"
8393
8394 eval supported=\$$cacheid
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8396 printf "%s\n" "$supported" >&6; }
8397 if test "$supported" = "yes" ; then
8398 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8399 found="yes"
8400 fi
8401 fi
8402
8403 if test $found = "no" ; then
8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406 fi
8407
8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8410 fi
8411
8412 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8413
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8415 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8416 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8417 if eval test \${$cacheid+y}
8418 then :
8419 printf %s "(cached) " >&6
8420 else case e in #(
8421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423 int i;
8424 int
8425 main (void)
8426 {
8427
8428 ;
8429 return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_link "$LINENO"
8433 then :
8434 eval $cacheid=yes
8435 else case e in #(
8436 e) eval $cacheid=no ;;
8437 esac
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8440 conftest$ac_exeext conftest.$ac_ext ;;
8441 esac
8442 fi
8443
8444
8445 CFLAGS="$xorg_testset_save_CFLAGS"
8446
8447 eval supported=\$$cacheid
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8449 printf "%s\n" "$supported" >&6; }
8450 if test "$supported" = "yes" ; then
8451 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8452 found="yes"
8453 fi
8454 fi
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470 xorg_testset_save_CFLAGS="$CFLAGS"
8471
8472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8477 then :
8478 printf %s "(cached) " >&6
8479 else case e in #(
8480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 int i;
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"
8485 then :
8486 xorg_cv_cc_flag_unknown_warning_option=yes
8487 else case e in #(
8488 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8489 esac
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8492 esac
8493 fi
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8495 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498 fi
8499
8500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503 fi
8504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8506 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8507 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8508 then :
8509 printf %s "(cached) " >&6
8510 else case e in #(
8511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 int i;
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"
8516 then :
8517 xorg_cv_cc_flag_unused_command_line_argument=yes
8518 else case e in #(
8519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8520 esac
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8523 esac
8524 fi
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8526 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8528 CFLAGS="$xorg_testset_save_CFLAGS"
8529 fi
8530
8531 found="no"
8532
8533 if test $found = "no" ; then
8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8536 fi
8537
8538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8540 fi
8541
8542 CFLAGS="$CFLAGS -Werror=trigraphs"
8543
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8545 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8546 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8547 if eval test \${$cacheid+y}
8548 then :
8549 printf %s "(cached) " >&6
8550 else case e in #(
8551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 int i;
8554 int
8555 main (void)
8556 {
8557
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_link "$LINENO"
8563 then :
8564 eval $cacheid=yes
8565 else case e in #(
8566 e) eval $cacheid=no ;;
8567 esac
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8570 conftest$ac_exeext conftest.$ac_ext ;;
8571 esac
8572 fi
8573
8574
8575 CFLAGS="$xorg_testset_save_CFLAGS"
8576
8577 eval supported=\$$cacheid
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579 printf "%s\n" "$supported" >&6; }
8580 if test "$supported" = "yes" ; then
8581 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8582 found="yes"
8583 fi
8584 fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8607 then :
8608 printf %s "(cached) " >&6
8609 else case e in #(
8610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"
8615 then :
8616 xorg_cv_cc_flag_unknown_warning_option=yes
8617 else case e in #(
8618 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8619 esac
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8622 esac
8623 fi
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628 fi
8629
8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633 fi
8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else case e in #(
8641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"
8646 then :
8647 xorg_cv_cc_flag_unused_command_line_argument=yes
8648 else case e in #(
8649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8650 esac
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8653 esac
8654 fi
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8658 CFLAGS="$xorg_testset_save_CFLAGS"
8659 fi
8660
8661 found="no"
8662
8663 if test $found = "no" ; then
8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666 fi
8667
8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8670 fi
8671
8672 CFLAGS="$CFLAGS -Werror=array-bounds"
8673
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8675 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8676 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8677 if eval test \${$cacheid+y}
8678 then :
8679 printf %s "(cached) " >&6
8680 else case e in #(
8681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 int i;
8684 int
8685 main (void)
8686 {
8687
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_link "$LINENO"
8693 then :
8694 eval $cacheid=yes
8695 else case e in #(
8696 e) eval $cacheid=no ;;
8697 esac
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8700 conftest$ac_exeext conftest.$ac_ext ;;
8701 esac
8702 fi
8703
8704
8705 CFLAGS="$xorg_testset_save_CFLAGS"
8706
8707 eval supported=\$$cacheid
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8709 printf "%s\n" "$supported" >&6; }
8710 if test "$supported" = "yes" ; then
8711 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8712 found="yes"
8713 fi
8714 fi
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730 xorg_testset_save_CFLAGS="$CFLAGS"
8731
8732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8736 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8737 then :
8738 printf %s "(cached) " >&6
8739 else case e in #(
8740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 int i;
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"
8745 then :
8746 xorg_cv_cc_flag_unknown_warning_option=yes
8747 else case e in #(
8748 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8749 esac
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8752 esac
8753 fi
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8755 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8757 CFLAGS="$xorg_testset_save_CFLAGS"
8758 fi
8759
8760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763 fi
8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8766 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8767 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8768 then :
8769 printf %s "(cached) " >&6
8770 else case e in #(
8771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 int i;
8774 _ACEOF
8775 if ac_fn_c_try_compile "$LINENO"
8776 then :
8777 xorg_cv_cc_flag_unused_command_line_argument=yes
8778 else case e in #(
8779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8780 esac
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8783 esac
8784 fi
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8788 CFLAGS="$xorg_testset_save_CFLAGS"
8789 fi
8790
8791 found="no"
8792
8793 if test $found = "no" ; then
8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8796 fi
8797
8798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8800 fi
8801
8802 CFLAGS="$CFLAGS -Werror=write-strings"
8803
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8805 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8806 cacheid=xorg_cv_cc_flag__Werror_write_strings
8807 if eval test \${$cacheid+y}
8808 then :
8809 printf %s "(cached) " >&6
8810 else case e in #(
8811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 int i;
8814 int
8815 main (void)
8816 {
8817
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_link "$LINENO"
8823 then :
8824 eval $cacheid=yes
8825 else case e in #(
8826 e) eval $cacheid=no ;;
8827 esac
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8830 conftest$ac_exeext conftest.$ac_ext ;;
8831 esac
8832 fi
8833
8834
8835 CFLAGS="$xorg_testset_save_CFLAGS"
8836
8837 eval supported=\$$cacheid
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8839 printf "%s\n" "$supported" >&6; }
8840 if test "$supported" = "yes" ; then
8841 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8842 found="yes"
8843 fi
8844 fi
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860 xorg_testset_save_CFLAGS="$CFLAGS"
8861
8862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8866 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else case e in #(
8870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 int i;
8873 _ACEOF
8874 if ac_fn_c_try_compile "$LINENO"
8875 then :
8876 xorg_cv_cc_flag_unknown_warning_option=yes
8877 else case e in #(
8878 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8879 esac
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8882 esac
8883 fi
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888 fi
8889
8890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8898 then :
8899 printf %s "(cached) " >&6
8900 else case e in #(
8901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 int i;
8904 _ACEOF
8905 if ac_fn_c_try_compile "$LINENO"
8906 then :
8907 xorg_cv_cc_flag_unused_command_line_argument=yes
8908 else case e in #(
8909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8910 esac
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8913 esac
8914 fi
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8918 CFLAGS="$xorg_testset_save_CFLAGS"
8919 fi
8920
8921 found="no"
8922
8923 if test $found = "no" ; then
8924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926 fi
8927
8928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8930 fi
8931
8932 CFLAGS="$CFLAGS -Werror=address"
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8935 printf %s "checking if $CC supports -Werror=address... " >&6; }
8936 cacheid=xorg_cv_cc_flag__Werror_address
8937 if eval test \${$cacheid+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else case e in #(
8941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 int i;
8944 int
8945 main (void)
8946 {
8947
8948 ;
8949 return 0;
8950 }
8951 _ACEOF
8952 if ac_fn_c_try_link "$LINENO"
8953 then :
8954 eval $cacheid=yes
8955 else case e in #(
8956 e) eval $cacheid=no ;;
8957 esac
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8960 conftest$ac_exeext conftest.$ac_ext ;;
8961 esac
8962 fi
8963
8964
8965 CFLAGS="$xorg_testset_save_CFLAGS"
8966
8967 eval supported=\$$cacheid
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8969 printf "%s\n" "$supported" >&6; }
8970 if test "$supported" = "yes" ; then
8971 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8972 found="yes"
8973 fi
8974 fi
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 xorg_testset_save_CFLAGS="$CFLAGS"
8991
8992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8997 then :
8998 printf %s "(cached) " >&6
8999 else case e in #(
9000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 int i;
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"
9005 then :
9006 xorg_cv_cc_flag_unknown_warning_option=yes
9007 else case e in #(
9008 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9009 esac
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9012 esac
9013 fi
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9015 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023 fi
9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9026 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9027 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9028 then :
9029 printf %s "(cached) " >&6
9030 else case e in #(
9031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 int i;
9034 _ACEOF
9035 if ac_fn_c_try_compile "$LINENO"
9036 then :
9037 xorg_cv_cc_flag_unused_command_line_argument=yes
9038 else case e in #(
9039 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9040 esac
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9043 esac
9044 fi
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049 fi
9050
9051 found="no"
9052
9053 if test $found = "no" ; then
9054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9056 fi
9057
9058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9060 fi
9061
9062 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9063
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9065 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9066 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9067 if eval test \${$cacheid+y}
9068 then :
9069 printf %s "(cached) " >&6
9070 else case e in #(
9071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073 int i;
9074 int
9075 main (void)
9076 {
9077
9078 ;
9079 return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"
9083 then :
9084 eval $cacheid=yes
9085 else case e in #(
9086 e) eval $cacheid=no ;;
9087 esac
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9090 conftest$ac_exeext conftest.$ac_ext ;;
9091 esac
9092 fi
9093
9094
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9096
9097 eval supported=\$$cacheid
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9099 printf "%s\n" "$supported" >&6; }
9100 if test "$supported" = "yes" ; then
9101 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9102 found="yes"
9103 fi
9104 fi
9105
9106 if test $found = "no" ; then
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 fi
9110
9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113 fi
9114
9115 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9116
9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9118 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9119 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9120 if eval test \${$cacheid+y}
9121 then :
9122 printf %s "(cached) " >&6
9123 else case e in #(
9124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 int i;
9127 int
9128 main (void)
9129 {
9130
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 if ac_fn_c_try_link "$LINENO"
9136 then :
9137 eval $cacheid=yes
9138 else case e in #(
9139 e) eval $cacheid=no ;;
9140 esac
9141 fi
9142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9143 conftest$ac_exeext conftest.$ac_ext ;;
9144 esac
9145 fi
9146
9147
9148 CFLAGS="$xorg_testset_save_CFLAGS"
9149
9150 eval supported=\$$cacheid
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9152 printf "%s\n" "$supported" >&6; }
9153 if test "$supported" = "yes" ; then
9154 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9155 found="yes"
9156 fi
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173 xorg_testset_save_CFLAGS="$CFLAGS"
9174
9175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9180 then :
9181 printf %s "(cached) " >&6
9182 else case e in #(
9183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 int i;
9186 _ACEOF
9187 if ac_fn_c_try_compile "$LINENO"
9188 then :
9189 xorg_cv_cc_flag_unknown_warning_option=yes
9190 else case e in #(
9191 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9192 esac
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9195 esac
9196 fi
9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9198 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9200 CFLAGS="$xorg_testset_save_CFLAGS"
9201 fi
9202
9203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206 fi
9207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9209 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9210 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9211 then :
9212 printf %s "(cached) " >&6
9213 else case e in #(
9214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 int i;
9217 _ACEOF
9218 if ac_fn_c_try_compile "$LINENO"
9219 then :
9220 xorg_cv_cc_flag_unused_command_line_argument=yes
9221 else case e in #(
9222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9223 esac
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9226 esac
9227 fi
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9229 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9231 CFLAGS="$xorg_testset_save_CFLAGS"
9232 fi
9233
9234 found="no"
9235
9236 if test $found = "no" ; then
9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239 fi
9240
9241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243 fi
9244
9245 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9246
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9248 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9249 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9250 if eval test \${$cacheid+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else case e in #(
9254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 int i;
9257 int
9258 main (void)
9259 {
9260
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"
9266 then :
9267 eval $cacheid=yes
9268 else case e in #(
9269 e) eval $cacheid=no ;;
9270 esac
9271 fi
9272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9273 conftest$ac_exeext conftest.$ac_ext ;;
9274 esac
9275 fi
9276
9277
9278 CFLAGS="$xorg_testset_save_CFLAGS"
9279
9280 eval supported=\$$cacheid
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9282 printf "%s\n" "$supported" >&6; }
9283 if test "$supported" = "yes" ; then
9284 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9285 found="yes"
9286 fi
9287 fi
9288
9289 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9290 else
9291 { 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
9292 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;}
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306 xorg_testset_save_CFLAGS="$CFLAGS"
9307
9308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9312 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9313 then :
9314 printf %s "(cached) " >&6
9315 else case e in #(
9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 int i;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"
9321 then :
9322 xorg_cv_cc_flag_unknown_warning_option=yes
9323 else case e in #(
9324 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9325 esac
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9328 esac
9329 fi
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333 CFLAGS="$xorg_testset_save_CFLAGS"
9334 fi
9335
9336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 fi
9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9344 then :
9345 printf %s "(cached) " >&6
9346 else case e in #(
9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 int i;
9350 _ACEOF
9351 if ac_fn_c_try_compile "$LINENO"
9352 then :
9353 xorg_cv_cc_flag_unused_command_line_argument=yes
9354 else case e in #(
9355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9356 esac
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9359 esac
9360 fi
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9362 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365 fi
9366
9367 found="no"
9368
9369 if test $found = "no" ; then
9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372 fi
9373
9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9376 fi
9377
9378 CFLAGS="$CFLAGS -Wimplicit"
9379
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9381 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9382 cacheid=xorg_cv_cc_flag__Wimplicit
9383 if eval test \${$cacheid+y}
9384 then :
9385 printf %s "(cached) " >&6
9386 else case e in #(
9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 int
9391 main (void)
9392 {
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"
9399 then :
9400 eval $cacheid=yes
9401 else case e in #(
9402 e) eval $cacheid=no ;;
9403 esac
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9406 conftest$ac_exeext conftest.$ac_ext ;;
9407 esac
9408 fi
9409
9410
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9412
9413 eval supported=\$$cacheid
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9415 printf "%s\n" "$supported" >&6; }
9416 if test "$supported" = "yes" ; then
9417 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9418 found="yes"
9419 fi
9420 fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 xorg_testset_save_CFLAGS="$CFLAGS"
9437
9438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9441 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9442 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9443 then :
9444 printf %s "(cached) " >&6
9445 else case e in #(
9446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 int i;
9449 _ACEOF
9450 if ac_fn_c_try_compile "$LINENO"
9451 then :
9452 xorg_cv_cc_flag_unknown_warning_option=yes
9453 else case e in #(
9454 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9455 esac
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9458 esac
9459 fi
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9461 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9463 CFLAGS="$xorg_testset_save_CFLAGS"
9464 fi
9465
9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9469 fi
9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9472 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9473 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9474 then :
9475 printf %s "(cached) " >&6
9476 else case e in #(
9477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"
9482 then :
9483 xorg_cv_cc_flag_unused_command_line_argument=yes
9484 else case e in #(
9485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9486 esac
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9489 esac
9490 fi
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495 fi
9496
9497 found="no"
9498
9499 if test $found = "no" ; then
9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502 fi
9503
9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9506 fi
9507
9508 CFLAGS="$CFLAGS -Wnonnull"
9509
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9511 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9512 cacheid=xorg_cv_cc_flag__Wnonnull
9513 if eval test \${$cacheid+y}
9514 then :
9515 printf %s "(cached) " >&6
9516 else case e in #(
9517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 int i;
9520 int
9521 main (void)
9522 {
9523
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"
9529 then :
9530 eval $cacheid=yes
9531 else case e in #(
9532 e) eval $cacheid=no ;;
9533 esac
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9536 conftest$ac_exeext conftest.$ac_ext ;;
9537 esac
9538 fi
9539
9540
9541 CFLAGS="$xorg_testset_save_CFLAGS"
9542
9543 eval supported=\$$cacheid
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9545 printf "%s\n" "$supported" >&6; }
9546 if test "$supported" = "yes" ; then
9547 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9548 found="yes"
9549 fi
9550 fi
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566 xorg_testset_save_CFLAGS="$CFLAGS"
9567
9568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9571 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9572 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9573 then :
9574 printf %s "(cached) " >&6
9575 else case e in #(
9576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 int i;
9579 _ACEOF
9580 if ac_fn_c_try_compile "$LINENO"
9581 then :
9582 xorg_cv_cc_flag_unknown_warning_option=yes
9583 else case e in #(
9584 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9585 esac
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9588 esac
9589 fi
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599 fi
9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9604 then :
9605 printf %s "(cached) " >&6
9606 else case e in #(
9607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 int i;
9610 _ACEOF
9611 if ac_fn_c_try_compile "$LINENO"
9612 then :
9613 xorg_cv_cc_flag_unused_command_line_argument=yes
9614 else case e in #(
9615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9616 esac
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9619 esac
9620 fi
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9624 CFLAGS="$xorg_testset_save_CFLAGS"
9625 fi
9626
9627 found="no"
9628
9629 if test $found = "no" ; then
9630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9632 fi
9633
9634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9636 fi
9637
9638 CFLAGS="$CFLAGS -Winit-self"
9639
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9641 printf %s "checking if $CC supports -Winit-self... " >&6; }
9642 cacheid=xorg_cv_cc_flag__Winit_self
9643 if eval test \${$cacheid+y}
9644 then :
9645 printf %s "(cached) " >&6
9646 else case e in #(
9647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 int i;
9650 int
9651 main (void)
9652 {
9653
9654 ;
9655 return 0;
9656 }
9657 _ACEOF
9658 if ac_fn_c_try_link "$LINENO"
9659 then :
9660 eval $cacheid=yes
9661 else case e in #(
9662 e) eval $cacheid=no ;;
9663 esac
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9666 conftest$ac_exeext conftest.$ac_ext ;;
9667 esac
9668 fi
9669
9670
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672
9673 eval supported=\$$cacheid
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9675 printf "%s\n" "$supported" >&6; }
9676 if test "$supported" = "yes" ; then
9677 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9678 found="yes"
9679 fi
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696 xorg_testset_save_CFLAGS="$CFLAGS"
9697
9698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9703 then :
9704 printf %s "(cached) " >&6
9705 else case e in #(
9706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 int i;
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"
9711 then :
9712 xorg_cv_cc_flag_unknown_warning_option=yes
9713 else case e in #(
9714 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9715 esac
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9718 esac
9719 fi
9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9721 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9723 CFLAGS="$xorg_testset_save_CFLAGS"
9724 fi
9725
9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9729 fi
9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9732 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9733 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9734 then :
9735 printf %s "(cached) " >&6
9736 else case e in #(
9737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739 int i;
9740 _ACEOF
9741 if ac_fn_c_try_compile "$LINENO"
9742 then :
9743 xorg_cv_cc_flag_unused_command_line_argument=yes
9744 else case e in #(
9745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9746 esac
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9749 esac
9750 fi
9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9754 CFLAGS="$xorg_testset_save_CFLAGS"
9755 fi
9756
9757 found="no"
9758
9759 if test $found = "no" ; then
9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 fi
9763
9764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9766 fi
9767
9768 CFLAGS="$CFLAGS -Wmain"
9769
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9771 printf %s "checking if $CC supports -Wmain... " >&6; }
9772 cacheid=xorg_cv_cc_flag__Wmain
9773 if eval test \${$cacheid+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else case e in #(
9777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int i;
9780 int
9781 main (void)
9782 {
9783
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"
9789 then :
9790 eval $cacheid=yes
9791 else case e in #(
9792 e) eval $cacheid=no ;;
9793 esac
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9796 conftest$ac_exeext conftest.$ac_ext ;;
9797 esac
9798 fi
9799
9800
9801 CFLAGS="$xorg_testset_save_CFLAGS"
9802
9803 eval supported=\$$cacheid
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9805 printf "%s\n" "$supported" >&6; }
9806 if test "$supported" = "yes" ; then
9807 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9808 found="yes"
9809 fi
9810 fi
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826 xorg_testset_save_CFLAGS="$CFLAGS"
9827
9828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9832 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9833 then :
9834 printf %s "(cached) " >&6
9835 else case e in #(
9836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 int i;
9839 _ACEOF
9840 if ac_fn_c_try_compile "$LINENO"
9841 then :
9842 xorg_cv_cc_flag_unknown_warning_option=yes
9843 else case e in #(
9844 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9845 esac
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9848 esac
9849 fi
9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9853 CFLAGS="$xorg_testset_save_CFLAGS"
9854 fi
9855
9856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9859 fi
9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9864 then :
9865 printf %s "(cached) " >&6
9866 else case e in #(
9867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 int i;
9870 _ACEOF
9871 if ac_fn_c_try_compile "$LINENO"
9872 then :
9873 xorg_cv_cc_flag_unused_command_line_argument=yes
9874 else case e in #(
9875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9876 esac
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9879 esac
9880 fi
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9884 CFLAGS="$xorg_testset_save_CFLAGS"
9885 fi
9886
9887 found="no"
9888
9889 if test $found = "no" ; then
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 fi
9893
9894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9896 fi
9897
9898 CFLAGS="$CFLAGS -Wmissing-braces"
9899
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9901 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9902 cacheid=xorg_cv_cc_flag__Wmissing_braces
9903 if eval test \${$cacheid+y}
9904 then :
9905 printf %s "(cached) " >&6
9906 else case e in #(
9907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 int
9911 main (void)
9912 {
9913
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_link "$LINENO"
9919 then :
9920 eval $cacheid=yes
9921 else case e in #(
9922 e) eval $cacheid=no ;;
9923 esac
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9926 conftest$ac_exeext conftest.$ac_ext ;;
9927 esac
9928 fi
9929
9930
9931 CFLAGS="$xorg_testset_save_CFLAGS"
9932
9933 eval supported=\$$cacheid
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9935 printf "%s\n" "$supported" >&6; }
9936 if test "$supported" = "yes" ; then
9937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9938 found="yes"
9939 fi
9940 fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956 xorg_testset_save_CFLAGS="$CFLAGS"
9957
9958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9962 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9963 then :
9964 printf %s "(cached) " >&6
9965 else case e in #(
9966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968 int i;
9969 _ACEOF
9970 if ac_fn_c_try_compile "$LINENO"
9971 then :
9972 xorg_cv_cc_flag_unknown_warning_option=yes
9973 else case e in #(
9974 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9975 esac
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9978 esac
9979 fi
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9983 CFLAGS="$xorg_testset_save_CFLAGS"
9984 fi
9985
9986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989 fi
9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9994 then :
9995 printf %s "(cached) " >&6
9996 else case e in #(
9997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 int i;
10000 _ACEOF
10001 if ac_fn_c_try_compile "$LINENO"
10002 then :
10003 xorg_cv_cc_flag_unused_command_line_argument=yes
10004 else case e in #(
10005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10006 esac
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10009 esac
10010 fi
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10014 CFLAGS="$xorg_testset_save_CFLAGS"
10015 fi
10016
10017 found="no"
10018
10019 if test $found = "no" ; then
10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10022 fi
10023
10024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10026 fi
10027
10028 CFLAGS="$CFLAGS -Wsequence-point"
10029
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10031 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10032 cacheid=xorg_cv_cc_flag__Wsequence_point
10033 if eval test \${$cacheid+y}
10034 then :
10035 printf %s "(cached) " >&6
10036 else case e in #(
10037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 int i;
10040 int
10041 main (void)
10042 {
10043
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"
10049 then :
10050 eval $cacheid=yes
10051 else case e in #(
10052 e) eval $cacheid=no ;;
10053 esac
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10056 conftest$ac_exeext conftest.$ac_ext ;;
10057 esac
10058 fi
10059
10060
10061 CFLAGS="$xorg_testset_save_CFLAGS"
10062
10063 eval supported=\$$cacheid
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10065 printf "%s\n" "$supported" >&6; }
10066 if test "$supported" = "yes" ; then
10067 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10068 found="yes"
10069 fi
10070 fi
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086 xorg_testset_save_CFLAGS="$CFLAGS"
10087
10088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10093 then :
10094 printf %s "(cached) " >&6
10095 else case e in #(
10096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 int i;
10099 _ACEOF
10100 if ac_fn_c_try_compile "$LINENO"
10101 then :
10102 xorg_cv_cc_flag_unknown_warning_option=yes
10103 else case e in #(
10104 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10105 esac
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10108 esac
10109 fi
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10113 CFLAGS="$xorg_testset_save_CFLAGS"
10114 fi
10115
10116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10119 fi
10120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10124 then :
10125 printf %s "(cached) " >&6
10126 else case e in #(
10127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 int i;
10130 _ACEOF
10131 if ac_fn_c_try_compile "$LINENO"
10132 then :
10133 xorg_cv_cc_flag_unused_command_line_argument=yes
10134 else case e in #(
10135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10136 esac
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10139 esac
10140 fi
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10144 CFLAGS="$xorg_testset_save_CFLAGS"
10145 fi
10146
10147 found="no"
10148
10149 if test $found = "no" ; then
10150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152 fi
10153
10154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10156 fi
10157
10158 CFLAGS="$CFLAGS -Wreturn-type"
10159
10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10161 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10162 cacheid=xorg_cv_cc_flag__Wreturn_type
10163 if eval test \${$cacheid+y}
10164 then :
10165 printf %s "(cached) " >&6
10166 else case e in #(
10167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169 int i;
10170 int
10171 main (void)
10172 {
10173
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"
10179 then :
10180 eval $cacheid=yes
10181 else case e in #(
10182 e) eval $cacheid=no ;;
10183 esac
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10186 conftest$ac_exeext conftest.$ac_ext ;;
10187 esac
10188 fi
10189
10190
10191 CFLAGS="$xorg_testset_save_CFLAGS"
10192
10193 eval supported=\$$cacheid
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10195 printf "%s\n" "$supported" >&6; }
10196 if test "$supported" = "yes" ; then
10197 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10198 found="yes"
10199 fi
10200 fi
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 xorg_testset_save_CFLAGS="$CFLAGS"
10217
10218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10222 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10223 then :
10224 printf %s "(cached) " >&6
10225 else case e in #(
10226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 int i;
10229 _ACEOF
10230 if ac_fn_c_try_compile "$LINENO"
10231 then :
10232 xorg_cv_cc_flag_unknown_warning_option=yes
10233 else case e in #(
10234 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10235 esac
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10238 esac
10239 fi
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10243 CFLAGS="$xorg_testset_save_CFLAGS"
10244 fi
10245
10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249 fi
10250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10254 then :
10255 printf %s "(cached) " >&6
10256 else case e in #(
10257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 int i;
10260 _ACEOF
10261 if ac_fn_c_try_compile "$LINENO"
10262 then :
10263 xorg_cv_cc_flag_unused_command_line_argument=yes
10264 else case e in #(
10265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10266 esac
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10269 esac
10270 fi
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10275 fi
10276
10277 found="no"
10278
10279 if test $found = "no" ; then
10280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282 fi
10283
10284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10286 fi
10287
10288 CFLAGS="$CFLAGS -Wtrigraphs"
10289
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10291 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10292 cacheid=xorg_cv_cc_flag__Wtrigraphs
10293 if eval test \${$cacheid+y}
10294 then :
10295 printf %s "(cached) " >&6
10296 else case e in #(
10297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 int i;
10300 int
10301 main (void)
10302 {
10303
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"
10309 then :
10310 eval $cacheid=yes
10311 else case e in #(
10312 e) eval $cacheid=no ;;
10313 esac
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10316 conftest$ac_exeext conftest.$ac_ext ;;
10317 esac
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 -Wtrigraphs"
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 case e in #(
10356 e) 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 case e in #(
10364 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10365 esac
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10368 esac
10369 fi
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10371 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10373 CFLAGS="$xorg_testset_save_CFLAGS"
10374 fi
10375
10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379 fi
10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10382 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10383 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10384 then :
10385 printf %s "(cached) " >&6
10386 else case e in #(
10387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389 int i;
10390 _ACEOF
10391 if ac_fn_c_try_compile "$LINENO"
10392 then :
10393 xorg_cv_cc_flag_unused_command_line_argument=yes
10394 else case e in #(
10395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10396 esac
10397 fi
10398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10399 esac
10400 fi
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10402 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10404 CFLAGS="$xorg_testset_save_CFLAGS"
10405 fi
10406
10407 found="no"
10408
10409 if test $found = "no" ; then
10410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412 fi
10413
10414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10416 fi
10417
10418 CFLAGS="$CFLAGS -Warray-bounds"
10419
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10421 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10422 cacheid=xorg_cv_cc_flag__Warray_bounds
10423 if eval test \${$cacheid+y}
10424 then :
10425 printf %s "(cached) " >&6
10426 else case e in #(
10427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 int i;
10430 int
10431 main (void)
10432 {
10433
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"
10439 then :
10440 eval $cacheid=yes
10441 else case e in #(
10442 e) eval $cacheid=no ;;
10443 esac
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10446 conftest$ac_exeext conftest.$ac_ext ;;
10447 esac
10448 fi
10449
10450
10451 CFLAGS="$xorg_testset_save_CFLAGS"
10452
10453 eval supported=\$$cacheid
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10455 printf "%s\n" "$supported" >&6; }
10456 if test "$supported" = "yes" ; then
10457 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10458 found="yes"
10459 fi
10460 fi
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476 xorg_testset_save_CFLAGS="$CFLAGS"
10477
10478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10483 then :
10484 printf %s "(cached) " >&6
10485 else case e in #(
10486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 int i;
10489 _ACEOF
10490 if ac_fn_c_try_compile "$LINENO"
10491 then :
10492 xorg_cv_cc_flag_unknown_warning_option=yes
10493 else case e in #(
10494 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10495 esac
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10498 esac
10499 fi
10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503 CFLAGS="$xorg_testset_save_CFLAGS"
10504 fi
10505
10506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509 fi
10510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else case e in #(
10517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519 int i;
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"
10522 then :
10523 xorg_cv_cc_flag_unused_command_line_argument=yes
10524 else case e in #(
10525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10526 esac
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10529 esac
10530 fi
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10532 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10534 CFLAGS="$xorg_testset_save_CFLAGS"
10535 fi
10536
10537 found="no"
10538
10539 if test $found = "no" ; then
10540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542 fi
10543
10544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546 fi
10547
10548 CFLAGS="$CFLAGS -Wwrite-strings"
10549
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10551 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10552 cacheid=xorg_cv_cc_flag__Wwrite_strings
10553 if eval test \${$cacheid+y}
10554 then :
10555 printf %s "(cached) " >&6
10556 else case e in #(
10557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559 int i;
10560 int
10561 main (void)
10562 {
10563
10564 ;
10565 return 0;
10566 }
10567 _ACEOF
10568 if ac_fn_c_try_link "$LINENO"
10569 then :
10570 eval $cacheid=yes
10571 else case e in #(
10572 e) eval $cacheid=no ;;
10573 esac
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10576 conftest$ac_exeext conftest.$ac_ext ;;
10577 esac
10578 fi
10579
10580
10581 CFLAGS="$xorg_testset_save_CFLAGS"
10582
10583 eval supported=\$$cacheid
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10585 printf "%s\n" "$supported" >&6; }
10586 if test "$supported" = "yes" ; then
10587 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10588 found="yes"
10589 fi
10590 fi
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606 xorg_testset_save_CFLAGS="$CFLAGS"
10607
10608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10611 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10612 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10613 then :
10614 printf %s "(cached) " >&6
10615 else case e in #(
10616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 int i;
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"
10621 then :
10622 xorg_cv_cc_flag_unknown_warning_option=yes
10623 else case e in #(
10624 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10625 esac
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10628 esac
10629 fi
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10633 CFLAGS="$xorg_testset_save_CFLAGS"
10634 fi
10635
10636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639 fi
10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10644 then :
10645 printf %s "(cached) " >&6
10646 else case e in #(
10647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 int i;
10650 _ACEOF
10651 if ac_fn_c_try_compile "$LINENO"
10652 then :
10653 xorg_cv_cc_flag_unused_command_line_argument=yes
10654 else case e in #(
10655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10656 esac
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10659 esac
10660 fi
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10664 CFLAGS="$xorg_testset_save_CFLAGS"
10665 fi
10666
10667 found="no"
10668
10669 if test $found = "no" ; then
10670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10672 fi
10673
10674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10676 fi
10677
10678 CFLAGS="$CFLAGS -Waddress"
10679
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10681 printf %s "checking if $CC supports -Waddress... " >&6; }
10682 cacheid=xorg_cv_cc_flag__Waddress
10683 if eval test \${$cacheid+y}
10684 then :
10685 printf %s "(cached) " >&6
10686 else case e in #(
10687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 int i;
10690 int
10691 main (void)
10692 {
10693
10694 ;
10695 return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_link "$LINENO"
10699 then :
10700 eval $cacheid=yes
10701 else case e in #(
10702 e) eval $cacheid=no ;;
10703 esac
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10706 conftest$ac_exeext conftest.$ac_ext ;;
10707 esac
10708 fi
10709
10710
10711 CFLAGS="$xorg_testset_save_CFLAGS"
10712
10713 eval supported=\$$cacheid
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10715 printf "%s\n" "$supported" >&6; }
10716 if test "$supported" = "yes" ; then
10717 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10718 found="yes"
10719 fi
10720 fi
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736 xorg_testset_save_CFLAGS="$CFLAGS"
10737
10738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10742 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10743 then :
10744 printf %s "(cached) " >&6
10745 else case e in #(
10746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748 int i;
10749 _ACEOF
10750 if ac_fn_c_try_compile "$LINENO"
10751 then :
10752 xorg_cv_cc_flag_unknown_warning_option=yes
10753 else case e in #(
10754 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10755 esac
10756 fi
10757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10758 esac
10759 fi
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10763 CFLAGS="$xorg_testset_save_CFLAGS"
10764 fi
10765
10766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10769 fi
10770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10774 then :
10775 printf %s "(cached) " >&6
10776 else case e in #(
10777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 int i;
10780 _ACEOF
10781 if ac_fn_c_try_compile "$LINENO"
10782 then :
10783 xorg_cv_cc_flag_unused_command_line_argument=yes
10784 else case e in #(
10785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10786 esac
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10789 esac
10790 fi
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10794 CFLAGS="$xorg_testset_save_CFLAGS"
10795 fi
10796
10797 found="no"
10798
10799 if test $found = "no" ; then
10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802 fi
10803
10804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10806 fi
10807
10808 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10809
10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10811 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10812 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10813 if eval test \${$cacheid+y}
10814 then :
10815 printf %s "(cached) " >&6
10816 else case e in #(
10817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 int i;
10820 int
10821 main (void)
10822 {
10823
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_link "$LINENO"
10829 then :
10830 eval $cacheid=yes
10831 else case e in #(
10832 e) eval $cacheid=no ;;
10833 esac
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10836 conftest$ac_exeext conftest.$ac_ext ;;
10837 esac
10838 fi
10839
10840
10841 CFLAGS="$xorg_testset_save_CFLAGS"
10842
10843 eval supported=\$$cacheid
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10845 printf "%s\n" "$supported" >&6; }
10846 if test "$supported" = "yes" ; then
10847 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10848 found="yes"
10849 fi
10850 fi
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866 xorg_testset_save_CFLAGS="$CFLAGS"
10867
10868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10873 then :
10874 printf %s "(cached) " >&6
10875 else case e in #(
10876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 int i;
10879 _ACEOF
10880 if ac_fn_c_try_compile "$LINENO"
10881 then :
10882 xorg_cv_cc_flag_unknown_warning_option=yes
10883 else case e in #(
10884 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10885 esac
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10888 esac
10889 fi
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10891 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10893 CFLAGS="$xorg_testset_save_CFLAGS"
10894 fi
10895
10896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10899 fi
10900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10902 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10903 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10904 then :
10905 printf %s "(cached) " >&6
10906 else case e in #(
10907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909 int i;
10910 _ACEOF
10911 if ac_fn_c_try_compile "$LINENO"
10912 then :
10913 xorg_cv_cc_flag_unused_command_line_argument=yes
10914 else case e in #(
10915 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10916 esac
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10919 esac
10920 fi
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10922 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10924 CFLAGS="$xorg_testset_save_CFLAGS"
10925 fi
10926
10927 found="no"
10928
10929 if test $found = "no" ; then
10930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10932 fi
10933
10934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10936 fi
10937
10938 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10939
10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10941 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10942 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10943 if eval test \${$cacheid+y}
10944 then :
10945 printf %s "(cached) " >&6
10946 else case e in #(
10947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 int i;
10950 int
10951 main (void)
10952 {
10953
10954 ;
10955 return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"
10959 then :
10960 eval $cacheid=yes
10961 else case e in #(
10962 e) eval $cacheid=no ;;
10963 esac
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10966 conftest$ac_exeext conftest.$ac_ext ;;
10967 esac
10968 fi
10969
10970
10971 CFLAGS="$xorg_testset_save_CFLAGS"
10972
10973 eval supported=\$$cacheid
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10975 printf "%s\n" "$supported" >&6; }
10976 if test "$supported" = "yes" ; then
10977 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10978 found="yes"
10979 fi
10980 fi
10981
10982
10983 fi
10984
10985
10986
10987
10988
10989
10990
10991 CWARNFLAGS="$BASE_CFLAGS"
10992 if test "x$GCC" = xyes ; then
10993 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10994 fi
10995
10996
10997
10998
10999
11000
11001
11002
11003 # Check whether --enable-strict-compilation was given.
11004 if test ${enable_strict_compilation+y}
11005 then :
11006 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11007 else case e in #(
11008 e) STRICT_COMPILE=no ;;
11009 esac
11010 fi
11011
11012
11013
11014
11015
11016
11017 STRICT_CFLAGS=""
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031 xorg_testset_save_CFLAGS="$CFLAGS"
11032
11033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11037 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11038 then :
11039 printf %s "(cached) " >&6
11040 else case e in #(
11041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 int i;
11044 _ACEOF
11045 if ac_fn_c_try_compile "$LINENO"
11046 then :
11047 xorg_cv_cc_flag_unknown_warning_option=yes
11048 else case e in #(
11049 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11050 esac
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11053 esac
11054 fi
11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11058 CFLAGS="$xorg_testset_save_CFLAGS"
11059 fi
11060
11061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11064 fi
11065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11069 then :
11070 printf %s "(cached) " >&6
11071 else case e in #(
11072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074 int i;
11075 _ACEOF
11076 if ac_fn_c_try_compile "$LINENO"
11077 then :
11078 xorg_cv_cc_flag_unused_command_line_argument=yes
11079 else case e in #(
11080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11081 esac
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11084 esac
11085 fi
11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11089 CFLAGS="$xorg_testset_save_CFLAGS"
11090 fi
11091
11092 found="no"
11093
11094 if test $found = "no" ; then
11095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11097 fi
11098
11099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11101 fi
11102
11103 CFLAGS="$CFLAGS -pedantic"
11104
11105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11106 printf %s "checking if $CC supports -pedantic... " >&6; }
11107 cacheid=xorg_cv_cc_flag__pedantic
11108 if eval test \${$cacheid+y}
11109 then :
11110 printf %s "(cached) " >&6
11111 else case e in #(
11112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 int i;
11115 int
11116 main (void)
11117 {
11118
11119 ;
11120 return 0;
11121 }
11122 _ACEOF
11123 if ac_fn_c_try_link "$LINENO"
11124 then :
11125 eval $cacheid=yes
11126 else case e in #(
11127 e) eval $cacheid=no ;;
11128 esac
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11131 conftest$ac_exeext conftest.$ac_ext ;;
11132 esac
11133 fi
11134
11135
11136 CFLAGS="$xorg_testset_save_CFLAGS"
11137
11138 eval supported=\$$cacheid
11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11140 printf "%s\n" "$supported" >&6; }
11141 if test "$supported" = "yes" ; then
11142 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11143 found="yes"
11144 fi
11145 fi
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161 xorg_testset_save_CFLAGS="$CFLAGS"
11162
11163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11167 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11168 then :
11169 printf %s "(cached) " >&6
11170 else case e in #(
11171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 int i;
11174 _ACEOF
11175 if ac_fn_c_try_compile "$LINENO"
11176 then :
11177 xorg_cv_cc_flag_unknown_warning_option=yes
11178 else case e in #(
11179 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11180 esac
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11183 esac
11184 fi
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11188 CFLAGS="$xorg_testset_save_CFLAGS"
11189 fi
11190
11191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11194 fi
11195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11199 then :
11200 printf %s "(cached) " >&6
11201 else case e in #(
11202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204 int i;
11205 _ACEOF
11206 if ac_fn_c_try_compile "$LINENO"
11207 then :
11208 xorg_cv_cc_flag_unused_command_line_argument=yes
11209 else case e in #(
11210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11211 esac
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11214 esac
11215 fi
11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11219 CFLAGS="$xorg_testset_save_CFLAGS"
11220 fi
11221
11222 found="no"
11223
11224 if test $found = "no" ; then
11225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11227 fi
11228
11229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11231 fi
11232
11233 CFLAGS="$CFLAGS -Werror"
11234
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11236 printf %s "checking if $CC supports -Werror... " >&6; }
11237 cacheid=xorg_cv_cc_flag__Werror
11238 if eval test \${$cacheid+y}
11239 then :
11240 printf %s "(cached) " >&6
11241 else case e in #(
11242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244 int i;
11245 int
11246 main (void)
11247 {
11248
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"
11254 then :
11255 eval $cacheid=yes
11256 else case e in #(
11257 e) eval $cacheid=no ;;
11258 esac
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11261 conftest$ac_exeext conftest.$ac_ext ;;
11262 esac
11263 fi
11264
11265
11266 CFLAGS="$xorg_testset_save_CFLAGS"
11267
11268 eval supported=\$$cacheid
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11270 printf "%s\n" "$supported" >&6; }
11271 if test "$supported" = "yes" ; then
11272 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11273 found="yes"
11274 fi
11275 fi
11276
11277 if test $found = "no" ; then
11278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11280 fi
11281
11282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11284 fi
11285
11286 CFLAGS="$CFLAGS -errwarn"
11287
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11289 printf %s "checking if $CC supports -errwarn... " >&6; }
11290 cacheid=xorg_cv_cc_flag__errwarn
11291 if eval test \${$cacheid+y}
11292 then :
11293 printf %s "(cached) " >&6
11294 else case e in #(
11295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297 int i;
11298 int
11299 main (void)
11300 {
11301
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 if ac_fn_c_try_link "$LINENO"
11307 then :
11308 eval $cacheid=yes
11309 else case e in #(
11310 e) eval $cacheid=no ;;
11311 esac
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11314 conftest$ac_exeext conftest.$ac_ext ;;
11315 esac
11316 fi
11317
11318
11319 CFLAGS="$xorg_testset_save_CFLAGS"
11320
11321 eval supported=\$$cacheid
11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11323 printf "%s\n" "$supported" >&6; }
11324 if test "$supported" = "yes" ; then
11325 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11326 found="yes"
11327 fi
11328 fi
11329
11330
11331
11332 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11333 # activate it with -Werror, so we add it here explicitly.
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 xorg_testset_save_CFLAGS="$CFLAGS"
11348
11349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11353 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11354 then :
11355 printf %s "(cached) " >&6
11356 else case e in #(
11357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 int i;
11360 _ACEOF
11361 if ac_fn_c_try_compile "$LINENO"
11362 then :
11363 xorg_cv_cc_flag_unknown_warning_option=yes
11364 else case e in #(
11365 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11366 esac
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11369 esac
11370 fi
11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11374 CFLAGS="$xorg_testset_save_CFLAGS"
11375 fi
11376
11377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11380 fi
11381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11385 then :
11386 printf %s "(cached) " >&6
11387 else case e in #(
11388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390 int i;
11391 _ACEOF
11392 if ac_fn_c_try_compile "$LINENO"
11393 then :
11394 xorg_cv_cc_flag_unused_command_line_argument=yes
11395 else case e in #(
11396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11397 esac
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11400 esac
11401 fi
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11405 CFLAGS="$xorg_testset_save_CFLAGS"
11406 fi
11407
11408 found="no"
11409
11410 if test $found = "no" ; then
11411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11413 fi
11414
11415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11417 fi
11418
11419 CFLAGS="$CFLAGS -Werror=attributes"
11420
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11422 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11423 cacheid=xorg_cv_cc_flag__Werror_attributes
11424 if eval test \${$cacheid+y}
11425 then :
11426 printf %s "(cached) " >&6
11427 else case e in #(
11428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430 int i;
11431 int
11432 main (void)
11433 {
11434
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"
11440 then :
11441 eval $cacheid=yes
11442 else case e in #(
11443 e) eval $cacheid=no ;;
11444 esac
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11447 conftest$ac_exeext conftest.$ac_ext ;;
11448 esac
11449 fi
11450
11451
11452 CFLAGS="$xorg_testset_save_CFLAGS"
11453
11454 eval supported=\$$cacheid
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11456 printf "%s\n" "$supported" >&6; }
11457 if test "$supported" = "yes" ; then
11458 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11459 found="yes"
11460 fi
11461 fi
11462
11463
11464
11465 if test "x$STRICT_COMPILE" = "xyes"; then
11466 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11467 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11468 fi
11469
11470
11471
11472
11473
11474
11475
11476
11477 cat >>confdefs.h <<_ACEOF
11478 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11479 _ACEOF
11480
11481 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11482 if test "x$PVM" = "x"; then
11483 PVM="0"
11484 fi
11485
11486 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11487
11488 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11489 if test "x$PVP" = "x"; then
11490 PVP="0"
11491 fi
11492
11493 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11494
11495
11496
11497 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11498 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11499 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11500 touch \$(top_srcdir)/ChangeLog; \
11501 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11502
11503
11504
11505
11506 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11507 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11508 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11509 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11510 touch \$(top_srcdir)/INSTALL; \
11511 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11512
11513
11514
11515
11516
11517
11518 case $host_os in
11519 solaris*)
11520 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11521 # check for a man page file found in later versions that use
11522 # traditional section numbers instead
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11524 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11525 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11526 then :
11527 printf %s "(cached) " >&6
11528 else case e in #(
11529 e) test "$cross_compiling" = yes &&
11530 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11531 if test -r "/usr/share/man/man7/attributes.7"; then
11532 ac_cv_file__usr_share_man_man7_attributes_7=yes
11533 else
11534 ac_cv_file__usr_share_man_man7_attributes_7=no
11535 fi ;;
11536 esac
11537 fi
11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11539 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11540 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11541 then :
11542 SYSV_MAN_SECTIONS=false
11543 else case e in #(
11544 e) SYSV_MAN_SECTIONS=true ;;
11545 esac
11546 fi
11547
11548 ;;
11549 *) SYSV_MAN_SECTIONS=false ;;
11550 esac
11551
11552 if test x$APP_MAN_SUFFIX = x ; then
11553 APP_MAN_SUFFIX=1
11554 fi
11555 if test x$APP_MAN_DIR = x ; then
11556 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11557 fi
11558
11559 if test x$LIB_MAN_SUFFIX = x ; then
11560 LIB_MAN_SUFFIX=3
11561 fi
11562 if test x$LIB_MAN_DIR = x ; then
11563 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11564 fi
11565
11566 if test x$FILE_MAN_SUFFIX = x ; then
11567 case $SYSV_MAN_SECTIONS in
11568 true) FILE_MAN_SUFFIX=4 ;;
11569 *) FILE_MAN_SUFFIX=5 ;;
11570 esac
11571 fi
11572 if test x$FILE_MAN_DIR = x ; then
11573 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11574 fi
11575
11576 if test x$MISC_MAN_SUFFIX = x ; then
11577 case $SYSV_MAN_SECTIONS in
11578 true) MISC_MAN_SUFFIX=5 ;;
11579 *) MISC_MAN_SUFFIX=7 ;;
11580 esac
11581 fi
11582 if test x$MISC_MAN_DIR = x ; then
11583 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11584 fi
11585
11586 if test x$DRIVER_MAN_SUFFIX = x ; then
11587 case $SYSV_MAN_SECTIONS in
11588 true) DRIVER_MAN_SUFFIX=7 ;;
11589 *) DRIVER_MAN_SUFFIX=4 ;;
11590 esac
11591 fi
11592 if test x$DRIVER_MAN_DIR = x ; then
11593 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11594 fi
11595
11596 if test x$ADMIN_MAN_SUFFIX = x ; then
11597 case $SYSV_MAN_SECTIONS in
11598 true) ADMIN_MAN_SUFFIX=1m ;;
11599 *) ADMIN_MAN_SUFFIX=8 ;;
11600 esac
11601 fi
11602 if test x$ADMIN_MAN_DIR = x ; then
11603 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11604 fi
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620 XORG_MAN_PAGE="X Version 11"
11621
11622 MAN_SUBSTS="\
11623 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11624 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11625 -e 's|__xservername__|Xorg|g' \
11626 -e 's|__xconfigfile__|xorg.conf|g' \
11627 -e 's|__projectroot__|\$(prefix)|g' \
11628 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11629 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11630 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11631 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11632 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11633 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11634 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11635
11636
11637
11638 # Check whether --enable-silent-rules was given.
11639 if test ${enable_silent_rules+y}
11640 then :
11641 enableval=$enable_silent_rules;
11642 fi
11643
11644 case $enable_silent_rules in # (((
11645 yes) AM_DEFAULT_VERBOSITY=0;;
11646 no) AM_DEFAULT_VERBOSITY=1;;
11647 *) AM_DEFAULT_VERBOSITY=0;;
11648 esac
11649 am_make=${MAKE-make}
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11651 printf %s "checking whether $am_make supports nested variables... " >&6; }
11652 if test ${am_cv_make_support_nested_variables+y}
11653 then :
11654 printf %s "(cached) " >&6
11655 else case e in #(
11656 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11657 BAR0=false
11658 BAR1=true
11659 V=1
11660 am__doit:
11661 @$(TRUE)
11662 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11663 am_cv_make_support_nested_variables=yes
11664 else
11665 am_cv_make_support_nested_variables=no
11666 fi ;;
11667 esac
11668 fi
11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11670 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11671 if test $am_cv_make_support_nested_variables = yes; then
11672 AM_V='$(V)'
11673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11674 else
11675 AM_V=$AM_DEFAULT_VERBOSITY
11676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11677 fi
11678 AM_BACKSLASH='\'
11679
11680
11681
11682
11683
11684
11685
11686
11687 # Check whether --with-lint was given.
11688 if test ${with_lint+y}
11689 then :
11690 withval=$with_lint; use_lint=$withval
11691 else case e in #(
11692 e) use_lint=no ;;
11693 esac
11694 fi
11695
11696
11697 # Obtain platform specific info like program name and options
11698 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11699 case $host_os in
11700 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11701 lint_name=splint
11702 lint_options="-badflag"
11703 ;;
11704 *freebsd* | *netbsd*)
11705 lint_name=lint
11706 lint_options="-u -b"
11707 ;;
11708 *solaris*)
11709 lint_name=lint
11710 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11711 ;;
11712 esac
11713
11714 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11715 if test "x$use_lint" = x"yes" ; then
11716 # Extract the first word of "$lint_name", so it can be a program name with args.
11717 set dummy $lint_name; ac_word=$2
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 printf %s "checking for $ac_word... " >&6; }
11720 if test ${ac_cv_path_LINT+y}
11721 then :
11722 printf %s "(cached) " >&6
11723 else case e in #(
11724 e) case $LINT in
11725 [\\/]* | ?:[\\/]*)
11726 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11727 ;;
11728 *)
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732 IFS=$as_save_IFS
11733 case $as_dir in #(((
11734 '') as_dir=./ ;;
11735 */) ;;
11736 *) as_dir=$as_dir/ ;;
11737 esac
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11740 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 ;;
11749 esac ;;
11750 esac
11751 fi
11752 LINT=$ac_cv_path_LINT
11753 if test -n "$LINT"; then
11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11755 printf "%s\n" "$LINT" >&6; }
11756 else
11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 printf "%s\n" "no" >&6; }
11759 fi
11760
11761
11762 if test "x$LINT" = "x"; then
11763 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11764 fi
11765 elif test "x$use_lint" = x"no" ; then
11766 if test "x$LINT" != "x"; then
11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11768 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11769 fi
11770 else
11771 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11772 fi
11773
11774 # User supplied flags override default flags
11775 if test "x$LINT_FLAGS" != "x"; then
11776 lint_options=$LINT_FLAGS
11777 fi
11778
11779 LINT_FLAGS=$lint_options
11780
11781 if test "x$LINT" != x; then
11782 LINT_TRUE=
11783 LINT_FALSE='#'
11784 else
11785 LINT_TRUE='#'
11786 LINT_FALSE=
11787 fi
11788
11789
11790
11791
11792 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
11793 if test "x$ac_cv_func_rename" = xyes
11794 then :
11795 printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h
11796
11797 fi
11798 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
11799 if test "x$ac_cv_func_fchmod" = xyes
11800 then :
11801 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
11802
11803 fi
11804 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11805 if test "x$ac_cv_func_reallocarray" = xyes
11806 then :
11807 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11808
11809 fi
11810
11811
11812 # Check whether --enable-largefile was given.
11813 if test ${enable_largefile+y}
11814 then :
11815 enableval=$enable_largefile;
11816 fi
11817 if test "$enable_largefile,$enable_year2038" != no,no
11818 then :
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11820 printf %s "checking for $CC option to enable large file support... " >&6; }
11821 if test ${ac_cv_sys_largefile_opts+y}
11822 then :
11823 printf %s "(cached) " >&6
11824 else case e in #(
11825 e) ac_save_CC="$CC"
11826 ac_opt_found=no
11827 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11828 if test x"$ac_opt" != x"none needed"
11829 then :
11830 CC="$ac_save_CC $ac_opt"
11831 fi
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <sys/types.h>
11835 #ifndef FTYPE
11836 # define FTYPE off_t
11837 #endif
11838 /* Check that FTYPE can represent 2**63 - 1 correctly.
11839 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11840 since some C++ compilers masquerading as C compilers
11841 incorrectly reject 9223372036854775807. */
11842 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11843 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11844 && LARGE_FTYPE % 2147483647 == 1)
11845 ? 1 : -1];
11846 int
11847 main (void)
11848 {
11849
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 if ac_fn_c_try_compile "$LINENO"
11855 then :
11856 if test x"$ac_opt" = x"none needed"
11857 then :
11858 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11859 CC="$CC -DFTYPE=ino_t"
11860 if ac_fn_c_try_compile "$LINENO"
11861 then :
11862
11863 else case e in #(
11864 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11865 if ac_fn_c_try_compile "$LINENO"
11866 then :
11867 ac_opt='-D_FILE_OFFSET_BITS=64'
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11870 esac
11871 fi
11872 rm -f core conftest.err conftest.$ac_objext conftest.beam
11873 fi
11874 ac_cv_sys_largefile_opts=$ac_opt
11875 ac_opt_found=yes
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11878 test $ac_opt_found = no || break
11879 done
11880 CC="$ac_save_CC"
11881
11882 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11883 esac
11884 fi
11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11886 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11887
11888 ac_have_largefile=yes
11889 case $ac_cv_sys_largefile_opts in #(
11890 "none needed") :
11891 ;; #(
11892 "supported through gnulib") :
11893 ;; #(
11894 "support not detected") :
11895 ac_have_largefile=no ;; #(
11896 "-D_FILE_OFFSET_BITS=64") :
11897
11898 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11899 ;; #(
11900 "-D_LARGE_FILES=1") :
11901
11902 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11903 ;; #(
11904 "-n32") :
11905 CC="$CC -n32" ;; #(
11906 *) :
11907 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11908 esac
11909
11910 if test "$enable_year2038" != no
11911 then :
11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11913 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11914 if test ${ac_cv_sys_year2038_opts+y}
11915 then :
11916 printf %s "(cached) " >&6
11917 else case e in #(
11918 e) ac_save_CPPFLAGS="$CPPFLAGS"
11919 ac_opt_found=no
11920 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11921 if test x"$ac_opt" != x"none needed"
11922 then :
11923 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11924 fi
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11927
11928 #include <time.h>
11929 /* Check that time_t can represent 2**32 - 1 correctly. */
11930 #define LARGE_TIME_T \\
11931 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11932 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11933 && LARGE_TIME_T % 65537 == 0)
11934 ? 1 : -1];
11935
11936 int
11937 main (void)
11938 {
11939
11940 ;
11941 return 0;
11942 }
11943 _ACEOF
11944 if ac_fn_c_try_compile "$LINENO"
11945 then :
11946 ac_cv_sys_year2038_opts="$ac_opt"
11947 ac_opt_found=yes
11948 fi
11949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11950 test $ac_opt_found = no || break
11951 done
11952 CPPFLAGS="$ac_save_CPPFLAGS"
11953 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11954 esac
11955 fi
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11957 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11958
11959 ac_have_year2038=yes
11960 case $ac_cv_sys_year2038_opts in #(
11961 "none needed") :
11962 ;; #(
11963 "support not detected") :
11964 ac_have_year2038=no ;; #(
11965 "-D_TIME_BITS=64") :
11966
11967 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11968 ;; #(
11969 "-D__MINGW_USE_VC2005_COMPAT") :
11970
11971 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11972 ;; #(
11973 "-U_USE_32_BIT_TIME_T"*) :
11974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11975 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11976 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11977 will stop working after mid-January 2038. Remove
11978 _USE_32BIT_TIME_T from the compiler flags.
11979 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11980 *) :
11981 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11982 esac
11983
11984 fi
11985
11986 fi
11987
11988 ac_config_files="$ac_config_files Makefile"
11989
11990 cat >confcache <<\_ACEOF
11991 # This file is a shell script that caches the results of configure
11992 # tests run on this system so they can be shared between configure
11993 # scripts and configure runs, see configure's option --config-cache.
11994 # It is not useful on other systems. If it contains results you don't
11995 # want to keep, you may remove or edit it.
11996 #
11997 # config.status only pays attention to the cache file if you give it
11998 # the --recheck option to rerun configure.
11999 #
12000 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12001 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12002 # following values.
12003
12004 _ACEOF
12005
12006 # The following way of writing the cache mishandles newlines in values,
12007 # but we know of no workaround that is simple, portable, and efficient.
12008 # So, we kill variables containing newlines.
12009 # Ultrix sh set writes to stderr and can't be redirected directly,
12010 # and sets the high bit in the cache file unless we assign to the vars.
12011 (
12012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12013 eval ac_val=\$$ac_var
12014 case $ac_val in #(
12015 *${as_nl}*)
12016 case $ac_var in #(
12017 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12018 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12019 esac
12020 case $ac_var in #(
12021 _ | IFS | as_nl) ;; #(
12022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12023 *) { eval $ac_var=; unset $ac_var;} ;;
12024 esac ;;
12025 esac
12026 done
12027
12028 (set) 2>&1 |
12029 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12030 *${as_nl}ac_space=\ *)
12031 # 'set' does not quote correctly, so add quotes: double-quote
12032 # substitution turns \\\\ into \\, and sed turns \\ into \.
12033 sed -n \
12034 "s/'/'\\\\''/g;
12035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12036 ;; #(
12037 *)
12038 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12040 ;;
12041 esac |
12042 sort
12043 ) |
12044 sed '
12045 /^ac_cv_env_/b end
12046 t clear
12047 :clear
12048 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12049 t end
12050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12051 :end' >>confcache
12052 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12053 if test -w "$cache_file"; then
12054 if test "x$cache_file" != "x/dev/null"; then
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12056 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12057 if test ! -f "$cache_file" || test -h "$cache_file"; then
12058 cat confcache >"$cache_file"
12059 else
12060 case $cache_file in #(
12061 */* | ?:*)
12062 mv -f confcache "$cache_file"$$ &&
12063 mv -f "$cache_file"$$ "$cache_file" ;; #(
12064 *)
12065 mv -f confcache "$cache_file" ;;
12066 esac
12067 fi
12068 fi
12069 else
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12071 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12072 fi
12073 fi
12074 rm -f confcache
12075
12076 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12077 # Let make expand exec_prefix.
12078 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12079
12080 DEFS=-DHAVE_CONFIG_H
12081
12082 ac_libobjs=
12083 ac_ltlibobjs=
12084 U=
12085 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12086 # 1. Remove the extension, and $U if already installed.
12087 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12088 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12089 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12090 # will be set to the directory where LIBOBJS objects are built.
12091 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12092 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12093 done
12094 LIBOBJS=$ac_libobjs
12095
12096 LTLIBOBJS=$ac_ltlibobjs
12097
12098
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12100 printf %s "checking that generated files are newer than configure... " >&6; }
12101 if test -n "$am_sleep_pid"; then
12102 # Hide warnings about reused PIDs.
12103 wait $am_sleep_pid 2>/dev/null
12104 fi
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12106 printf "%s\n" "done" >&6; }
12107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12108 as_fn_error $? "conditional \"AMDEP\" was never defined.
12109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12110 fi
12111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12112 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12114 fi
12115 if test -n "$EXEEXT"; then
12116 am__EXEEXT_TRUE=
12117 am__EXEEXT_FALSE='#'
12118 else
12119 am__EXEEXT_TRUE='#'
12120 am__EXEEXT_FALSE=
12121 fi
12122
12123 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12124 as_fn_error $? "conditional \"LINT\" was never defined.
12125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12126 fi
12127 # Check whether --enable-year2038 was given.
12128 if test ${enable_year2038+y}
12129 then :
12130 enableval=$enable_year2038;
12131 fi
12132
12133
12134 : "${CONFIG_STATUS=./config.status}"
12135 ac_write_fail=0
12136 ac_clean_files_save=$ac_clean_files
12137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12139 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12140 as_write_fail=0
12141 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12142 #! $SHELL
12143 # Generated by $as_me.
12144 # Run this file to recreate the current configuration.
12145 # Compiler output produced by configure, useful for debugging
12146 # configure, is in config.log if it exists.
12147
12148 debug=false
12149 ac_cs_recheck=false
12150 ac_cs_silent=false
12151
12152 SHELL=\${CONFIG_SHELL-$SHELL}
12153 export SHELL
12154 _ASEOF
12155 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12156 ## -------------------- ##
12157 ## M4sh Initialization. ##
12158 ## -------------------- ##
12159
12160 # Be more Bourne compatible
12161 DUALCASE=1; export DUALCASE # for MKS sh
12162 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12163 then :
12164 emulate sh
12165 NULLCMD=:
12166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12167 # is contrary to our usage. Disable this feature.
12168 alias -g '${1+"$@"}'='"$@"'
12169 setopt NO_GLOB_SUBST
12170 else case e in #(
12171 e) case `(set -o) 2>/dev/null` in #(
12172 *posix*) :
12173 set -o posix ;; #(
12174 *) :
12175 ;;
12176 esac ;;
12177 esac
12178 fi
12179
12180
12181
12182 # Reset variables that may have inherited troublesome values from
12183 # the environment.
12184
12185 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12186 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12187 # side effect of setting IFS to empty, thus disabling word splitting.)
12188 # Quoting is to prevent editors from complaining about space-tab.
12189 as_nl='
12190 '
12191 export as_nl
12192 IFS=" "" $as_nl"
12193
12194 PS1='$ '
12195 PS2='> '
12196 PS4='+ '
12197
12198 # Ensure predictable behavior from utilities with locale-dependent output.
12199 LC_ALL=C
12200 export LC_ALL
12201 LANGUAGE=C
12202 export LANGUAGE
12203
12204 # We cannot yet rely on "unset" to work, but we need these variables
12205 # to be unset--not just set to an empty or harmless value--now, to
12206 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12207 # also avoids known problems related to "unset" and subshell syntax
12208 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12209 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12210 do eval test \${$as_var+y} \
12211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12212 done
12213
12214 # Ensure that fds 0, 1, and 2 are open.
12215 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12216 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12217 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12218
12219 # The user is always right.
12220 if ${PATH_SEPARATOR+false} :; then
12221 PATH_SEPARATOR=:
12222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12223 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12224 PATH_SEPARATOR=';'
12225 }
12226 fi
12227
12228
12229 # Find who we are. Look in the path if we contain no directory separator.
12230 as_myself=
12231 case $0 in #((
12232 *[\\/]* ) as_myself=$0 ;;
12233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236 IFS=$as_save_IFS
12237 case $as_dir in #(((
12238 '') as_dir=./ ;;
12239 */) ;;
12240 *) as_dir=$as_dir/ ;;
12241 esac
12242 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12243 done
12244 IFS=$as_save_IFS
12245
12246 ;;
12247 esac
12248 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12249 # in which case we are not to be found in the path.
12250 if test "x$as_myself" = x; then
12251 as_myself=$0
12252 fi
12253 if test ! -f "$as_myself"; then
12254 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12255 exit 1
12256 fi
12257
12258
12259
12260 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12261 # ----------------------------------------
12262 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12263 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12264 # script with STATUS, using 1 if that was 0.
12265 as_fn_error ()
12266 {
12267 as_status=$1; test $as_status -eq 0 && as_status=1
12268 if test "$4"; then
12269 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12271 fi
12272 printf "%s\n" "$as_me: error: $2" >&2
12273 as_fn_exit $as_status
12274 } # as_fn_error
12275
12276
12277 # as_fn_set_status STATUS
12278 # -----------------------
12279 # Set $? to STATUS, without forking.
12280 as_fn_set_status ()
12281 {
12282 return $1
12283 } # as_fn_set_status
12284
12285 # as_fn_exit STATUS
12286 # -----------------
12287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12288 as_fn_exit ()
12289 {
12290 set +e
12291 as_fn_set_status $1
12292 exit $1
12293 } # as_fn_exit
12294
12295 # as_fn_unset VAR
12296 # ---------------
12297 # Portably unset VAR.
12298 as_fn_unset ()
12299 {
12300 { eval $1=; unset $1;}
12301 }
12302 as_unset=as_fn_unset
12303
12304 # as_fn_append VAR VALUE
12305 # ----------------------
12306 # Append the text in VALUE to the end of the definition contained in VAR. Take
12307 # advantage of any shell optimizations that allow amortized linear growth over
12308 # repeated appends, instead of the typical quadratic growth present in naive
12309 # implementations.
12310 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12311 then :
12312 eval 'as_fn_append ()
12313 {
12314 eval $1+=\$2
12315 }'
12316 else case e in #(
12317 e) as_fn_append ()
12318 {
12319 eval $1=\$$1\$2
12320 } ;;
12321 esac
12322 fi # as_fn_append
12323
12324 # as_fn_arith ARG...
12325 # ------------------
12326 # Perform arithmetic evaluation on the ARGs, and store the result in the
12327 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12328 # must be portable across $(()) and expr.
12329 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12330 then :
12331 eval 'as_fn_arith ()
12332 {
12333 as_val=$(( $* ))
12334 }'
12335 else case e in #(
12336 e) as_fn_arith ()
12337 {
12338 as_val=`expr "$@" || test $? -eq 1`
12339 } ;;
12340 esac
12341 fi # as_fn_arith
12342
12343
12344 if expr a : '\(a\)' >/dev/null 2>&1 &&
12345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12346 as_expr=expr
12347 else
12348 as_expr=false
12349 fi
12350
12351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12352 as_basename=basename
12353 else
12354 as_basename=false
12355 fi
12356
12357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12358 as_dirname=dirname
12359 else
12360 as_dirname=false
12361 fi
12362
12363 as_me=`$as_basename -- "$0" ||
12364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12365 X"$0" : 'X\(//\)$' \| \
12366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12367 printf "%s\n" X/"$0" |
12368 sed '/^.*\/\([^/][^/]*\)\/*$/{
12369 s//\1/
12370 q
12371 }
12372 /^X\/\(\/\/\)$/{
12373 s//\1/
12374 q
12375 }
12376 /^X\/\(\/\).*/{
12377 s//\1/
12378 q
12379 }
12380 s/.*/./; q'`
12381
12382 # Avoid depending upon Character Ranges.
12383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12386 as_cr_digits='0123456789'
12387 as_cr_alnum=$as_cr_Letters$as_cr_digits
12388
12389
12390 # Determine whether it's possible to make 'echo' print without a newline.
12391 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12392 # for compatibility with existing Makefiles.
12393 ECHO_C= ECHO_N= ECHO_T=
12394 case `echo -n x` in #(((((
12395 -n*)
12396 case `echo 'xy\c'` in
12397 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12398 xy) ECHO_C='\c';;
12399 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12400 ECHO_T=' ';;
12401 esac;;
12402 *)
12403 ECHO_N='-n';;
12404 esac
12405
12406 # For backward compatibility with old third-party macros, we provide
12407 # the shell variables $as_echo and $as_echo_n. New code should use
12408 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12409 as_echo='printf %s\n'
12410 as_echo_n='printf %s'
12411
12412 rm -f conf$$ conf$$.exe conf$$.file
12413 if test -d conf$$.dir; then
12414 rm -f conf$$.dir/conf$$.file
12415 else
12416 rm -f conf$$.dir
12417 mkdir conf$$.dir 2>/dev/null
12418 fi
12419 if (echo >conf$$.file) 2>/dev/null; then
12420 if ln -s conf$$.file conf$$ 2>/dev/null; then
12421 as_ln_s='ln -s'
12422 # ... but there are two gotchas:
12423 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12424 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12425 # In both cases, we have to default to 'cp -pR'.
12426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12427 as_ln_s='cp -pR'
12428 elif ln conf$$.file conf$$ 2>/dev/null; then
12429 as_ln_s=ln
12430 else
12431 as_ln_s='cp -pR'
12432 fi
12433 else
12434 as_ln_s='cp -pR'
12435 fi
12436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12437 rmdir conf$$.dir 2>/dev/null
12438
12439
12440 # as_fn_mkdir_p
12441 # -------------
12442 # Create "$as_dir" as a directory, including parents if necessary.
12443 as_fn_mkdir_p ()
12444 {
12445
12446 case $as_dir in #(
12447 -*) as_dir=./$as_dir;;
12448 esac
12449 test -d "$as_dir" || eval $as_mkdir_p || {
12450 as_dirs=
12451 while :; do
12452 case $as_dir in #(
12453 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12454 *) as_qdir=$as_dir;;
12455 esac
12456 as_dirs="'$as_qdir' $as_dirs"
12457 as_dir=`$as_dirname -- "$as_dir" ||
12458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12459 X"$as_dir" : 'X\(//\)[^/]' \| \
12460 X"$as_dir" : 'X\(//\)$' \| \
12461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12462 printf "%s\n" X"$as_dir" |
12463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12464 s//\1/
12465 q
12466 }
12467 /^X\(\/\/\)[^/].*/{
12468 s//\1/
12469 q
12470 }
12471 /^X\(\/\/\)$/{
12472 s//\1/
12473 q
12474 }
12475 /^X\(\/\).*/{
12476 s//\1/
12477 q
12478 }
12479 s/.*/./; q'`
12480 test -d "$as_dir" && break
12481 done
12482 test -z "$as_dirs" || eval "mkdir $as_dirs"
12483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12484
12485
12486 } # as_fn_mkdir_p
12487 if mkdir -p . 2>/dev/null; then
12488 as_mkdir_p='mkdir -p "$as_dir"'
12489 else
12490 test -d ./-p && rmdir ./-p
12491 as_mkdir_p=false
12492 fi
12493
12494
12495 # as_fn_executable_p FILE
12496 # -----------------------
12497 # Test if FILE is an executable regular file.
12498 as_fn_executable_p ()
12499 {
12500 test -f "$1" && test -x "$1"
12501 } # as_fn_executable_p
12502 as_test_x='test -x'
12503 as_executable_p=as_fn_executable_p
12504
12505 # Sed expression to map a string onto a valid CPP name.
12506 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12507 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12508
12509 # Sed expression to map a string onto a valid variable name.
12510 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12511 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12512
12513
12514 exec 6>&1
12515 ## ----------------------------------- ##
12516 ## Main body of $CONFIG_STATUS script. ##
12517 ## ----------------------------------- ##
12518 _ASEOF
12519 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12520
12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522 # Save the log message, to keep $0 and so on meaningful, and to
12523 # report actual input values of CONFIG_FILES etc. instead of their
12524 # values after options handling.
12525 ac_log="
12526 This file was extended by makedepend $as_me 1.0.9, which was
12527 generated by GNU Autoconf 2.72. Invocation command line was
12528
12529 CONFIG_FILES = $CONFIG_FILES
12530 CONFIG_HEADERS = $CONFIG_HEADERS
12531 CONFIG_LINKS = $CONFIG_LINKS
12532 CONFIG_COMMANDS = $CONFIG_COMMANDS
12533 $ $0 $@
12534
12535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12536 "
12537
12538 _ACEOF
12539
12540 case $ac_config_files in *"
12541 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12542 esac
12543
12544 case $ac_config_headers in *"
12545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12546 esac
12547
12548
12549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12550 # Files that config.status was made for.
12551 config_files="$ac_config_files"
12552 config_headers="$ac_config_headers"
12553 config_commands="$ac_config_commands"
12554
12555 _ACEOF
12556
12557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12558 ac_cs_usage="\
12559 '$as_me' instantiates files and other configuration actions
12560 from templates according to the current configuration. Unless the files
12561 and actions are specified as TAGs, all are instantiated by default.
12562
12563 Usage: $0 [OPTION]... [TAG]...
12564
12565 -h, --help print this help, then exit
12566 -V, --version print version number and configuration settings, then exit
12567 --config print configuration, then exit
12568 -q, --quiet, --silent
12569 do not print progress messages
12570 -d, --debug don't remove temporary files
12571 --recheck update $as_me by reconfiguring in the same conditions
12572 --file=FILE[:TEMPLATE]
12573 instantiate the configuration file FILE
12574 --header=FILE[:TEMPLATE]
12575 instantiate the configuration header FILE
12576
12577 Configuration files:
12578 $config_files
12579
12580 Configuration headers:
12581 $config_headers
12582
12583 Configuration commands:
12584 $config_commands
12585
12586 Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>."
12587
12588 _ACEOF
12589 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12590 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12592 ac_cs_config='$ac_cs_config_escaped'
12593 ac_cs_version="\\
12594 makedepend config.status 1.0.9
12595 configured by $0, generated by GNU Autoconf 2.72,
12596 with options \\"\$ac_cs_config\\"
12597
12598 Copyright (C) 2023 Free Software Foundation, Inc.
12599 This config.status script is free software; the Free Software Foundation
12600 gives unlimited permission to copy, distribute and modify it."
12601
12602 ac_pwd='$ac_pwd'
12603 srcdir='$srcdir'
12604 INSTALL='$INSTALL'
12605 MKDIR_P='$MKDIR_P'
12606 AWK='$AWK'
12607 test -n "\$AWK" || AWK=awk
12608 _ACEOF
12609
12610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12611 # The default lists apply if the user does not specify any file.
12612 ac_need_defaults=:
12613 while test $# != 0
12614 do
12615 case $1 in
12616 --*=?*)
12617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12619 ac_shift=:
12620 ;;
12621 --*=)
12622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12623 ac_optarg=
12624 ac_shift=:
12625 ;;
12626 *)
12627 ac_option=$1
12628 ac_optarg=$2
12629 ac_shift=shift
12630 ;;
12631 esac
12632
12633 case $ac_option in
12634 # Handling of the options.
12635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12636 ac_cs_recheck=: ;;
12637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12638 printf "%s\n" "$ac_cs_version"; exit ;;
12639 --config | --confi | --conf | --con | --co | --c )
12640 printf "%s\n" "$ac_cs_config"; exit ;;
12641 --debug | --debu | --deb | --de | --d | -d )
12642 debug=: ;;
12643 --file | --fil | --fi | --f )
12644 $ac_shift
12645 case $ac_optarg in
12646 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12647 '') as_fn_error $? "missing file argument" ;;
12648 esac
12649 as_fn_append CONFIG_FILES " '$ac_optarg'"
12650 ac_need_defaults=false;;
12651 --header | --heade | --head | --hea )
12652 $ac_shift
12653 case $ac_optarg in
12654 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12655 esac
12656 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12657 ac_need_defaults=false;;
12658 --he | --h)
12659 # Conflict between --help and --header
12660 as_fn_error $? "ambiguous option: '$1'
12661 Try '$0 --help' for more information.";;
12662 --help | --hel | -h )
12663 printf "%s\n" "$ac_cs_usage"; exit ;;
12664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12666 ac_cs_silent=: ;;
12667
12668 # This is an error.
12669 -*) as_fn_error $? "unrecognized option: '$1'
12670 Try '$0 --help' for more information." ;;
12671
12672 *) as_fn_append ac_config_targets " $1"
12673 ac_need_defaults=false ;;
12674
12675 esac
12676 shift
12677 done
12678
12679 ac_configure_extra_args=
12680
12681 if $ac_cs_silent; then
12682 exec 6>/dev/null
12683 ac_configure_extra_args="$ac_configure_extra_args --silent"
12684 fi
12685
12686 _ACEOF
12687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12688 if \$ac_cs_recheck; then
12689 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12690 shift
12691 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12692 CONFIG_SHELL='$SHELL'
12693 export CONFIG_SHELL
12694 exec "\$@"
12695 fi
12696
12697 _ACEOF
12698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12699 exec 5>>config.log
12700 {
12701 echo
12702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12703 ## Running $as_me. ##
12704 _ASBOX
12705 printf "%s\n" "$ac_log"
12706 } >&5
12707
12708 _ACEOF
12709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12710 #
12711 # INIT-COMMANDS
12712 #
12713 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12714
12715 _ACEOF
12716
12717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718
12719 # Handling of arguments.
12720 for ac_config_target in $ac_config_targets
12721 do
12722 case $ac_config_target in
12723 "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;;
12724 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12726
12727 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12728 esac
12729 done
12730
12731
12732 # If the user did not use the arguments to specify the items to instantiate,
12733 # then the envvar interface is used. Set only those that are not.
12734 # We use the long form for the default assignment because of an extremely
12735 # bizarre bug on SunOS 4.1.3.
12736 if $ac_need_defaults; then
12737 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12738 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12739 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12740 fi
12741
12742 # Have a temporary directory for convenience. Make it in the build tree
12743 # simply because there is no reason against having it here, and in addition,
12744 # creating and moving files from /tmp can sometimes cause problems.
12745 # Hook for its removal unless debugging.
12746 # Note that there is a small window in which the directory will not be cleaned:
12747 # after its creation but before its name has been assigned to '$tmp'.
12748 $debug ||
12749 {
12750 tmp= ac_tmp=
12751 trap 'exit_status=$?
12752 : "${ac_tmp:=$tmp}"
12753 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12754 ' 0
12755 trap 'as_fn_exit 1' 1 2 13 15
12756 }
12757 # Create a (secure) tmp directory for tmp files.
12758
12759 {
12760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12761 test -d "$tmp"
12762 } ||
12763 {
12764 tmp=./conf$$-$RANDOM
12765 (umask 077 && mkdir "$tmp")
12766 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12767 ac_tmp=$tmp
12768
12769 # Set up the scripts for CONFIG_FILES section.
12770 # No need to generate them if there are no CONFIG_FILES.
12771 # This happens for instance with './config.status config.h'.
12772 if test -n "$CONFIG_FILES"; then
12773
12774
12775 ac_cr=`echo X | tr X '\015'`
12776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12777 # But we know of no other shell where ac_cr would be empty at this
12778 # point, so we can use a bashism as a fallback.
12779 if test "x$ac_cr" = x; then
12780 eval ac_cr=\$\'\\r\'
12781 fi
12782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12784 ac_cs_awk_cr='\\r'
12785 else
12786 ac_cs_awk_cr=$ac_cr
12787 fi
12788
12789 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12790 _ACEOF
12791
12792
12793 {
12794 echo "cat >conf$$subs.awk <<_ACEOF" &&
12795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12796 echo "_ACEOF"
12797 } >conf$$subs.sh ||
12798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12799 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12800 ac_delim='%!_!# '
12801 for ac_last_try in false false false false false :; do
12802 . ./conf$$subs.sh ||
12803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12804
12805 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12806 if test $ac_delim_n = $ac_delim_num; then
12807 break
12808 elif $ac_last_try; then
12809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12810 else
12811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12812 fi
12813 done
12814 rm -f conf$$subs.sh
12815
12816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12817 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12818 _ACEOF
12819 sed -n '
12820 h
12821 s/^/S["/; s/!.*/"]=/
12822 p
12823 g
12824 s/^[^!]*!//
12825 :repl
12826 t repl
12827 s/'"$ac_delim"'$//
12828 t delim
12829 :nl
12830 h
12831 s/\(.\{148\}\)..*/\1/
12832 t more1
12833 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12834 p
12835 n
12836 b repl
12837 :more1
12838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12839 p
12840 g
12841 s/.\{148\}//
12842 t nl
12843 :delim
12844 h
12845 s/\(.\{148\}\)..*/\1/
12846 t more2
12847 s/["\\]/\\&/g; s/^/"/; s/$/"/
12848 p
12849 b
12850 :more2
12851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12852 p
12853 g
12854 s/.\{148\}//
12855 t delim
12856 ' <conf$$subs.awk | sed '
12857 /^[^""]/{
12858 N
12859 s/\n//
12860 }
12861 ' >>$CONFIG_STATUS || ac_write_fail=1
12862 rm -f conf$$subs.awk
12863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12864 _ACAWK
12865 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12866 for (key in S) S_is_set[key] = 1
12867 FS = ""
12868
12869 }
12870 {
12871 line = $ 0
12872 nfields = split(line, field, "@")
12873 substed = 0
12874 len = length(field[1])
12875 for (i = 2; i < nfields; i++) {
12876 key = field[i]
12877 keylen = length(key)
12878 if (S_is_set[key]) {
12879 value = S[key]
12880 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12881 len += length(value) + length(field[++i])
12882 substed = 1
12883 } else
12884 len += 1 + keylen
12885 }
12886
12887 print line
12888 }
12889
12890 _ACAWK
12891 _ACEOF
12892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12893 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12895 else
12896 cat
12897 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12898 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12899 _ACEOF
12900
12901 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12902 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12903 # trailing colons and then remove the whole line if VPATH becomes empty
12904 # (actually we leave an empty line to preserve line numbers).
12905 if test "x$srcdir" = x.; then
12906 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12907 h
12908 s///
12909 s/^/:/
12910 s/[ ]*$/:/
12911 s/:\$(srcdir):/:/g
12912 s/:\${srcdir}:/:/g
12913 s/:@srcdir@:/:/g
12914 s/^:*//
12915 s/:*$//
12916 x
12917 s/\(=[ ]*\).*/\1/
12918 G
12919 s/\n//
12920 s/^[^=]*=[ ]*$//
12921 }'
12922 fi
12923
12924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12925 fi # test -n "$CONFIG_FILES"
12926
12927 # Set up the scripts for CONFIG_HEADERS section.
12928 # No need to generate them if there are no CONFIG_HEADERS.
12929 # This happens for instance with './config.status Makefile'.
12930 if test -n "$CONFIG_HEADERS"; then
12931 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12932 BEGIN {
12933 _ACEOF
12934
12935 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12936 # here-document in config.status, that substitutes the proper values into
12937 # config.h.in to produce config.h.
12938
12939 # Create a delimiter string that does not exist in confdefs.h, to ease
12940 # handling of long lines.
12941 ac_delim='%!_!# '
12942 for ac_last_try in false false :; do
12943 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12944 if test -z "$ac_tt"; then
12945 break
12946 elif $ac_last_try; then
12947 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12948 else
12949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12950 fi
12951 done
12952
12953 # For the awk script, D is an array of macro values keyed by name,
12954 # likewise P contains macro parameters if any. Preserve backslash
12955 # newline sequences.
12956
12957 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12958 sed -n '
12959 s/.\{148\}/&'"$ac_delim"'/g
12960 t rset
12961 :rset
12962 s/^[ ]*#[ ]*define[ ][ ]*/ /
12963 t def
12964 d
12965 :def
12966 s/\\$//
12967 t bsnl
12968 s/["\\]/\\&/g
12969 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12970 D["\1"]=" \3"/p
12971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12972 d
12973 :bsnl
12974 s/["\\]/\\&/g
12975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12976 D["\1"]=" \3\\\\\\n"\\/p
12977 t cont
12978 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12979 t cont
12980 d
12981 :cont
12982 n
12983 s/.\{148\}/&'"$ac_delim"'/g
12984 t clear
12985 :clear
12986 s/\\$//
12987 t bsnlc
12988 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12989 d
12990 :bsnlc
12991 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12992 b cont
12993 ' <confdefs.h | sed '
12994 s/'"$ac_delim"'/"\\\
12995 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12996
12997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12998 for (key in D) D_is_set[key] = 1
12999 FS = ""
13000 }
13001 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13002 line = \$ 0
13003 split(line, arg, " ")
13004 if (arg[1] == "#") {
13005 defundef = arg[2]
13006 mac1 = arg[3]
13007 } else {
13008 defundef = substr(arg[1], 2)
13009 mac1 = arg[2]
13010 }
13011 split(mac1, mac2, "(") #)
13012 macro = mac2[1]
13013 prefix = substr(line, 1, index(line, defundef) - 1)
13014 if (D_is_set[macro]) {
13015 # Preserve the white space surrounding the "#".
13016 print prefix "define", macro P[macro] D[macro]
13017 next
13018 } else {
13019 # Replace #undef with comments. This is necessary, for example,
13020 # in the case of _POSIX_SOURCE, which is predefined and required
13021 # on some systems where configure will not decide to define it.
13022 if (defundef == "undef") {
13023 print "/*", prefix defundef, macro, "*/"
13024 next
13025 }
13026 }
13027 }
13028 { print }
13029 _ACAWK
13030 _ACEOF
13031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13032 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13033 fi # test -n "$CONFIG_HEADERS"
13034
13035
13036 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13037 shift
13038 for ac_tag
13039 do
13040 case $ac_tag in
13041 :[FHLC]) ac_mode=$ac_tag; continue;;
13042 esac
13043 case $ac_mode$ac_tag in
13044 :[FHL]*:*);;
13045 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13046 :[FH]-) ac_tag=-:-;;
13047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13048 esac
13049 ac_save_IFS=$IFS
13050 IFS=:
13051 set x $ac_tag
13052 IFS=$ac_save_IFS
13053 shift
13054 ac_file=$1
13055 shift
13056
13057 case $ac_mode in
13058 :L) ac_source=$1;;
13059 :[FH])
13060 ac_file_inputs=
13061 for ac_f
13062 do
13063 case $ac_f in
13064 -) ac_f="$ac_tmp/stdin";;
13065 *) # Look for the file first in the build tree, then in the source tree
13066 # (if the path is not absolute). The absolute path cannot be DOS-style,
13067 # because $ac_f cannot contain ':'.
13068 test -f "$ac_f" ||
13069 case $ac_f in
13070 [\\/$]*) false;;
13071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13072 esac ||
13073 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13074 esac
13075 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13076 as_fn_append ac_file_inputs " '$ac_f'"
13077 done
13078
13079 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13080 # use $as_me), people would be surprised to read:
13081 # /* config.h. Generated by config.status. */
13082 configure_input='Generated from '`
13083 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13084 `' by configure.'
13085 if test x"$ac_file" != x-; then
13086 configure_input="$ac_file. $configure_input"
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13088 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13089 fi
13090 # Neutralize special characters interpreted by sed in replacement strings.
13091 case $configure_input in #(
13092 *\&* | *\|* | *\\* )
13093 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13094 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13095 *) ac_sed_conf_input=$configure_input;;
13096 esac
13097
13098 case $ac_tag in
13099 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13101 esac
13102 ;;
13103 esac
13104
13105 ac_dir=`$as_dirname -- "$ac_file" ||
13106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13107 X"$ac_file" : 'X\(//\)[^/]' \| \
13108 X"$ac_file" : 'X\(//\)$' \| \
13109 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13110 printf "%s\n" X"$ac_file" |
13111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13112 s//\1/
13113 q
13114 }
13115 /^X\(\/\/\)[^/].*/{
13116 s//\1/
13117 q
13118 }
13119 /^X\(\/\/\)$/{
13120 s//\1/
13121 q
13122 }
13123 /^X\(\/\).*/{
13124 s//\1/
13125 q
13126 }
13127 s/.*/./; q'`
13128 as_dir="$ac_dir"; as_fn_mkdir_p
13129 ac_builddir=.
13130
13131 case "$ac_dir" in
13132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13133 *)
13134 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13135 # A ".." for each directory in $ac_dir_suffix.
13136 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13137 case $ac_top_builddir_sub in
13138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13140 esac ;;
13141 esac
13142 ac_abs_top_builddir=$ac_pwd
13143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13144 # for backward compatibility:
13145 ac_top_builddir=$ac_top_build_prefix
13146
13147 case $srcdir in
13148 .) # We are building in place.
13149 ac_srcdir=.
13150 ac_top_srcdir=$ac_top_builddir_sub
13151 ac_abs_top_srcdir=$ac_pwd ;;
13152 [\\/]* | ?:[\\/]* ) # Absolute name.
13153 ac_srcdir=$srcdir$ac_dir_suffix;
13154 ac_top_srcdir=$srcdir
13155 ac_abs_top_srcdir=$srcdir ;;
13156 *) # Relative name.
13157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13158 ac_top_srcdir=$ac_top_build_prefix$srcdir
13159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13160 esac
13161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13162
13163
13164 case $ac_mode in
13165 :F)
13166 #
13167 # CONFIG_FILE
13168 #
13169
13170 case $INSTALL in
13171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13173 esac
13174 ac_MKDIR_P=$MKDIR_P
13175 case $MKDIR_P in
13176 [\\/$]* | ?:[\\/]* ) ;;
13177 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13178 esac
13179 _ACEOF
13180
13181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13182 # If the template does not know about datarootdir, expand it.
13183 # FIXME: This hack should be removed a few years after 2.60.
13184 ac_datarootdir_hack=; ac_datarootdir_seen=
13185 ac_sed_dataroot='
13186 /datarootdir/ {
13187 p
13188 q
13189 }
13190 /@datadir@/p
13191 /@docdir@/p
13192 /@infodir@/p
13193 /@localedir@/p
13194 /@mandir@/p'
13195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13196 *datarootdir*) ac_datarootdir_seen=yes;;
13197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13199 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13200 _ACEOF
13201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13202 ac_datarootdir_hack='
13203 s&@datadir@&$datadir&g
13204 s&@docdir@&$docdir&g
13205 s&@infodir@&$infodir&g
13206 s&@localedir@&$localedir&g
13207 s&@mandir@&$mandir&g
13208 s&\\\${datarootdir}&$datarootdir&g' ;;
13209 esac
13210 _ACEOF
13211
13212 # Neutralize VPATH when '$srcdir' = '.'.
13213 # Shell code in configure.ac might set extrasub.
13214 # FIXME: do we really want to maintain this feature?
13215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13216 ac_sed_extra="$ac_vpsub
13217 $extrasub
13218 _ACEOF
13219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13220 :t
13221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13222 s|@configure_input@|$ac_sed_conf_input|;t t
13223 s&@top_builddir@&$ac_top_builddir_sub&;t t
13224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13225 s&@srcdir@&$ac_srcdir&;t t
13226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13227 s&@top_srcdir@&$ac_top_srcdir&;t t
13228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13229 s&@builddir@&$ac_builddir&;t t
13230 s&@abs_builddir@&$ac_abs_builddir&;t t
13231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13232 s&@INSTALL@&$ac_INSTALL&;t t
13233 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13234 $ac_datarootdir_hack
13235 "
13236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13237 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13238
13239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13242 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13244 which seems to be undefined. Please make sure it is defined" >&5
13245 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13246 which seems to be undefined. Please make sure it is defined" >&2;}
13247
13248 rm -f "$ac_tmp/stdin"
13249 case $ac_file in
13250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13252 esac \
13253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13254 ;;
13255 :H)
13256 #
13257 # CONFIG_HEADER
13258 #
13259 if test x"$ac_file" != x-; then
13260 {
13261 printf "%s\n" "/* $configure_input */" >&1 \
13262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13263 } >"$ac_tmp/config.h" \
13264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13267 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13268 else
13269 rm -f "$ac_file"
13270 mv "$ac_tmp/config.h" "$ac_file" \
13271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13272 fi
13273 else
13274 printf "%s\n" "/* $configure_input */" >&1 \
13275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13276 || as_fn_error $? "could not create -" "$LINENO" 5
13277 fi
13278 # Compute "$ac_file"'s index in $config_headers.
13279 _am_arg="$ac_file"
13280 _am_stamp_count=1
13281 for _am_header in $config_headers :; do
13282 case $_am_header in
13283 $_am_arg | $_am_arg:* )
13284 break ;;
13285 * )
13286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13287 esac
13288 done
13289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$_am_arg" : 'X\(//\)[^/]' \| \
13292 X"$_am_arg" : 'X\(//\)$' \| \
13293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13294 printf "%s\n" X"$_am_arg" |
13295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13296 s//\1/
13297 q
13298 }
13299 /^X\(\/\/\)[^/].*/{
13300 s//\1/
13301 q
13302 }
13303 /^X\(\/\/\)$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\(\/\).*/{
13308 s//\1/
13309 q
13310 }
13311 s/.*/./; q'`/stamp-h$_am_stamp_count
13312 ;;
13313
13314 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13315 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13316 ;;
13317 esac
13318
13319
13320 case $ac_file$ac_mode in
13321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13322 # Older Autoconf quotes --file arguments for eval, but not when files
13323 # are listed without --file. Let's play safe and only enable the eval
13324 # if we detect the quoting.
13325 # TODO: see whether this extra hack can be removed once we start
13326 # requiring Autoconf 2.70 or later.
13327 case $CONFIG_FILES in #(
13328 *\'*) :
13329 eval set x "$CONFIG_FILES" ;; #(
13330 *) :
13331 set x $CONFIG_FILES ;; #(
13332 *) :
13333 ;;
13334 esac
13335 shift
13336 # Used to flag and report bootstrapping failures.
13337 am_rc=0
13338 for am_mf
13339 do
13340 # Strip MF so we end up with the name of the file.
13341 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13342 # Check whether this is an Automake generated Makefile which includes
13343 # dependency-tracking related rules and includes.
13344 # Grep'ing the whole file directly is not great: AIX grep has a line
13345 # limit of 2048, but all sed's we know have understand at least 4000.
13346 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13347 || continue
13348 am_dirpart=`$as_dirname -- "$am_mf" ||
13349 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13350 X"$am_mf" : 'X\(//\)[^/]' \| \
13351 X"$am_mf" : 'X\(//\)$' \| \
13352 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13353 printf "%s\n" X"$am_mf" |
13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13355 s//\1/
13356 q
13357 }
13358 /^X\(\/\/\)[^/].*/{
13359 s//\1/
13360 q
13361 }
13362 /^X\(\/\/\)$/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\).*/{
13367 s//\1/
13368 q
13369 }
13370 s/.*/./; q'`
13371 am_filepart=`$as_basename -- "$am_mf" ||
13372 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13373 X"$am_mf" : 'X\(//\)$' \| \
13374 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13375 printf "%s\n" X/"$am_mf" |
13376 sed '/^.*\/\([^/][^/]*\)\/*$/{
13377 s//\1/
13378 q
13379 }
13380 /^X\/\(\/\/\)$/{
13381 s//\1/
13382 q
13383 }
13384 /^X\/\(\/\).*/{
13385 s//\1/
13386 q
13387 }
13388 s/.*/./; q'`
13389 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13390 && sed -e '/# am--include-marker/d' "$am_filepart" \
13391 | $MAKE -f - am--depfiles" >&5
13392 (cd "$am_dirpart" \
13393 && sed -e '/# am--include-marker/d' "$am_filepart" \
13394 | $MAKE -f - am--depfiles) >&5 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } || am_rc=$?
13398 done
13399 if test $am_rc -ne 0; then
13400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13401 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13402 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13403 for automatic dependency tracking. If GNU make was not used, consider
13404 re-running the configure script with MAKE=\"gmake\" (or whatever is
13405 necessary). You can also try re-running configure with the
13406 '--disable-dependency-tracking' option to at least be able to build
13407 the package (albeit without support for automatic dependency tracking).
13408 See 'config.log' for more details" "$LINENO" 5; }
13409 fi
13410 { am_dirpart=; unset am_dirpart;}
13411 { am_filepart=; unset am_filepart;}
13412 { am_mf=; unset am_mf;}
13413 { am_rc=; unset am_rc;}
13414 rm -f conftest-deps.mk
13415 }
13416 ;;
13417
13418 esac
13419 done # for ac_tag
13420
13421
13422 as_fn_exit 0
13423 _ACEOF
13424 ac_clean_files=$ac_clean_files_save
13425
13426 test $ac_write_fail = 0 ||
13427 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13428
13429
13430 # configure is writing to config.log, and then calls config.status.
13431 # config.status does its own redirection, appending to config.log.
13432 # Unfortunately, on DOS this fails, as config.log is still kept open
13433 # by configure, so config.status won't be able to write to it; its
13434 # output is simply discarded. So we exec the FD to /dev/null,
13435 # effectively closing config.log, so it can be properly (re)opened and
13436 # appended to by config.status. When coming back to configure, we
13437 # need to make the FD available again.
13438 if test "$no_create" != yes; then
13439 ac_cs_success=:
13440 ac_config_status_args=
13441 test "$silent" = yes &&
13442 ac_config_status_args="$ac_config_status_args --quiet"
13443 exec 5>/dev/null
13444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13445 exec 5>>config.log
13446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13447 # would make configure fail if this is the last instruction.
13448 $ac_cs_success || as_fn_exit 1
13449 fi
13450 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13452 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13453 fi
13454
13455
13456