configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for oclock 1.0.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/oclock/-/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='oclock'
614 PACKAGE_TARNAME='oclock'
615 PACKAGE_VERSION='1.0.5'
616 PACKAGE_STRING='oclock 1.0.5'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/oclock/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 appdefaultdir
658 OCLOCK_LIBS
659 OCLOCK_CFLAGS
660 MAN_SUBSTS
661 XORG_MAN_PAGE
662 ADMIN_MAN_DIR
663 DRIVER_MAN_DIR
664 MISC_MAN_DIR
665 FILE_MAN_DIR
666 LIB_MAN_DIR
667 APP_MAN_DIR
668 ADMIN_MAN_SUFFIX
669 DRIVER_MAN_SUFFIX
670 MISC_MAN_SUFFIX
671 FILE_MAN_SUFFIX
672 LIB_MAN_SUFFIX
673 APP_MAN_SUFFIX
674 SED
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 INSTALL_CMD
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 CHANGELOG_CMD
688 STRICT_CFLAGS
689 CWARNFLAGS
690 BASE_CFLAGS
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 CSCOPE
712 ETAGS
713 CTAGS
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 runstatedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL
776 am__quote'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_silent_rules
781 enable_dependency_tracking
782 enable_selective_werror
783 enable_strict_compilation
784 with_xkb
785 with_appdefaultdir
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
798 OCLOCK_CFLAGS
799 OCLOCK_LIBS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: \`$ac_useropt'"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: \`$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -runstatedir | --runstatedir | --runstatedi | --runstated \
1090 | --runstate | --runstat | --runsta | --runst | --runs \
1091 | --run | --ru | --r)
1092 ac_prev=runstatedir ;;
1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095 | --run=* | --ru=* | --r=*)
1096 runstatedir=$ac_optarg ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: \`$ac_useropt'"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: \`$ac_useropt'"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 ;;
1214
1215 esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir runstatedir
1236 do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 printf "%s\n" X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures oclock 1.0.5 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/oclock]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of oclock 1.0.5:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --disable-selective-werror
1434 Turn off selective compiler errors. (default:
1435 enabled)
1436 --enable-strict-compilation
1437 Enable all warnings from compiler and make them
1438 errors (default: disabled)
1439
1440 Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --without-xkb Disable use of XKB to sound bells (Default is
1444 with-xkb)
1445 --with-appdefaultdir=<pathname>
1446 specify directory for app-defaults files (default is
1447 autodetected)
1448
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 PKG_CONFIG path to pkg-config utility
1458 PKG_CONFIG_PATH
1459 directories to add to pkg-config's search path
1460 PKG_CONFIG_LIBDIR
1461 path overriding pkg-config's built-in search path
1462 OCLOCK_CFLAGS
1463 C compiler flags for OCLOCK, overriding pkg-config
1464 OCLOCK_LIBS linker flags for OCLOCK, overriding pkg-config
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for configure.gnu first; this name is used for a wrapper for
1516 # Metaconfig's "Configure" on case-insensitive file systems.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1523 else
1524 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1527 done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532 cat <<\_ACEOF
1533 oclock configure 1.0.5
1534 generated by GNU Autoconf 2.71
1535
1536 Copyright (C) 2021 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539 _ACEOF
1540 exit
1541 fi
1542
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1546
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1551 {
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext conftest.beam
1554 if { { ac_try="$ac_compile"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 printf "%s\n" "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext
1573 then :
1574 ac_retval=0
1575 else $as_nop
1576 printf "%s\n" "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580 fi
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1587 # ------------------------------------------------------------------
1588 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1589 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1590 ac_fn_check_decl ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 as_decl_name=`echo $2|sed 's/ *(.*//'`
1594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1595 printf %s "checking whether $as_decl_name is declared... " >&6; }
1596 if eval test \${$3+y}
1597 then :
1598 printf %s "(cached) " >&6
1599 else $as_nop
1600 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1601 eval ac_save_FLAGS=\$$6
1602 as_fn_append $6 " $5"
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1605 $4
1606 int
1607 main (void)
1608 {
1609 #ifndef $as_decl_name
1610 #ifdef __cplusplus
1611 (void) $as_decl_use;
1612 #else
1613 (void) $as_decl_name;
1614 #endif
1615 #endif
1616
1617 ;
1618 return 0;
1619 }
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"
1622 then :
1623 eval "$3=yes"
1624 else $as_nop
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1628 eval $6=\$ac_save_FLAGS
1629
1630 fi
1631 eval ac_res=\$$3
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 printf "%s\n" "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_check_decl
1637
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 printf %s "checking for $2... " >&6; }
1647 if eval test \${$3+y}
1648 then :
1649 printf %s "(cached) " >&6
1650 else $as_nop
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"
1657 then :
1658 eval "$3=yes"
1659 else $as_nop
1660 eval "$3=no"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1663 fi
1664 eval ac_res=\$$3
1665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 printf "%s\n" "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 printf "%s\n" "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }
1700 then :
1701 ac_retval=0
1702 else $as_nop
1703 printf "%s\n" "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
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 ac_configure_args_raw=
1718 for ac_arg
1719 do
1720 case $ac_arg in
1721 *\'*)
1722 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 as_fn_append ac_configure_args_raw " '$ac_arg'"
1725 done
1726
1727 case $ac_configure_args_raw in
1728 *$as_nl*)
1729 ac_safe_unquote= ;;
1730 *)
1731 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1732 ac_unsafe_a="$ac_unsafe_z#~"
1733 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1734 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1735 esac
1736
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1740
1741 It was created by oclock $as_me 1.0.5, which was
1742 generated by GNU Autoconf 2.71. Invocation command line was
1743
1744 $ $0$ac_configure_args_raw
1745
1746 _ACEOF
1747 exec 5>>config.log
1748 {
1749 cat <<_ASUNAME
1750 ## --------- ##
1751 ## Platform. ##
1752 ## --------- ##
1753
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1762
1763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1770
1771 _ASUNAME
1772
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776 IFS=$as_save_IFS
1777 case $as_dir in #(((
1778 '') as_dir=./ ;;
1779 */) ;;
1780 *) as_dir=$as_dir/ ;;
1781 esac
1782 printf "%s\n" "PATH: $as_dir"
1783 done
1784 IFS=$as_save_IFS
1785
1786 } >&5
1787
1788 cat >&5 <<_ACEOF
1789
1790
1791 ## ----------- ##
1792 ## Core tests. ##
1793 ## ----------- ##
1794
1795 _ACEOF
1796
1797
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1803 ac_configure_args=
1804 ac_configure_args0=
1805 ac_configure_args1=
1806 ac_must_keep_next=false
1807 for ac_pass in 1 2
1808 do
1809 for ac_arg
1810 do
1811 case $ac_arg in
1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1815 continue ;;
1816 *\'*)
1817 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 esac
1819 case $ac_pass in
1820 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1821 2)
1822 as_fn_append ac_configure_args1 " '$ac_arg'"
1823 if test $ac_must_keep_next = true; then
1824 ac_must_keep_next=false # Got value, back to normal.
1825 else
1826 case $ac_arg in
1827 *=* | --config-cache | -C | -disable-* | --disable-* \
1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830 | -with-* | --with-* | -without-* | --without-* | --x)
1831 case "$ac_configure_args0 " in
1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833 esac
1834 ;;
1835 -* ) ac_must_keep_next=true ;;
1836 esac
1837 fi
1838 as_fn_append ac_configure_args " '$ac_arg'"
1839 ;;
1840 esac
1841 done
1842 done
1843 { ac_configure_args0=; unset ac_configure_args0;}
1844 { ac_configure_args1=; unset ac_configure_args1;}
1845
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log. We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852 # Sanitize IFS.
1853 IFS=" "" $as_nl"
1854 # Save into config.log some information that might help in debugging.
1855 {
1856 echo
1857
1858 printf "%s\n" "## ---------------- ##
1859 ## Cache variables. ##
1860 ## ---------------- ##"
1861 echo
1862 # The following way of writing the cache mishandles newlines in values,
1863 (
1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865 eval ac_val=\$$ac_var
1866 case $ac_val in #(
1867 *${as_nl}*)
1868 case $ac_var in #(
1869 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1870 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871 esac
1872 case $ac_var in #(
1873 _ | IFS | as_nl) ;; #(
1874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875 *) { eval $ac_var=; unset $ac_var;} ;;
1876 esac ;;
1877 esac
1878 done
1879 (set) 2>&1 |
1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881 *${as_nl}ac_space=\ *)
1882 sed -n \
1883 "s/'\''/'\''\\\\'\'''\''/g;
1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885 ;; #(
1886 *)
1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888 ;;
1889 esac |
1890 sort
1891 )
1892 echo
1893
1894 printf "%s\n" "## ----------------- ##
1895 ## Output variables. ##
1896 ## ----------------- ##"
1897 echo
1898 for ac_var in $ac_subst_vars
1899 do
1900 eval ac_val=\$$ac_var
1901 case $ac_val in
1902 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903 esac
1904 printf "%s\n" "$ac_var='\''$ac_val'\''"
1905 done | sort
1906 echo
1907
1908 if test -n "$ac_subst_files"; then
1909 printf "%s\n" "## ------------------- ##
1910 ## File substitutions. ##
1911 ## ------------------- ##"
1912 echo
1913 for ac_var in $ac_subst_files
1914 do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in
1917 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1918 esac
1919 printf "%s\n" "$ac_var='\''$ac_val'\''"
1920 done | sort
1921 echo
1922 fi
1923
1924 if test -s confdefs.h; then
1925 printf "%s\n" "## ----------- ##
1926 ## confdefs.h. ##
1927 ## ----------- ##"
1928 echo
1929 cat confdefs.h
1930 echo
1931 fi
1932 test "$ac_signal" != 0 &&
1933 printf "%s\n" "$as_me: caught signal $ac_signal"
1934 printf "%s\n" "$as_me: exit $exit_status"
1935 } >&5
1936 rm -f core *.core core.conftest.* &&
1937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938 exit $exit_status
1939 ' 0
1940 for ac_signal in 1 2 13 15; do
1941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1942 done
1943 ac_signal=0
1944
1945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1946 rm -f -r conftest* confdefs.h
1947
1948 printf "%s\n" "/* confdefs.h */" > confdefs.h
1949
1950 # Predefined preprocessor variables.
1951
1952 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1953
1954 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1957
1958 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1959
1960 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1961
1962 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1963
1964
1965 # Let the site file select an alternate cache file if it wants to.
1966 # Prefer an explicitly selected file to automatically selected ones.
1967 if test -n "$CONFIG_SITE"; then
1968 ac_site_files="$CONFIG_SITE"
1969 elif test "x$prefix" != xNONE; then
1970 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1971 else
1972 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1973 fi
1974
1975 for ac_site_file in $ac_site_files
1976 do
1977 case $ac_site_file in #(
1978 */*) :
1979 ;; #(
1980 *) :
1981 ac_site_file=./$ac_site_file ;;
1982 esac
1983 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1985 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1986 sed 's/^/| /' "$ac_site_file" >&5
1987 . "$ac_site_file" \
1988 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1990 as_fn_error $? "failed to load site script $ac_site_file
1991 See \`config.log' for more details" "$LINENO" 5; }
1992 fi
1993 done
1994
1995 if test -r "$cache_file"; then
1996 # Some versions of bash will fail to source /dev/null (special files
1997 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1998 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2000 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2001 case $cache_file in
2002 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2003 *) . "./$cache_file";;
2004 esac
2005 fi
2006 else
2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2008 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2009 >$cache_file
2010 fi
2011
2012 # Test code for whether the C compiler supports C89 (global declarations)
2013 ac_c_conftest_c89_globals='
2014 /* Does the compiler advertise C89 conformance?
2015 Do not test the value of __STDC__, because some compilers set it to 0
2016 while being otherwise adequately conformant. */
2017 #if !defined __STDC__
2018 # error "Compiler does not advertise C89 conformance"
2019 #endif
2020
2021 #include <stddef.h>
2022 #include <stdarg.h>
2023 struct stat;
2024 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2025 struct buf { int x; };
2026 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2027 static char *e (p, i)
2028 char **p;
2029 int i;
2030 {
2031 return p[i];
2032 }
2033 static char *f (char * (*g) (char **, int), char **p, ...)
2034 {
2035 char *s;
2036 va_list v;
2037 va_start (v,p);
2038 s = g (p, va_arg (v,int));
2039 va_end (v);
2040 return s;
2041 }
2042
2043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2044 function prototypes and stuff, but not \xHH hex character constants.
2045 These do not provoke an error unfortunately, instead are silently treated
2046 as an "x". The following induces an error, until -std is added to get
2047 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2048 array size at least. It is necessary to write \x00 == 0 to get something
2049 that is true only with -std. */
2050 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2051
2052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2053 inside strings and character constants. */
2054 #define FOO(x) '\''x'\''
2055 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2056
2057 int test (int i, double x);
2058 struct s1 {int (*f) (int a);};
2059 struct s2 {int (*f) (double a);};
2060 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2061 int, int);'
2062
2063 # Test code for whether the C compiler supports C89 (body of main).
2064 ac_c_conftest_c89_main='
2065 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2066 '
2067
2068 # Test code for whether the C compiler supports C99 (global declarations)
2069 ac_c_conftest_c99_globals='
2070 // Does the compiler advertise C99 conformance?
2071 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2072 # error "Compiler does not advertise C99 conformance"
2073 #endif
2074
2075 #include <stdbool.h>
2076 extern int puts (const char *);
2077 extern int printf (const char *, ...);
2078 extern int dprintf (int, const char *, ...);
2079 extern void *malloc (size_t);
2080
2081 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2082 // dprintf is used instead of fprintf to avoid needing to declare
2083 // FILE and stderr.
2084 #define debug(...) dprintf (2, __VA_ARGS__)
2085 #define showlist(...) puts (#__VA_ARGS__)
2086 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2087 static void
2088 test_varargs_macros (void)
2089 {
2090 int x = 1234;
2091 int y = 5678;
2092 debug ("Flag");
2093 debug ("X = %d\n", x);
2094 showlist (The first, second, and third items.);
2095 report (x>y, "x is %d but y is %d", x, y);
2096 }
2097
2098 // Check long long types.
2099 #define BIG64 18446744073709551615ull
2100 #define BIG32 4294967295ul
2101 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2102 #if !BIG_OK
2103 #error "your preprocessor is broken"
2104 #endif
2105 #if BIG_OK
2106 #else
2107 #error "your preprocessor is broken"
2108 #endif
2109 static long long int bignum = -9223372036854775807LL;
2110 static unsigned long long int ubignum = BIG64;
2111
2112 struct incomplete_array
2113 {
2114 int datasize;
2115 double data[];
2116 };
2117
2118 struct named_init {
2119 int number;
2120 const wchar_t *name;
2121 double average;
2122 };
2123
2124 typedef const char *ccp;
2125
2126 static inline int
2127 test_restrict (ccp restrict text)
2128 {
2129 // See if C++-style comments work.
2130 // Iterate through items via the restricted pointer.
2131 // Also check for declarations in for loops.
2132 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2133 continue;
2134 return 0;
2135 }
2136
2137 // Check varargs and va_copy.
2138 static bool
2139 test_varargs (const char *format, ...)
2140 {
2141 va_list args;
2142 va_start (args, format);
2143 va_list args_copy;
2144 va_copy (args_copy, args);
2145
2146 const char *str = "";
2147 int number = 0;
2148 float fnumber = 0;
2149
2150 while (*format)
2151 {
2152 switch (*format++)
2153 {
2154 case '\''s'\'': // string
2155 str = va_arg (args_copy, const char *);
2156 break;
2157 case '\''d'\'': // int
2158 number = va_arg (args_copy, int);
2159 break;
2160 case '\''f'\'': // float
2161 fnumber = va_arg (args_copy, double);
2162 break;
2163 default:
2164 break;
2165 }
2166 }
2167 va_end (args_copy);
2168 va_end (args);
2169
2170 return *str && number && fnumber;
2171 }
2172 '
2173
2174 # Test code for whether the C compiler supports C99 (body of main).
2175 ac_c_conftest_c99_main='
2176 // Check bool.
2177 _Bool success = false;
2178 success |= (argc != 0);
2179
2180 // Check restrict.
2181 if (test_restrict ("String literal") == 0)
2182 success = true;
2183 char *restrict newvar = "Another string";
2184
2185 // Check varargs.
2186 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2187 test_varargs_macros ();
2188
2189 // Check flexible array members.
2190 struct incomplete_array *ia =
2191 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2192 ia->datasize = 10;
2193 for (int i = 0; i < ia->datasize; ++i)
2194 ia->data[i] = i * 1.234;
2195
2196 // Check named initializers.
2197 struct named_init ni = {
2198 .number = 34,
2199 .name = L"Test wide string",
2200 .average = 543.34343,
2201 };
2202
2203 ni.number = 58;
2204
2205 int dynamic_array[ni.number];
2206 dynamic_array[0] = argv[0][0];
2207 dynamic_array[ni.number - 1] = 543;
2208
2209 // work around unused variable warnings
2210 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2211 || dynamic_array[ni.number - 1] != 543);
2212 '
2213
2214 # Test code for whether the C compiler supports C11 (global declarations)
2215 ac_c_conftest_c11_globals='
2216 // Does the compiler advertise C11 conformance?
2217 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2218 # error "Compiler does not advertise C11 conformance"
2219 #endif
2220
2221 // Check _Alignas.
2222 char _Alignas (double) aligned_as_double;
2223 char _Alignas (0) no_special_alignment;
2224 extern char aligned_as_int;
2225 char _Alignas (0) _Alignas (int) aligned_as_int;
2226
2227 // Check _Alignof.
2228 enum
2229 {
2230 int_alignment = _Alignof (int),
2231 int_array_alignment = _Alignof (int[100]),
2232 char_alignment = _Alignof (char)
2233 };
2234 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2235
2236 // Check _Noreturn.
2237 int _Noreturn does_not_return (void) { for (;;) continue; }
2238
2239 // Check _Static_assert.
2240 struct test_static_assert
2241 {
2242 int x;
2243 _Static_assert (sizeof (int) <= sizeof (long int),
2244 "_Static_assert does not work in struct");
2245 long int y;
2246 };
2247
2248 // Check UTF-8 literals.
2249 #define u8 syntax error!
2250 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2251
2252 // Check duplicate typedefs.
2253 typedef long *long_ptr;
2254 typedef long int *long_ptr;
2255 typedef long_ptr long_ptr;
2256
2257 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2258 struct anonymous
2259 {
2260 union {
2261 struct { int i; int j; };
2262 struct { int k; long int l; } w;
2263 };
2264 int m;
2265 } v1;
2266 '
2267
2268 # Test code for whether the C compiler supports C11 (body of main).
2269 ac_c_conftest_c11_main='
2270 _Static_assert ((offsetof (struct anonymous, i)
2271 == offsetof (struct anonymous, w.k)),
2272 "Anonymous union alignment botch");
2273 v1.i = 2;
2274 v1.w.k = 5;
2275 ok |= v1.i != 5;
2276 '
2277
2278 # Test code for whether the C compiler supports C11 (complete).
2279 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2280 ${ac_c_conftest_c99_globals}
2281 ${ac_c_conftest_c11_globals}
2282
2283 int
2284 main (int argc, char **argv)
2285 {
2286 int ok = 0;
2287 ${ac_c_conftest_c89_main}
2288 ${ac_c_conftest_c99_main}
2289 ${ac_c_conftest_c11_main}
2290 return ok;
2291 }
2292 "
2293
2294 # Test code for whether the C compiler supports C99 (complete).
2295 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2296 ${ac_c_conftest_c99_globals}
2297
2298 int
2299 main (int argc, char **argv)
2300 {
2301 int ok = 0;
2302 ${ac_c_conftest_c89_main}
2303 ${ac_c_conftest_c99_main}
2304 return ok;
2305 }
2306 "
2307
2308 # Test code for whether the C compiler supports C89 (complete).
2309 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2310
2311 int
2312 main (int argc, char **argv)
2313 {
2314 int ok = 0;
2315 ${ac_c_conftest_c89_main}
2316 return ok;
2317 }
2318 "
2319
2320 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2321 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2322 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2323 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2324 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2325 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2326 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2327 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2328 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2329
2330 # Auxiliary files required by this configure script.
2331 ac_aux_files="config.guess config.sub compile missing install-sh"
2332
2333 # Locations in which to look for auxiliary files.
2334 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2335
2336 # Search for a directory containing all of the required auxiliary files,
2337 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2338 # If we don't find one directory that contains all the files we need,
2339 # we report the set of missing files from the *first* directory in
2340 # $ac_aux_dir_candidates and give up.
2341 ac_missing_aux_files=""
2342 ac_first_candidate=:
2343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 as_found=false
2346 for as_dir in $ac_aux_dir_candidates
2347 do
2348 IFS=$as_save_IFS
2349 case $as_dir in #(((
2350 '') as_dir=./ ;;
2351 */) ;;
2352 *) as_dir=$as_dir/ ;;
2353 esac
2354 as_found=:
2355
2356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2357 ac_aux_dir_found=yes
2358 ac_install_sh=
2359 for ac_aux in $ac_aux_files
2360 do
2361 # As a special case, if "install-sh" is required, that requirement
2362 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2363 # and $ac_install_sh is set appropriately for whichever one is found.
2364 if test x"$ac_aux" = x"install-sh"
2365 then
2366 if test -f "${as_dir}install-sh"; then
2367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2368 ac_install_sh="${as_dir}install-sh -c"
2369 elif test -f "${as_dir}install.sh"; then
2370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2371 ac_install_sh="${as_dir}install.sh -c"
2372 elif test -f "${as_dir}shtool"; then
2373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2374 ac_install_sh="${as_dir}shtool install -c"
2375 else
2376 ac_aux_dir_found=no
2377 if $ac_first_candidate; then
2378 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2379 else
2380 break
2381 fi
2382 fi
2383 else
2384 if test -f "${as_dir}${ac_aux}"; then
2385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2386 else
2387 ac_aux_dir_found=no
2388 if $ac_first_candidate; then
2389 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2390 else
2391 break
2392 fi
2393 fi
2394 fi
2395 done
2396 if test "$ac_aux_dir_found" = yes; then
2397 ac_aux_dir="$as_dir"
2398 break
2399 fi
2400 ac_first_candidate=false
2401
2402 as_found=false
2403 done
2404 IFS=$as_save_IFS
2405 if $as_found
2406 then :
2407
2408 else $as_nop
2409 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2410 fi
2411
2412
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 if test -f "${ac_aux_dir}config.guess"; then
2418 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2419 fi
2420 if test -f "${ac_aux_dir}config.sub"; then
2421 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2422 fi
2423 if test -f "$ac_aux_dir/configure"; then
2424 ac_configure="$SHELL ${ac_aux_dir}configure"
2425 fi
2426
2427 # Check that the precious variables saved in the cache have kept the same
2428 # value.
2429 ac_cache_corrupted=false
2430 for ac_var in $ac_precious_vars; do
2431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432 eval ac_new_set=\$ac_env_${ac_var}_set
2433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434 eval ac_new_val=\$ac_env_${ac_var}_value
2435 case $ac_old_set,$ac_new_set in
2436 set,)
2437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2440 ,set)
2441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443 ac_cache_corrupted=: ;;
2444 ,);;
2445 *)
2446 if test "x$ac_old_val" != "x$ac_new_val"; then
2447 # differences in whitespace do not lead to failure.
2448 ac_old_val_w=`echo x $ac_old_val`
2449 ac_new_val_w=`echo x $ac_new_val`
2450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453 ac_cache_corrupted=:
2454 else
2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457 eval $ac_var=\$ac_old_val
2458 fi
2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2460 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2462 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2463 fi;;
2464 esac
2465 # Pass precious variables to config.status.
2466 if test "$ac_new_set" = set; then
2467 case $ac_new_val in
2468 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469 *) ac_arg=$ac_var=$ac_new_val ;;
2470 esac
2471 case " $ac_configure_args " in
2472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2474 esac
2475 fi
2476 done
2477 if $ac_cache_corrupted; then
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2482 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2483 and start over" "$LINENO" 5
2484 fi
2485 ## -------------------- ##
2486 ## Main body of script. ##
2487 ## -------------------- ##
2488
2489 ac_ext=c
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494
2495
2496
2497 ac_config_headers="$ac_config_headers config.h"
2498
2499
2500 # Initialize Automake
2501 am__api_version='1.16'
2502
2503
2504
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 printf %s "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if test ${ac_cv_path_install+y}
2523 then :
2524 printf %s "(cached) " >&6
2525 else $as_nop
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 case $as_dir in #(((
2531 '') as_dir=./ ;;
2532 */) ;;
2533 *) as_dir=$as_dir/ ;;
2534 esac
2535 # Account for fact that we put trailing slashes in our PATH walk.
2536 case $as_dir in #((
2537 ./ | /[cC]/* | \
2538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2539 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2540 /usr/ucb/* ) ;;
2541 *)
2542 # OSF1 and SCO ODT 3.0 have their own names for install.
2543 # Don't use installbsd from OSF since it installs stuff as root
2544 # by default.
2545 for ac_prog in ginstall scoinst install; do
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2548 if test $ac_prog = install &&
2549 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2550 # AIX install. It has an incompatible calling convention.
2551 :
2552 elif test $ac_prog = install &&
2553 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554 # program-specific install script used by HP pwplus--don't use.
2555 :
2556 else
2557 rm -rf conftest.one conftest.two conftest.dir
2558 echo one > conftest.one
2559 echo two > conftest.two
2560 mkdir conftest.dir
2561 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2562 test -s conftest.one && test -s conftest.two &&
2563 test -s conftest.dir/conftest.one &&
2564 test -s conftest.dir/conftest.two
2565 then
2566 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2567 break 3
2568 fi
2569 fi
2570 fi
2571 done
2572 done
2573 ;;
2574 esac
2575
2576 done
2577 IFS=$as_save_IFS
2578
2579 rm -rf conftest.one conftest.two conftest.dir
2580
2581 fi
2582 if test ${ac_cv_path_install+y}; then
2583 INSTALL=$ac_cv_path_install
2584 else
2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for INSTALL within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
2589 INSTALL=$ac_install_sh
2590 fi
2591 fi
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2593 printf "%s\n" "$INSTALL" >&6; }
2594
2595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2596 # It thinks the first close brace ends the variable substitution.
2597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2598
2599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2600
2601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2602
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2604 printf %s "checking whether build environment is sane... " >&6; }
2605 # Reject unsafe characters in $srcdir or the absolute working directory
2606 # name. Accept space and tab only in the latter.
2607 am_lf='
2608 '
2609 case `pwd` in
2610 *[\\\"\#\$\&\'\`$am_lf]*)
2611 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2612 esac
2613 case $srcdir in
2614 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2615 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2616 esac
2617
2618 # Do 'set' in a subshell so we don't clobber the current shell's
2619 # arguments. Must try -L first in case configure is actually a
2620 # symlink; some systems play weird games with the mod time of symlinks
2621 # (eg FreeBSD returns the mod time of the symlink's containing
2622 # directory).
2623 if (
2624 am_has_slept=no
2625 for am_try in 1 2; do
2626 echo "timestamp, slept: $am_has_slept" > conftest.file
2627 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2628 if test "$*" = "X"; then
2629 # -L didn't work.
2630 set X `ls -t "$srcdir/configure" conftest.file`
2631 fi
2632 if test "$*" != "X $srcdir/configure conftest.file" \
2633 && test "$*" != "X conftest.file $srcdir/configure"; then
2634
2635 # If neither matched, then we have a broken ls. This can happen
2636 # if, for instance, CONFIG_SHELL is bash and it inherits a
2637 # broken ls alias from the environment. This has actually
2638 # happened. Such a system could not be considered "sane".
2639 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2640 alias in your environment" "$LINENO" 5
2641 fi
2642 if test "$2" = conftest.file || test $am_try -eq 2; then
2643 break
2644 fi
2645 # Just in case.
2646 sleep 1
2647 am_has_slept=yes
2648 done
2649 test "$2" = conftest.file
2650 )
2651 then
2652 # Ok.
2653 :
2654 else
2655 as_fn_error $? "newly created file is older than distributed files!
2656 Check your system clock" "$LINENO" 5
2657 fi
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659 printf "%s\n" "yes" >&6; }
2660 # If we didn't sleep, we still need to ensure time stamps of config.status and
2661 # generated files are strictly newer.
2662 am_sleep_pid=
2663 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2664 ( sleep 1 ) &
2665 am_sleep_pid=$!
2666 fi
2667
2668 rm -f conftest.file
2669
2670 test "$program_prefix" != NONE &&
2671 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2672 # Use a double $ so make ignores it.
2673 test "$program_suffix" != NONE &&
2674 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2675 # Double any \ or $.
2676 # By default was `s,x,x', remove it if useless.
2677 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2678 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2679
2680
2681 # Expand $ac_aux_dir to an absolute path.
2682 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2683
2684
2685 if test x"${MISSING+set}" != xset; then
2686 MISSING="\${SHELL} '$am_aux_dir/missing'"
2687 fi
2688 # Use eval to expand $SHELL
2689 if eval "$MISSING --is-lightweight"; then
2690 am_missing_run="$MISSING "
2691 else
2692 am_missing_run=
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2694 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2695 fi
2696
2697 if test x"${install_sh+set}" != xset; then
2698 case $am_aux_dir in
2699 *\ * | *\ *)
2700 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2701 *)
2702 install_sh="\${SHELL} $am_aux_dir/install-sh"
2703 esac
2704 fi
2705
2706 # Installed binaries are usually stripped using 'strip' when the user
2707 # run "make install-strip". However 'strip' might not be the right
2708 # tool to use in cross-compilation environments, therefore Automake
2709 # will honor the 'STRIP' environment variable to overrule this program.
2710 if test "$cross_compiling" != no; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}strip; ac_word=$2
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 printf %s "checking for $ac_word... " >&6; }
2716 if test ${ac_cv_prog_STRIP+y}
2717 then :
2718 printf %s "(cached) " >&6
2719 else $as_nop
2720 if test -n "$STRIP"; then
2721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 case $as_dir in #(((
2728 '') as_dir=./ ;;
2729 */) ;;
2730 *) as_dir=$as_dir/ ;;
2731 esac
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 STRIP=$ac_cv_prog_STRIP
2745 if test -n "$STRIP"; then
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2747 printf "%s\n" "$STRIP" >&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 if test -z "$ac_cv_prog_STRIP"; then
2756 ac_ct_STRIP=$STRIP
2757 # Extract the first word of "strip", so it can be a program name with args.
2758 set dummy strip; 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_ac_ct_STRIP+y}
2762 then :
2763 printf %s "(cached) " >&6
2764 else $as_nop
2765 if test -n "$ac_ct_STRIP"; then
2766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 case $as_dir in #(((
2773 '') as_dir=./ ;;
2774 */) ;;
2775 *) as_dir=$as_dir/ ;;
2776 esac
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_STRIP="strip"
2780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2790 if test -n "$ac_ct_STRIP"; then
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2792 printf "%s\n" "$ac_ct_STRIP" >&6; }
2793 else
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 printf "%s\n" "no" >&6; }
2796 fi
2797
2798 if test "x$ac_ct_STRIP" = x; then
2799 STRIP=":"
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2806 esac
2807 STRIP=$ac_ct_STRIP
2808 fi
2809 else
2810 STRIP="$ac_cv_prog_STRIP"
2811 fi
2812
2813 fi
2814 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2815
2816
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2818 printf %s "checking for a race-free mkdir -p... " >&6; }
2819 if test -z "$MKDIR_P"; then
2820 if test ${ac_cv_path_mkdir+y}
2821 then :
2822 printf %s "(cached) " >&6
2823 else $as_nop
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2826 do
2827 IFS=$as_save_IFS
2828 case $as_dir in #(((
2829 '') as_dir=./ ;;
2830 */) ;;
2831 *) as_dir=$as_dir/ ;;
2832 esac
2833 for ac_prog in mkdir gmkdir; do
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2836 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2837 'mkdir ('*'coreutils) '* | \
2838 'BusyBox '* | \
2839 'mkdir (fileutils) '4.1*)
2840 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2841 break 3;;
2842 esac
2843 done
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849
2850 test -d ./--version && rmdir ./--version
2851 if test ${ac_cv_path_mkdir+y}; then
2852 MKDIR_P="$ac_cv_path_mkdir -p"
2853 else
2854 # As a last resort, use the slow shell script. Don't cache a
2855 # value for MKDIR_P within a source directory, because that will
2856 # break other packages using the cache if that directory is
2857 # removed, or if the value is a relative name.
2858 MKDIR_P="$ac_install_sh -d"
2859 fi
2860 fi
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2862 printf "%s\n" "$MKDIR_P" >&6; }
2863
2864 for ac_prog in gawk mawk nawk awk
2865 do
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 printf %s "checking for $ac_word... " >&6; }
2870 if test ${ac_cv_prog_AWK+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else $as_nop
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_AWK="$ac_prog"
2889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 AWK=$ac_cv_prog_AWK
2899 if test -n "$AWK"; then
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2901 printf "%s\n" "$AWK" >&6; }
2902 else
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 printf "%s\n" "no" >&6; }
2905 fi
2906
2907
2908 test -n "$AWK" && break
2909 done
2910
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2912 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2913 set x ${MAKE-make}
2914 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2915 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2916 then :
2917 printf %s "(cached) " >&6
2918 else $as_nop
2919 cat >conftest.make <<\_ACEOF
2920 SHELL = /bin/sh
2921 all:
2922 @echo '@@@%%%=$(MAKE)=@@@%%%'
2923 _ACEOF
2924 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2925 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2926 *@@@%%%=?*=@@@%%%*)
2927 eval ac_cv_prog_make_${ac_make}_set=yes;;
2928 *)
2929 eval ac_cv_prog_make_${ac_make}_set=no;;
2930 esac
2931 rm -f conftest.make
2932 fi
2933 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 printf "%s\n" "yes" >&6; }
2936 SET_MAKE=
2937 else
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 printf "%s\n" "no" >&6; }
2940 SET_MAKE="MAKE=${MAKE-make}"
2941 fi
2942
2943 rm -rf .tst 2>/dev/null
2944 mkdir .tst 2>/dev/null
2945 if test -d .tst; then
2946 am__leading_dot=.
2947 else
2948 am__leading_dot=_
2949 fi
2950 rmdir .tst 2>/dev/null
2951
2952 # Check whether --enable-silent-rules was given.
2953 if test ${enable_silent_rules+y}
2954 then :
2955 enableval=$enable_silent_rules;
2956 fi
2957
2958 case $enable_silent_rules in # (((
2959 yes) AM_DEFAULT_VERBOSITY=0;;
2960 no) AM_DEFAULT_VERBOSITY=1;;
2961 *) AM_DEFAULT_VERBOSITY=1;;
2962 esac
2963 am_make=${MAKE-make}
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2965 printf %s "checking whether $am_make supports nested variables... " >&6; }
2966 if test ${am_cv_make_support_nested_variables+y}
2967 then :
2968 printf %s "(cached) " >&6
2969 else $as_nop
2970 if printf "%s\n" 'TRUE=$(BAR$(V))
2971 BAR0=false
2972 BAR1=true
2973 V=1
2974 am__doit:
2975 @$(TRUE)
2976 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2977 am_cv_make_support_nested_variables=yes
2978 else
2979 am_cv_make_support_nested_variables=no
2980 fi
2981 fi
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2983 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2984 if test $am_cv_make_support_nested_variables = yes; then
2985 AM_V='$(V)'
2986 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2987 else
2988 AM_V=$AM_DEFAULT_VERBOSITY
2989 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2990 fi
2991 AM_BACKSLASH='\'
2992
2993 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2994 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2995 # is not polluted with repeated "-I."
2996 am__isrc=' -I$(srcdir)'
2997 # test to see if srcdir already configured
2998 if test -f $srcdir/config.status; then
2999 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3000 fi
3001 fi
3002
3003 # test whether we have cygpath
3004 if test -z "$CYGPATH_W"; then
3005 if (cygpath --version) >/dev/null 2>/dev/null; then
3006 CYGPATH_W='cygpath -w'
3007 else
3008 CYGPATH_W=echo
3009 fi
3010 fi
3011
3012
3013 # Define the identity of the package.
3014 PACKAGE='oclock'
3015 VERSION='1.0.5'
3016
3017
3018 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3019
3020
3021 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3022
3023 # Some tools Automake needs.
3024
3025 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038
3039 # For better backward compatibility. To be removed once Automake 1.9.x
3040 # dies out for good. For more background, see:
3041 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3042 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3043 mkdir_p='$(MKDIR_P)'
3044
3045 # We need awk for the "check" target (and possibly the TAP driver). The
3046 # system "awk" is bad on some platforms.
3047 # Always define AMTAR for backward compatibility. Yes, it's still used
3048 # in the wild :-( We should find a proper way to deprecate it ...
3049 AMTAR='$${TAR-tar}'
3050
3051
3052 # We'll loop over all known methods to create a tar archive until one works.
3053 _am_tools='gnutar pax cpio none'
3054
3055 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3056
3057
3058
3059
3060
3061 # Variables for tags utilities; see am/tags.am
3062 if test -z "$CTAGS"; then
3063 CTAGS=ctags
3064 fi
3065
3066 if test -z "$ETAGS"; then
3067 ETAGS=etags
3068 fi
3069
3070 if test -z "$CSCOPE"; then
3071 CSCOPE=cscope
3072 fi
3073
3074
3075
3076 # POSIX will say in a future version that running "rm -f" with no argument
3077 # is OK; and we want to be able to make that assumption in our Makefile
3078 # recipes. So use an aggressive probe to check that the usage we want is
3079 # actually supported "in the wild" to an acceptable degree.
3080 # See automake bug#10828.
3081 # To make any issue more visible, cause the running configure to be aborted
3082 # by default if the 'rm' program in use doesn't match our expectations; the
3083 # user can still override this though.
3084 if rm -f && rm -fr && rm -rf; then : OK; else
3085 cat >&2 <<'END'
3086 Oops!
3087
3088 Your 'rm' program seems unable to run without file operands specified
3089 on the command line, even when the '-f' option is present. This is contrary
3090 to the behaviour of most rm programs out there, and not conforming with
3091 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3092
3093 Please tell bug-automake@gnu.org about your system, including the value
3094 of your $PATH and any error possibly output before this message. This
3095 can help us improve future automake versions.
3096
3097 END
3098 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3099 echo 'Configuration will proceed anyway, since you have set the' >&2
3100 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3101 echo >&2
3102 else
3103 cat >&2 <<'END'
3104 Aborting the configuration process, to ensure you take notice of the issue.
3105
3106 You can download and install GNU coreutils to get an 'rm' implementation
3107 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3108
3109 If you want to complete the configuration process using your problematic
3110 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3111 to "yes", and re-run configure.
3112
3113 END
3114 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3115 fi
3116 fi
3117
3118
3119 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140 DEPDIR="${am__leading_dot}deps"
3141
3142 ac_config_commands="$ac_config_commands depfiles"
3143
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3145 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3146 cat > confinc.mk << 'END'
3147 am__doit:
3148 @echo this is the am__doit target >confinc.out
3149 .PHONY: am__doit
3150 END
3151 am__include="#"
3152 am__quote=
3153 # BSD make does it like this.
3154 echo '.include "confinc.mk" # ignored' > confmf.BSD
3155 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3156 echo 'include confinc.mk # ignored' > confmf.GNU
3157 _am_result=no
3158 for s in GNU BSD; do
3159 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3160 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
3164 case $?:`cat confinc.out 2>/dev/null` in #(
3165 '0:this is the am__doit target') :
3166 case $s in #(
3167 BSD) :
3168 am__include='.include' am__quote='"' ;; #(
3169 *) :
3170 am__include='include' am__quote='' ;;
3171 esac ;; #(
3172 *) :
3173 ;;
3174 esac
3175 if test "$am__include" != "#"; then
3176 _am_result="yes ($s style)"
3177 break
3178 fi
3179 done
3180 rm -f confinc.* confmf.*
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3182 printf "%s\n" "${_am_result}" >&6; }
3183
3184 # Check whether --enable-dependency-tracking was given.
3185 if test ${enable_dependency_tracking+y}
3186 then :
3187 enableval=$enable_dependency_tracking;
3188 fi
3189
3190 if test "x$enable_dependency_tracking" != xno; then
3191 am_depcomp="$ac_aux_dir/depcomp"
3192 AMDEPBACKSLASH='\'
3193 am__nodep='_no'
3194 fi
3195 if test "x$enable_dependency_tracking" != xno; then
3196 AMDEP_TRUE=
3197 AMDEP_FALSE='#'
3198 else
3199 AMDEP_TRUE='#'
3200 AMDEP_FALSE=
3201 fi
3202
3203
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 printf %s "checking for $ac_word... " >&6; }
3214 if test ${ac_cv_prog_CC+y}
3215 then :
3216 printf %s "(cached) " >&6
3217 else $as_nop
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 case $as_dir in #(((
3226 '') as_dir=./ ;;
3227 */) ;;
3228 *) as_dir=$as_dir/ ;;
3229 esac
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 printf "%s\n" "$CC" >&6; }
3246 else
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 printf "%s\n" "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 if test -z "$ac_cv_prog_CC"; then
3254 ac_ct_CC=$CC
3255 # Extract the first word of "gcc", so it can be a program name with args.
3256 set dummy gcc; ac_word=$2
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 printf %s "checking for $ac_word... " >&6; }
3259 if test ${ac_cv_prog_ac_ct_CC+y}
3260 then :
3261 printf %s "(cached) " >&6
3262 else $as_nop
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 case $as_dir in #(((
3271 '') as_dir=./ ;;
3272 */) ;;
3273 *) as_dir=$as_dir/ ;;
3274 esac
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_ac_ct_CC="gcc"
3278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281 done
3282 done
3283 IFS=$as_save_IFS
3284
3285 fi
3286 fi
3287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3288 if test -n "$ac_ct_CC"; then
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3290 printf "%s\n" "$ac_ct_CC" >&6; }
3291 else
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 printf "%s\n" "no" >&6; }
3294 fi
3295
3296 if test "x$ac_ct_CC" = x; then
3297 CC=""
3298 else
3299 case $cross_compiling:$ac_tool_warned in
3300 yes:)
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303 ac_tool_warned=yes ;;
3304 esac
3305 CC=$ac_ct_CC
3306 fi
3307 else
3308 CC="$ac_cv_prog_CC"
3309 fi
3310
3311 if test -z "$CC"; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}cc; ac_word=$2
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 printf %s "checking for $ac_word... " >&6; }
3317 if test ${ac_cv_prog_CC+y}
3318 then :
3319 printf %s "(cached) " >&6
3320 else $as_nop
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 case $as_dir in #(((
3329 '') as_dir=./ ;;
3330 */) ;;
3331 *) as_dir=$as_dir/ ;;
3332 esac
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_CC="${ac_tool_prefix}cc"
3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 printf "%s\n" "$CC" >&6; }
3349 else
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 printf "%s\n" "no" >&6; }
3352 fi
3353
3354
3355 fi
3356 fi
3357 if test -z "$CC"; then
3358 # Extract the first word of "cc", so it can be a program name with args.
3359 set dummy cc; ac_word=$2
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 printf %s "checking for $ac_word... " >&6; }
3362 if test ${ac_cv_prog_CC+y}
3363 then :
3364 printf %s "(cached) " >&6
3365 else $as_nop
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 ac_prog_rejected=no
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 case $as_dir in #(((
3375 '') as_dir=./ ;;
3376 */) ;;
3377 *) as_dir=$as_dir/ ;;
3378 esac
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3381 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected=yes
3383 continue
3384 fi
3385 ac_cv_prog_CC="cc"
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 if test $ac_prog_rejected = yes; then
3394 # We found a bogon in the path, so make sure we never use it.
3395 set dummy $ac_cv_prog_CC
3396 shift
3397 if test $# != 0; then
3398 # We chose a different compiler from the bogus one.
3399 # However, it has the same basename, so the bogon will be chosen
3400 # first if we set CC to just the basename; use the full file name.
3401 shift
3402 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3403 fi
3404 fi
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 printf "%s\n" "$CC" >&6; }
3411 else
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 printf "%s\n" "no" >&6; }
3414 fi
3415
3416
3417 fi
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 for ac_prog in cl.exe
3421 do
3422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 printf %s "checking for $ac_word... " >&6; }
3426 if test ${ac_cv_prog_CC+y}
3427 then :
3428 printf %s "(cached) " >&6
3429 else $as_nop
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436 IFS=$as_save_IFS
3437 case $as_dir in #(((
3438 '') as_dir=./ ;;
3439 */) ;;
3440 *) as_dir=$as_dir/ ;;
3441 esac
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 printf "%s\n" "$CC" >&6; }
3458 else
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 printf "%s\n" "no" >&6; }
3461 fi
3462
3463
3464 test -n "$CC" && break
3465 done
3466 fi
3467 if test -z "$CC"; then
3468 ac_ct_CC=$CC
3469 for ac_prog in cl.exe
3470 do
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 printf %s "checking for $ac_word... " >&6; }
3475 if test ${ac_cv_prog_ac_ct_CC+y}
3476 then :
3477 printf %s "(cached) " >&6
3478 else $as_nop
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485 IFS=$as_save_IFS
3486 case $as_dir in #(((
3487 '') as_dir=./ ;;
3488 */) ;;
3489 *) as_dir=$as_dir/ ;;
3490 esac
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_ac_ct_CC="$ac_prog"
3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499 IFS=$as_save_IFS
3500
3501 fi
3502 fi
3503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504 if test -n "$ac_ct_CC"; then
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506 printf "%s\n" "$ac_ct_CC" >&6; }
3507 else
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 printf "%s\n" "no" >&6; }
3510 fi
3511
3512
3513 test -n "$ac_ct_CC" && break
3514 done
3515
3516 if test "x$ac_ct_CC" = x; then
3517 CC=""
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525 CC=$ac_ct_CC
3526 fi
3527 fi
3528
3529 fi
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}clang; ac_word=$2
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 printf %s "checking for $ac_word... " >&6; }
3536 if test ${ac_cv_prog_CC+y}
3537 then :
3538 printf %s "(cached) " >&6
3539 else $as_nop
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 case $as_dir in #(((
3548 '') as_dir=./ ;;
3549 */) ;;
3550 *) as_dir=$as_dir/ ;;
3551 esac
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC="${ac_tool_prefix}clang"
3555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 printf "%s\n" "$CC" >&6; }
3568 else
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3571 fi
3572
3573
3574 fi
3575 if test -z "$ac_cv_prog_CC"; then
3576 ac_ct_CC=$CC
3577 # Extract the first word of "clang", so it can be a program name with args.
3578 set dummy clang; ac_word=$2
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 printf %s "checking for $ac_word... " >&6; }
3581 if test ${ac_cv_prog_ac_ct_CC+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else $as_nop
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591 IFS=$as_save_IFS
3592 case $as_dir in #(((
3593 '') as_dir=./ ;;
3594 */) ;;
3595 *) as_dir=$as_dir/ ;;
3596 esac
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_ac_ct_CC="clang"
3600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3601 break 2
3602 fi
3603 done
3604 done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 printf "%s\n" "$ac_ct_CC" >&6; }
3613 else
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 printf "%s\n" "no" >&6; }
3616 fi
3617
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3628 fi
3629 else
3630 CC="$ac_cv_prog_CC"
3631 fi
3632
3633 fi
3634
3635
3636 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details" "$LINENO" 5; }
3640
3641 # Provide some information about the compiler.
3642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643 set X $ac_compile
3644 ac_compiler=$2
3645 for ac_option in --version -v -V -qversion -version; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 printf "%s\n" "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 ac_status=$?
3655 if test -s conftest.err; then
3656 sed '10a\
3657 ... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3660 fi
3661 rm -f conftest.er1 conftest.err
3662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 done
3665
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main (void)
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 ac_clean_files_save=$ac_clean_files
3678 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679 # Try to create an executable without -o first, disregard a.out.
3680 # It will help us diagnose broken compilers, and finding out an intuition
3681 # of exeext.
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683 printf %s "checking whether the C compiler works... " >&6; }
3684 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685
3686 # The possible output files:
3687 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3688
3689 ac_rmfiles=
3690 for ac_file in $ac_files
3691 do
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3695 esac
3696 done
3697 rm -f $ac_rmfiles
3698
3699 if { { ac_try="$ac_link_default"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 printf "%s\n" "$ac_try_echo"; } >&5
3706 (eval "$ac_link_default") 2>&5
3707 ac_status=$?
3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }
3710 then :
3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3714 # so that the user can short-circuit this test for compilers unknown to
3715 # Autoconf.
3716 for ac_file in $ac_files ''
3717 do
3718 test -f "$ac_file" || continue
3719 case $ac_file in
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3721 ;;
3722 [ab].out )
3723 # We found the default executable, but exeext='' is most
3724 # certainly right.
3725 break;;
3726 *.* )
3727 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3728 then :; else
3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730 fi
3731 # We set ac_cv_exeext here because the later test for it is not
3732 # safe: cross compilers may not add the suffix if given an `-o'
3733 # argument, so we may need to know it at that point already.
3734 # Even if this section looks crufty: it has the advantage of
3735 # actually working.
3736 break;;
3737 * )
3738 break;;
3739 esac
3740 done
3741 test "$ac_cv_exeext" = no && ac_cv_exeext=
3742
3743 else $as_nop
3744 ac_file=''
3745 fi
3746 if test -z "$ac_file"
3747 then :
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 printf "%s\n" "no" >&6; }
3750 printf "%s\n" "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error 77 "C compiler cannot create executables
3756 See \`config.log' for more details" "$LINENO" 5; }
3757 else $as_nop
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 printf "%s\n" "yes" >&6; }
3760 fi
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762 printf %s "checking for C compiler default output file name... " >&6; }
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 printf "%s\n" "$ac_file" >&6; }
3765 ac_exeext=$ac_cv_exeext
3766
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768 ac_clean_files=$ac_clean_files_save
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770 printf %s "checking for suffix of executables... " >&6; }
3771 if { { ac_try="$ac_link"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 printf "%s\n" "$ac_try_echo"; } >&5
3778 (eval "$ac_link") 2>&5
3779 ac_status=$?
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3782 then :
3783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3784 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3785 # work properly (i.e., refer to `conftest.exe'), while it won't with
3786 # `rm'.
3787 for ac_file in conftest.exe conftest conftest.*; do
3788 test -f "$ac_file" || continue
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3792 break;;
3793 * ) break;;
3794 esac
3795 done
3796 else $as_nop
3797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3800 See \`config.log' for more details" "$LINENO" 5; }
3801 fi
3802 rm -f conftest conftest$ac_cv_exeext
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3804 printf "%s\n" "$ac_cv_exeext" >&6; }
3805
3806 rm -f conftest.$ac_ext
3807 EXEEXT=$ac_cv_exeext
3808 ac_exeext=$EXEEXT
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <stdio.h>
3812 int
3813 main (void)
3814 {
3815 FILE *f = fopen ("conftest.out", "w");
3816 return ferror (f) || fclose (f) != 0;
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 ac_clean_files="$ac_clean_files conftest.out"
3823 # Check that the compiler produces executables we can run. If not, either
3824 # the compiler is broken, or we cross compile.
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3826 printf %s "checking whether we are cross compiling... " >&6; }
3827 if test "$cross_compiling" != yes; then
3828 { { ac_try="$ac_link"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 printf "%s\n" "$ac_try_echo"; } >&5
3835 (eval "$ac_link") 2>&5
3836 ac_status=$?
3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }
3839 if { ac_try='./conftest$ac_cv_exeext'
3840 { { case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 printf "%s\n" "$ac_try_echo"; } >&5
3846 (eval "$ac_try") 2>&5
3847 ac_status=$?
3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; }; then
3850 cross_compiling=no
3851 else
3852 if test "$cross_compiling" = maybe; then
3853 cross_compiling=yes
3854 else
3855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error 77 "cannot run C compiled programs.
3858 If you meant to cross compile, use \`--host'.
3859 See \`config.log' for more details" "$LINENO" 5; }
3860 fi
3861 fi
3862 fi
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3864 printf "%s\n" "$cross_compiling" >&6; }
3865
3866 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3867 ac_clean_files=$ac_clean_files_save
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3869 printf %s "checking for suffix of object files... " >&6; }
3870 if test ${ac_cv_objext+y}
3871 then :
3872 printf %s "(cached) " >&6
3873 else $as_nop
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main (void)
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.o conftest.obj
3886 if { { ac_try="$ac_compile"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_compile") 2>&5
3894 ac_status=$?
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3897 then :
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3903 break;;
3904 esac
3905 done
3906 else $as_nop
3907 printf "%s\n" "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error $? "cannot compute suffix of object files: cannot compile
3913 See \`config.log' for more details" "$LINENO" 5; }
3914 fi
3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3916 fi
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918 printf "%s\n" "$ac_cv_objext" >&6; }
3919 OBJEXT=$ac_cv_objext
3920 ac_objext=$OBJEXT
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3922 printf %s "checking whether the compiler supports GNU C... " >&6; }
3923 if test ${ac_cv_c_compiler_gnu+y}
3924 then :
3925 printf %s "(cached) " >&6
3926 else $as_nop
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 int
3931 main (void)
3932 {
3933 #ifndef __GNUC__
3934 choke me
3935 #endif
3936
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"
3942 then :
3943 ac_compiler_gnu=yes
3944 else $as_nop
3945 ac_compiler_gnu=no
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3949
3950 fi
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3952 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955 if test $ac_compiler_gnu = yes; then
3956 GCC=yes
3957 else
3958 GCC=
3959 fi
3960 ac_test_CFLAGS=${CFLAGS+y}
3961 ac_save_CFLAGS=$CFLAGS
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3963 printf %s "checking whether $CC accepts -g... " >&6; }
3964 if test ${ac_cv_prog_cc_g+y}
3965 then :
3966 printf %s "(cached) " >&6
3967 else $as_nop
3968 ac_save_c_werror_flag=$ac_c_werror_flag
3969 ac_c_werror_flag=yes
3970 ac_cv_prog_cc_g=no
3971 CFLAGS="-g"
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main (void)
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 if ac_fn_c_try_compile "$LINENO"
3984 then :
3985 ac_cv_prog_cc_g=yes
3986 else $as_nop
3987 CFLAGS=""
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990
3991 int
3992 main (void)
3993 {
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"
4000 then :
4001
4002 else $as_nop
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4004 CFLAGS="-g"
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007
4008 int
4009 main (void)
4010 {
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"
4017 then :
4018 ac_cv_prog_cc_g=yes
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4026 fi
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4028 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4029 if test $ac_test_CFLAGS; then
4030 CFLAGS=$ac_save_CFLAGS
4031 elif test $ac_cv_prog_cc_g = yes; then
4032 if test "$GCC" = yes; then
4033 CFLAGS="-g -O2"
4034 else
4035 CFLAGS="-g"
4036 fi
4037 else
4038 if test "$GCC" = yes; then
4039 CFLAGS="-O2"
4040 else
4041 CFLAGS=
4042 fi
4043 fi
4044 ac_prog_cc_stdc=no
4045 if test x$ac_prog_cc_stdc = xno
4046 then :
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4048 printf %s "checking for $CC option to enable C11 features... " >&6; }
4049 if test ${ac_cv_prog_cc_c11+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else $as_nop
4053 ac_cv_prog_cc_c11=no
4054 ac_save_CC=$CC
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 $ac_c_conftest_c11_program
4058 _ACEOF
4059 for ac_arg in '' -std=gnu11
4060 do
4061 CC="$ac_save_CC $ac_arg"
4062 if ac_fn_c_try_compile "$LINENO"
4063 then :
4064 ac_cv_prog_cc_c11=$ac_arg
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.beam
4067 test "x$ac_cv_prog_cc_c11" != "xno" && break
4068 done
4069 rm -f conftest.$ac_ext
4070 CC=$ac_save_CC
4071 fi
4072
4073 if test "x$ac_cv_prog_cc_c11" = xno
4074 then :
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 printf "%s\n" "unsupported" >&6; }
4077 else $as_nop
4078 if test "x$ac_cv_prog_cc_c11" = x
4079 then :
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4081 printf "%s\n" "none needed" >&6; }
4082 else $as_nop
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4084 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4085 CC="$CC $ac_cv_prog_cc_c11"
4086 fi
4087 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4088 ac_prog_cc_stdc=c11
4089 fi
4090 fi
4091 if test x$ac_prog_cc_stdc = xno
4092 then :
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4094 printf %s "checking for $CC option to enable C99 features... " >&6; }
4095 if test ${ac_cv_prog_cc_c99+y}
4096 then :
4097 printf %s "(cached) " >&6
4098 else $as_nop
4099 ac_cv_prog_cc_c99=no
4100 ac_save_CC=$CC
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 $ac_c_conftest_c99_program
4104 _ACEOF
4105 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4106 do
4107 CC="$ac_save_CC $ac_arg"
4108 if ac_fn_c_try_compile "$LINENO"
4109 then :
4110 ac_cv_prog_cc_c99=$ac_arg
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.beam
4113 test "x$ac_cv_prog_cc_c99" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4117 fi
4118
4119 if test "x$ac_cv_prog_cc_c99" = xno
4120 then :
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122 printf "%s\n" "unsupported" >&6; }
4123 else $as_nop
4124 if test "x$ac_cv_prog_cc_c99" = x
4125 then :
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127 printf "%s\n" "none needed" >&6; }
4128 else $as_nop
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4130 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4131 CC="$CC $ac_cv_prog_cc_c99"
4132 fi
4133 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4134 ac_prog_cc_stdc=c99
4135 fi
4136 fi
4137 if test x$ac_prog_cc_stdc = xno
4138 then :
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4140 printf %s "checking for $CC option to enable C89 features... " >&6; }
4141 if test ${ac_cv_prog_cc_c89+y}
4142 then :
4143 printf %s "(cached) " >&6
4144 else $as_nop
4145 ac_cv_prog_cc_c89=no
4146 ac_save_CC=$CC
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 $ac_c_conftest_c89_program
4150 _ACEOF
4151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4152 do
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"
4155 then :
4156 ac_cv_prog_cc_c89=$ac_arg
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.beam
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC
4163 fi
4164
4165 if test "x$ac_cv_prog_cc_c89" = xno
4166 then :
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168 printf "%s\n" "unsupported" >&6; }
4169 else $as_nop
4170 if test "x$ac_cv_prog_cc_c89" = x
4171 then :
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 printf "%s\n" "none needed" >&6; }
4174 else $as_nop
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4177 CC="$CC $ac_cv_prog_cc_c89"
4178 fi
4179 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4180 ac_prog_cc_stdc=c89
4181 fi
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4197 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4198 if test ${am_cv_prog_cc_c_o+y}
4199 then :
4200 printf %s "(cached) " >&6
4201 else $as_nop
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main (void)
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 # Make sure it works both with $CC and with simple cc.
4214 # Following AC_PROG_CC_C_O, we do the test twice because some
4215 # compilers refuse to overwrite an existing .o file with -o,
4216 # though they will create one.
4217 am_cv_prog_cc_c_o=yes
4218 for am_i in 1 2; do
4219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } \
4224 && test -f conftest2.$ac_objext; then
4225 : OK
4226 else
4227 am_cv_prog_cc_c_o=no
4228 break
4229 fi
4230 done
4231 rm -f core conftest*
4232 unset am_i
4233 fi
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4235 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4236 if test "$am_cv_prog_cc_c_o" != yes; then
4237 # Losing compiler, so override with the script.
4238 # FIXME: It is wrong to rewrite CC.
4239 # But if we don't then we get into trouble of one sort or another.
4240 # A longer-term fix would be to have automake use am__CC in this case,
4241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4242 CC="$am_aux_dir/compile $CC"
4243 fi
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251 depcc="$CC" am_compiler_list=
4252
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4254 printf %s "checking dependency style of $depcc... " >&6; }
4255 if test ${am_cv_CC_dependencies_compiler_type+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else $as_nop
4259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260 # We make a subdir and do the tests there. Otherwise we can end up
4261 # making bogus files that we don't know about and never remove. For
4262 # instance it was reported that on HP-UX the gcc test will end up
4263 # making a dummy file named 'D' -- because '-MD' means "put the output
4264 # in D".
4265 rm -rf conftest.dir
4266 mkdir conftest.dir
4267 # Copy depcomp to subdir because otherwise we won't find it if we're
4268 # using a relative directory.
4269 cp "$am_depcomp" conftest.dir
4270 cd conftest.dir
4271 # We will build objects and dependencies in a subdirectory because
4272 # it helps to detect inapplicable dependency modes. For instance
4273 # both Tru64's cc and ICC support -MD to output dependencies as a
4274 # side effect of compilation, but ICC will put the dependencies in
4275 # the current directory while Tru64 will put them in the object
4276 # directory.
4277 mkdir sub
4278
4279 am_cv_CC_dependencies_compiler_type=none
4280 if test "$am_compiler_list" = ""; then
4281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4282 fi
4283 am__universal=false
4284 case " $depcc " in #(
4285 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4286 esac
4287
4288 for depmode in $am_compiler_list; do
4289 # Setup a source with many dependencies, because some compilers
4290 # like to wrap large dependency lists on column 80 (with \), and
4291 # we should not choose a depcomp mode which is confused by this.
4292 #
4293 # We need to recreate these files for each test, as the compiler may
4294 # overwrite some of them when testing with obscure command lines.
4295 # This happens at least with the AIX C compiler.
4296 : > sub/conftest.c
4297 for i in 1 2 3 4 5 6; do
4298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4300 # Solaris 10 /bin/sh.
4301 echo '/* dummy */' > sub/conftst$i.h
4302 done
4303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4304
4305 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4306 # mode. It turns out that the SunPro C++ compiler does not properly
4307 # handle '-M -o', and we need to detect this. Also, some Intel
4308 # versions had trouble with output in subdirs.
4309 am__obj=sub/conftest.${OBJEXT-o}
4310 am__minus_obj="-o $am__obj"
4311 case $depmode in
4312 gcc)
4313 # This depmode causes a compiler race in universal mode.
4314 test "$am__universal" = false || continue
4315 ;;
4316 nosideeffect)
4317 # After this tag, mechanisms are not by side-effect, so they'll
4318 # only be used when explicitly requested.
4319 if test "x$enable_dependency_tracking" = xyes; then
4320 continue
4321 else
4322 break
4323 fi
4324 ;;
4325 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4326 # This compiler won't grok '-c -o', but also, the minuso test has
4327 # not run yet. These depmodes are late enough in the game, and
4328 # so weak that their functioning should not be impacted.
4329 am__obj=conftest.${OBJEXT-o}
4330 am__minus_obj=
4331 ;;
4332 none) break ;;
4333 esac
4334 if depmode=$depmode \
4335 source=sub/conftest.c object=$am__obj \
4336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338 >/dev/null 2>conftest.err &&
4339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343 # icc doesn't choke on unknown options, it will just issue warnings
4344 # or remarks (even with -Werror). So we grep stderr for any message
4345 # that says an option was ignored or not supported.
4346 # When given -MP, icc 7.0 and 7.1 complain thusly:
4347 # icc: Command line warning: ignoring option '-M'; no argument required
4348 # The diagnosis changed in icc 8.0:
4349 # icc: Command line remark: option '-MP' not supported
4350 if (grep 'ignoring option' conftest.err ||
4351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352 am_cv_CC_dependencies_compiler_type=$depmode
4353 break
4354 fi
4355 fi
4356 done
4357
4358 cd ..
4359 rm -rf conftest.dir
4360 else
4361 am_cv_CC_dependencies_compiler_type=none
4362 fi
4363
4364 fi
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4366 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368
4369 if
4370 test "x$enable_dependency_tracking" != xno \
4371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372 am__fastdepCC_TRUE=
4373 am__fastdepCC_FALSE='#'
4374 else
4375 am__fastdepCC_TRUE='#'
4376 am__fastdepCC_FALSE=
4377 fi
4378
4379
4380
4381
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4383 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4384 if test ${ac_cv_c_undeclared_builtin_options+y}
4385 then :
4386 printf %s "(cached) " >&6
4387 else $as_nop
4388 ac_save_CFLAGS=$CFLAGS
4389 ac_cv_c_undeclared_builtin_options='cannot detect'
4390 for ac_arg in '' -fno-builtin; do
4391 CFLAGS="$ac_save_CFLAGS $ac_arg"
4392 # This test program should *not* compile successfully.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395
4396 int
4397 main (void)
4398 {
4399 (void) strchr;
4400 ;
4401 return 0;
4402 }
4403 _ACEOF
4404 if ac_fn_c_try_compile "$LINENO"
4405 then :
4406
4407 else $as_nop
4408 # This test program should compile successfully.
4409 # No library function is consistently available on
4410 # freestanding implementations, so test against a dummy
4411 # declaration. Include always-available headers on the
4412 # off chance that they somehow elicit warnings.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <float.h>
4416 #include <limits.h>
4417 #include <stdarg.h>
4418 #include <stddef.h>
4419 extern void ac_decl (int, char *);
4420
4421 int
4422 main (void)
4423 {
4424 (void) ac_decl (0, (char *) 0);
4425 (void) ac_decl;
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"
4432 then :
4433 if test x"$ac_arg" = x
4434 then :
4435 ac_cv_c_undeclared_builtin_options='none needed'
4436 else $as_nop
4437 ac_cv_c_undeclared_builtin_options=$ac_arg
4438 fi
4439 break
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4444 done
4445 CFLAGS=$ac_save_CFLAGS
4446
4447 fi
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4449 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4450 case $ac_cv_c_undeclared_builtin_options in #(
4451 'cannot detect') :
4452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot make $CC report undeclared builtins
4455 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4456 'none needed') :
4457 ac_c_undeclared_builtin_options='' ;; #(
4458 *) :
4459 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4460 esac
4461
4462 ac_header= ac_cache=
4463 for ac_item in $ac_header_c_list
4464 do
4465 if test $ac_cache; then
4466 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4467 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4468 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4469 fi
4470 ac_header= ac_cache=
4471 elif test $ac_header; then
4472 ac_cache=$ac_item
4473 else
4474 ac_header=$ac_item
4475 fi
4476 done
4477
4478
4479
4480
4481
4482
4483
4484
4485 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4486 then :
4487
4488 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4489
4490 fi
4491
4492
4493
4494
4495 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4496 if test "x$ac_cv_have_decl___clang__" = xyes
4497 then :
4498 CLANGCC="yes"
4499 else $as_nop
4500 CLANGCC="no"
4501 fi
4502 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4503 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4504 then :
4505 INTELCC="yes"
4506 else $as_nop
4507 INTELCC="no"
4508 fi
4509 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4510 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4511 then :
4512 SUNCC="yes"
4513 else $as_nop
4514 SUNCC="no"
4515 fi
4516
4517
4518
4519
4520
4521
4522
4523
4524 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4527 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 printf %s "checking for $ac_word... " >&6; }
4530 if test ${ac_cv_path_PKG_CONFIG+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else $as_nop
4534 case $PKG_CONFIG in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4537 ;;
4538 *)
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 case $as_dir in #(((
4544 '') as_dir=./ ;;
4545 */) ;;
4546 *) as_dir=$as_dir/ ;;
4547 esac
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4550 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 ;;
4559 esac
4560 fi
4561 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4562 if test -n "$PKG_CONFIG"; then
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4564 printf "%s\n" "$PKG_CONFIG" >&6; }
4565 else
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 printf "%s\n" "no" >&6; }
4568 fi
4569
4570
4571 fi
4572 if test -z "$ac_cv_path_PKG_CONFIG"; then
4573 ac_pt_PKG_CONFIG=$PKG_CONFIG
4574 # Extract the first word of "pkg-config", so it can be a program name with args.
4575 set dummy pkg-config; ac_word=$2
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 printf %s "checking for $ac_word... " >&6; }
4578 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else $as_nop
4582 case $ac_pt_PKG_CONFIG in
4583 [\\/]* | ?:[\\/]*)
4584 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4585 ;;
4586 *)
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 case $as_dir in #(((
4592 '') as_dir=./ ;;
4593 */) ;;
4594 *) as_dir=$as_dir/ ;;
4595 esac
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4598 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 ;;
4607 esac
4608 fi
4609 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4610 if test -n "$ac_pt_PKG_CONFIG"; then
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4612 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4613 else
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 printf "%s\n" "no" >&6; }
4616 fi
4617
4618 if test "x$ac_pt_PKG_CONFIG" = x; then
4619 PKG_CONFIG=""
4620 else
4621 case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4626 esac
4627 PKG_CONFIG=$ac_pt_PKG_CONFIG
4628 fi
4629 else
4630 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4631 fi
4632
4633 fi
4634 if test -n "$PKG_CONFIG"; then
4635 _pkg_min_version=0.9.0
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4637 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4638 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4640 printf "%s\n" "yes" >&6; }
4641 else
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 printf "%s\n" "no" >&6; }
4644 PKG_CONFIG=""
4645 fi
4646 fi
4647
4648
4649 # Make sure we can run config.sub.
4650 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4651 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4652
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4654 printf %s "checking build system type... " >&6; }
4655 if test ${ac_cv_build+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else $as_nop
4659 ac_build_alias=$build_alias
4660 test "x$ac_build_alias" = x &&
4661 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4662 test "x$ac_build_alias" = x &&
4663 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4664 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4665 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4666
4667 fi
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4669 printf "%s\n" "$ac_cv_build" >&6; }
4670 case $ac_cv_build in
4671 *-*-*) ;;
4672 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4673 esac
4674 build=$ac_cv_build
4675 ac_save_IFS=$IFS; IFS='-'
4676 set x $ac_cv_build
4677 shift
4678 build_cpu=$1
4679 build_vendor=$2
4680 shift; shift
4681 # Remember, the first character of IFS is used to create $*,
4682 # except with old shells:
4683 build_os=$*
4684 IFS=$ac_save_IFS
4685 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4686
4687
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4689 printf %s "checking host system type... " >&6; }
4690 if test ${ac_cv_host+y}
4691 then :
4692 printf %s "(cached) " >&6
4693 else $as_nop
4694 if test "x$host_alias" = x; then
4695 ac_cv_host=$ac_cv_build
4696 else
4697 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4698 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4699 fi
4700
4701 fi
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4703 printf "%s\n" "$ac_cv_host" >&6; }
4704 case $ac_cv_host in
4705 *-*-*) ;;
4706 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4707 esac
4708 host=$ac_cv_host
4709 ac_save_IFS=$IFS; IFS='-'
4710 set x $ac_cv_host
4711 shift
4712 host_cpu=$1
4713 host_vendor=$2
4714 shift; shift
4715 # Remember, the first character of IFS is used to create $*,
4716 # except with old shells:
4717 host_os=$*
4718 IFS=$ac_save_IFS
4719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4720
4721
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4723 printf %s "checking for a sed that does not truncate output... " >&6; }
4724 if test ${ac_cv_path_SED+y}
4725 then :
4726 printf %s "(cached) " >&6
4727 else $as_nop
4728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4729 for ac_i in 1 2 3 4 5 6 7; do
4730 ac_script="$ac_script$as_nl$ac_script"
4731 done
4732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4733 { ac_script=; unset ac_script;}
4734 if test -z "$SED"; then
4735 ac_path_SED_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 case $as_dir in #(((
4742 '') as_dir=./ ;;
4743 */) ;;
4744 *) as_dir=$as_dir/ ;;
4745 esac
4746 for ac_prog in sed gsed
4747 do
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4750 as_fn_executable_p "$ac_path_SED" || continue
4751 # Check for GNU ac_path_SED and select it if it is found.
4752 # Check for GNU $ac_path_SED
4753 case `"$ac_path_SED" --version 2>&1` in
4754 *GNU*)
4755 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4756 *)
4757 ac_count=0
4758 printf %s 0123456789 >"conftest.in"
4759 while :
4760 do
4761 cat "conftest.in" "conftest.in" >"conftest.tmp"
4762 mv "conftest.tmp" "conftest.in"
4763 cp "conftest.in" "conftest.nl"
4764 printf "%s\n" '' >> "conftest.nl"
4765 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767 as_fn_arith $ac_count + 1 && ac_count=$as_val
4768 if test $ac_count -gt ${ac_path_SED_max-0}; then
4769 # Best one so far, save it but keep looking for a better one
4770 ac_cv_path_SED="$ac_path_SED"
4771 ac_path_SED_max=$ac_count
4772 fi
4773 # 10*(2^10) chars as input seems more than enough
4774 test $ac_count -gt 10 && break
4775 done
4776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777 esac
4778
4779 $ac_path_SED_found && break 3
4780 done
4781 done
4782 done
4783 IFS=$as_save_IFS
4784 if test -z "$ac_cv_path_SED"; then
4785 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4786 fi
4787 else
4788 ac_cv_path_SED=$SED
4789 fi
4790
4791 fi
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4793 printf "%s\n" "$ac_cv_path_SED" >&6; }
4794 SED="$ac_cv_path_SED"
4795 rm -f conftest.sed
4796
4797
4798
4799
4800
4801
4802 # Check whether --enable-selective-werror was given.
4803 if test ${enable_selective_werror+y}
4804 then :
4805 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4806 else $as_nop
4807 SELECTIVE_WERROR=yes
4808 fi
4809
4810
4811
4812
4813
4814 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4815 if test "x$SUNCC" = "xyes"; then
4816 BASE_CFLAGS="-v"
4817 else
4818 BASE_CFLAGS=""
4819 fi
4820
4821 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 xorg_testset_save_CFLAGS="$CFLAGS"
4836
4837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else $as_nop
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 int i;
4848 _ACEOF
4849 if ac_fn_c_try_compile "$LINENO"
4850 then :
4851 xorg_cv_cc_flag_unknown_warning_option=yes
4852 else $as_nop
4853 xorg_cv_cc_flag_unknown_warning_option=no
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4856 fi
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4860 CFLAGS="$xorg_testset_save_CFLAGS"
4861 fi
4862
4863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4866 fi
4867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4871 then :
4872 printf %s "(cached) " >&6
4873 else $as_nop
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 int i;
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"
4879 then :
4880 xorg_cv_cc_flag_unused_command_line_argument=yes
4881 else $as_nop
4882 xorg_cv_cc_flag_unused_command_line_argument=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4885 fi
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4889 CFLAGS="$xorg_testset_save_CFLAGS"
4890 fi
4891
4892 found="no"
4893
4894 if test $found = "no" ; then
4895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897 fi
4898
4899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4901 fi
4902
4903 CFLAGS="$CFLAGS -Wall"
4904
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4906 printf %s "checking if $CC supports -Wall... " >&6; }
4907 cacheid=xorg_cv_cc_flag__Wall
4908 if eval test \${$cacheid+y}
4909 then :
4910 printf %s "(cached) " >&6
4911 else $as_nop
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 int i;
4915 int
4916 main (void)
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_link "$LINENO"
4924 then :
4925 eval $cacheid=yes
4926 else $as_nop
4927 eval $cacheid=no
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4930 conftest$ac_exeext conftest.$ac_ext
4931 fi
4932
4933
4934 CFLAGS="$xorg_testset_save_CFLAGS"
4935
4936 eval supported=\$$cacheid
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4938 printf "%s\n" "$supported" >&6; }
4939 if test "$supported" = "yes" ; then
4940 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4941 found="yes"
4942 fi
4943 fi
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 xorg_testset_save_CFLAGS="$CFLAGS"
4960
4961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4965 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else $as_nop
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 int i;
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"
4974 then :
4975 xorg_cv_cc_flag_unknown_warning_option=yes
4976 else $as_nop
4977 xorg_cv_cc_flag_unknown_warning_option=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4980 fi
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4985 fi
4986
4987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4990 fi
4991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4995 then :
4996 printf %s "(cached) " >&6
4997 else $as_nop
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 int i;
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"
5003 then :
5004 xorg_cv_cc_flag_unused_command_line_argument=yes
5005 else $as_nop
5006 xorg_cv_cc_flag_unused_command_line_argument=no
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5009 fi
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5013 CFLAGS="$xorg_testset_save_CFLAGS"
5014 fi
5015
5016 found="no"
5017
5018 if test $found = "no" ; then
5019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021 fi
5022
5023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5025 fi
5026
5027 CFLAGS="$CFLAGS -Wpointer-arith"
5028
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5030 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5031 cacheid=xorg_cv_cc_flag__Wpointer_arith
5032 if eval test \${$cacheid+y}
5033 then :
5034 printf %s "(cached) " >&6
5035 else $as_nop
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 int i;
5039 int
5040 main (void)
5041 {
5042
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_link "$LINENO"
5048 then :
5049 eval $cacheid=yes
5050 else $as_nop
5051 eval $cacheid=no
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5054 conftest$ac_exeext conftest.$ac_ext
5055 fi
5056
5057
5058 CFLAGS="$xorg_testset_save_CFLAGS"
5059
5060 eval supported=\$$cacheid
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5062 printf "%s\n" "$supported" >&6; }
5063 if test "$supported" = "yes" ; then
5064 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5065 found="yes"
5066 fi
5067 fi
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 xorg_testset_save_CFLAGS="$CFLAGS"
5084
5085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else $as_nop
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 int i;
5096 _ACEOF
5097 if ac_fn_c_try_compile "$LINENO"
5098 then :
5099 xorg_cv_cc_flag_unknown_warning_option=yes
5100 else $as_nop
5101 xorg_cv_cc_flag_unknown_warning_option=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5104 fi
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5108 CFLAGS="$xorg_testset_save_CFLAGS"
5109 fi
5110
5111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114 fi
5115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5119 then :
5120 printf %s "(cached) " >&6
5121 else $as_nop
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 int i;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"
5127 then :
5128 xorg_cv_cc_flag_unused_command_line_argument=yes
5129 else $as_nop
5130 xorg_cv_cc_flag_unused_command_line_argument=no
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5133 fi
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5137 CFLAGS="$xorg_testset_save_CFLAGS"
5138 fi
5139
5140 found="no"
5141
5142 if test $found = "no" ; then
5143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5145 fi
5146
5147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5149 fi
5150
5151 CFLAGS="$CFLAGS -Wmissing-declarations"
5152
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5154 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5155 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5156 if eval test \${$cacheid+y}
5157 then :
5158 printf %s "(cached) " >&6
5159 else $as_nop
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 int
5164 main (void)
5165 {
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_link "$LINENO"
5172 then :
5173 eval $cacheid=yes
5174 else $as_nop
5175 eval $cacheid=no
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5178 conftest$ac_exeext conftest.$ac_ext
5179 fi
5180
5181
5182 CFLAGS="$xorg_testset_save_CFLAGS"
5183
5184 eval supported=\$$cacheid
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5186 printf "%s\n" "$supported" >&6; }
5187 if test "$supported" = "yes" ; then
5188 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5189 found="yes"
5190 fi
5191 fi
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 xorg_testset_save_CFLAGS="$CFLAGS"
5208
5209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5213 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5214 then :
5215 printf %s "(cached) " >&6
5216 else $as_nop
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 int i;
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"
5222 then :
5223 xorg_cv_cc_flag_unknown_warning_option=yes
5224 else $as_nop
5225 xorg_cv_cc_flag_unknown_warning_option=no
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5228 fi
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5232 CFLAGS="$xorg_testset_save_CFLAGS"
5233 fi
5234
5235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 fi
5239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5243 then :
5244 printf %s "(cached) " >&6
5245 else $as_nop
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 int i;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"
5251 then :
5252 xorg_cv_cc_flag_unused_command_line_argument=yes
5253 else $as_nop
5254 xorg_cv_cc_flag_unused_command_line_argument=no
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5257 fi
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5261 CFLAGS="$xorg_testset_save_CFLAGS"
5262 fi
5263
5264 found="no"
5265
5266 if test $found = "no" ; then
5267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269 fi
5270
5271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5273 fi
5274
5275 CFLAGS="$CFLAGS -Wformat=2"
5276
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5278 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5279 cacheid=xorg_cv_cc_flag__Wformat_2
5280 if eval test \${$cacheid+y}
5281 then :
5282 printf %s "(cached) " >&6
5283 else $as_nop
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 int i;
5287 int
5288 main (void)
5289 {
5290
5291 ;
5292 return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"
5296 then :
5297 eval $cacheid=yes
5298 else $as_nop
5299 eval $cacheid=no
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5302 conftest$ac_exeext conftest.$ac_ext
5303 fi
5304
5305
5306 CFLAGS="$xorg_testset_save_CFLAGS"
5307
5308 eval supported=\$$cacheid
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5310 printf "%s\n" "$supported" >&6; }
5311 if test "$supported" = "yes" ; then
5312 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5313 found="yes"
5314 fi
5315 fi
5316
5317 if test $found = "no" ; then
5318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5320 fi
5321
5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5324 fi
5325
5326 CFLAGS="$CFLAGS -Wformat"
5327
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5329 printf %s "checking if $CC supports -Wformat... " >&6; }
5330 cacheid=xorg_cv_cc_flag__Wformat
5331 if eval test \${$cacheid+y}
5332 then :
5333 printf %s "(cached) " >&6
5334 else $as_nop
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 int i;
5338 int
5339 main (void)
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"
5347 then :
5348 eval $cacheid=yes
5349 else $as_nop
5350 eval $cacheid=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5353 conftest$ac_exeext conftest.$ac_ext
5354 fi
5355
5356
5357 CFLAGS="$xorg_testset_save_CFLAGS"
5358
5359 eval supported=\$$cacheid
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5361 printf "%s\n" "$supported" >&6; }
5362 if test "$supported" = "yes" ; then
5363 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5364 found="yes"
5365 fi
5366 fi
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384 xorg_testset_save_CFLAGS="$CFLAGS"
5385
5386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5390 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else $as_nop
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 int i;
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"
5399 then :
5400 xorg_cv_cc_flag_unknown_warning_option=yes
5401 else $as_nop
5402 xorg_cv_cc_flag_unknown_warning_option=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5405 fi
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5407 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410 fi
5411
5412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415 fi
5416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5418 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5419 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5420 then :
5421 printf %s "(cached) " >&6
5422 else $as_nop
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"
5428 then :
5429 xorg_cv_cc_flag_unused_command_line_argument=yes
5430 else $as_nop
5431 xorg_cv_cc_flag_unused_command_line_argument=no
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 -Wstrict-prototypes"
5453
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5455 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5456 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5457 if eval test \${$cacheid+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else $as_nop
5461 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 $as_nop
5476 eval $cacheid=no
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5479 conftest$ac_exeext conftest.$ac_ext
5480 fi
5481
5482
5483 CFLAGS="$xorg_testset_save_CFLAGS"
5484
5485 eval supported=\$$cacheid
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5487 printf "%s\n" "$supported" >&6; }
5488 if test "$supported" = "yes" ; then
5489 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5490 found="yes"
5491 fi
5492 fi
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 xorg_testset_save_CFLAGS="$CFLAGS"
5509
5510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5514 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5515 then :
5516 printf %s "(cached) " >&6
5517 else $as_nop
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 int i;
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"
5523 then :
5524 xorg_cv_cc_flag_unknown_warning_option=yes
5525 else $as_nop
5526 xorg_cv_cc_flag_unknown_warning_option=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5529 fi
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5533 CFLAGS="$xorg_testset_save_CFLAGS"
5534 fi
5535
5536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539 fi
5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else $as_nop
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 int i;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"
5552 then :
5553 xorg_cv_cc_flag_unused_command_line_argument=yes
5554 else $as_nop
5555 xorg_cv_cc_flag_unused_command_line_argument=no
5556 fi
5557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5558 fi
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5560 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5562 CFLAGS="$xorg_testset_save_CFLAGS"
5563 fi
5564
5565 found="no"
5566
5567 if test $found = "no" ; then
5568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570 fi
5571
5572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5574 fi
5575
5576 CFLAGS="$CFLAGS -Wmissing-prototypes"
5577
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5579 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5580 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5581 if eval test \${$cacheid+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else $as_nop
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 int i;
5588 int
5589 main (void)
5590 {
5591
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_link "$LINENO"
5597 then :
5598 eval $cacheid=yes
5599 else $as_nop
5600 eval $cacheid=no
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5603 conftest$ac_exeext conftest.$ac_ext
5604 fi
5605
5606
5607 CFLAGS="$xorg_testset_save_CFLAGS"
5608
5609 eval supported=\$$cacheid
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5611 printf "%s\n" "$supported" >&6; }
5612 if test "$supported" = "yes" ; then
5613 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5614 found="yes"
5615 fi
5616 fi
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 xorg_testset_save_CFLAGS="$CFLAGS"
5633
5634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5637 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5638 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5639 then :
5640 printf %s "(cached) " >&6
5641 else $as_nop
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 int i;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"
5647 then :
5648 xorg_cv_cc_flag_unknown_warning_option=yes
5649 else $as_nop
5650 xorg_cv_cc_flag_unknown_warning_option=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5653 fi
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657 CFLAGS="$xorg_testset_save_CFLAGS"
5658 fi
5659
5660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663 fi
5664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5668 then :
5669 printf %s "(cached) " >&6
5670 else $as_nop
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 int i;
5674 _ACEOF
5675 if ac_fn_c_try_compile "$LINENO"
5676 then :
5677 xorg_cv_cc_flag_unused_command_line_argument=yes
5678 else $as_nop
5679 xorg_cv_cc_flag_unused_command_line_argument=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5682 fi
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5684 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5686 CFLAGS="$xorg_testset_save_CFLAGS"
5687 fi
5688
5689 found="no"
5690
5691 if test $found = "no" ; then
5692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694 fi
5695
5696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5698 fi
5699
5700 CFLAGS="$CFLAGS -Wnested-externs"
5701
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5703 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5704 cacheid=xorg_cv_cc_flag__Wnested_externs
5705 if eval test \${$cacheid+y}
5706 then :
5707 printf %s "(cached) " >&6
5708 else $as_nop
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 int i;
5712 int
5713 main (void)
5714 {
5715
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_link "$LINENO"
5721 then :
5722 eval $cacheid=yes
5723 else $as_nop
5724 eval $cacheid=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5727 conftest$ac_exeext conftest.$ac_ext
5728 fi
5729
5730
5731 CFLAGS="$xorg_testset_save_CFLAGS"
5732
5733 eval supported=\$$cacheid
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5735 printf "%s\n" "$supported" >&6; }
5736 if test "$supported" = "yes" ; then
5737 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5738 found="yes"
5739 fi
5740 fi
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 xorg_testset_save_CFLAGS="$CFLAGS"
5757
5758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5762 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else $as_nop
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 int i;
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"
5771 then :
5772 xorg_cv_cc_flag_unknown_warning_option=yes
5773 else $as_nop
5774 xorg_cv_cc_flag_unknown_warning_option=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5777 fi
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782 fi
5783
5784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5787 fi
5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else $as_nop
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 int i;
5798 _ACEOF
5799 if ac_fn_c_try_compile "$LINENO"
5800 then :
5801 xorg_cv_cc_flag_unused_command_line_argument=yes
5802 else $as_nop
5803 xorg_cv_cc_flag_unused_command_line_argument=no
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5806 fi
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5810 CFLAGS="$xorg_testset_save_CFLAGS"
5811 fi
5812
5813 found="no"
5814
5815 if test $found = "no" ; then
5816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 fi
5819
5820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822 fi
5823
5824 CFLAGS="$CFLAGS -Wbad-function-cast"
5825
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5827 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5828 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5829 if eval test \${$cacheid+y}
5830 then :
5831 printf %s "(cached) " >&6
5832 else $as_nop
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int i;
5836 int
5837 main (void)
5838 {
5839
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 if ac_fn_c_try_link "$LINENO"
5845 then :
5846 eval $cacheid=yes
5847 else $as_nop
5848 eval $cacheid=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5851 conftest$ac_exeext conftest.$ac_ext
5852 fi
5853
5854
5855 CFLAGS="$xorg_testset_save_CFLAGS"
5856
5857 eval supported=\$$cacheid
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859 printf "%s\n" "$supported" >&6; }
5860 if test "$supported" = "yes" ; then
5861 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5862 found="yes"
5863 fi
5864 fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 xorg_testset_save_CFLAGS="$CFLAGS"
5881
5882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5887 then :
5888 printf %s "(cached) " >&6
5889 else $as_nop
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 int i;
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"
5895 then :
5896 xorg_cv_cc_flag_unknown_warning_option=yes
5897 else $as_nop
5898 xorg_cv_cc_flag_unknown_warning_option=no
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5901 fi
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5905 CFLAGS="$xorg_testset_save_CFLAGS"
5906 fi
5907
5908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911 fi
5912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else $as_nop
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 int i;
5922 _ACEOF
5923 if ac_fn_c_try_compile "$LINENO"
5924 then :
5925 xorg_cv_cc_flag_unused_command_line_argument=yes
5926 else $as_nop
5927 xorg_cv_cc_flag_unused_command_line_argument=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5930 fi
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5934 CFLAGS="$xorg_testset_save_CFLAGS"
5935 fi
5936
5937 found="no"
5938
5939 if test $found = "no" ; then
5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942 fi
5943
5944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5946 fi
5947
5948 CFLAGS="$CFLAGS -Wold-style-definition"
5949
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5951 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5952 cacheid=xorg_cv_cc_flag__Wold_style_definition
5953 if eval test \${$cacheid+y}
5954 then :
5955 printf %s "(cached) " >&6
5956 else $as_nop
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int i;
5960 int
5961 main (void)
5962 {
5963
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_c_try_link "$LINENO"
5969 then :
5970 eval $cacheid=yes
5971 else $as_nop
5972 eval $cacheid=no
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5975 conftest$ac_exeext conftest.$ac_ext
5976 fi
5977
5978
5979 CFLAGS="$xorg_testset_save_CFLAGS"
5980
5981 eval supported=\$$cacheid
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5983 printf "%s\n" "$supported" >&6; }
5984 if test "$supported" = "yes" ; then
5985 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5986 found="yes"
5987 fi
5988 fi
5989
5990 if test $found = "no" ; then
5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5993 fi
5994
5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5997 fi
5998
5999 CFLAGS="$CFLAGS -fd"
6000
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6002 printf %s "checking if $CC supports -fd... " >&6; }
6003 cacheid=xorg_cv_cc_flag__fd
6004 if eval test \${$cacheid+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 int i;
6011 int
6012 main (void)
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"
6020 then :
6021 eval $cacheid=yes
6022 else $as_nop
6023 eval $cacheid=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6026 conftest$ac_exeext conftest.$ac_ext
6027 fi
6028
6029
6030 CFLAGS="$xorg_testset_save_CFLAGS"
6031
6032 eval supported=\$$cacheid
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6034 printf "%s\n" "$supported" >&6; }
6035 if test "$supported" = "yes" ; then
6036 BASE_CFLAGS="$BASE_CFLAGS -fd"
6037 found="yes"
6038 fi
6039 fi
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 xorg_testset_save_CFLAGS="$CFLAGS"
6056
6057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6060 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6061 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6062 then :
6063 printf %s "(cached) " >&6
6064 else $as_nop
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 int i;
6068 _ACEOF
6069 if ac_fn_c_try_compile "$LINENO"
6070 then :
6071 xorg_cv_cc_flag_unknown_warning_option=yes
6072 else $as_nop
6073 xorg_cv_cc_flag_unknown_warning_option=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6076 fi
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081 fi
6082
6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 fi
6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6091 then :
6092 printf %s "(cached) " >&6
6093 else $as_nop
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"
6099 then :
6100 xorg_cv_cc_flag_unused_command_line_argument=yes
6101 else $as_nop
6102 xorg_cv_cc_flag_unused_command_line_argument=no
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6109 CFLAGS="$xorg_testset_save_CFLAGS"
6110 fi
6111
6112 found="no"
6113
6114 if test $found = "no" ; then
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6121 fi
6122
6123 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6124
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6126 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6127 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6128 if eval test \${$cacheid+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else $as_nop
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 int i;
6135 int
6136 main (void)
6137 {
6138
6139 ;
6140 return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_link "$LINENO"
6144 then :
6145 eval $cacheid=yes
6146 else $as_nop
6147 eval $cacheid=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6150 conftest$ac_exeext conftest.$ac_ext
6151 fi
6152
6153
6154 CFLAGS="$xorg_testset_save_CFLAGS"
6155
6156 eval supported=\$$cacheid
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6158 printf "%s\n" "$supported" >&6; }
6159 if test "$supported" = "yes" ; then
6160 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6161 found="yes"
6162 fi
6163 fi
6164
6165
6166
6167
6168
6169 # This chunk adds additional warnings that could catch undesired effects.
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 xorg_testset_save_CFLAGS="$CFLAGS"
6184
6185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6189 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else $as_nop
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 int i;
6196 _ACEOF
6197 if ac_fn_c_try_compile "$LINENO"
6198 then :
6199 xorg_cv_cc_flag_unknown_warning_option=yes
6200 else $as_nop
6201 xorg_cv_cc_flag_unknown_warning_option=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6204 fi
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6208 CFLAGS="$xorg_testset_save_CFLAGS"
6209 fi
6210
6211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214 fi
6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6219 then :
6220 printf %s "(cached) " >&6
6221 else $as_nop
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 int i;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"
6227 then :
6228 xorg_cv_cc_flag_unused_command_line_argument=yes
6229 else $as_nop
6230 xorg_cv_cc_flag_unused_command_line_argument=no
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6233 fi
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6237 CFLAGS="$xorg_testset_save_CFLAGS"
6238 fi
6239
6240 found="no"
6241
6242 if test $found = "no" ; then
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 fi
6246
6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249 fi
6250
6251 CFLAGS="$CFLAGS -Wunused"
6252
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6254 printf %s "checking if $CC supports -Wunused... " >&6; }
6255 cacheid=xorg_cv_cc_flag__Wunused
6256 if eval test \${$cacheid+y}
6257 then :
6258 printf %s "(cached) " >&6
6259 else $as_nop
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 int i;
6263 int
6264 main (void)
6265 {
6266
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_link "$LINENO"
6272 then :
6273 eval $cacheid=yes
6274 else $as_nop
6275 eval $cacheid=no
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6278 conftest$ac_exeext conftest.$ac_ext
6279 fi
6280
6281
6282 CFLAGS="$xorg_testset_save_CFLAGS"
6283
6284 eval supported=\$$cacheid
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6286 printf "%s\n" "$supported" >&6; }
6287 if test "$supported" = "yes" ; then
6288 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6289 found="yes"
6290 fi
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 xorg_testset_save_CFLAGS="$CFLAGS"
6308
6309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6314 then :
6315 printf %s "(cached) " >&6
6316 else $as_nop
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 int i;
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"
6322 then :
6323 xorg_cv_cc_flag_unknown_warning_option=yes
6324 else $as_nop
6325 xorg_cv_cc_flag_unknown_warning_option=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6328 fi
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333 fi
6334
6335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 fi
6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6343 then :
6344 printf %s "(cached) " >&6
6345 else $as_nop
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 int i;
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"
6351 then :
6352 xorg_cv_cc_flag_unused_command_line_argument=yes
6353 else $as_nop
6354 xorg_cv_cc_flag_unused_command_line_argument=no
6355 fi
6356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6357 fi
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6361 CFLAGS="$xorg_testset_save_CFLAGS"
6362 fi
6363
6364 found="no"
6365
6366 if test $found = "no" ; then
6367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6369 fi
6370
6371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6373 fi
6374
6375 CFLAGS="$CFLAGS -Wuninitialized"
6376
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6378 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6379 cacheid=xorg_cv_cc_flag__Wuninitialized
6380 if eval test \${$cacheid+y}
6381 then :
6382 printf %s "(cached) " >&6
6383 else $as_nop
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 int i;
6387 int
6388 main (void)
6389 {
6390
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"
6396 then :
6397 eval $cacheid=yes
6398 else $as_nop
6399 eval $cacheid=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6402 conftest$ac_exeext conftest.$ac_ext
6403 fi
6404
6405
6406 CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408 eval supported=\$$cacheid
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410 printf "%s\n" "$supported" >&6; }
6411 if test "$supported" = "yes" ; then
6412 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6413 found="yes"
6414 fi
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6438 then :
6439 printf %s "(cached) " >&6
6440 else $as_nop
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"
6446 then :
6447 xorg_cv_cc_flag_unknown_warning_option=yes
6448 else $as_nop
6449 xorg_cv_cc_flag_unknown_warning_option=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6452 fi
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6454 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457 fi
6458
6459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 fi
6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6465 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6466 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6467 then :
6468 printf %s "(cached) " >&6
6469 else $as_nop
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 int i;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"
6475 then :
6476 xorg_cv_cc_flag_unused_command_line_argument=yes
6477 else $as_nop
6478 xorg_cv_cc_flag_unused_command_line_argument=no
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6481 fi
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6483 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6485 CFLAGS="$xorg_testset_save_CFLAGS"
6486 fi
6487
6488 found="no"
6489
6490 if test $found = "no" ; then
6491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493 fi
6494
6495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6497 fi
6498
6499 CFLAGS="$CFLAGS -Wshadow"
6500
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6502 printf %s "checking if $CC supports -Wshadow... " >&6; }
6503 cacheid=xorg_cv_cc_flag__Wshadow
6504 if eval test \${$cacheid+y}
6505 then :
6506 printf %s "(cached) " >&6
6507 else $as_nop
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int i;
6511 int
6512 main (void)
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"
6520 then :
6521 eval $cacheid=yes
6522 else $as_nop
6523 eval $cacheid=no
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6526 conftest$ac_exeext conftest.$ac_ext
6527 fi
6528
6529
6530 CFLAGS="$xorg_testset_save_CFLAGS"
6531
6532 eval supported=\$$cacheid
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6534 printf "%s\n" "$supported" >&6; }
6535 if test "$supported" = "yes" ; then
6536 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6537 found="yes"
6538 fi
6539 fi
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 xorg_testset_save_CFLAGS="$CFLAGS"
6556
6557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6560 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6561 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6562 then :
6563 printf %s "(cached) " >&6
6564 else $as_nop
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"
6570 then :
6571 xorg_cv_cc_flag_unknown_warning_option=yes
6572 else $as_nop
6573 xorg_cv_cc_flag_unknown_warning_option=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6576 fi
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6580 CFLAGS="$xorg_testset_save_CFLAGS"
6581 fi
6582
6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 fi
6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6591 then :
6592 printf %s "(cached) " >&6
6593 else $as_nop
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int i;
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"
6599 then :
6600 xorg_cv_cc_flag_unused_command_line_argument=yes
6601 else $as_nop
6602 xorg_cv_cc_flag_unused_command_line_argument=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6607 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6609 CFLAGS="$xorg_testset_save_CFLAGS"
6610 fi
6611
6612 found="no"
6613
6614 if test $found = "no" ; then
6615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617 fi
6618
6619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621 fi
6622
6623 CFLAGS="$CFLAGS -Wmissing-noreturn"
6624
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6626 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6627 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6628 if eval test \${$cacheid+y}
6629 then :
6630 printf %s "(cached) " >&6
6631 else $as_nop
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6634 int i;
6635 int
6636 main (void)
6637 {
6638
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"
6644 then :
6645 eval $cacheid=yes
6646 else $as_nop
6647 eval $cacheid=no
6648 fi
6649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6650 conftest$ac_exeext conftest.$ac_ext
6651 fi
6652
6653
6654 CFLAGS="$xorg_testset_save_CFLAGS"
6655
6656 eval supported=\$$cacheid
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6658 printf "%s\n" "$supported" >&6; }
6659 if test "$supported" = "yes" ; then
6660 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6661 found="yes"
6662 fi
6663 fi
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679 xorg_testset_save_CFLAGS="$CFLAGS"
6680
6681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6684 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6685 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6686 then :
6687 printf %s "(cached) " >&6
6688 else $as_nop
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 int i;
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"
6694 then :
6695 xorg_cv_cc_flag_unknown_warning_option=yes
6696 else $as_nop
6697 xorg_cv_cc_flag_unknown_warning_option=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6700 fi
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6702 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705 fi
6706
6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710 fi
6711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6713 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6714 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6715 then :
6716 printf %s "(cached) " >&6
6717 else $as_nop
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 int i;
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"
6723 then :
6724 xorg_cv_cc_flag_unused_command_line_argument=yes
6725 else $as_nop
6726 xorg_cv_cc_flag_unused_command_line_argument=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6729 fi
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734 fi
6735
6736 found="no"
6737
6738 if test $found = "no" ; then
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 fi
6742
6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745 fi
6746
6747 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6748
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6750 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6751 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6752 if eval test \${$cacheid+y}
6753 then :
6754 printf %s "(cached) " >&6
6755 else $as_nop
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 int i;
6759 int
6760 main (void)
6761 {
6762
6763 ;
6764 return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_link "$LINENO"
6768 then :
6769 eval $cacheid=yes
6770 else $as_nop
6771 eval $cacheid=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6774 conftest$ac_exeext conftest.$ac_ext
6775 fi
6776
6777
6778 CFLAGS="$xorg_testset_save_CFLAGS"
6779
6780 eval supported=\$$cacheid
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6782 printf "%s\n" "$supported" >&6; }
6783 if test "$supported" = "yes" ; then
6784 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6785 found="yes"
6786 fi
6787 fi
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803 xorg_testset_save_CFLAGS="$CFLAGS"
6804
6805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6808 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6809 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6810 then :
6811 printf %s "(cached) " >&6
6812 else $as_nop
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 int i;
6816 _ACEOF
6817 if ac_fn_c_try_compile "$LINENO"
6818 then :
6819 xorg_cv_cc_flag_unknown_warning_option=yes
6820 else $as_nop
6821 xorg_cv_cc_flag_unknown_warning_option=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6824 fi
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6826 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6828 CFLAGS="$xorg_testset_save_CFLAGS"
6829 fi
6830
6831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 fi
6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6837 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6838 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6839 then :
6840 printf %s "(cached) " >&6
6841 else $as_nop
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 int i;
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"
6847 then :
6848 xorg_cv_cc_flag_unused_command_line_argument=yes
6849 else $as_nop
6850 xorg_cv_cc_flag_unused_command_line_argument=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6853 fi
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6855 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6857 CFLAGS="$xorg_testset_save_CFLAGS"
6858 fi
6859
6860 found="no"
6861
6862 if test $found = "no" ; then
6863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6865 fi
6866
6867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6869 fi
6870
6871 CFLAGS="$CFLAGS -Wredundant-decls"
6872
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6874 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6875 cacheid=xorg_cv_cc_flag__Wredundant_decls
6876 if eval test \${$cacheid+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else $as_nop
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 int i;
6883 int
6884 main (void)
6885 {
6886
6887 ;
6888 return 0;
6889 }
6890 _ACEOF
6891 if ac_fn_c_try_link "$LINENO"
6892 then :
6893 eval $cacheid=yes
6894 else $as_nop
6895 eval $cacheid=no
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6898 conftest$ac_exeext conftest.$ac_ext
6899 fi
6900
6901
6902 CFLAGS="$xorg_testset_save_CFLAGS"
6903
6904 eval supported=\$$cacheid
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6906 printf "%s\n" "$supported" >&6; }
6907 if test "$supported" = "yes" ; then
6908 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6909 found="yes"
6910 fi
6911 fi
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 xorg_testset_save_CFLAGS="$CFLAGS"
6928
6929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6932 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6933 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else $as_nop
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939 int i;
6940 _ACEOF
6941 if ac_fn_c_try_compile "$LINENO"
6942 then :
6943 xorg_cv_cc_flag_unknown_warning_option=yes
6944 else $as_nop
6945 xorg_cv_cc_flag_unknown_warning_option=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6948 fi
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6950 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953 fi
6954
6955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958 fi
6959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6961 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6962 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6963 then :
6964 printf %s "(cached) " >&6
6965 else $as_nop
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 int i;
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"
6971 then :
6972 xorg_cv_cc_flag_unused_command_line_argument=yes
6973 else $as_nop
6974 xorg_cv_cc_flag_unused_command_line_argument=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6977 fi
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6979 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982 fi
6983
6984 found="no"
6985
6986 if test $found = "no" ; then
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 fi
6990
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993 fi
6994
6995 CFLAGS="$CFLAGS -Wlogical-op"
6996
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6998 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6999 cacheid=xorg_cv_cc_flag__Wlogical_op
7000 if eval test \${$cacheid+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else $as_nop
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 int i;
7007 int
7008 main (void)
7009 {
7010
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"
7016 then :
7017 eval $cacheid=yes
7018 else $as_nop
7019 eval $cacheid=no
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7022 conftest$ac_exeext conftest.$ac_ext
7023 fi
7024
7025
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028 eval supported=\$$cacheid
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030 printf "%s\n" "$supported" >&6; }
7031 if test "$supported" = "yes" ; then
7032 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7033 found="yes"
7034 fi
7035 fi
7036
7037
7038
7039 # These are currently disabled because they are noisy. They will be enabled
7040 # in the future once the codebase is sufficiently modernized to silence
7041 # them. For now, I don't want them to drown out the other warnings.
7042 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7043 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7044 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7045
7046 # Turn some warnings into errors, so we don't accidently get successful builds
7047 # when there are problems that should be fixed.
7048
7049 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063 xorg_testset_save_CFLAGS="$CFLAGS"
7064
7065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7068 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7069 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7070 then :
7071 printf %s "(cached) " >&6
7072 else $as_nop
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075 int i;
7076 _ACEOF
7077 if ac_fn_c_try_compile "$LINENO"
7078 then :
7079 xorg_cv_cc_flag_unknown_warning_option=yes
7080 else $as_nop
7081 xorg_cv_cc_flag_unknown_warning_option=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7084 fi
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7086 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7088 CFLAGS="$xorg_testset_save_CFLAGS"
7089 fi
7090
7091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094 fi
7095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7097 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7098 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7099 then :
7100 printf %s "(cached) " >&6
7101 else $as_nop
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 int i;
7105 _ACEOF
7106 if ac_fn_c_try_compile "$LINENO"
7107 then :
7108 xorg_cv_cc_flag_unused_command_line_argument=yes
7109 else $as_nop
7110 xorg_cv_cc_flag_unused_command_line_argument=no
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7113 fi
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7117 CFLAGS="$xorg_testset_save_CFLAGS"
7118 fi
7119
7120 found="no"
7121
7122 if test $found = "no" ; then
7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125 fi
7126
7127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129 fi
7130
7131 CFLAGS="$CFLAGS -Werror=implicit"
7132
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7134 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7135 cacheid=xorg_cv_cc_flag__Werror_implicit
7136 if eval test \${$cacheid+y}
7137 then :
7138 printf %s "(cached) " >&6
7139 else $as_nop
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 int i;
7143 int
7144 main (void)
7145 {
7146
7147 ;
7148 return 0;
7149 }
7150 _ACEOF
7151 if ac_fn_c_try_link "$LINENO"
7152 then :
7153 eval $cacheid=yes
7154 else $as_nop
7155 eval $cacheid=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7158 conftest$ac_exeext conftest.$ac_ext
7159 fi
7160
7161
7162 CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164 eval supported=\$$cacheid
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166 printf "%s\n" "$supported" >&6; }
7167 if test "$supported" = "yes" ; then
7168 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7169 found="yes"
7170 fi
7171 fi
7172
7173 if test $found = "no" ; then
7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176 fi
7177
7178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7180 fi
7181
7182 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7183
7184 { 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
7185 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7186 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7187 if eval test \${$cacheid+y}
7188 then :
7189 printf %s "(cached) " >&6
7190 else $as_nop
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 int i;
7194 int
7195 main (void)
7196 {
7197
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 if ac_fn_c_try_link "$LINENO"
7203 then :
7204 eval $cacheid=yes
7205 else $as_nop
7206 eval $cacheid=no
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7209 conftest$ac_exeext conftest.$ac_ext
7210 fi
7211
7212
7213 CFLAGS="$xorg_testset_save_CFLAGS"
7214
7215 eval supported=\$$cacheid
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7217 printf "%s\n" "$supported" >&6; }
7218 if test "$supported" = "yes" ; then
7219 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7220 found="yes"
7221 fi
7222 fi
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 xorg_testset_save_CFLAGS="$CFLAGS"
7239
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7245 then :
7246 printf %s "(cached) " >&6
7247 else $as_nop
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 int i;
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"
7253 then :
7254 xorg_cv_cc_flag_unknown_warning_option=yes
7255 else $as_nop
7256 xorg_cv_cc_flag_unknown_warning_option=no
7257 fi
7258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7259 fi
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7263 CFLAGS="$xorg_testset_save_CFLAGS"
7264 fi
7265
7266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 fi
7270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7274 then :
7275 printf %s "(cached) " >&6
7276 else $as_nop
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 int i;
7280 _ACEOF
7281 if ac_fn_c_try_compile "$LINENO"
7282 then :
7283 xorg_cv_cc_flag_unused_command_line_argument=yes
7284 else $as_nop
7285 xorg_cv_cc_flag_unused_command_line_argument=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7288 fi
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7292 CFLAGS="$xorg_testset_save_CFLAGS"
7293 fi
7294
7295 found="no"
7296
7297 if test $found = "no" ; then
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 fi
7301
7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7304 fi
7305
7306 CFLAGS="$CFLAGS -Werror=nonnull"
7307
7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7309 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7310 cacheid=xorg_cv_cc_flag__Werror_nonnull
7311 if eval test \${$cacheid+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else $as_nop
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int i;
7318 int
7319 main (void)
7320 {
7321
7322 ;
7323 return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_c_try_link "$LINENO"
7327 then :
7328 eval $cacheid=yes
7329 else $as_nop
7330 eval $cacheid=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7333 conftest$ac_exeext conftest.$ac_ext
7334 fi
7335
7336
7337 CFLAGS="$xorg_testset_save_CFLAGS"
7338
7339 eval supported=\$$cacheid
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341 printf "%s\n" "$supported" >&6; }
7342 if test "$supported" = "yes" ; then
7343 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7344 found="yes"
7345 fi
7346 fi
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362 xorg_testset_save_CFLAGS="$CFLAGS"
7363
7364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7369 then :
7370 printf %s "(cached) " >&6
7371 else $as_nop
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 int i;
7375 _ACEOF
7376 if ac_fn_c_try_compile "$LINENO"
7377 then :
7378 xorg_cv_cc_flag_unknown_warning_option=yes
7379 else $as_nop
7380 xorg_cv_cc_flag_unknown_warning_option=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7383 fi
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7387 CFLAGS="$xorg_testset_save_CFLAGS"
7388 fi
7389
7390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393 fi
7394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7398 then :
7399 printf %s "(cached) " >&6
7400 else $as_nop
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 int i;
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"
7406 then :
7407 xorg_cv_cc_flag_unused_command_line_argument=yes
7408 else $as_nop
7409 xorg_cv_cc_flag_unused_command_line_argument=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7412 fi
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7416 CFLAGS="$xorg_testset_save_CFLAGS"
7417 fi
7418
7419 found="no"
7420
7421 if test $found = "no" ; then
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 fi
7425
7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428 fi
7429
7430 CFLAGS="$CFLAGS -Werror=init-self"
7431
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7433 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7434 cacheid=xorg_cv_cc_flag__Werror_init_self
7435 if eval test \${$cacheid+y}
7436 then :
7437 printf %s "(cached) " >&6
7438 else $as_nop
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 int i;
7442 int
7443 main (void)
7444 {
7445
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"
7451 then :
7452 eval $cacheid=yes
7453 else $as_nop
7454 eval $cacheid=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7457 conftest$ac_exeext conftest.$ac_ext
7458 fi
7459
7460
7461 CFLAGS="$xorg_testset_save_CFLAGS"
7462
7463 eval supported=\$$cacheid
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7465 printf "%s\n" "$supported" >&6; }
7466 if test "$supported" = "yes" ; then
7467 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7468 found="yes"
7469 fi
7470 fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 xorg_testset_save_CFLAGS="$CFLAGS"
7487
7488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7493 then :
7494 printf %s "(cached) " >&6
7495 else $as_nop
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 int i;
7499 _ACEOF
7500 if ac_fn_c_try_compile "$LINENO"
7501 then :
7502 xorg_cv_cc_flag_unknown_warning_option=yes
7503 else $as_nop
7504 xorg_cv_cc_flag_unknown_warning_option=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7507 fi
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7511 CFLAGS="$xorg_testset_save_CFLAGS"
7512 fi
7513
7514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517 fi
7518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7522 then :
7523 printf %s "(cached) " >&6
7524 else $as_nop
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 int i;
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"
7530 then :
7531 xorg_cv_cc_flag_unused_command_line_argument=yes
7532 else $as_nop
7533 xorg_cv_cc_flag_unused_command_line_argument=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7536 fi
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7540 CFLAGS="$xorg_testset_save_CFLAGS"
7541 fi
7542
7543 found="no"
7544
7545 if test $found = "no" ; then
7546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548 fi
7549
7550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7552 fi
7553
7554 CFLAGS="$CFLAGS -Werror=main"
7555
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7557 printf %s "checking if $CC supports -Werror=main... " >&6; }
7558 cacheid=xorg_cv_cc_flag__Werror_main
7559 if eval test \${$cacheid+y}
7560 then :
7561 printf %s "(cached) " >&6
7562 else $as_nop
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565 int i;
7566 int
7567 main (void)
7568 {
7569
7570 ;
7571 return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_link "$LINENO"
7575 then :
7576 eval $cacheid=yes
7577 else $as_nop
7578 eval $cacheid=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7581 conftest$ac_exeext conftest.$ac_ext
7582 fi
7583
7584
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586
7587 eval supported=\$$cacheid
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7589 printf "%s\n" "$supported" >&6; }
7590 if test "$supported" = "yes" ; then
7591 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7592 found="yes"
7593 fi
7594 fi
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610 xorg_testset_save_CFLAGS="$CFLAGS"
7611
7612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else $as_nop
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 int i;
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"
7625 then :
7626 xorg_cv_cc_flag_unknown_warning_option=yes
7627 else $as_nop
7628 xorg_cv_cc_flag_unknown_warning_option=no
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7631 fi
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7635 CFLAGS="$xorg_testset_save_CFLAGS"
7636 fi
7637
7638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641 fi
7642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7646 then :
7647 printf %s "(cached) " >&6
7648 else $as_nop
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 int i;
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"
7654 then :
7655 xorg_cv_cc_flag_unused_command_line_argument=yes
7656 else $as_nop
7657 xorg_cv_cc_flag_unused_command_line_argument=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7664 CFLAGS="$xorg_testset_save_CFLAGS"
7665 fi
7666
7667 found="no"
7668
7669 if test $found = "no" ; then
7670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672 fi
7673
7674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7676 fi
7677
7678 CFLAGS="$CFLAGS -Werror=missing-braces"
7679
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7681 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7682 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7683 if eval test \${$cacheid+y}
7684 then :
7685 printf %s "(cached) " >&6
7686 else $as_nop
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 int i;
7690 int
7691 main (void)
7692 {
7693
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 if ac_fn_c_try_link "$LINENO"
7699 then :
7700 eval $cacheid=yes
7701 else $as_nop
7702 eval $cacheid=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7705 conftest$ac_exeext conftest.$ac_ext
7706 fi
7707
7708
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711 eval supported=\$$cacheid
7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713 printf "%s\n" "$supported" >&6; }
7714 if test "$supported" = "yes" ; then
7715 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7716 found="yes"
7717 fi
7718 fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 xorg_testset_save_CFLAGS="$CFLAGS"
7735
7736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7741 then :
7742 printf %s "(cached) " >&6
7743 else $as_nop
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 int i;
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"
7749 then :
7750 xorg_cv_cc_flag_unknown_warning_option=yes
7751 else $as_nop
7752 xorg_cv_cc_flag_unknown_warning_option=no
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7755 fi
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7759 CFLAGS="$xorg_testset_save_CFLAGS"
7760 fi
7761
7762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765 fi
7766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 int i;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"
7778 then :
7779 xorg_cv_cc_flag_unused_command_line_argument=yes
7780 else $as_nop
7781 xorg_cv_cc_flag_unused_command_line_argument=no
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7784 fi
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7789 fi
7790
7791 found="no"
7792
7793 if test $found = "no" ; then
7794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796 fi
7797
7798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800 fi
7801
7802 CFLAGS="$CFLAGS -Werror=sequence-point"
7803
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7805 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7806 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7807 if eval test \${$cacheid+y}
7808 then :
7809 printf %s "(cached) " >&6
7810 else $as_nop
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 int i;
7814 int
7815 main (void)
7816 {
7817
7818 ;
7819 return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_link "$LINENO"
7823 then :
7824 eval $cacheid=yes
7825 else $as_nop
7826 eval $cacheid=no
7827 fi
7828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7829 conftest$ac_exeext conftest.$ac_ext
7830 fi
7831
7832
7833 CFLAGS="$xorg_testset_save_CFLAGS"
7834
7835 eval supported=\$$cacheid
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7837 printf "%s\n" "$supported" >&6; }
7838 if test "$supported" = "yes" ; then
7839 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7840 found="yes"
7841 fi
7842 fi
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858 xorg_testset_save_CFLAGS="$CFLAGS"
7859
7860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7865 then :
7866 printf %s "(cached) " >&6
7867 else $as_nop
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 int i;
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"
7873 then :
7874 xorg_cv_cc_flag_unknown_warning_option=yes
7875 else $as_nop
7876 xorg_cv_cc_flag_unknown_warning_option=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7879 fi
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884 fi
7885
7886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 fi
7890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7894 then :
7895 printf %s "(cached) " >&6
7896 else $as_nop
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 int i;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"
7902 then :
7903 xorg_cv_cc_flag_unused_command_line_argument=yes
7904 else $as_nop
7905 xorg_cv_cc_flag_unused_command_line_argument=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7908 fi
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7912 CFLAGS="$xorg_testset_save_CFLAGS"
7913 fi
7914
7915 found="no"
7916
7917 if test $found = "no" ; then
7918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920 fi
7921
7922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7924 fi
7925
7926 CFLAGS="$CFLAGS -Werror=return-type"
7927
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7929 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7930 cacheid=xorg_cv_cc_flag__Werror_return_type
7931 if eval test \${$cacheid+y}
7932 then :
7933 printf %s "(cached) " >&6
7934 else $as_nop
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 int i;
7938 int
7939 main (void)
7940 {
7941
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"
7947 then :
7948 eval $cacheid=yes
7949 else $as_nop
7950 eval $cacheid=no
7951 fi
7952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7953 conftest$ac_exeext conftest.$ac_ext
7954 fi
7955
7956
7957 CFLAGS="$xorg_testset_save_CFLAGS"
7958
7959 eval supported=\$$cacheid
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7961 printf "%s\n" "$supported" >&6; }
7962 if test "$supported" = "yes" ; then
7963 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7964 found="yes"
7965 fi
7966 fi
7967
7968 if test $found = "no" ; then
7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7971 fi
7972
7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975 fi
7976
7977 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7980 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7981 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7982 if eval test \${$cacheid+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else $as_nop
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 int
7990 main (void)
7991 {
7992
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 if ac_fn_c_try_link "$LINENO"
7998 then :
7999 eval $cacheid=yes
8000 else $as_nop
8001 eval $cacheid=no
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8004 conftest$ac_exeext conftest.$ac_ext
8005 fi
8006
8007
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010 eval supported=\$$cacheid
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012 printf "%s\n" "$supported" >&6; }
8013 if test "$supported" = "yes" ; then
8014 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8015 found="yes"
8016 fi
8017 fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else $as_nop
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"
8048 then :
8049 xorg_cv_cc_flag_unknown_warning_option=yes
8050 else $as_nop
8051 xorg_cv_cc_flag_unknown_warning_option=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8054 fi
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059 fi
8060
8061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064 fi
8065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8069 then :
8070 printf %s "(cached) " >&6
8071 else $as_nop
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 int i;
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"
8077 then :
8078 xorg_cv_cc_flag_unused_command_line_argument=yes
8079 else $as_nop
8080 xorg_cv_cc_flag_unused_command_line_argument=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8083 fi
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087 CFLAGS="$xorg_testset_save_CFLAGS"
8088 fi
8089
8090 found="no"
8091
8092 if test $found = "no" ; then
8093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099 fi
8100
8101 CFLAGS="$CFLAGS -Werror=trigraphs"
8102
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8104 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8105 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8106 if eval test \${$cacheid+y}
8107 then :
8108 printf %s "(cached) " >&6
8109 else $as_nop
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main (void)
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"
8122 then :
8123 eval $cacheid=yes
8124 else $as_nop
8125 eval $cacheid=no
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8128 conftest$ac_exeext conftest.$ac_ext
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=trigraphs"
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 $as_nop
8167 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 $as_nop
8175 xorg_cv_cc_flag_unknown_warning_option=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8178 fi
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8183 fi
8184
8185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8188 fi
8189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8193 then :
8194 printf %s "(cached) " >&6
8195 else $as_nop
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 int i;
8199 _ACEOF
8200 if ac_fn_c_try_compile "$LINENO"
8201 then :
8202 xorg_cv_cc_flag_unused_command_line_argument=yes
8203 else $as_nop
8204 xorg_cv_cc_flag_unused_command_line_argument=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8207 fi
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8211 CFLAGS="$xorg_testset_save_CFLAGS"
8212 fi
8213
8214 found="no"
8215
8216 if test $found = "no" ; then
8217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219 fi
8220
8221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8223 fi
8224
8225 CFLAGS="$CFLAGS -Werror=array-bounds"
8226
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8228 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8229 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8230 if eval test \${$cacheid+y}
8231 then :
8232 printf %s "(cached) " >&6
8233 else $as_nop
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int i;
8237 int
8238 main (void)
8239 {
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"
8246 then :
8247 eval $cacheid=yes
8248 else $as_nop
8249 eval $cacheid=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8252 conftest$ac_exeext conftest.$ac_ext
8253 fi
8254
8255
8256 CFLAGS="$xorg_testset_save_CFLAGS"
8257
8258 eval supported=\$$cacheid
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8260 printf "%s\n" "$supported" >&6; }
8261 if test "$supported" = "yes" ; then
8262 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8263 found="yes"
8264 fi
8265 fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281 xorg_testset_save_CFLAGS="$CFLAGS"
8282
8283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8286 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8287 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8288 then :
8289 printf %s "(cached) " >&6
8290 else $as_nop
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 int i;
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"
8296 then :
8297 xorg_cv_cc_flag_unknown_warning_option=yes
8298 else $as_nop
8299 xorg_cv_cc_flag_unknown_warning_option=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8302 fi
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8304 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307 fi
8308
8309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312 fi
8313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8315 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8316 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else $as_nop
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 int i;
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"
8325 then :
8326 xorg_cv_cc_flag_unused_command_line_argument=yes
8327 else $as_nop
8328 xorg_cv_cc_flag_unused_command_line_argument=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8331 fi
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8333 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8335 CFLAGS="$xorg_testset_save_CFLAGS"
8336 fi
8337
8338 found="no"
8339
8340 if test $found = "no" ; then
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 fi
8344
8345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8347 fi
8348
8349 CFLAGS="$CFLAGS -Werror=write-strings"
8350
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8352 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8353 cacheid=xorg_cv_cc_flag__Werror_write_strings
8354 if eval test \${$cacheid+y}
8355 then :
8356 printf %s "(cached) " >&6
8357 else $as_nop
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 int i;
8361 int
8362 main (void)
8363 {
8364
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"
8370 then :
8371 eval $cacheid=yes
8372 else $as_nop
8373 eval $cacheid=no
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8376 conftest$ac_exeext conftest.$ac_ext
8377 fi
8378
8379
8380 CFLAGS="$xorg_testset_save_CFLAGS"
8381
8382 eval supported=\$$cacheid
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8384 printf "%s\n" "$supported" >&6; }
8385 if test "$supported" = "yes" ; then
8386 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8387 found="yes"
8388 fi
8389 fi
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 xorg_testset_save_CFLAGS="$CFLAGS"
8406
8407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8410 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8411 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8412 then :
8413 printf %s "(cached) " >&6
8414 else $as_nop
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8417 int i;
8418 _ACEOF
8419 if ac_fn_c_try_compile "$LINENO"
8420 then :
8421 xorg_cv_cc_flag_unknown_warning_option=yes
8422 else $as_nop
8423 xorg_cv_cc_flag_unknown_warning_option=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8426 fi
8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8430 CFLAGS="$xorg_testset_save_CFLAGS"
8431 fi
8432
8433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436 fi
8437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else $as_nop
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 int i;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"
8449 then :
8450 xorg_cv_cc_flag_unused_command_line_argument=yes
8451 else $as_nop
8452 xorg_cv_cc_flag_unused_command_line_argument=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8455 fi
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8457 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8459 CFLAGS="$xorg_testset_save_CFLAGS"
8460 fi
8461
8462 found="no"
8463
8464 if test $found = "no" ; then
8465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 fi
8468
8469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471 fi
8472
8473 CFLAGS="$CFLAGS -Werror=address"
8474
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8476 printf %s "checking if $CC supports -Werror=address... " >&6; }
8477 cacheid=xorg_cv_cc_flag__Werror_address
8478 if eval test \${$cacheid+y}
8479 then :
8480 printf %s "(cached) " >&6
8481 else $as_nop
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 int i;
8485 int
8486 main (void)
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"
8494 then :
8495 eval $cacheid=yes
8496 else $as_nop
8497 eval $cacheid=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8500 conftest$ac_exeext conftest.$ac_ext
8501 fi
8502
8503
8504 CFLAGS="$xorg_testset_save_CFLAGS"
8505
8506 eval supported=\$$cacheid
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8508 printf "%s\n" "$supported" >&6; }
8509 if test "$supported" = "yes" ; then
8510 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8511 found="yes"
8512 fi
8513 fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529 xorg_testset_save_CFLAGS="$CFLAGS"
8530
8531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8536 then :
8537 printf %s "(cached) " >&6
8538 else $as_nop
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541 int i;
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"
8544 then :
8545 xorg_cv_cc_flag_unknown_warning_option=yes
8546 else $as_nop
8547 xorg_cv_cc_flag_unknown_warning_option=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8550 fi
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8554 CFLAGS="$xorg_testset_save_CFLAGS"
8555 fi
8556
8557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8560 fi
8561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8565 then :
8566 printf %s "(cached) " >&6
8567 else $as_nop
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 int i;
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"
8573 then :
8574 xorg_cv_cc_flag_unused_command_line_argument=yes
8575 else $as_nop
8576 xorg_cv_cc_flag_unused_command_line_argument=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8579 fi
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8581 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8583 CFLAGS="$xorg_testset_save_CFLAGS"
8584 fi
8585
8586 found="no"
8587
8588 if test $found = "no" ; then
8589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591 fi
8592
8593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595 fi
8596
8597 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8598
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8600 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8601 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8602 if eval test \${$cacheid+y}
8603 then :
8604 printf %s "(cached) " >&6
8605 else $as_nop
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 int i;
8609 int
8610 main (void)
8611 {
8612
8613 ;
8614 return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_link "$LINENO"
8618 then :
8619 eval $cacheid=yes
8620 else $as_nop
8621 eval $cacheid=no
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8624 conftest$ac_exeext conftest.$ac_ext
8625 fi
8626
8627
8628 CFLAGS="$xorg_testset_save_CFLAGS"
8629
8630 eval supported=\$$cacheid
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632 printf "%s\n" "$supported" >&6; }
8633 if test "$supported" = "yes" ; then
8634 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8635 found="yes"
8636 fi
8637 fi
8638
8639 if test $found = "no" ; then
8640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8642 fi
8643
8644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646 fi
8647
8648 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8649
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8651 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8652 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8653 if eval test \${$cacheid+y}
8654 then :
8655 printf %s "(cached) " >&6
8656 else $as_nop
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 int i;
8660 int
8661 main (void)
8662 {
8663
8664 ;
8665 return 0;
8666 }
8667 _ACEOF
8668 if ac_fn_c_try_link "$LINENO"
8669 then :
8670 eval $cacheid=yes
8671 else $as_nop
8672 eval $cacheid=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678
8679 CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681 eval supported=\$$cacheid
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683 printf "%s\n" "$supported" >&6; }
8684 if test "$supported" = "yes" ; then
8685 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8686 found="yes"
8687 fi
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8711 then :
8712 printf %s "(cached) " >&6
8713 else $as_nop
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 int i;
8717 _ACEOF
8718 if ac_fn_c_try_compile "$LINENO"
8719 then :
8720 xorg_cv_cc_flag_unknown_warning_option=yes
8721 else $as_nop
8722 xorg_cv_cc_flag_unknown_warning_option=no
8723 fi
8724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8725 fi
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8727 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8729 CFLAGS="$xorg_testset_save_CFLAGS"
8730 fi
8731
8732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735 fi
8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8740 then :
8741 printf %s "(cached) " >&6
8742 else $as_nop
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 int i;
8746 _ACEOF
8747 if ac_fn_c_try_compile "$LINENO"
8748 then :
8749 xorg_cv_cc_flag_unused_command_line_argument=yes
8750 else $as_nop
8751 xorg_cv_cc_flag_unused_command_line_argument=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8754 fi
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8758 CFLAGS="$xorg_testset_save_CFLAGS"
8759 fi
8760
8761 found="no"
8762
8763 if test $found = "no" ; then
8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766 fi
8767
8768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8770 fi
8771
8772 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8773
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8775 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8776 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8777 if eval test \${$cacheid+y}
8778 then :
8779 printf %s "(cached) " >&6
8780 else $as_nop
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 int
8785 main (void)
8786 {
8787
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"
8793 then :
8794 eval $cacheid=yes
8795 else $as_nop
8796 eval $cacheid=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8799 conftest$ac_exeext conftest.$ac_ext
8800 fi
8801
8802
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804
8805 eval supported=\$$cacheid
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8807 printf "%s\n" "$supported" >&6; }
8808 if test "$supported" = "yes" ; then
8809 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8810 found="yes"
8811 fi
8812 fi
8813
8814 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8815 else
8816 { 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
8817 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;}
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 xorg_testset_save_CFLAGS="$CFLAGS"
8832
8833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8838 then :
8839 printf %s "(cached) " >&6
8840 else $as_nop
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 int i;
8844 _ACEOF
8845 if ac_fn_c_try_compile "$LINENO"
8846 then :
8847 xorg_cv_cc_flag_unknown_warning_option=yes
8848 else $as_nop
8849 xorg_cv_cc_flag_unknown_warning_option=no
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8852 fi
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8856 CFLAGS="$xorg_testset_save_CFLAGS"
8857 fi
8858
8859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862 fi
8863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else $as_nop
8870 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_unused_command_line_argument=yes
8877 else $as_nop
8878 xorg_cv_cc_flag_unused_command_line_argument=no
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8881 fi
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885 CFLAGS="$xorg_testset_save_CFLAGS"
8886 fi
8887
8888 found="no"
8889
8890 if test $found = "no" ; then
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894
8895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 fi
8898
8899 CFLAGS="$CFLAGS -Wimplicit"
8900
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8902 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8903 cacheid=xorg_cv_cc_flag__Wimplicit
8904 if eval test \${$cacheid+y}
8905 then :
8906 printf %s "(cached) " >&6
8907 else $as_nop
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 int i;
8911 int
8912 main (void)
8913 {
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"
8920 then :
8921 eval $cacheid=yes
8922 else $as_nop
8923 eval $cacheid=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8926 conftest$ac_exeext conftest.$ac_ext
8927 fi
8928
8929
8930 CFLAGS="$xorg_testset_save_CFLAGS"
8931
8932 eval supported=\$$cacheid
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8934 printf "%s\n" "$supported" >&6; }
8935 if test "$supported" = "yes" ; then
8936 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8937 found="yes"
8938 fi
8939 fi
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955 xorg_testset_save_CFLAGS="$CFLAGS"
8956
8957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8962 then :
8963 printf %s "(cached) " >&6
8964 else $as_nop
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 int i;
8968 _ACEOF
8969 if ac_fn_c_try_compile "$LINENO"
8970 then :
8971 xorg_cv_cc_flag_unknown_warning_option=yes
8972 else $as_nop
8973 xorg_cv_cc_flag_unknown_warning_option=no
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8976 fi
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8980 CFLAGS="$xorg_testset_save_CFLAGS"
8981 fi
8982
8983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8986 fi
8987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8991 then :
8992 printf %s "(cached) " >&6
8993 else $as_nop
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 int i;
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"
8999 then :
9000 xorg_cv_cc_flag_unused_command_line_argument=yes
9001 else $as_nop
9002 xorg_cv_cc_flag_unused_command_line_argument=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9005 fi
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9010 fi
9011
9012 found="no"
9013
9014 if test $found = "no" ; then
9015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 fi
9018
9019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9021 fi
9022
9023 CFLAGS="$CFLAGS -Wnonnull"
9024
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9026 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9027 cacheid=xorg_cv_cc_flag__Wnonnull
9028 if eval test \${$cacheid+y}
9029 then :
9030 printf %s "(cached) " >&6
9031 else $as_nop
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 int i;
9035 int
9036 main (void)
9037 {
9038
9039 ;
9040 return 0;
9041 }
9042 _ACEOF
9043 if ac_fn_c_try_link "$LINENO"
9044 then :
9045 eval $cacheid=yes
9046 else $as_nop
9047 eval $cacheid=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9050 conftest$ac_exeext conftest.$ac_ext
9051 fi
9052
9053
9054 CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056 eval supported=\$$cacheid
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058 printf "%s\n" "$supported" >&6; }
9059 if test "$supported" = "yes" ; then
9060 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9061 found="yes"
9062 fi
9063 fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9086 then :
9087 printf %s "(cached) " >&6
9088 else $as_nop
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 int i;
9092 _ACEOF
9093 if ac_fn_c_try_compile "$LINENO"
9094 then :
9095 xorg_cv_cc_flag_unknown_warning_option=yes
9096 else $as_nop
9097 xorg_cv_cc_flag_unknown_warning_option=no
9098 fi
9099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9100 fi
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9104 CFLAGS="$xorg_testset_save_CFLAGS"
9105 fi
9106
9107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110 fi
9111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9115 then :
9116 printf %s "(cached) " >&6
9117 else $as_nop
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 int i;
9121 _ACEOF
9122 if ac_fn_c_try_compile "$LINENO"
9123 then :
9124 xorg_cv_cc_flag_unused_command_line_argument=yes
9125 else $as_nop
9126 xorg_cv_cc_flag_unused_command_line_argument=no
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9129 fi
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9131 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9133 CFLAGS="$xorg_testset_save_CFLAGS"
9134 fi
9135
9136 found="no"
9137
9138 if test $found = "no" ; then
9139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141 fi
9142
9143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9145 fi
9146
9147 CFLAGS="$CFLAGS -Winit-self"
9148
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9150 printf %s "checking if $CC supports -Winit-self... " >&6; }
9151 cacheid=xorg_cv_cc_flag__Winit_self
9152 if eval test \${$cacheid+y}
9153 then :
9154 printf %s "(cached) " >&6
9155 else $as_nop
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 int i;
9159 int
9160 main (void)
9161 {
9162
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"
9168 then :
9169 eval $cacheid=yes
9170 else $as_nop
9171 eval $cacheid=no
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9174 conftest$ac_exeext conftest.$ac_ext
9175 fi
9176
9177
9178 CFLAGS="$xorg_testset_save_CFLAGS"
9179
9180 eval supported=\$$cacheid
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9182 printf "%s\n" "$supported" >&6; }
9183 if test "$supported" = "yes" ; then
9184 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9185 found="yes"
9186 fi
9187 fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203 xorg_testset_save_CFLAGS="$CFLAGS"
9204
9205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9209 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9210 then :
9211 printf %s "(cached) " >&6
9212 else $as_nop
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 int i;
9216 _ACEOF
9217 if ac_fn_c_try_compile "$LINENO"
9218 then :
9219 xorg_cv_cc_flag_unknown_warning_option=yes
9220 else $as_nop
9221 xorg_cv_cc_flag_unknown_warning_option=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9224 fi
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229 fi
9230
9231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234 fi
9235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9239 then :
9240 printf %s "(cached) " >&6
9241 else $as_nop
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 int i;
9245 _ACEOF
9246 if ac_fn_c_try_compile "$LINENO"
9247 then :
9248 xorg_cv_cc_flag_unused_command_line_argument=yes
9249 else $as_nop
9250 xorg_cv_cc_flag_unused_command_line_argument=no
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9253 fi
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9257 CFLAGS="$xorg_testset_save_CFLAGS"
9258 fi
9259
9260 found="no"
9261
9262 if test $found = "no" ; then
9263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265 fi
9266
9267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9269 fi
9270
9271 CFLAGS="$CFLAGS -Wmain"
9272
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9274 printf %s "checking if $CC supports -Wmain... " >&6; }
9275 cacheid=xorg_cv_cc_flag__Wmain
9276 if eval test \${$cacheid+y}
9277 then :
9278 printf %s "(cached) " >&6
9279 else $as_nop
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 int i;
9283 int
9284 main (void)
9285 {
9286
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"
9292 then :
9293 eval $cacheid=yes
9294 else $as_nop
9295 eval $cacheid=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9298 conftest$ac_exeext conftest.$ac_ext
9299 fi
9300
9301
9302 CFLAGS="$xorg_testset_save_CFLAGS"
9303
9304 eval supported=\$$cacheid
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9306 printf "%s\n" "$supported" >&6; }
9307 if test "$supported" = "yes" ; then
9308 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9309 found="yes"
9310 fi
9311 fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327 xorg_testset_save_CFLAGS="$CFLAGS"
9328
9329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9333 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9334 then :
9335 printf %s "(cached) " >&6
9336 else $as_nop
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 int i;
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"
9342 then :
9343 xorg_cv_cc_flag_unknown_warning_option=yes
9344 else $as_nop
9345 xorg_cv_cc_flag_unknown_warning_option=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9348 fi
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9350 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9352 CFLAGS="$xorg_testset_save_CFLAGS"
9353 fi
9354
9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358 fi
9359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9361 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9362 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9363 then :
9364 printf %s "(cached) " >&6
9365 else $as_nop
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"
9371 then :
9372 xorg_cv_cc_flag_unused_command_line_argument=yes
9373 else $as_nop
9374 xorg_cv_cc_flag_unused_command_line_argument=no
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9377 fi
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9381 CFLAGS="$xorg_testset_save_CFLAGS"
9382 fi
9383
9384 found="no"
9385
9386 if test $found = "no" ; then
9387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389 fi
9390
9391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393 fi
9394
9395 CFLAGS="$CFLAGS -Wmissing-braces"
9396
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9398 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9399 cacheid=xorg_cv_cc_flag__Wmissing_braces
9400 if eval test \${$cacheid+y}
9401 then :
9402 printf %s "(cached) " >&6
9403 else $as_nop
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 int i;
9407 int
9408 main (void)
9409 {
9410
9411 ;
9412 return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"
9416 then :
9417 eval $cacheid=yes
9418 else $as_nop
9419 eval $cacheid=no
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9422 conftest$ac_exeext conftest.$ac_ext
9423 fi
9424
9425
9426 CFLAGS="$xorg_testset_save_CFLAGS"
9427
9428 eval supported=\$$cacheid
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9430 printf "%s\n" "$supported" >&6; }
9431 if test "$supported" = "yes" ; then
9432 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9433 found="yes"
9434 fi
9435 fi
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 xorg_testset_save_CFLAGS="$CFLAGS"
9452
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9458 then :
9459 printf %s "(cached) " >&6
9460 else $as_nop
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 int i;
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"
9466 then :
9467 xorg_cv_cc_flag_unknown_warning_option=yes
9468 else $as_nop
9469 xorg_cv_cc_flag_unknown_warning_option=no
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9472 fi
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9477 fi
9478
9479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482 fi
9483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9487 then :
9488 printf %s "(cached) " >&6
9489 else $as_nop
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 int i;
9493 _ACEOF
9494 if ac_fn_c_try_compile "$LINENO"
9495 then :
9496 xorg_cv_cc_flag_unused_command_line_argument=yes
9497 else $as_nop
9498 xorg_cv_cc_flag_unused_command_line_argument=no
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9501 fi
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9505 CFLAGS="$xorg_testset_save_CFLAGS"
9506 fi
9507
9508 found="no"
9509
9510 if test $found = "no" ; then
9511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513 fi
9514
9515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9517 fi
9518
9519 CFLAGS="$CFLAGS -Wsequence-point"
9520
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9522 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9523 cacheid=xorg_cv_cc_flag__Wsequence_point
9524 if eval test \${$cacheid+y}
9525 then :
9526 printf %s "(cached) " >&6
9527 else $as_nop
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int i;
9531 int
9532 main (void)
9533 {
9534
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"
9540 then :
9541 eval $cacheid=yes
9542 else $as_nop
9543 eval $cacheid=no
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9546 conftest$ac_exeext conftest.$ac_ext
9547 fi
9548
9549
9550 CFLAGS="$xorg_testset_save_CFLAGS"
9551
9552 eval supported=\$$cacheid
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9554 printf "%s\n" "$supported" >&6; }
9555 if test "$supported" = "yes" ; then
9556 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9557 found="yes"
9558 fi
9559 fi
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 xorg_testset_save_CFLAGS="$CFLAGS"
9576
9577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9580 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9581 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9582 then :
9583 printf %s "(cached) " >&6
9584 else $as_nop
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 int i;
9588 _ACEOF
9589 if ac_fn_c_try_compile "$LINENO"
9590 then :
9591 xorg_cv_cc_flag_unknown_warning_option=yes
9592 else $as_nop
9593 xorg_cv_cc_flag_unknown_warning_option=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9596 fi
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9598 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9600 CFLAGS="$xorg_testset_save_CFLAGS"
9601 fi
9602
9603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9606 fi
9607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9611 then :
9612 printf %s "(cached) " >&6
9613 else $as_nop
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 int i;
9617 _ACEOF
9618 if ac_fn_c_try_compile "$LINENO"
9619 then :
9620 xorg_cv_cc_flag_unused_command_line_argument=yes
9621 else $as_nop
9622 xorg_cv_cc_flag_unused_command_line_argument=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9625 fi
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9627 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9629 CFLAGS="$xorg_testset_save_CFLAGS"
9630 fi
9631
9632 found="no"
9633
9634 if test $found = "no" ; then
9635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637 fi
9638
9639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9641 fi
9642
9643 CFLAGS="$CFLAGS -Wreturn-type"
9644
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9646 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9647 cacheid=xorg_cv_cc_flag__Wreturn_type
9648 if eval test \${$cacheid+y}
9649 then :
9650 printf %s "(cached) " >&6
9651 else $as_nop
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 int i;
9655 int
9656 main (void)
9657 {
9658
9659 ;
9660 return 0;
9661 }
9662 _ACEOF
9663 if ac_fn_c_try_link "$LINENO"
9664 then :
9665 eval $cacheid=yes
9666 else $as_nop
9667 eval $cacheid=no
9668 fi
9669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9670 conftest$ac_exeext conftest.$ac_ext
9671 fi
9672
9673
9674 CFLAGS="$xorg_testset_save_CFLAGS"
9675
9676 eval supported=\$$cacheid
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9678 printf "%s\n" "$supported" >&6; }
9679 if test "$supported" = "yes" ; then
9680 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9681 found="yes"
9682 fi
9683 fi
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699 xorg_testset_save_CFLAGS="$CFLAGS"
9700
9701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9704 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9705 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9706 then :
9707 printf %s "(cached) " >&6
9708 else $as_nop
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 int i;
9712 _ACEOF
9713 if ac_fn_c_try_compile "$LINENO"
9714 then :
9715 xorg_cv_cc_flag_unknown_warning_option=yes
9716 else $as_nop
9717 xorg_cv_cc_flag_unknown_warning_option=no
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9720 fi
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9724 CFLAGS="$xorg_testset_save_CFLAGS"
9725 fi
9726
9727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730 fi
9731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9735 then :
9736 printf %s "(cached) " >&6
9737 else $as_nop
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 int i;
9741 _ACEOF
9742 if ac_fn_c_try_compile "$LINENO"
9743 then :
9744 xorg_cv_cc_flag_unused_command_line_argument=yes
9745 else $as_nop
9746 xorg_cv_cc_flag_unused_command_line_argument=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9749 fi
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754 fi
9755
9756 found="no"
9757
9758 if test $found = "no" ; then
9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761 fi
9762
9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9765 fi
9766
9767 CFLAGS="$CFLAGS -Wtrigraphs"
9768
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9770 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9771 cacheid=xorg_cv_cc_flag__Wtrigraphs
9772 if eval test \${$cacheid+y}
9773 then :
9774 printf %s "(cached) " >&6
9775 else $as_nop
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 int i;
9779 int
9780 main (void)
9781 {
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"
9788 then :
9789 eval $cacheid=yes
9790 else $as_nop
9791 eval $cacheid=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9794 conftest$ac_exeext conftest.$ac_ext
9795 fi
9796
9797
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799
9800 eval supported=\$$cacheid
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802 printf "%s\n" "$supported" >&6; }
9803 if test "$supported" = "yes" ; then
9804 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9805 found="yes"
9806 fi
9807 fi
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823 xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9830 then :
9831 printf %s "(cached) " >&6
9832 else $as_nop
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 int i;
9836 _ACEOF
9837 if ac_fn_c_try_compile "$LINENO"
9838 then :
9839 xorg_cv_cc_flag_unknown_warning_option=yes
9840 else $as_nop
9841 xorg_cv_cc_flag_unknown_warning_option=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9844 fi
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9848 CFLAGS="$xorg_testset_save_CFLAGS"
9849 fi
9850
9851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854 fi
9855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9859 then :
9860 printf %s "(cached) " >&6
9861 else $as_nop
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9864 int i;
9865 _ACEOF
9866 if ac_fn_c_try_compile "$LINENO"
9867 then :
9868 xorg_cv_cc_flag_unused_command_line_argument=yes
9869 else $as_nop
9870 xorg_cv_cc_flag_unused_command_line_argument=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9873 fi
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9877 CFLAGS="$xorg_testset_save_CFLAGS"
9878 fi
9879
9880 found="no"
9881
9882 if test $found = "no" ; then
9883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885 fi
9886
9887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9889 fi
9890
9891 CFLAGS="$CFLAGS -Warray-bounds"
9892
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9894 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9895 cacheid=xorg_cv_cc_flag__Warray_bounds
9896 if eval test \${$cacheid+y}
9897 then :
9898 printf %s "(cached) " >&6
9899 else $as_nop
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 int i;
9903 int
9904 main (void)
9905 {
9906
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 if ac_fn_c_try_link "$LINENO"
9912 then :
9913 eval $cacheid=yes
9914 else $as_nop
9915 eval $cacheid=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9918 conftest$ac_exeext conftest.$ac_ext
9919 fi
9920
9921
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9923
9924 eval supported=\$$cacheid
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9926 printf "%s\n" "$supported" >&6; }
9927 if test "$supported" = "yes" ; then
9928 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9929 found="yes"
9930 fi
9931 fi
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947 xorg_testset_save_CFLAGS="$CFLAGS"
9948
9949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9954 then :
9955 printf %s "(cached) " >&6
9956 else $as_nop
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 int i;
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"
9962 then :
9963 xorg_cv_cc_flag_unknown_warning_option=yes
9964 else $as_nop
9965 xorg_cv_cc_flag_unknown_warning_option=no
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9968 fi
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9972 CFLAGS="$xorg_testset_save_CFLAGS"
9973 fi
9974
9975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978 fi
9979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9983 then :
9984 printf %s "(cached) " >&6
9985 else $as_nop
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 int i;
9989 _ACEOF
9990 if ac_fn_c_try_compile "$LINENO"
9991 then :
9992 xorg_cv_cc_flag_unused_command_line_argument=yes
9993 else $as_nop
9994 xorg_cv_cc_flag_unused_command_line_argument=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9997 fi
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10001 CFLAGS="$xorg_testset_save_CFLAGS"
10002 fi
10003
10004 found="no"
10005
10006 if test $found = "no" ; then
10007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10009 fi
10010
10011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10013 fi
10014
10015 CFLAGS="$CFLAGS -Wwrite-strings"
10016
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10018 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10019 cacheid=xorg_cv_cc_flag__Wwrite_strings
10020 if eval test \${$cacheid+y}
10021 then :
10022 printf %s "(cached) " >&6
10023 else $as_nop
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10026 int i;
10027 int
10028 main (void)
10029 {
10030
10031 ;
10032 return 0;
10033 }
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"
10036 then :
10037 eval $cacheid=yes
10038 else $as_nop
10039 eval $cacheid=no
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10042 conftest$ac_exeext conftest.$ac_ext
10043 fi
10044
10045
10046 CFLAGS="$xorg_testset_save_CFLAGS"
10047
10048 eval supported=\$$cacheid
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10050 printf "%s\n" "$supported" >&6; }
10051 if test "$supported" = "yes" ; then
10052 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10053 found="yes"
10054 fi
10055 fi
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071 xorg_testset_save_CFLAGS="$CFLAGS"
10072
10073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10076 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10077 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10078 then :
10079 printf %s "(cached) " >&6
10080 else $as_nop
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 int i;
10084 _ACEOF
10085 if ac_fn_c_try_compile "$LINENO"
10086 then :
10087 xorg_cv_cc_flag_unknown_warning_option=yes
10088 else $as_nop
10089 xorg_cv_cc_flag_unknown_warning_option=no
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10092 fi
10093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10096 CFLAGS="$xorg_testset_save_CFLAGS"
10097 fi
10098
10099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102 fi
10103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10107 then :
10108 printf %s "(cached) " >&6
10109 else $as_nop
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112 int i;
10113 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"
10115 then :
10116 xorg_cv_cc_flag_unused_command_line_argument=yes
10117 else $as_nop
10118 xorg_cv_cc_flag_unused_command_line_argument=no
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10121 fi
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10125 CFLAGS="$xorg_testset_save_CFLAGS"
10126 fi
10127
10128 found="no"
10129
10130 if test $found = "no" ; then
10131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133 fi
10134
10135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10137 fi
10138
10139 CFLAGS="$CFLAGS -Waddress"
10140
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10142 printf %s "checking if $CC supports -Waddress... " >&6; }
10143 cacheid=xorg_cv_cc_flag__Waddress
10144 if eval test \${$cacheid+y}
10145 then :
10146 printf %s "(cached) " >&6
10147 else $as_nop
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 int i;
10151 int
10152 main (void)
10153 {
10154
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"
10160 then :
10161 eval $cacheid=yes
10162 else $as_nop
10163 eval $cacheid=no
10164 fi
10165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10166 conftest$ac_exeext conftest.$ac_ext
10167 fi
10168
10169
10170 CFLAGS="$xorg_testset_save_CFLAGS"
10171
10172 eval supported=\$$cacheid
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10174 printf "%s\n" "$supported" >&6; }
10175 if test "$supported" = "yes" ; then
10176 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10177 found="yes"
10178 fi
10179 fi
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 xorg_testset_save_CFLAGS="$CFLAGS"
10196
10197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10201 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10202 then :
10203 printf %s "(cached) " >&6
10204 else $as_nop
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207 int i;
10208 _ACEOF
10209 if ac_fn_c_try_compile "$LINENO"
10210 then :
10211 xorg_cv_cc_flag_unknown_warning_option=yes
10212 else $as_nop
10213 xorg_cv_cc_flag_unknown_warning_option=no
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10216 fi
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10220 CFLAGS="$xorg_testset_save_CFLAGS"
10221 fi
10222
10223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226 fi
10227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10231 then :
10232 printf %s "(cached) " >&6
10233 else $as_nop
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 int i;
10237 _ACEOF
10238 if ac_fn_c_try_compile "$LINENO"
10239 then :
10240 xorg_cv_cc_flag_unused_command_line_argument=yes
10241 else $as_nop
10242 xorg_cv_cc_flag_unused_command_line_argument=no
10243 fi
10244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10245 fi
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10249 CFLAGS="$xorg_testset_save_CFLAGS"
10250 fi
10251
10252 found="no"
10253
10254 if test $found = "no" ; then
10255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257 fi
10258
10259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10261 fi
10262
10263 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10264
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10266 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10267 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10268 if eval test \${$cacheid+y}
10269 then :
10270 printf %s "(cached) " >&6
10271 else $as_nop
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274 int i;
10275 int
10276 main (void)
10277 {
10278
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 if ac_fn_c_try_link "$LINENO"
10284 then :
10285 eval $cacheid=yes
10286 else $as_nop
10287 eval $cacheid=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10290 conftest$ac_exeext conftest.$ac_ext
10291 fi
10292
10293
10294 CFLAGS="$xorg_testset_save_CFLAGS"
10295
10296 eval supported=\$$cacheid
10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10298 printf "%s\n" "$supported" >&6; }
10299 if test "$supported" = "yes" ; then
10300 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10301 found="yes"
10302 fi
10303 fi
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319 xorg_testset_save_CFLAGS="$CFLAGS"
10320
10321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10325 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10326 then :
10327 printf %s "(cached) " >&6
10328 else $as_nop
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10331 int i;
10332 _ACEOF
10333 if ac_fn_c_try_compile "$LINENO"
10334 then :
10335 xorg_cv_cc_flag_unknown_warning_option=yes
10336 else $as_nop
10337 xorg_cv_cc_flag_unknown_warning_option=no
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10340 fi
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10344 CFLAGS="$xorg_testset_save_CFLAGS"
10345 fi
10346
10347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10350 fi
10351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10355 then :
10356 printf %s "(cached) " >&6
10357 else $as_nop
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360 int i;
10361 _ACEOF
10362 if ac_fn_c_try_compile "$LINENO"
10363 then :
10364 xorg_cv_cc_flag_unused_command_line_argument=yes
10365 else $as_nop
10366 xorg_cv_cc_flag_unused_command_line_argument=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10369 fi
10370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10373 CFLAGS="$xorg_testset_save_CFLAGS"
10374 fi
10375
10376 found="no"
10377
10378 if test $found = "no" ; then
10379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381 fi
10382
10383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10385 fi
10386
10387 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10388
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10390 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10391 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10392 if eval test \${$cacheid+y}
10393 then :
10394 printf %s "(cached) " >&6
10395 else $as_nop
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 int i;
10399 int
10400 main (void)
10401 {
10402
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 if ac_fn_c_try_link "$LINENO"
10408 then :
10409 eval $cacheid=yes
10410 else $as_nop
10411 eval $cacheid=no
10412 fi
10413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10414 conftest$ac_exeext conftest.$ac_ext
10415 fi
10416
10417
10418 CFLAGS="$xorg_testset_save_CFLAGS"
10419
10420 eval supported=\$$cacheid
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10422 printf "%s\n" "$supported" >&6; }
10423 if test "$supported" = "yes" ; then
10424 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10425 found="yes"
10426 fi
10427 fi
10428
10429
10430 fi
10431
10432
10433
10434
10435
10436
10437
10438 CWARNFLAGS="$BASE_CFLAGS"
10439 if test "x$GCC" = xyes ; then
10440 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10441 fi
10442
10443
10444
10445
10446
10447
10448
10449
10450 # Check whether --enable-strict-compilation was given.
10451 if test ${enable_strict_compilation+y}
10452 then :
10453 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10454 else $as_nop
10455 STRICT_COMPILE=no
10456 fi
10457
10458
10459
10460
10461
10462
10463 STRICT_CFLAGS=""
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477 xorg_testset_save_CFLAGS="$CFLAGS"
10478
10479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10483 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10484 then :
10485 printf %s "(cached) " >&6
10486 else $as_nop
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10489 int i;
10490 _ACEOF
10491 if ac_fn_c_try_compile "$LINENO"
10492 then :
10493 xorg_cv_cc_flag_unknown_warning_option=yes
10494 else $as_nop
10495 xorg_cv_cc_flag_unknown_warning_option=no
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10498 fi
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10500 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10502 CFLAGS="$xorg_testset_save_CFLAGS"
10503 fi
10504
10505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508 fi
10509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10511 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10512 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10513 then :
10514 printf %s "(cached) " >&6
10515 else $as_nop
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 int i;
10519 _ACEOF
10520 if ac_fn_c_try_compile "$LINENO"
10521 then :
10522 xorg_cv_cc_flag_unused_command_line_argument=yes
10523 else $as_nop
10524 xorg_cv_cc_flag_unused_command_line_argument=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10527 fi
10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10529 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10531 CFLAGS="$xorg_testset_save_CFLAGS"
10532 fi
10533
10534 found="no"
10535
10536 if test $found = "no" ; then
10537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539 fi
10540
10541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10543 fi
10544
10545 CFLAGS="$CFLAGS -pedantic"
10546
10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10548 printf %s "checking if $CC supports -pedantic... " >&6; }
10549 cacheid=xorg_cv_cc_flag__pedantic
10550 if eval test \${$cacheid+y}
10551 then :
10552 printf %s "(cached) " >&6
10553 else $as_nop
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 int i;
10557 int
10558 main (void)
10559 {
10560
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"
10566 then :
10567 eval $cacheid=yes
10568 else $as_nop
10569 eval $cacheid=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10572 conftest$ac_exeext conftest.$ac_ext
10573 fi
10574
10575
10576 CFLAGS="$xorg_testset_save_CFLAGS"
10577
10578 eval supported=\$$cacheid
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10580 printf "%s\n" "$supported" >&6; }
10581 if test "$supported" = "yes" ; then
10582 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10583 found="yes"
10584 fi
10585 fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601 xorg_testset_save_CFLAGS="$CFLAGS"
10602
10603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10607 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10608 then :
10609 printf %s "(cached) " >&6
10610 else $as_nop
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 int i;
10614 _ACEOF
10615 if ac_fn_c_try_compile "$LINENO"
10616 then :
10617 xorg_cv_cc_flag_unknown_warning_option=yes
10618 else $as_nop
10619 xorg_cv_cc_flag_unknown_warning_option=no
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10622 fi
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10624 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10626 CFLAGS="$xorg_testset_save_CFLAGS"
10627 fi
10628
10629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10632 fi
10633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10637 then :
10638 printf %s "(cached) " >&6
10639 else $as_nop
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642 int i;
10643 _ACEOF
10644 if ac_fn_c_try_compile "$LINENO"
10645 then :
10646 xorg_cv_cc_flag_unused_command_line_argument=yes
10647 else $as_nop
10648 xorg_cv_cc_flag_unused_command_line_argument=no
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10651 fi
10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10653 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10655 CFLAGS="$xorg_testset_save_CFLAGS"
10656 fi
10657
10658 found="no"
10659
10660 if test $found = "no" ; then
10661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10663 fi
10664
10665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10667 fi
10668
10669 CFLAGS="$CFLAGS -Werror"
10670
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10672 printf %s "checking if $CC supports -Werror... " >&6; }
10673 cacheid=xorg_cv_cc_flag__Werror
10674 if eval test \${$cacheid+y}
10675 then :
10676 printf %s "(cached) " >&6
10677 else $as_nop
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 int i;
10681 int
10682 main (void)
10683 {
10684
10685 ;
10686 return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"
10690 then :
10691 eval $cacheid=yes
10692 else $as_nop
10693 eval $cacheid=no
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10696 conftest$ac_exeext conftest.$ac_ext
10697 fi
10698
10699
10700 CFLAGS="$xorg_testset_save_CFLAGS"
10701
10702 eval supported=\$$cacheid
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10704 printf "%s\n" "$supported" >&6; }
10705 if test "$supported" = "yes" ; then
10706 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10707 found="yes"
10708 fi
10709 fi
10710
10711 if test $found = "no" ; then
10712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10714 fi
10715
10716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10718 fi
10719
10720 CFLAGS="$CFLAGS -errwarn"
10721
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10723 printf %s "checking if $CC supports -errwarn... " >&6; }
10724 cacheid=xorg_cv_cc_flag__errwarn
10725 if eval test \${$cacheid+y}
10726 then :
10727 printf %s "(cached) " >&6
10728 else $as_nop
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 int i;
10732 int
10733 main (void)
10734 {
10735
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"
10741 then :
10742 eval $cacheid=yes
10743 else $as_nop
10744 eval $cacheid=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747 conftest$ac_exeext conftest.$ac_ext
10748 fi
10749
10750
10751 CFLAGS="$xorg_testset_save_CFLAGS"
10752
10753 eval supported=\$$cacheid
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10755 printf "%s\n" "$supported" >&6; }
10756 if test "$supported" = "yes" ; then
10757 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10758 found="yes"
10759 fi
10760 fi
10761
10762
10763
10764 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10765 # activate it with -Werror, so we add it here explicitly.
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779 xorg_testset_save_CFLAGS="$CFLAGS"
10780
10781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10784 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10785 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10786 then :
10787 printf %s "(cached) " >&6
10788 else $as_nop
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 int i;
10792 _ACEOF
10793 if ac_fn_c_try_compile "$LINENO"
10794 then :
10795 xorg_cv_cc_flag_unknown_warning_option=yes
10796 else $as_nop
10797 xorg_cv_cc_flag_unknown_warning_option=no
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10800 fi
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10802 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10804 CFLAGS="$xorg_testset_save_CFLAGS"
10805 fi
10806
10807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10810 fi
10811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10813 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10814 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10815 then :
10816 printf %s "(cached) " >&6
10817 else $as_nop
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10820 int i;
10821 _ACEOF
10822 if ac_fn_c_try_compile "$LINENO"
10823 then :
10824 xorg_cv_cc_flag_unused_command_line_argument=yes
10825 else $as_nop
10826 xorg_cv_cc_flag_unused_command_line_argument=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10829 fi
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10833 CFLAGS="$xorg_testset_save_CFLAGS"
10834 fi
10835
10836 found="no"
10837
10838 if test $found = "no" ; then
10839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10841 fi
10842
10843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10845 fi
10846
10847 CFLAGS="$CFLAGS -Werror=attributes"
10848
10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10850 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10851 cacheid=xorg_cv_cc_flag__Werror_attributes
10852 if eval test \${$cacheid+y}
10853 then :
10854 printf %s "(cached) " >&6
10855 else $as_nop
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 int i;
10859 int
10860 main (void)
10861 {
10862
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"
10868 then :
10869 eval $cacheid=yes
10870 else $as_nop
10871 eval $cacheid=no
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10874 conftest$ac_exeext conftest.$ac_ext
10875 fi
10876
10877
10878 CFLAGS="$xorg_testset_save_CFLAGS"
10879
10880 eval supported=\$$cacheid
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10882 printf "%s\n" "$supported" >&6; }
10883 if test "$supported" = "yes" ; then
10884 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10885 found="yes"
10886 fi
10887 fi
10888
10889
10890
10891 if test "x$STRICT_COMPILE" = "xyes"; then
10892 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10893 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10894 fi
10895
10896
10897
10898
10899
10900
10901 cat >>confdefs.h <<_ACEOF
10902 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10903 _ACEOF
10904
10905 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10906 if test "x$PVM" = "x"; then
10907 PVM="0"
10908 fi
10909
10910 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10911
10912 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10913 if test "x$PVP" = "x"; then
10914 PVP="0"
10915 fi
10916
10917 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10918
10919
10920
10921 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10922 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10923 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10924 touch \$(top_srcdir)/ChangeLog; \
10925 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10926
10927
10928
10929
10930 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10931 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10932 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10933 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10934 touch \$(top_srcdir)/INSTALL; \
10935 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10936
10937
10938
10939
10940
10941
10942 case $host_os in
10943 solaris*)
10944 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10945 # check for a man page file found in later versions that use
10946 # traditional section numbers instead
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10948 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10949 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10950 then :
10951 printf %s "(cached) " >&6
10952 else $as_nop
10953 test "$cross_compiling" = yes &&
10954 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10955 if test -r "/usr/share/man/man7/attributes.7"; then
10956 ac_cv_file__usr_share_man_man7_attributes_7=yes
10957 else
10958 ac_cv_file__usr_share_man_man7_attributes_7=no
10959 fi
10960 fi
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10962 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10963 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10964 then :
10965 SYSV_MAN_SECTIONS=false
10966 else $as_nop
10967 SYSV_MAN_SECTIONS=true
10968 fi
10969
10970 ;;
10971 *) SYSV_MAN_SECTIONS=false ;;
10972 esac
10973
10974 if test x$APP_MAN_SUFFIX = x ; then
10975 APP_MAN_SUFFIX=1
10976 fi
10977 if test x$APP_MAN_DIR = x ; then
10978 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10979 fi
10980
10981 if test x$LIB_MAN_SUFFIX = x ; then
10982 LIB_MAN_SUFFIX=3
10983 fi
10984 if test x$LIB_MAN_DIR = x ; then
10985 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10986 fi
10987
10988 if test x$FILE_MAN_SUFFIX = x ; then
10989 case $SYSV_MAN_SECTIONS in
10990 true) FILE_MAN_SUFFIX=4 ;;
10991 *) FILE_MAN_SUFFIX=5 ;;
10992 esac
10993 fi
10994 if test x$FILE_MAN_DIR = x ; then
10995 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10996 fi
10997
10998 if test x$MISC_MAN_SUFFIX = x ; then
10999 case $SYSV_MAN_SECTIONS in
11000 true) MISC_MAN_SUFFIX=5 ;;
11001 *) MISC_MAN_SUFFIX=7 ;;
11002 esac
11003 fi
11004 if test x$MISC_MAN_DIR = x ; then
11005 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11006 fi
11007
11008 if test x$DRIVER_MAN_SUFFIX = x ; then
11009 case $SYSV_MAN_SECTIONS in
11010 true) DRIVER_MAN_SUFFIX=7 ;;
11011 *) DRIVER_MAN_SUFFIX=4 ;;
11012 esac
11013 fi
11014 if test x$DRIVER_MAN_DIR = x ; then
11015 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11016 fi
11017
11018 if test x$ADMIN_MAN_SUFFIX = x ; then
11019 case $SYSV_MAN_SECTIONS in
11020 true) ADMIN_MAN_SUFFIX=1m ;;
11021 *) ADMIN_MAN_SUFFIX=8 ;;
11022 esac
11023 fi
11024 if test x$ADMIN_MAN_DIR = x ; then
11025 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11026 fi
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 XORG_MAN_PAGE="X Version 11"
11043
11044 MAN_SUBSTS="\
11045 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11046 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11047 -e 's|__xservername__|Xorg|g' \
11048 -e 's|__xconfigfile__|xorg.conf|g' \
11049 -e 's|__projectroot__|\$(prefix)|g' \
11050 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11051 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11052 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11053 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11054 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11055 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11056 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11057
11058
11059
11060 # Check whether --enable-silent-rules was given.
11061 if test ${enable_silent_rules+y}
11062 then :
11063 enableval=$enable_silent_rules;
11064 fi
11065
11066 case $enable_silent_rules in # (((
11067 yes) AM_DEFAULT_VERBOSITY=0;;
11068 no) AM_DEFAULT_VERBOSITY=1;;
11069 *) AM_DEFAULT_VERBOSITY=0;;
11070 esac
11071 am_make=${MAKE-make}
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11073 printf %s "checking whether $am_make supports nested variables... " >&6; }
11074 if test ${am_cv_make_support_nested_variables+y}
11075 then :
11076 printf %s "(cached) " >&6
11077 else $as_nop
11078 if printf "%s\n" 'TRUE=$(BAR$(V))
11079 BAR0=false
11080 BAR1=true
11081 V=1
11082 am__doit:
11083 @$(TRUE)
11084 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11085 am_cv_make_support_nested_variables=yes
11086 else
11087 am_cv_make_support_nested_variables=no
11088 fi
11089 fi
11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11091 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11092 if test $am_cv_make_support_nested_variables = yes; then
11093 AM_V='$(V)'
11094 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11095 else
11096 AM_V=$AM_DEFAULT_VERBOSITY
11097 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11098 fi
11099 AM_BACKSLASH='\'
11100
11101
11102
11103 # Optional dependencies
11104
11105 # Check whether --with-xkb was given.
11106 if test ${with_xkb+y}
11107 then :
11108 withval=$with_xkb; use_xkb="$withval"
11109 else $as_nop
11110 use_xkb="yes"
11111 fi
11112
11113 if test x$use_xkb != xno ; then
11114 XKBMODULE="xkbfile"
11115
11116 printf "%s\n" "#define XKB 1" >>confdefs.h
11117
11118 fi
11119
11120 # Checks for pkg-config packages
11121
11122 pkg_failed=no
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCLOCK" >&5
11124 printf %s "checking for OCLOCK... " >&6; }
11125
11126 if test -n "$OCLOCK_CFLAGS"; then
11127 pkg_cv_OCLOCK_CFLAGS="$OCLOCK_CFLAGS"
11128 elif test -n "$PKG_CONFIG"; then
11129 if test -n "$PKG_CONFIG" && \
11130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5
11131 ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
11132 ac_status=$?
11133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134 test $ac_status = 0; }; then
11135 pkg_cv_OCLOCK_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
11136 test "x$?" != "x0" && pkg_failed=yes
11137 else
11138 pkg_failed=yes
11139 fi
11140 else
11141 pkg_failed=untried
11142 fi
11143 if test -n "$OCLOCK_LIBS"; then
11144 pkg_cv_OCLOCK_LIBS="$OCLOCK_LIBS"
11145 elif test -n "$PKG_CONFIG"; then
11146 if test -n "$PKG_CONFIG" && \
11147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5
11148 ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
11149 ac_status=$?
11150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }; then
11152 pkg_cv_OCLOCK_LIBS=`$PKG_CONFIG --libs "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
11153 test "x$?" != "x0" && pkg_failed=yes
11154 else
11155 pkg_failed=yes
11156 fi
11157 else
11158 pkg_failed=untried
11159 fi
11160
11161
11162
11163 if test $pkg_failed = yes; then
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 printf "%s\n" "no" >&6; }
11166
11167 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11168 _pkg_short_errors_supported=yes
11169 else
11170 _pkg_short_errors_supported=no
11171 fi
11172 if test $_pkg_short_errors_supported = yes; then
11173 OCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1`
11174 else
11175 OCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1`
11176 fi
11177 # Put the nasty error message in config.log where it belongs
11178 echo "$OCLOCK_PKG_ERRORS" >&5
11179
11180 as_fn_error $? "Package requirements (x11 xmu xext xt ${XKBMODULE}) were not met:
11181
11182 $OCLOCK_PKG_ERRORS
11183
11184 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11185 installed software in a non-standard prefix.
11186
11187 Alternatively, you may set the environment variables OCLOCK_CFLAGS
11188 and OCLOCK_LIBS to avoid the need to call pkg-config.
11189 See the pkg-config man page for more details." "$LINENO" 5
11190 elif test $pkg_failed = untried; then
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 printf "%s\n" "no" >&6; }
11193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11194 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11195 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11196 is in your PATH or set the PKG_CONFIG environment variable to the full
11197 path to pkg-config.
11198
11199 Alternatively, you may set the environment variables OCLOCK_CFLAGS
11200 and OCLOCK_LIBS to avoid the need to call pkg-config.
11201 See the pkg-config man page for more details.
11202
11203 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11204 See \`config.log' for more details" "$LINENO" 5; }
11205 else
11206 OCLOCK_CFLAGS=$pkg_cv_OCLOCK_CFLAGS
11207 OCLOCK_LIBS=$pkg_cv_OCLOCK_LIBS
11208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 printf "%s\n" "yes" >&6; }
11210
11211 fi
11212
11213 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11214
11215 # Check whether --with-appdefaultdir was given.
11216 if test ${with_appdefaultdir+y}
11217 then :
11218 withval=$with_appdefaultdir; appdefaultdir="$withval"
11219 else $as_nop
11220 appdefaultdir="${xt_appdefaultdir}"
11221 fi
11222
11223
11224
11225
11226 ac_config_files="$ac_config_files Makefile man/Makefile"
11227
11228 cat >confcache <<\_ACEOF
11229 # This file is a shell script that caches the results of configure
11230 # tests run on this system so they can be shared between configure
11231 # scripts and configure runs, see configure's option --config-cache.
11232 # It is not useful on other systems. If it contains results you don't
11233 # want to keep, you may remove or edit it.
11234 #
11235 # config.status only pays attention to the cache file if you give it
11236 # the --recheck option to rerun configure.
11237 #
11238 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11239 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11240 # following values.
11241
11242 _ACEOF
11243
11244 # The following way of writing the cache mishandles newlines in values,
11245 # but we know of no workaround that is simple, portable, and efficient.
11246 # So, we kill variables containing newlines.
11247 # Ultrix sh set writes to stderr and can't be redirected directly,
11248 # and sets the high bit in the cache file unless we assign to the vars.
11249 (
11250 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11251 eval ac_val=\$$ac_var
11252 case $ac_val in #(
11253 *${as_nl}*)
11254 case $ac_var in #(
11255 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11256 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11257 esac
11258 case $ac_var in #(
11259 _ | IFS | as_nl) ;; #(
11260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11261 *) { eval $ac_var=; unset $ac_var;} ;;
11262 esac ;;
11263 esac
11264 done
11265
11266 (set) 2>&1 |
11267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11268 *${as_nl}ac_space=\ *)
11269 # `set' does not quote correctly, so add quotes: double-quote
11270 # substitution turns \\\\ into \\, and sed turns \\ into \.
11271 sed -n \
11272 "s/'/'\\\\''/g;
11273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11274 ;; #(
11275 *)
11276 # `set' quotes correctly as required by POSIX, so do not add quotes.
11277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11278 ;;
11279 esac |
11280 sort
11281 ) |
11282 sed '
11283 /^ac_cv_env_/b end
11284 t clear
11285 :clear
11286 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11287 t end
11288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11289 :end' >>confcache
11290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11291 if test -w "$cache_file"; then
11292 if test "x$cache_file" != "x/dev/null"; then
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11294 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11295 if test ! -f "$cache_file" || test -h "$cache_file"; then
11296 cat confcache >"$cache_file"
11297 else
11298 case $cache_file in #(
11299 */* | ?:*)
11300 mv -f confcache "$cache_file"$$ &&
11301 mv -f "$cache_file"$$ "$cache_file" ;; #(
11302 *)
11303 mv -f confcache "$cache_file" ;;
11304 esac
11305 fi
11306 fi
11307 else
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11309 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11310 fi
11311 fi
11312 rm -f confcache
11313
11314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11315 # Let make expand exec_prefix.
11316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11317
11318 DEFS=-DHAVE_CONFIG_H
11319
11320 ac_libobjs=
11321 ac_ltlibobjs=
11322 U=
11323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11324 # 1. Remove the extension, and $U if already installed.
11325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11326 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11328 # will be set to the directory where LIBOBJS objects are built.
11329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11331 done
11332 LIBOBJS=$ac_libobjs
11333
11334 LTLIBOBJS=$ac_ltlibobjs
11335
11336
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11338 printf %s "checking that generated files are newer than configure... " >&6; }
11339 if test -n "$am_sleep_pid"; then
11340 # Hide warnings about reused PIDs.
11341 wait $am_sleep_pid 2>/dev/null
11342 fi
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11344 printf "%s\n" "done" >&6; }
11345 if test -n "$EXEEXT"; then
11346 am__EXEEXT_TRUE=
11347 am__EXEEXT_FALSE='#'
11348 else
11349 am__EXEEXT_TRUE='#'
11350 am__EXEEXT_FALSE=
11351 fi
11352
11353 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11354 as_fn_error $? "conditional \"AMDEP\" was never defined.
11355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11356 fi
11357 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11358 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11360 fi
11361
11362 : "${CONFIG_STATUS=./config.status}"
11363 ac_write_fail=0
11364 ac_clean_files_save=$ac_clean_files
11365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11367 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11368 as_write_fail=0
11369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11370 #! $SHELL
11371 # Generated by $as_me.
11372 # Run this file to recreate the current configuration.
11373 # Compiler output produced by configure, useful for debugging
11374 # configure, is in config.log if it exists.
11375
11376 debug=false
11377 ac_cs_recheck=false
11378 ac_cs_silent=false
11379
11380 SHELL=\${CONFIG_SHELL-$SHELL}
11381 export SHELL
11382 _ASEOF
11383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11384 ## -------------------- ##
11385 ## M4sh Initialization. ##
11386 ## -------------------- ##
11387
11388 # Be more Bourne compatible
11389 DUALCASE=1; export DUALCASE # for MKS sh
11390 as_nop=:
11391 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11392 then :
11393 emulate sh
11394 NULLCMD=:
11395 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11396 # is contrary to our usage. Disable this feature.
11397 alias -g '${1+"$@"}'='"$@"'
11398 setopt NO_GLOB_SUBST
11399 else $as_nop
11400 case `(set -o) 2>/dev/null` in #(
11401 *posix*) :
11402 set -o posix ;; #(
11403 *) :
11404 ;;
11405 esac
11406 fi
11407
11408
11409
11410 # Reset variables that may have inherited troublesome values from
11411 # the environment.
11412
11413 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11414 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11415 # side effect of setting IFS to empty, thus disabling word splitting.)
11416 # Quoting is to prevent editors from complaining about space-tab.
11417 as_nl='
11418 '
11419 export as_nl
11420 IFS=" "" $as_nl"
11421
11422 PS1='$ '
11423 PS2='> '
11424 PS4='+ '
11425
11426 # Ensure predictable behavior from utilities with locale-dependent output.
11427 LC_ALL=C
11428 export LC_ALL
11429 LANGUAGE=C
11430 export LANGUAGE
11431
11432 # We cannot yet rely on "unset" to work, but we need these variables
11433 # to be unset--not just set to an empty or harmless value--now, to
11434 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11435 # also avoids known problems related to "unset" and subshell syntax
11436 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11437 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11438 do eval test \${$as_var+y} \
11439 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11440 done
11441
11442 # Ensure that fds 0, 1, and 2 are open.
11443 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11444 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11445 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11446
11447 # The user is always right.
11448 if ${PATH_SEPARATOR+false} :; then
11449 PATH_SEPARATOR=:
11450 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11451 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11452 PATH_SEPARATOR=';'
11453 }
11454 fi
11455
11456
11457 # Find who we are. Look in the path if we contain no directory separator.
11458 as_myself=
11459 case $0 in #((
11460 *[\\/]* ) as_myself=$0 ;;
11461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11463 do
11464 IFS=$as_save_IFS
11465 case $as_dir in #(((
11466 '') as_dir=./ ;;
11467 */) ;;
11468 *) as_dir=$as_dir/ ;;
11469 esac
11470 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11471 done
11472 IFS=$as_save_IFS
11473
11474 ;;
11475 esac
11476 # We did not find ourselves, most probably we were run as `sh COMMAND'
11477 # in which case we are not to be found in the path.
11478 if test "x$as_myself" = x; then
11479 as_myself=$0
11480 fi
11481 if test ! -f "$as_myself"; then
11482 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11483 exit 1
11484 fi
11485
11486
11487
11488 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11489 # ----------------------------------------
11490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11492 # script with STATUS, using 1 if that was 0.
11493 as_fn_error ()
11494 {
11495 as_status=$1; test $as_status -eq 0 && as_status=1
11496 if test "$4"; then
11497 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11499 fi
11500 printf "%s\n" "$as_me: error: $2" >&2
11501 as_fn_exit $as_status
11502 } # as_fn_error
11503
11504
11505
11506 # as_fn_set_status STATUS
11507 # -----------------------
11508 # Set $? to STATUS, without forking.
11509 as_fn_set_status ()
11510 {
11511 return $1
11512 } # as_fn_set_status
11513
11514 # as_fn_exit STATUS
11515 # -----------------
11516 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11517 as_fn_exit ()
11518 {
11519 set +e
11520 as_fn_set_status $1
11521 exit $1
11522 } # as_fn_exit
11523
11524 # as_fn_unset VAR
11525 # ---------------
11526 # Portably unset VAR.
11527 as_fn_unset ()
11528 {
11529 { eval $1=; unset $1;}
11530 }
11531 as_unset=as_fn_unset
11532
11533 # as_fn_append VAR VALUE
11534 # ----------------------
11535 # Append the text in VALUE to the end of the definition contained in VAR. Take
11536 # advantage of any shell optimizations that allow amortized linear growth over
11537 # repeated appends, instead of the typical quadratic growth present in naive
11538 # implementations.
11539 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11540 then :
11541 eval 'as_fn_append ()
11542 {
11543 eval $1+=\$2
11544 }'
11545 else $as_nop
11546 as_fn_append ()
11547 {
11548 eval $1=\$$1\$2
11549 }
11550 fi # as_fn_append
11551
11552 # as_fn_arith ARG...
11553 # ------------------
11554 # Perform arithmetic evaluation on the ARGs, and store the result in the
11555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11556 # must be portable across $(()) and expr.
11557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11558 then :
11559 eval 'as_fn_arith ()
11560 {
11561 as_val=$(( $* ))
11562 }'
11563 else $as_nop
11564 as_fn_arith ()
11565 {
11566 as_val=`expr "$@" || test $? -eq 1`
11567 }
11568 fi # as_fn_arith
11569
11570
11571 if expr a : '\(a\)' >/dev/null 2>&1 &&
11572 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11573 as_expr=expr
11574 else
11575 as_expr=false
11576 fi
11577
11578 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11579 as_basename=basename
11580 else
11581 as_basename=false
11582 fi
11583
11584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11585 as_dirname=dirname
11586 else
11587 as_dirname=false
11588 fi
11589
11590 as_me=`$as_basename -- "$0" ||
11591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11592 X"$0" : 'X\(//\)$' \| \
11593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11594 printf "%s\n" X/"$0" |
11595 sed '/^.*\/\([^/][^/]*\)\/*$/{
11596 s//\1/
11597 q
11598 }
11599 /^X\/\(\/\/\)$/{
11600 s//\1/
11601 q
11602 }
11603 /^X\/\(\/\).*/{
11604 s//\1/
11605 q
11606 }
11607 s/.*/./; q'`
11608
11609 # Avoid depending upon Character Ranges.
11610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11613 as_cr_digits='0123456789'
11614 as_cr_alnum=$as_cr_Letters$as_cr_digits
11615
11616
11617 # Determine whether it's possible to make 'echo' print without a newline.
11618 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11619 # for compatibility with existing Makefiles.
11620 ECHO_C= ECHO_N= ECHO_T=
11621 case `echo -n x` in #(((((
11622 -n*)
11623 case `echo 'xy\c'` in
11624 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11625 xy) ECHO_C='\c';;
11626 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11627 ECHO_T=' ';;
11628 esac;;
11629 *)
11630 ECHO_N='-n';;
11631 esac
11632
11633 # For backward compatibility with old third-party macros, we provide
11634 # the shell variables $as_echo and $as_echo_n. New code should use
11635 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11636 as_echo='printf %s\n'
11637 as_echo_n='printf %s'
11638
11639 rm -f conf$$ conf$$.exe conf$$.file
11640 if test -d conf$$.dir; then
11641 rm -f conf$$.dir/conf$$.file
11642 else
11643 rm -f conf$$.dir
11644 mkdir conf$$.dir 2>/dev/null
11645 fi
11646 if (echo >conf$$.file) 2>/dev/null; then
11647 if ln -s conf$$.file conf$$ 2>/dev/null; then
11648 as_ln_s='ln -s'
11649 # ... but there are two gotchas:
11650 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11651 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11652 # In both cases, we have to default to `cp -pR'.
11653 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11654 as_ln_s='cp -pR'
11655 elif ln conf$$.file conf$$ 2>/dev/null; then
11656 as_ln_s=ln
11657 else
11658 as_ln_s='cp -pR'
11659 fi
11660 else
11661 as_ln_s='cp -pR'
11662 fi
11663 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11664 rmdir conf$$.dir 2>/dev/null
11665
11666
11667 # as_fn_mkdir_p
11668 # -------------
11669 # Create "$as_dir" as a directory, including parents if necessary.
11670 as_fn_mkdir_p ()
11671 {
11672
11673 case $as_dir in #(
11674 -*) as_dir=./$as_dir;;
11675 esac
11676 test -d "$as_dir" || eval $as_mkdir_p || {
11677 as_dirs=
11678 while :; do
11679 case $as_dir in #(
11680 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11681 *) as_qdir=$as_dir;;
11682 esac
11683 as_dirs="'$as_qdir' $as_dirs"
11684 as_dir=`$as_dirname -- "$as_dir" ||
11685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11686 X"$as_dir" : 'X\(//\)[^/]' \| \
11687 X"$as_dir" : 'X\(//\)$' \| \
11688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11689 printf "%s\n" X"$as_dir" |
11690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11691 s//\1/
11692 q
11693 }
11694 /^X\(\/\/\)[^/].*/{
11695 s//\1/
11696 q
11697 }
11698 /^X\(\/\/\)$/{
11699 s//\1/
11700 q
11701 }
11702 /^X\(\/\).*/{
11703 s//\1/
11704 q
11705 }
11706 s/.*/./; q'`
11707 test -d "$as_dir" && break
11708 done
11709 test -z "$as_dirs" || eval "mkdir $as_dirs"
11710 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11711
11712
11713 } # as_fn_mkdir_p
11714 if mkdir -p . 2>/dev/null; then
11715 as_mkdir_p='mkdir -p "$as_dir"'
11716 else
11717 test -d ./-p && rmdir ./-p
11718 as_mkdir_p=false
11719 fi
11720
11721
11722 # as_fn_executable_p FILE
11723 # -----------------------
11724 # Test if FILE is an executable regular file.
11725 as_fn_executable_p ()
11726 {
11727 test -f "$1" && test -x "$1"
11728 } # as_fn_executable_p
11729 as_test_x='test -x'
11730 as_executable_p=as_fn_executable_p
11731
11732 # Sed expression to map a string onto a valid CPP name.
11733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11734
11735 # Sed expression to map a string onto a valid variable name.
11736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11737
11738
11739 exec 6>&1
11740 ## ----------------------------------- ##
11741 ## Main body of $CONFIG_STATUS script. ##
11742 ## ----------------------------------- ##
11743 _ASEOF
11744 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11745
11746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11747 # Save the log message, to keep $0 and so on meaningful, and to
11748 # report actual input values of CONFIG_FILES etc. instead of their
11749 # values after options handling.
11750 ac_log="
11751 This file was extended by oclock $as_me 1.0.5, which was
11752 generated by GNU Autoconf 2.71. Invocation command line was
11753
11754 CONFIG_FILES = $CONFIG_FILES
11755 CONFIG_HEADERS = $CONFIG_HEADERS
11756 CONFIG_LINKS = $CONFIG_LINKS
11757 CONFIG_COMMANDS = $CONFIG_COMMANDS
11758 $ $0 $@
11759
11760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11761 "
11762
11763 _ACEOF
11764
11765 case $ac_config_files in *"
11766 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11767 esac
11768
11769 case $ac_config_headers in *"
11770 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11771 esac
11772
11773
11774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775 # Files that config.status was made for.
11776 config_files="$ac_config_files"
11777 config_headers="$ac_config_headers"
11778 config_commands="$ac_config_commands"
11779
11780 _ACEOF
11781
11782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783 ac_cs_usage="\
11784 \`$as_me' instantiates files and other configuration actions
11785 from templates according to the current configuration. Unless the files
11786 and actions are specified as TAGs, all are instantiated by default.
11787
11788 Usage: $0 [OPTION]... [TAG]...
11789
11790 -h, --help print this help, then exit
11791 -V, --version print version number and configuration settings, then exit
11792 --config print configuration, then exit
11793 -q, --quiet, --silent
11794 do not print progress messages
11795 -d, --debug don't remove temporary files
11796 --recheck update $as_me by reconfiguring in the same conditions
11797 --file=FILE[:TEMPLATE]
11798 instantiate the configuration file FILE
11799 --header=FILE[:TEMPLATE]
11800 instantiate the configuration header FILE
11801
11802 Configuration files:
11803 $config_files
11804
11805 Configuration headers:
11806 $config_headers
11807
11808 Configuration commands:
11809 $config_commands
11810
11811 Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>."
11812
11813 _ACEOF
11814 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11815 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11817 ac_cs_config='$ac_cs_config_escaped'
11818 ac_cs_version="\\
11819 oclock config.status 1.0.5
11820 configured by $0, generated by GNU Autoconf 2.71,
11821 with options \\"\$ac_cs_config\\"
11822
11823 Copyright (C) 2021 Free Software Foundation, Inc.
11824 This config.status script is free software; the Free Software Foundation
11825 gives unlimited permission to copy, distribute and modify it."
11826
11827 ac_pwd='$ac_pwd'
11828 srcdir='$srcdir'
11829 INSTALL='$INSTALL'
11830 MKDIR_P='$MKDIR_P'
11831 AWK='$AWK'
11832 test -n "\$AWK" || AWK=awk
11833 _ACEOF
11834
11835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836 # The default lists apply if the user does not specify any file.
11837 ac_need_defaults=:
11838 while test $# != 0
11839 do
11840 case $1 in
11841 --*=?*)
11842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11844 ac_shift=:
11845 ;;
11846 --*=)
11847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11848 ac_optarg=
11849 ac_shift=:
11850 ;;
11851 *)
11852 ac_option=$1
11853 ac_optarg=$2
11854 ac_shift=shift
11855 ;;
11856 esac
11857
11858 case $ac_option in
11859 # Handling of the options.
11860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11861 ac_cs_recheck=: ;;
11862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11863 printf "%s\n" "$ac_cs_version"; exit ;;
11864 --config | --confi | --conf | --con | --co | --c )
11865 printf "%s\n" "$ac_cs_config"; exit ;;
11866 --debug | --debu | --deb | --de | --d | -d )
11867 debug=: ;;
11868 --file | --fil | --fi | --f )
11869 $ac_shift
11870 case $ac_optarg in
11871 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11872 '') as_fn_error $? "missing file argument" ;;
11873 esac
11874 as_fn_append CONFIG_FILES " '$ac_optarg'"
11875 ac_need_defaults=false;;
11876 --header | --heade | --head | --hea )
11877 $ac_shift
11878 case $ac_optarg in
11879 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11880 esac
11881 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11882 ac_need_defaults=false;;
11883 --he | --h)
11884 # Conflict between --help and --header
11885 as_fn_error $? "ambiguous option: \`$1'
11886 Try \`$0 --help' for more information.";;
11887 --help | --hel | -h )
11888 printf "%s\n" "$ac_cs_usage"; exit ;;
11889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11891 ac_cs_silent=: ;;
11892
11893 # This is an error.
11894 -*) as_fn_error $? "unrecognized option: \`$1'
11895 Try \`$0 --help' for more information." ;;
11896
11897 *) as_fn_append ac_config_targets " $1"
11898 ac_need_defaults=false ;;
11899
11900 esac
11901 shift
11902 done
11903
11904 ac_configure_extra_args=
11905
11906 if $ac_cs_silent; then
11907 exec 6>/dev/null
11908 ac_configure_extra_args="$ac_configure_extra_args --silent"
11909 fi
11910
11911 _ACEOF
11912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11913 if \$ac_cs_recheck; then
11914 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11915 shift
11916 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11917 CONFIG_SHELL='$SHELL'
11918 export CONFIG_SHELL
11919 exec "\$@"
11920 fi
11921
11922 _ACEOF
11923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11924 exec 5>>config.log
11925 {
11926 echo
11927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11928 ## Running $as_me. ##
11929 _ASBOX
11930 printf "%s\n" "$ac_log"
11931 } >&5
11932
11933 _ACEOF
11934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11935 #
11936 # INIT-COMMANDS
11937 #
11938 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11939
11940 _ACEOF
11941
11942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943
11944 # Handling of arguments.
11945 for ac_config_target in $ac_config_targets
11946 do
11947 case $ac_config_target in
11948 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11949 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11950 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11951 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11952
11953 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11954 esac
11955 done
11956
11957
11958 # If the user did not use the arguments to specify the items to instantiate,
11959 # then the envvar interface is used. Set only those that are not.
11960 # We use the long form for the default assignment because of an extremely
11961 # bizarre bug on SunOS 4.1.3.
11962 if $ac_need_defaults; then
11963 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11964 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11965 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11966 fi
11967
11968 # Have a temporary directory for convenience. Make it in the build tree
11969 # simply because there is no reason against having it here, and in addition,
11970 # creating and moving files from /tmp can sometimes cause problems.
11971 # Hook for its removal unless debugging.
11972 # Note that there is a small window in which the directory will not be cleaned:
11973 # after its creation but before its name has been assigned to `$tmp'.
11974 $debug ||
11975 {
11976 tmp= ac_tmp=
11977 trap 'exit_status=$?
11978 : "${ac_tmp:=$tmp}"
11979 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11980 ' 0
11981 trap 'as_fn_exit 1' 1 2 13 15
11982 }
11983 # Create a (secure) tmp directory for tmp files.
11984
11985 {
11986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11987 test -d "$tmp"
11988 } ||
11989 {
11990 tmp=./conf$$-$RANDOM
11991 (umask 077 && mkdir "$tmp")
11992 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11993 ac_tmp=$tmp
11994
11995 # Set up the scripts for CONFIG_FILES section.
11996 # No need to generate them if there are no CONFIG_FILES.
11997 # This happens for instance with `./config.status config.h'.
11998 if test -n "$CONFIG_FILES"; then
11999
12000
12001 ac_cr=`echo X | tr X '\015'`
12002 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12003 # But we know of no other shell where ac_cr would be empty at this
12004 # point, so we can use a bashism as a fallback.
12005 if test "x$ac_cr" = x; then
12006 eval ac_cr=\$\'\\r\'
12007 fi
12008 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12009 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12010 ac_cs_awk_cr='\\r'
12011 else
12012 ac_cs_awk_cr=$ac_cr
12013 fi
12014
12015 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12016 _ACEOF
12017
12018
12019 {
12020 echo "cat >conf$$subs.awk <<_ACEOF" &&
12021 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12022 echo "_ACEOF"
12023 } >conf$$subs.sh ||
12024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12025 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12026 ac_delim='%!_!# '
12027 for ac_last_try in false false false false false :; do
12028 . ./conf$$subs.sh ||
12029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12030
12031 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12032 if test $ac_delim_n = $ac_delim_num; then
12033 break
12034 elif $ac_last_try; then
12035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12036 else
12037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12038 fi
12039 done
12040 rm -f conf$$subs.sh
12041
12042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12043 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12044 _ACEOF
12045 sed -n '
12046 h
12047 s/^/S["/; s/!.*/"]=/
12048 p
12049 g
12050 s/^[^!]*!//
12051 :repl
12052 t repl
12053 s/'"$ac_delim"'$//
12054 t delim
12055 :nl
12056 h
12057 s/\(.\{148\}\)..*/\1/
12058 t more1
12059 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12060 p
12061 n
12062 b repl
12063 :more1
12064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12065 p
12066 g
12067 s/.\{148\}//
12068 t nl
12069 :delim
12070 h
12071 s/\(.\{148\}\)..*/\1/
12072 t more2
12073 s/["\\]/\\&/g; s/^/"/; s/$/"/
12074 p
12075 b
12076 :more2
12077 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12078 p
12079 g
12080 s/.\{148\}//
12081 t delim
12082 ' <conf$$subs.awk | sed '
12083 /^[^""]/{
12084 N
12085 s/\n//
12086 }
12087 ' >>$CONFIG_STATUS || ac_write_fail=1
12088 rm -f conf$$subs.awk
12089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090 _ACAWK
12091 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12092 for (key in S) S_is_set[key] = 1
12093 FS = ""
12094
12095 }
12096 {
12097 line = $ 0
12098 nfields = split(line, field, "@")
12099 substed = 0
12100 len = length(field[1])
12101 for (i = 2; i < nfields; i++) {
12102 key = field[i]
12103 keylen = length(key)
12104 if (S_is_set[key]) {
12105 value = S[key]
12106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12107 len += length(value) + length(field[++i])
12108 substed = 1
12109 } else
12110 len += 1 + keylen
12111 }
12112
12113 print line
12114 }
12115
12116 _ACAWK
12117 _ACEOF
12118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12119 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12120 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12121 else
12122 cat
12123 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12124 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12125 _ACEOF
12126
12127 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12128 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12129 # trailing colons and then remove the whole line if VPATH becomes empty
12130 # (actually we leave an empty line to preserve line numbers).
12131 if test "x$srcdir" = x.; then
12132 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12133 h
12134 s///
12135 s/^/:/
12136 s/[ ]*$/:/
12137 s/:\$(srcdir):/:/g
12138 s/:\${srcdir}:/:/g
12139 s/:@srcdir@:/:/g
12140 s/^:*//
12141 s/:*$//
12142 x
12143 s/\(=[ ]*\).*/\1/
12144 G
12145 s/\n//
12146 s/^[^=]*=[ ]*$//
12147 }'
12148 fi
12149
12150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151 fi # test -n "$CONFIG_FILES"
12152
12153 # Set up the scripts for CONFIG_HEADERS section.
12154 # No need to generate them if there are no CONFIG_HEADERS.
12155 # This happens for instance with `./config.status Makefile'.
12156 if test -n "$CONFIG_HEADERS"; then
12157 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12158 BEGIN {
12159 _ACEOF
12160
12161 # Transform confdefs.h into an awk script `defines.awk', embedded as
12162 # here-document in config.status, that substitutes the proper values into
12163 # config.h.in to produce config.h.
12164
12165 # Create a delimiter string that does not exist in confdefs.h, to ease
12166 # handling of long lines.
12167 ac_delim='%!_!# '
12168 for ac_last_try in false false :; do
12169 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12170 if test -z "$ac_tt"; then
12171 break
12172 elif $ac_last_try; then
12173 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12174 else
12175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12176 fi
12177 done
12178
12179 # For the awk script, D is an array of macro values keyed by name,
12180 # likewise P contains macro parameters if any. Preserve backslash
12181 # newline sequences.
12182
12183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12184 sed -n '
12185 s/.\{148\}/&'"$ac_delim"'/g
12186 t rset
12187 :rset
12188 s/^[ ]*#[ ]*define[ ][ ]*/ /
12189 t def
12190 d
12191 :def
12192 s/\\$//
12193 t bsnl
12194 s/["\\]/\\&/g
12195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12196 D["\1"]=" \3"/p
12197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12198 d
12199 :bsnl
12200 s/["\\]/\\&/g
12201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12202 D["\1"]=" \3\\\\\\n"\\/p
12203 t cont
12204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12205 t cont
12206 d
12207 :cont
12208 n
12209 s/.\{148\}/&'"$ac_delim"'/g
12210 t clear
12211 :clear
12212 s/\\$//
12213 t bsnlc
12214 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12215 d
12216 :bsnlc
12217 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12218 b cont
12219 ' <confdefs.h | sed '
12220 s/'"$ac_delim"'/"\\\
12221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12222
12223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12224 for (key in D) D_is_set[key] = 1
12225 FS = ""
12226 }
12227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12228 line = \$ 0
12229 split(line, arg, " ")
12230 if (arg[1] == "#") {
12231 defundef = arg[2]
12232 mac1 = arg[3]
12233 } else {
12234 defundef = substr(arg[1], 2)
12235 mac1 = arg[2]
12236 }
12237 split(mac1, mac2, "(") #)
12238 macro = mac2[1]
12239 prefix = substr(line, 1, index(line, defundef) - 1)
12240 if (D_is_set[macro]) {
12241 # Preserve the white space surrounding the "#".
12242 print prefix "define", macro P[macro] D[macro]
12243 next
12244 } else {
12245 # Replace #undef with comments. This is necessary, for example,
12246 # in the case of _POSIX_SOURCE, which is predefined and required
12247 # on some systems where configure will not decide to define it.
12248 if (defundef == "undef") {
12249 print "/*", prefix defundef, macro, "*/"
12250 next
12251 }
12252 }
12253 }
12254 { print }
12255 _ACAWK
12256 _ACEOF
12257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12258 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12259 fi # test -n "$CONFIG_HEADERS"
12260
12261
12262 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12263 shift
12264 for ac_tag
12265 do
12266 case $ac_tag in
12267 :[FHLC]) ac_mode=$ac_tag; continue;;
12268 esac
12269 case $ac_mode$ac_tag in
12270 :[FHL]*:*);;
12271 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12272 :[FH]-) ac_tag=-:-;;
12273 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12274 esac
12275 ac_save_IFS=$IFS
12276 IFS=:
12277 set x $ac_tag
12278 IFS=$ac_save_IFS
12279 shift
12280 ac_file=$1
12281 shift
12282
12283 case $ac_mode in
12284 :L) ac_source=$1;;
12285 :[FH])
12286 ac_file_inputs=
12287 for ac_f
12288 do
12289 case $ac_f in
12290 -) ac_f="$ac_tmp/stdin";;
12291 *) # Look for the file first in the build tree, then in the source tree
12292 # (if the path is not absolute). The absolute path cannot be DOS-style,
12293 # because $ac_f cannot contain `:'.
12294 test -f "$ac_f" ||
12295 case $ac_f in
12296 [\\/$]*) false;;
12297 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12298 esac ||
12299 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12300 esac
12301 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12302 as_fn_append ac_file_inputs " '$ac_f'"
12303 done
12304
12305 # Let's still pretend it is `configure' which instantiates (i.e., don't
12306 # use $as_me), people would be surprised to read:
12307 # /* config.h. Generated by config.status. */
12308 configure_input='Generated from '`
12309 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12310 `' by configure.'
12311 if test x"$ac_file" != x-; then
12312 configure_input="$ac_file. $configure_input"
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12314 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12315 fi
12316 # Neutralize special characters interpreted by sed in replacement strings.
12317 case $configure_input in #(
12318 *\&* | *\|* | *\\* )
12319 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12320 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12321 *) ac_sed_conf_input=$configure_input;;
12322 esac
12323
12324 case $ac_tag in
12325 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12327 esac
12328 ;;
12329 esac
12330
12331 ac_dir=`$as_dirname -- "$ac_file" ||
12332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12333 X"$ac_file" : 'X\(//\)[^/]' \| \
12334 X"$ac_file" : 'X\(//\)$' \| \
12335 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12336 printf "%s\n" X"$ac_file" |
12337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12338 s//\1/
12339 q
12340 }
12341 /^X\(\/\/\)[^/].*/{
12342 s//\1/
12343 q
12344 }
12345 /^X\(\/\/\)$/{
12346 s//\1/
12347 q
12348 }
12349 /^X\(\/\).*/{
12350 s//\1/
12351 q
12352 }
12353 s/.*/./; q'`
12354 as_dir="$ac_dir"; as_fn_mkdir_p
12355 ac_builddir=.
12356
12357 case "$ac_dir" in
12358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12359 *)
12360 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12361 # A ".." for each directory in $ac_dir_suffix.
12362 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12363 case $ac_top_builddir_sub in
12364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12366 esac ;;
12367 esac
12368 ac_abs_top_builddir=$ac_pwd
12369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12370 # for backward compatibility:
12371 ac_top_builddir=$ac_top_build_prefix
12372
12373 case $srcdir in
12374 .) # We are building in place.
12375 ac_srcdir=.
12376 ac_top_srcdir=$ac_top_builddir_sub
12377 ac_abs_top_srcdir=$ac_pwd ;;
12378 [\\/]* | ?:[\\/]* ) # Absolute name.
12379 ac_srcdir=$srcdir$ac_dir_suffix;
12380 ac_top_srcdir=$srcdir
12381 ac_abs_top_srcdir=$srcdir ;;
12382 *) # Relative name.
12383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12384 ac_top_srcdir=$ac_top_build_prefix$srcdir
12385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12386 esac
12387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12388
12389
12390 case $ac_mode in
12391 :F)
12392 #
12393 # CONFIG_FILE
12394 #
12395
12396 case $INSTALL in
12397 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12398 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12399 esac
12400 ac_MKDIR_P=$MKDIR_P
12401 case $MKDIR_P in
12402 [\\/$]* | ?:[\\/]* ) ;;
12403 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12404 esac
12405 _ACEOF
12406
12407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408 # If the template does not know about datarootdir, expand it.
12409 # FIXME: This hack should be removed a few years after 2.60.
12410 ac_datarootdir_hack=; ac_datarootdir_seen=
12411 ac_sed_dataroot='
12412 /datarootdir/ {
12413 p
12414 q
12415 }
12416 /@datadir@/p
12417 /@docdir@/p
12418 /@infodir@/p
12419 /@localedir@/p
12420 /@mandir@/p'
12421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12422 *datarootdir*) ac_datarootdir_seen=yes;;
12423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12425 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12426 _ACEOF
12427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12428 ac_datarootdir_hack='
12429 s&@datadir@&$datadir&g
12430 s&@docdir@&$docdir&g
12431 s&@infodir@&$infodir&g
12432 s&@localedir@&$localedir&g
12433 s&@mandir@&$mandir&g
12434 s&\\\${datarootdir}&$datarootdir&g' ;;
12435 esac
12436 _ACEOF
12437
12438 # Neutralize VPATH when `$srcdir' = `.'.
12439 # Shell code in configure.ac might set extrasub.
12440 # FIXME: do we really want to maintain this feature?
12441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12442 ac_sed_extra="$ac_vpsub
12443 $extrasub
12444 _ACEOF
12445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12446 :t
12447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12448 s|@configure_input@|$ac_sed_conf_input|;t t
12449 s&@top_builddir@&$ac_top_builddir_sub&;t t
12450 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12451 s&@srcdir@&$ac_srcdir&;t t
12452 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12453 s&@top_srcdir@&$ac_top_srcdir&;t t
12454 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12455 s&@builddir@&$ac_builddir&;t t
12456 s&@abs_builddir@&$ac_abs_builddir&;t t
12457 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12458 s&@INSTALL@&$ac_INSTALL&;t t
12459 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12460 $ac_datarootdir_hack
12461 "
12462 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12463 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12464
12465 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12466 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12467 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12468 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12470 which seems to be undefined. Please make sure it is defined" >&5
12471 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12472 which seems to be undefined. Please make sure it is defined" >&2;}
12473
12474 rm -f "$ac_tmp/stdin"
12475 case $ac_file in
12476 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12477 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12478 esac \
12479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12480 ;;
12481 :H)
12482 #
12483 # CONFIG_HEADER
12484 #
12485 if test x"$ac_file" != x-; then
12486 {
12487 printf "%s\n" "/* $configure_input */" >&1 \
12488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12489 } >"$ac_tmp/config.h" \
12490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12491 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12493 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12494 else
12495 rm -f "$ac_file"
12496 mv "$ac_tmp/config.h" "$ac_file" \
12497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12498 fi
12499 else
12500 printf "%s\n" "/* $configure_input */" >&1 \
12501 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12502 || as_fn_error $? "could not create -" "$LINENO" 5
12503 fi
12504 # Compute "$ac_file"'s index in $config_headers.
12505 _am_arg="$ac_file"
12506 _am_stamp_count=1
12507 for _am_header in $config_headers :; do
12508 case $_am_header in
12509 $_am_arg | $_am_arg:* )
12510 break ;;
12511 * )
12512 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12513 esac
12514 done
12515 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12516 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517 X"$_am_arg" : 'X\(//\)[^/]' \| \
12518 X"$_am_arg" : 'X\(//\)$' \| \
12519 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12520 printf "%s\n" X"$_am_arg" |
12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12522 s//\1/
12523 q
12524 }
12525 /^X\(\/\/\)[^/].*/{
12526 s//\1/
12527 q
12528 }
12529 /^X\(\/\/\)$/{
12530 s//\1/
12531 q
12532 }
12533 /^X\(\/\).*/{
12534 s//\1/
12535 q
12536 }
12537 s/.*/./; q'`/stamp-h$_am_stamp_count
12538 ;;
12539
12540 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12541 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12542 ;;
12543 esac
12544
12545
12546 case $ac_file$ac_mode in
12547 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12548 # Older Autoconf quotes --file arguments for eval, but not when files
12549 # are listed without --file. Let's play safe and only enable the eval
12550 # if we detect the quoting.
12551 # TODO: see whether this extra hack can be removed once we start
12552 # requiring Autoconf 2.70 or later.
12553 case $CONFIG_FILES in #(
12554 *\'*) :
12555 eval set x "$CONFIG_FILES" ;; #(
12556 *) :
12557 set x $CONFIG_FILES ;; #(
12558 *) :
12559 ;;
12560 esac
12561 shift
12562 # Used to flag and report bootstrapping failures.
12563 am_rc=0
12564 for am_mf
12565 do
12566 # Strip MF so we end up with the name of the file.
12567 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12568 # Check whether this is an Automake generated Makefile which includes
12569 # dependency-tracking related rules and includes.
12570 # Grep'ing the whole file directly is not great: AIX grep has a line
12571 # limit of 2048, but all sed's we know have understand at least 4000.
12572 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12573 || continue
12574 am_dirpart=`$as_dirname -- "$am_mf" ||
12575 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576 X"$am_mf" : 'X\(//\)[^/]' \| \
12577 X"$am_mf" : 'X\(//\)$' \| \
12578 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12579 printf "%s\n" X"$am_mf" |
12580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12581 s//\1/
12582 q
12583 }
12584 /^X\(\/\/\)[^/].*/{
12585 s//\1/
12586 q
12587 }
12588 /^X\(\/\/\)$/{
12589 s//\1/
12590 q
12591 }
12592 /^X\(\/\).*/{
12593 s//\1/
12594 q
12595 }
12596 s/.*/./; q'`
12597 am_filepart=`$as_basename -- "$am_mf" ||
12598 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12599 X"$am_mf" : 'X\(//\)$' \| \
12600 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12601 printf "%s\n" X/"$am_mf" |
12602 sed '/^.*\/\([^/][^/]*\)\/*$/{
12603 s//\1/
12604 q
12605 }
12606 /^X\/\(\/\/\)$/{
12607 s//\1/
12608 q
12609 }
12610 /^X\/\(\/\).*/{
12611 s//\1/
12612 q
12613 }
12614 s/.*/./; q'`
12615 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12616 && sed -e '/# am--include-marker/d' "$am_filepart" \
12617 | $MAKE -f - am--depfiles" >&5
12618 (cd "$am_dirpart" \
12619 && sed -e '/# am--include-marker/d' "$am_filepart" \
12620 | $MAKE -f - am--depfiles) >&5 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } || am_rc=$?
12624 done
12625 if test $am_rc -ne 0; then
12626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12627 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12628 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12629 for automatic dependency tracking. If GNU make was not used, consider
12630 re-running the configure script with MAKE=\"gmake\" (or whatever is
12631 necessary). You can also try re-running configure with the
12632 '--disable-dependency-tracking' option to at least be able to build
12633 the package (albeit without support for automatic dependency tracking).
12634 See \`config.log' for more details" "$LINENO" 5; }
12635 fi
12636 { am_dirpart=; unset am_dirpart;}
12637 { am_filepart=; unset am_filepart;}
12638 { am_mf=; unset am_mf;}
12639 { am_rc=; unset am_rc;}
12640 rm -f conftest-deps.mk
12641 }
12642 ;;
12643
12644 esac
12645 done # for ac_tag
12646
12647
12648 as_fn_exit 0
12649 _ACEOF
12650 ac_clean_files=$ac_clean_files_save
12651
12652 test $ac_write_fail = 0 ||
12653 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12654
12655
12656 # configure is writing to config.log, and then calls config.status.
12657 # config.status does its own redirection, appending to config.log.
12658 # Unfortunately, on DOS this fails, as config.log is still kept open
12659 # by configure, so config.status won't be able to write to it; its
12660 # output is simply discarded. So we exec the FD to /dev/null,
12661 # effectively closing config.log, so it can be properly (re)opened and
12662 # appended to by config.status. When coming back to configure, we
12663 # need to make the FD available again.
12664 if test "$no_create" != yes; then
12665 ac_cs_success=:
12666 ac_config_status_args=
12667 test "$silent" = yes &&
12668 ac_config_status_args="$ac_config_status_args --quiet"
12669 exec 5>/dev/null
12670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12671 exec 5>>config.log
12672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12673 # would make configure fail if this is the last instruction.
12674 $ac_cs_success || as_fn_exit 1
12675 fi
12676 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12678 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12679 fi
12680
12681
12682