configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xclock 1.1.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/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/xclock/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='xclock'
614 PACKAGE_TARNAME='xclock'
615 PACKAGE_VERSION='1.1.1'
616 PACKAGE_STRING='xclock 1.1.1'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xclock/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 APPDEFS_LIBS
659 APPDEFS_CFLAGS
660 XKB_LIBS
661 XKB_CFLAGS
662 XFT_LIBS
663 XFT_CFLAGS
664 XCLOCK_LIBS
665 XCLOCK_CFLAGS
666 LTLIBICONV
667 LIBICONV
668 EGREP
669 GREP
670 CPP
671 MAN_SUBSTS
672 XORG_MAN_PAGE
673 ADMIN_MAN_DIR
674 DRIVER_MAN_DIR
675 MISC_MAN_DIR
676 FILE_MAN_DIR
677 LIB_MAN_DIR
678 APP_MAN_DIR
679 ADMIN_MAN_SUFFIX
680 DRIVER_MAN_SUFFIX
681 MISC_MAN_SUFFIX
682 FILE_MAN_SUFFIX
683 LIB_MAN_SUFFIX
684 APP_MAN_SUFFIX
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 INSTALL_CMD
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 CHANGELOG_CMD
699 STRICT_CFLAGS
700 CWARNFLAGS
701 BASE_CFLAGS
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 CSCOPE
723 ETAGS
724 CTAGS
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 runstatedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL
787 am__quote'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_silent_rules
792 enable_dependency_tracking
793 enable_selective_werror
794 enable_strict_compilation
795 with_gnu_ld
796 enable_rpath
797 with_libiconv_prefix
798 with_xft
799 with_xkb
800 with_appdefaultdir
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 PKG_CONFIG
811 PKG_CONFIG_PATH
812 PKG_CONFIG_LIBDIR
813 CPP
814 XCLOCK_CFLAGS
815 XCLOCK_LIBS
816 XFT_CFLAGS
817 XFT_LIBS
818 XKB_CFLAGS
819 XKB_LIBS
820 APPDEFS_CFLAGS
821 APPDEFS_LIBS'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 runstatedir='${localstatedir}/run'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
882 fi
883
884 case $ac_option in
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *=) ac_optarg= ;;
887 *) ac_optarg=yes ;;
888 esac
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: \`$ac_useropt'"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: \`$ac_useropt'"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: \`$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: \`$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 printf "%s\n" X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures xclock 1.1.1 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/xclock]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of xclock 1.1.1:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-dependency-tracking
1452 do not reject slow dependency extractors
1453 --disable-dependency-tracking
1454 speeds up one-time build
1455 --disable-selective-werror
1456 Turn off selective compiler errors. (default:
1457 enabled)
1458 --enable-strict-compilation
1459 Enable all warnings from compiler and make them
1460 errors (default: disabled)
1461 --disable-rpath do not hardcode runtime library paths
1462
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1468 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1469 --with-xft Use Xft2 and Xrender for rendering (Default is YES)
1470 --with-xkb Use XKB to sound bells (Default is YES)
1471 --with-appdefaultdir=<pathname>
1472 specify directory for app-defaults files (default is
1473 autodetected)
1474
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 PKG_CONFIG path to pkg-config utility
1484 PKG_CONFIG_PATH
1485 directories to add to pkg-config's search path
1486 PKG_CONFIG_LIBDIR
1487 path overriding pkg-config's built-in search path
1488 CPP C preprocessor
1489 XCLOCK_CFLAGS
1490 C compiler flags for XCLOCK, overriding pkg-config
1491 XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1492 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
1493 XFT_LIBS linker flags for XFT, overriding pkg-config
1494 XKB_CFLAGS C compiler flags for XKB, overriding pkg-config
1495 XKB_LIBS linker flags for XKB, overriding pkg-config
1496 APPDEFS_CFLAGS
1497 C compiler flags for APPDEFS, overriding pkg-config
1498 APPDEFS_LIBS
1499 linker flags for APPDEFS, overriding pkg-config
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for configure.gnu first; this name is used for a wrapper for
1551 # Metaconfig's "Configure" on case-insensitive file systems.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 xclock configure 1.1.1
1569 generated by GNU Autoconf 2.71
1570
1571 Copyright (C) 2021 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest.beam
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 printf "%s\n" "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext
1608 then :
1609 ac_retval=0
1610 else $as_nop
1611 printf "%s\n" "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1622 # ------------------------------------------------------------------
1623 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1624 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1625 ac_fn_check_decl ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 as_decl_name=`echo $2|sed 's/ *(.*//'`
1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1630 printf %s "checking whether $as_decl_name is declared... " >&6; }
1631 if eval test \${$3+y}
1632 then :
1633 printf %s "(cached) " >&6
1634 else $as_nop
1635 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1636 eval ac_save_FLAGS=\$$6
1637 as_fn_append $6 " $5"
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 int
1642 main (void)
1643 {
1644 #ifndef $as_decl_name
1645 #ifdef __cplusplus
1646 (void) $as_decl_use;
1647 #else
1648 (void) $as_decl_name;
1649 #endif
1650 #endif
1651
1652 ;
1653 return 0;
1654 }
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 eval $6=\$ac_save_FLAGS
1664
1665 fi
1666 eval ac_res=\$$3
1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 printf "%s\n" "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_check_decl
1672
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 printf %s "checking for $2... " >&6; }
1682 if eval test \${$3+y}
1683 then :
1684 printf %s "(cached) " >&6
1685 else $as_nop
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"
1692 then :
1693 eval "$3=yes"
1694 else $as_nop
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 printf "%s\n" "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 printf "%s\n" "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 test -x conftest$ac_exeext
1734 }
1735 then :
1736 ac_retval=0
1737 else $as_nop
1738 printf "%s\n" "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_link
1752
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 printf %s "checking for $2... " >&6; }
1761 if eval test \${$3+y}
1762 then :
1763 printf %s "(cached) " >&6
1764 else $as_nop
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1770
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below. */
1773
1774 #include <limits.h>
1775 #undef $2
1776
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1790
1791 int
1792 main (void)
1793 {
1794 return $2 ();
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"
1800 then :
1801 eval "$3=yes"
1802 else $as_nop
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1806 conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 printf "%s\n" "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_cpp ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 printf "%s\n" "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } > conftest.i && {
1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 }
1840 then :
1841 ac_retval=0
1842 else $as_nop
1843 printf "%s\n" "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847 fi
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_cpp
1852
1853 # ac_fn_c_try_run LINENO
1854 # ----------------------
1855 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1856 # executables *can* be run.
1857 ac_fn_c_try_run ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 printf "%s\n" "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>&5
1868 ac_status=$?
1869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1871 { { case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 printf "%s\n" "$ac_try_echo"; } >&5
1877 (eval "$ac_try") 2>&5
1878 ac_status=$?
1879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; }; }
1881 then :
1882 ac_retval=0
1883 else $as_nop
1884 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1885 printf "%s\n" "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889 fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895 ac_configure_args_raw=
1896 for ac_arg
1897 do
1898 case $ac_arg in
1899 *\'*)
1900 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 esac
1902 as_fn_append ac_configure_args_raw " '$ac_arg'"
1903 done
1904
1905 case $ac_configure_args_raw in
1906 *$as_nl*)
1907 ac_safe_unquote= ;;
1908 *)
1909 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1910 ac_unsafe_a="$ac_unsafe_z#~"
1911 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1912 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1913 esac
1914
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1918
1919 It was created by xclock $as_me 1.1.1, which was
1920 generated by GNU Autoconf 2.71. Invocation command line was
1921
1922 $ $0$ac_configure_args_raw
1923
1924 _ACEOF
1925 exec 5>>config.log
1926 {
1927 cat <<_ASUNAME
1928 ## --------- ##
1929 ## Platform. ##
1930 ## --------- ##
1931
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949 _ASUNAME
1950
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954 IFS=$as_save_IFS
1955 case $as_dir in #(((
1956 '') as_dir=./ ;;
1957 */) ;;
1958 *) as_dir=$as_dir/ ;;
1959 esac
1960 printf "%s\n" "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 2)
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
2016 as_fn_append ac_configure_args " '$ac_arg'"
2017 ;;
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Sanitize IFS.
2031 IFS=" "" $as_nl"
2032 # Save into config.log some information that might help in debugging.
2033 {
2034 echo
2035
2036 printf "%s\n" "## ---------------- ##
2037 ## Cache variables. ##
2038 ## ---------------- ##"
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
2041 (
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
2057 (set) 2>&1 |
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
2060 sed -n \
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
2064 *)
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 ;;
2067 esac |
2068 sort
2069 )
2070 echo
2071
2072 printf "%s\n" "## ----------------- ##
2073 ## Output variables. ##
2074 ## ----------------- ##"
2075 echo
2076 for ac_var in $ac_subst_vars
2077 do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 printf "%s\n" "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2085
2086 if test -n "$ac_subst_files"; then
2087 printf "%s\n" "## ------------------- ##
2088 ## File substitutions. ##
2089 ## ------------------- ##"
2090 echo
2091 for ac_var in $ac_subst_files
2092 do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 printf "%s\n" "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2100 fi
2101
2102 if test -s confdefs.h; then
2103 printf "%s\n" "## ----------- ##
2104 ## confdefs.h. ##
2105 ## ----------- ##"
2106 echo
2107 cat confdefs.h
2108 echo
2109 fi
2110 test "$ac_signal" != 0 &&
2111 printf "%s\n" "$as_me: caught signal $ac_signal"
2112 printf "%s\n" "$as_me: exit $exit_status"
2113 } >&5
2114 rm -f core *.core core.conftest.* &&
2115 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2116 exit $exit_status
2117 ' 0
2118 for ac_signal in 1 2 13 15; do
2119 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2120 done
2121 ac_signal=0
2122
2123 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2124 rm -f -r conftest* confdefs.h
2125
2126 printf "%s\n" "/* confdefs.h */" > confdefs.h
2127
2128 # Predefined preprocessor variables.
2129
2130 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2131
2132 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2133
2134 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2135
2136 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2137
2138 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2139
2140 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2141
2142
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 if test -n "$CONFIG_SITE"; then
2146 ac_site_files="$CONFIG_SITE"
2147 elif test "x$prefix" != xNONE; then
2148 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2149 else
2150 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2151 fi
2152
2153 for ac_site_file in $ac_site_files
2154 do
2155 case $ac_site_file in #(
2156 */*) :
2157 ;; #(
2158 *) :
2159 ac_site_file=./$ac_site_file ;;
2160 esac
2161 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2164 sed 's/^/| /' "$ac_site_file" >&5
2165 . "$ac_site_file" \
2166 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2168 as_fn_error $? "failed to load site script $ac_site_file
2169 See \`config.log' for more details" "$LINENO" 5; }
2170 fi
2171 done
2172
2173 if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special files
2175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2179 case $cache_file in
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
2182 esac
2183 fi
2184 else
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2187 >$cache_file
2188 fi
2189
2190 # Test code for whether the C compiler supports C89 (global declarations)
2191 ac_c_conftest_c89_globals='
2192 /* Does the compiler advertise C89 conformance?
2193 Do not test the value of __STDC__, because some compilers set it to 0
2194 while being otherwise adequately conformant. */
2195 #if !defined __STDC__
2196 # error "Compiler does not advertise C89 conformance"
2197 #endif
2198
2199 #include <stddef.h>
2200 #include <stdarg.h>
2201 struct stat;
2202 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2203 struct buf { int x; };
2204 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2206 char **p;
2207 int i;
2208 {
2209 return p[i];
2210 }
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2212 {
2213 char *s;
2214 va_list v;
2215 va_start (v,p);
2216 s = g (p, va_arg (v,int));
2217 va_end (v);
2218 return s;
2219 }
2220
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2222 function prototypes and stuff, but not \xHH hex character constants.
2223 These do not provoke an error unfortunately, instead are silently treated
2224 as an "x". The following induces an error, until -std is added to get
2225 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2226 array size at least. It is necessary to write \x00 == 0 to get something
2227 that is true only with -std. */
2228 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2229
2230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2231 inside strings and character constants. */
2232 #define FOO(x) '\''x'\''
2233 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2234
2235 int test (int i, double x);
2236 struct s1 {int (*f) (int a);};
2237 struct s2 {int (*f) (double a);};
2238 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2239 int, int);'
2240
2241 # Test code for whether the C compiler supports C89 (body of main).
2242 ac_c_conftest_c89_main='
2243 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2244 '
2245
2246 # Test code for whether the C compiler supports C99 (global declarations)
2247 ac_c_conftest_c99_globals='
2248 // Does the compiler advertise C99 conformance?
2249 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2250 # error "Compiler does not advertise C99 conformance"
2251 #endif
2252
2253 #include <stdbool.h>
2254 extern int puts (const char *);
2255 extern int printf (const char *, ...);
2256 extern int dprintf (int, const char *, ...);
2257 extern void *malloc (size_t);
2258
2259 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2260 // dprintf is used instead of fprintf to avoid needing to declare
2261 // FILE and stderr.
2262 #define debug(...) dprintf (2, __VA_ARGS__)
2263 #define showlist(...) puts (#__VA_ARGS__)
2264 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2265 static void
2266 test_varargs_macros (void)
2267 {
2268 int x = 1234;
2269 int y = 5678;
2270 debug ("Flag");
2271 debug ("X = %d\n", x);
2272 showlist (The first, second, and third items.);
2273 report (x>y, "x is %d but y is %d", x, y);
2274 }
2275
2276 // Check long long types.
2277 #define BIG64 18446744073709551615ull
2278 #define BIG32 4294967295ul
2279 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2280 #if !BIG_OK
2281 #error "your preprocessor is broken"
2282 #endif
2283 #if BIG_OK
2284 #else
2285 #error "your preprocessor is broken"
2286 #endif
2287 static long long int bignum = -9223372036854775807LL;
2288 static unsigned long long int ubignum = BIG64;
2289
2290 struct incomplete_array
2291 {
2292 int datasize;
2293 double data[];
2294 };
2295
2296 struct named_init {
2297 int number;
2298 const wchar_t *name;
2299 double average;
2300 };
2301
2302 typedef const char *ccp;
2303
2304 static inline int
2305 test_restrict (ccp restrict text)
2306 {
2307 // See if C++-style comments work.
2308 // Iterate through items via the restricted pointer.
2309 // Also check for declarations in for loops.
2310 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2311 continue;
2312 return 0;
2313 }
2314
2315 // Check varargs and va_copy.
2316 static bool
2317 test_varargs (const char *format, ...)
2318 {
2319 va_list args;
2320 va_start (args, format);
2321 va_list args_copy;
2322 va_copy (args_copy, args);
2323
2324 const char *str = "";
2325 int number = 0;
2326 float fnumber = 0;
2327
2328 while (*format)
2329 {
2330 switch (*format++)
2331 {
2332 case '\''s'\'': // string
2333 str = va_arg (args_copy, const char *);
2334 break;
2335 case '\''d'\'': // int
2336 number = va_arg (args_copy, int);
2337 break;
2338 case '\''f'\'': // float
2339 fnumber = va_arg (args_copy, double);
2340 break;
2341 default:
2342 break;
2343 }
2344 }
2345 va_end (args_copy);
2346 va_end (args);
2347
2348 return *str && number && fnumber;
2349 }
2350 '
2351
2352 # Test code for whether the C compiler supports C99 (body of main).
2353 ac_c_conftest_c99_main='
2354 // Check bool.
2355 _Bool success = false;
2356 success |= (argc != 0);
2357
2358 // Check restrict.
2359 if (test_restrict ("String literal") == 0)
2360 success = true;
2361 char *restrict newvar = "Another string";
2362
2363 // Check varargs.
2364 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2365 test_varargs_macros ();
2366
2367 // Check flexible array members.
2368 struct incomplete_array *ia =
2369 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2370 ia->datasize = 10;
2371 for (int i = 0; i < ia->datasize; ++i)
2372 ia->data[i] = i * 1.234;
2373
2374 // Check named initializers.
2375 struct named_init ni = {
2376 .number = 34,
2377 .name = L"Test wide string",
2378 .average = 543.34343,
2379 };
2380
2381 ni.number = 58;
2382
2383 int dynamic_array[ni.number];
2384 dynamic_array[0] = argv[0][0];
2385 dynamic_array[ni.number - 1] = 543;
2386
2387 // work around unused variable warnings
2388 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2389 || dynamic_array[ni.number - 1] != 543);
2390 '
2391
2392 # Test code for whether the C compiler supports C11 (global declarations)
2393 ac_c_conftest_c11_globals='
2394 // Does the compiler advertise C11 conformance?
2395 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2396 # error "Compiler does not advertise C11 conformance"
2397 #endif
2398
2399 // Check _Alignas.
2400 char _Alignas (double) aligned_as_double;
2401 char _Alignas (0) no_special_alignment;
2402 extern char aligned_as_int;
2403 char _Alignas (0) _Alignas (int) aligned_as_int;
2404
2405 // Check _Alignof.
2406 enum
2407 {
2408 int_alignment = _Alignof (int),
2409 int_array_alignment = _Alignof (int[100]),
2410 char_alignment = _Alignof (char)
2411 };
2412 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2413
2414 // Check _Noreturn.
2415 int _Noreturn does_not_return (void) { for (;;) continue; }
2416
2417 // Check _Static_assert.
2418 struct test_static_assert
2419 {
2420 int x;
2421 _Static_assert (sizeof (int) <= sizeof (long int),
2422 "_Static_assert does not work in struct");
2423 long int y;
2424 };
2425
2426 // Check UTF-8 literals.
2427 #define u8 syntax error!
2428 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2429
2430 // Check duplicate typedefs.
2431 typedef long *long_ptr;
2432 typedef long int *long_ptr;
2433 typedef long_ptr long_ptr;
2434
2435 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2436 struct anonymous
2437 {
2438 union {
2439 struct { int i; int j; };
2440 struct { int k; long int l; } w;
2441 };
2442 int m;
2443 } v1;
2444 '
2445
2446 # Test code for whether the C compiler supports C11 (body of main).
2447 ac_c_conftest_c11_main='
2448 _Static_assert ((offsetof (struct anonymous, i)
2449 == offsetof (struct anonymous, w.k)),
2450 "Anonymous union alignment botch");
2451 v1.i = 2;
2452 v1.w.k = 5;
2453 ok |= v1.i != 5;
2454 '
2455
2456 # Test code for whether the C compiler supports C11 (complete).
2457 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2458 ${ac_c_conftest_c99_globals}
2459 ${ac_c_conftest_c11_globals}
2460
2461 int
2462 main (int argc, char **argv)
2463 {
2464 int ok = 0;
2465 ${ac_c_conftest_c89_main}
2466 ${ac_c_conftest_c99_main}
2467 ${ac_c_conftest_c11_main}
2468 return ok;
2469 }
2470 "
2471
2472 # Test code for whether the C compiler supports C99 (complete).
2473 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2474 ${ac_c_conftest_c99_globals}
2475
2476 int
2477 main (int argc, char **argv)
2478 {
2479 int ok = 0;
2480 ${ac_c_conftest_c89_main}
2481 ${ac_c_conftest_c99_main}
2482 return ok;
2483 }
2484 "
2485
2486 # Test code for whether the C compiler supports C89 (complete).
2487 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2488
2489 int
2490 main (int argc, char **argv)
2491 {
2492 int ok = 0;
2493 ${ac_c_conftest_c89_main}
2494 return ok;
2495 }
2496 "
2497
2498 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2499 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2500 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2501 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2502 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2503 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2504 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2505 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2506 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2507
2508 # Auxiliary files required by this configure script.
2509 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
2510
2511 # Locations in which to look for auxiliary files.
2512 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2513
2514 # Search for a directory containing all of the required auxiliary files,
2515 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2516 # If we don't find one directory that contains all the files we need,
2517 # we report the set of missing files from the *first* directory in
2518 # $ac_aux_dir_candidates and give up.
2519 ac_missing_aux_files=""
2520 ac_first_candidate=:
2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 as_found=false
2524 for as_dir in $ac_aux_dir_candidates
2525 do
2526 IFS=$as_save_IFS
2527 case $as_dir in #(((
2528 '') as_dir=./ ;;
2529 */) ;;
2530 *) as_dir=$as_dir/ ;;
2531 esac
2532 as_found=:
2533
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2535 ac_aux_dir_found=yes
2536 ac_install_sh=
2537 for ac_aux in $ac_aux_files
2538 do
2539 # As a special case, if "install-sh" is required, that requirement
2540 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2541 # and $ac_install_sh is set appropriately for whichever one is found.
2542 if test x"$ac_aux" = x"install-sh"
2543 then
2544 if test -f "${as_dir}install-sh"; then
2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2546 ac_install_sh="${as_dir}install-sh -c"
2547 elif test -f "${as_dir}install.sh"; then
2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2549 ac_install_sh="${as_dir}install.sh -c"
2550 elif test -f "${as_dir}shtool"; then
2551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2552 ac_install_sh="${as_dir}shtool install -c"
2553 else
2554 ac_aux_dir_found=no
2555 if $ac_first_candidate; then
2556 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2557 else
2558 break
2559 fi
2560 fi
2561 else
2562 if test -f "${as_dir}${ac_aux}"; then
2563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2564 else
2565 ac_aux_dir_found=no
2566 if $ac_first_candidate; then
2567 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2568 else
2569 break
2570 fi
2571 fi
2572 fi
2573 done
2574 if test "$ac_aux_dir_found" = yes; then
2575 ac_aux_dir="$as_dir"
2576 break
2577 fi
2578 ac_first_candidate=false
2579
2580 as_found=false
2581 done
2582 IFS=$as_save_IFS
2583 if $as_found
2584 then :
2585
2586 else $as_nop
2587 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2588 fi
2589
2590
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 if test -f "${ac_aux_dir}config.guess"; then
2596 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2597 fi
2598 if test -f "${ac_aux_dir}config.sub"; then
2599 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2600 fi
2601 if test -f "$ac_aux_dir/configure"; then
2602 ac_configure="$SHELL ${ac_aux_dir}configure"
2603 fi
2604
2605 # Check that the precious variables saved in the cache have kept the same
2606 # value.
2607 ac_cache_corrupted=false
2608 for ac_var in $ac_precious_vars; do
2609 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2610 eval ac_new_set=\$ac_env_${ac_var}_set
2611 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2612 eval ac_new_val=\$ac_env_${ac_var}_value
2613 case $ac_old_set,$ac_new_set in
2614 set,)
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2616 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2617 ac_cache_corrupted=: ;;
2618 ,set)
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2620 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,);;
2623 *)
2624 if test "x$ac_old_val" != "x$ac_new_val"; then
2625 # differences in whitespace do not lead to failure.
2626 ac_old_val_w=`echo x $ac_old_val`
2627 ac_new_val_w=`echo x $ac_new_val`
2628 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2630 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2631 ac_cache_corrupted=:
2632 else
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2634 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2635 eval $ac_var=\$ac_old_val
2636 fi
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2638 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2640 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2641 fi;;
2642 esac
2643 # Pass precious variables to config.status.
2644 if test "$ac_new_set" = set; then
2645 case $ac_new_val in
2646 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2647 *) ac_arg=$ac_var=$ac_new_val ;;
2648 esac
2649 case " $ac_configure_args " in
2650 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2651 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2652 esac
2653 fi
2654 done
2655 if $ac_cache_corrupted; then
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2659 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2660 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2661 and start over" "$LINENO" 5
2662 fi
2663 ## -------------------- ##
2664 ## Main body of script. ##
2665 ## -------------------- ##
2666
2667 ac_ext=c
2668 ac_cpp='$CPP $CPPFLAGS'
2669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672
2673
2674
2675 ac_config_headers="$ac_config_headers config.h"
2676
2677
2678 # Initialize Automake
2679 am__api_version='1.16'
2680
2681
2682
2683 # Find a good install program. We prefer a C program (faster),
2684 # so one script is as good as another. But avoid the broken or
2685 # incompatible versions:
2686 # SysV /etc/install, /usr/sbin/install
2687 # SunOS /usr/etc/install
2688 # IRIX /sbin/install
2689 # AIX /bin/install
2690 # AmigaOS /C/install, which installs bootblocks on floppy discs
2691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694 # OS/2's system install, which has a completely different semantic
2695 # ./install, which can be erroneously created by make from ./install.sh.
2696 # Reject install programs that cannot install multiple files.
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698 printf %s "checking for a BSD-compatible install... " >&6; }
2699 if test -z "$INSTALL"; then
2700 if test ${ac_cv_path_install+y}
2701 then :
2702 printf %s "(cached) " >&6
2703 else $as_nop
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 case $as_dir in #(((
2709 '') as_dir=./ ;;
2710 */) ;;
2711 *) as_dir=$as_dir/ ;;
2712 esac
2713 # Account for fact that we put trailing slashes in our PATH walk.
2714 case $as_dir in #((
2715 ./ | /[cC]/* | \
2716 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2717 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2718 /usr/ucb/* ) ;;
2719 *)
2720 # OSF1 and SCO ODT 3.0 have their own names for install.
2721 # Don't use installbsd from OSF since it installs stuff as root
2722 # by default.
2723 for ac_prog in ginstall scoinst install; do
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2726 if test $ac_prog = install &&
2727 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2728 # AIX install. It has an incompatible calling convention.
2729 :
2730 elif test $ac_prog = install &&
2731 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732 # program-specific install script used by HP pwplus--don't use.
2733 :
2734 else
2735 rm -rf conftest.one conftest.two conftest.dir
2736 echo one > conftest.one
2737 echo two > conftest.two
2738 mkdir conftest.dir
2739 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2740 test -s conftest.one && test -s conftest.two &&
2741 test -s conftest.dir/conftest.one &&
2742 test -s conftest.dir/conftest.two
2743 then
2744 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2745 break 3
2746 fi
2747 fi
2748 fi
2749 done
2750 done
2751 ;;
2752 esac
2753
2754 done
2755 IFS=$as_save_IFS
2756
2757 rm -rf conftest.one conftest.two conftest.dir
2758
2759 fi
2760 if test ${ac_cv_path_install+y}; then
2761 INSTALL=$ac_cv_path_install
2762 else
2763 # As a last resort, use the slow shell script. Don't cache a
2764 # value for INSTALL within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the value is a relative name.
2767 INSTALL=$ac_install_sh
2768 fi
2769 fi
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2771 printf "%s\n" "$INSTALL" >&6; }
2772
2773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2774 # It thinks the first close brace ends the variable substitution.
2775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2776
2777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2778
2779 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2780
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2782 printf %s "checking whether build environment is sane... " >&6; }
2783 # Reject unsafe characters in $srcdir or the absolute working directory
2784 # name. Accept space and tab only in the latter.
2785 am_lf='
2786 '
2787 case `pwd` in
2788 *[\\\"\#\$\&\'\`$am_lf]*)
2789 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2790 esac
2791 case $srcdir in
2792 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2793 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2794 esac
2795
2796 # Do 'set' in a subshell so we don't clobber the current shell's
2797 # arguments. Must try -L first in case configure is actually a
2798 # symlink; some systems play weird games with the mod time of symlinks
2799 # (eg FreeBSD returns the mod time of the symlink's containing
2800 # directory).
2801 if (
2802 am_has_slept=no
2803 for am_try in 1 2; do
2804 echo "timestamp, slept: $am_has_slept" > conftest.file
2805 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2806 if test "$*" = "X"; then
2807 # -L didn't work.
2808 set X `ls -t "$srcdir/configure" conftest.file`
2809 fi
2810 if test "$*" != "X $srcdir/configure conftest.file" \
2811 && test "$*" != "X conftest.file $srcdir/configure"; then
2812
2813 # If neither matched, then we have a broken ls. This can happen
2814 # if, for instance, CONFIG_SHELL is bash and it inherits a
2815 # broken ls alias from the environment. This has actually
2816 # happened. Such a system could not be considered "sane".
2817 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2818 alias in your environment" "$LINENO" 5
2819 fi
2820 if test "$2" = conftest.file || test $am_try -eq 2; then
2821 break
2822 fi
2823 # Just in case.
2824 sleep 1
2825 am_has_slept=yes
2826 done
2827 test "$2" = conftest.file
2828 )
2829 then
2830 # Ok.
2831 :
2832 else
2833 as_fn_error $? "newly created file is older than distributed files!
2834 Check your system clock" "$LINENO" 5
2835 fi
2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837 printf "%s\n" "yes" >&6; }
2838 # If we didn't sleep, we still need to ensure time stamps of config.status and
2839 # generated files are strictly newer.
2840 am_sleep_pid=
2841 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2842 ( sleep 1 ) &
2843 am_sleep_pid=$!
2844 fi
2845
2846 rm -f conftest.file
2847
2848 test "$program_prefix" != NONE &&
2849 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2850 # Use a double $ so make ignores it.
2851 test "$program_suffix" != NONE &&
2852 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2853 # Double any \ or $.
2854 # By default was `s,x,x', remove it if useless.
2855 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2856 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2857
2858
2859 # Expand $ac_aux_dir to an absolute path.
2860 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2861
2862
2863 if test x"${MISSING+set}" != xset; then
2864 MISSING="\${SHELL} '$am_aux_dir/missing'"
2865 fi
2866 # Use eval to expand $SHELL
2867 if eval "$MISSING --is-lightweight"; then
2868 am_missing_run="$MISSING "
2869 else
2870 am_missing_run=
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2872 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2873 fi
2874
2875 if test x"${install_sh+set}" != xset; then
2876 case $am_aux_dir in
2877 *\ * | *\ *)
2878 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2879 *)
2880 install_sh="\${SHELL} $am_aux_dir/install-sh"
2881 esac
2882 fi
2883
2884 # Installed binaries are usually stripped using 'strip' when the user
2885 # run "make install-strip". However 'strip' might not be the right
2886 # tool to use in cross-compilation environments, therefore Automake
2887 # will honor the 'STRIP' environment variable to overrule this program.
2888 if test "$cross_compiling" != no; then
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}strip; ac_word=$2
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 printf %s "checking for $ac_word... " >&6; }
2894 if test ${ac_cv_prog_STRIP+y}
2895 then :
2896 printf %s "(cached) " >&6
2897 else $as_nop
2898 if test -n "$STRIP"; then
2899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 case $as_dir in #(((
2906 '') as_dir=./ ;;
2907 */) ;;
2908 *) as_dir=$as_dir/ ;;
2909 esac
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 STRIP=$ac_cv_prog_STRIP
2923 if test -n "$STRIP"; then
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925 printf "%s\n" "$STRIP" >&6; }
2926 else
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 printf "%s\n" "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$ac_cv_prog_STRIP"; then
2934 ac_ct_STRIP=$STRIP
2935 # Extract the first word of "strip", so it can be a program name with args.
2936 set dummy strip; ac_word=$2
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 printf %s "checking for $ac_word... " >&6; }
2939 if test ${ac_cv_prog_ac_ct_STRIP+y}
2940 then :
2941 printf %s "(cached) " >&6
2942 else $as_nop
2943 if test -n "$ac_ct_STRIP"; then
2944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 case $as_dir in #(((
2951 '') as_dir=./ ;;
2952 */) ;;
2953 *) as_dir=$as_dir/ ;;
2954 esac
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_ac_ct_STRIP="strip"
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968 if test -n "$ac_ct_STRIP"; then
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970 printf "%s\n" "$ac_ct_STRIP" >&6; }
2971 else
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 printf "%s\n" "no" >&6; }
2974 fi
2975
2976 if test "x$ac_ct_STRIP" = x; then
2977 STRIP=":"
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985 STRIP=$ac_ct_STRIP
2986 fi
2987 else
2988 STRIP="$ac_cv_prog_STRIP"
2989 fi
2990
2991 fi
2992 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2993
2994
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2996 printf %s "checking for a race-free mkdir -p... " >&6; }
2997 if test -z "$MKDIR_P"; then
2998 if test ${ac_cv_path_mkdir+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else $as_nop
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3004 do
3005 IFS=$as_save_IFS
3006 case $as_dir in #(((
3007 '') as_dir=./ ;;
3008 */) ;;
3009 *) as_dir=$as_dir/ ;;
3010 esac
3011 for ac_prog in mkdir gmkdir; do
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3014 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015 'mkdir ('*'coreutils) '* | \
3016 'BusyBox '* | \
3017 'mkdir (fileutils) '4.1*)
3018 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3019 break 3;;
3020 esac
3021 done
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027
3028 test -d ./--version && rmdir ./--version
3029 if test ${ac_cv_path_mkdir+y}; then
3030 MKDIR_P="$ac_cv_path_mkdir -p"
3031 else
3032 # As a last resort, use the slow shell script. Don't cache a
3033 # value for MKDIR_P within a source directory, because that will
3034 # break other packages using the cache if that directory is
3035 # removed, or if the value is a relative name.
3036 MKDIR_P="$ac_install_sh -d"
3037 fi
3038 fi
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040 printf "%s\n" "$MKDIR_P" >&6; }
3041
3042 for ac_prog in gawk mawk nawk awk
3043 do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 printf %s "checking for $ac_word... " >&6; }
3048 if test ${ac_cv_prog_AWK+y}
3049 then :
3050 printf %s "(cached) " >&6
3051 else $as_nop
3052 if test -n "$AWK"; then
3053 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 case $as_dir in #(((
3060 '') as_dir=./ ;;
3061 */) ;;
3062 *) as_dir=$as_dir/ ;;
3063 esac
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_AWK="$ac_prog"
3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 AWK=$ac_cv_prog_AWK
3077 if test -n "$AWK"; then
3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3079 printf "%s\n" "$AWK" >&6; }
3080 else
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 printf "%s\n" "no" >&6; }
3083 fi
3084
3085
3086 test -n "$AWK" && break
3087 done
3088
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3091 set x ${MAKE-make}
3092 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else $as_nop
3097 cat >conftest.make <<\_ACEOF
3098 SHELL = /bin/sh
3099 all:
3100 @echo '@@@%%%=$(MAKE)=@@@%%%'
3101 _ACEOF
3102 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104 *@@@%%%=?*=@@@%%%*)
3105 eval ac_cv_prog_make_${ac_make}_set=yes;;
3106 *)
3107 eval ac_cv_prog_make_${ac_make}_set=no;;
3108 esac
3109 rm -f conftest.make
3110 fi
3111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 printf "%s\n" "yes" >&6; }
3114 SET_MAKE=
3115 else
3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 printf "%s\n" "no" >&6; }
3118 SET_MAKE="MAKE=${MAKE-make}"
3119 fi
3120
3121 rm -rf .tst 2>/dev/null
3122 mkdir .tst 2>/dev/null
3123 if test -d .tst; then
3124 am__leading_dot=.
3125 else
3126 am__leading_dot=_
3127 fi
3128 rmdir .tst 2>/dev/null
3129
3130 # Check whether --enable-silent-rules was given.
3131 if test ${enable_silent_rules+y}
3132 then :
3133 enableval=$enable_silent_rules;
3134 fi
3135
3136 case $enable_silent_rules in # (((
3137 yes) AM_DEFAULT_VERBOSITY=0;;
3138 no) AM_DEFAULT_VERBOSITY=1;;
3139 *) AM_DEFAULT_VERBOSITY=1;;
3140 esac
3141 am_make=${MAKE-make}
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3143 printf %s "checking whether $am_make supports nested variables... " >&6; }
3144 if test ${am_cv_make_support_nested_variables+y}
3145 then :
3146 printf %s "(cached) " >&6
3147 else $as_nop
3148 if printf "%s\n" 'TRUE=$(BAR$(V))
3149 BAR0=false
3150 BAR1=true
3151 V=1
3152 am__doit:
3153 @$(TRUE)
3154 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3155 am_cv_make_support_nested_variables=yes
3156 else
3157 am_cv_make_support_nested_variables=no
3158 fi
3159 fi
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3161 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3162 if test $am_cv_make_support_nested_variables = yes; then
3163 AM_V='$(V)'
3164 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3165 else
3166 AM_V=$AM_DEFAULT_VERBOSITY
3167 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3168 fi
3169 AM_BACKSLASH='\'
3170
3171 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3172 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3173 # is not polluted with repeated "-I."
3174 am__isrc=' -I$(srcdir)'
3175 # test to see if srcdir already configured
3176 if test -f $srcdir/config.status; then
3177 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3178 fi
3179 fi
3180
3181 # test whether we have cygpath
3182 if test -z "$CYGPATH_W"; then
3183 if (cygpath --version) >/dev/null 2>/dev/null; then
3184 CYGPATH_W='cygpath -w'
3185 else
3186 CYGPATH_W=echo
3187 fi
3188 fi
3189
3190
3191 # Define the identity of the package.
3192 PACKAGE='xclock'
3193 VERSION='1.1.1'
3194
3195
3196 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3197
3198
3199 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3200
3201 # Some tools Automake needs.
3202
3203 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3204
3205
3206 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3207
3208
3209 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3210
3211
3212 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3213
3214
3215 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3216
3217 # For better backward compatibility. To be removed once Automake 1.9.x
3218 # dies out for good. For more background, see:
3219 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3220 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3221 mkdir_p='$(MKDIR_P)'
3222
3223 # We need awk for the "check" target (and possibly the TAP driver). The
3224 # system "awk" is bad on some platforms.
3225 # Always define AMTAR for backward compatibility. Yes, it's still used
3226 # in the wild :-( We should find a proper way to deprecate it ...
3227 AMTAR='$${TAR-tar}'
3228
3229
3230 # We'll loop over all known methods to create a tar archive until one works.
3231 _am_tools='gnutar pax cpio none'
3232
3233 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3234
3235
3236
3237
3238
3239 # Variables for tags utilities; see am/tags.am
3240 if test -z "$CTAGS"; then
3241 CTAGS=ctags
3242 fi
3243
3244 if test -z "$ETAGS"; then
3245 ETAGS=etags
3246 fi
3247
3248 if test -z "$CSCOPE"; then
3249 CSCOPE=cscope
3250 fi
3251
3252
3253
3254 # POSIX will say in a future version that running "rm -f" with no argument
3255 # is OK; and we want to be able to make that assumption in our Makefile
3256 # recipes. So use an aggressive probe to check that the usage we want is
3257 # actually supported "in the wild" to an acceptable degree.
3258 # See automake bug#10828.
3259 # To make any issue more visible, cause the running configure to be aborted
3260 # by default if the 'rm' program in use doesn't match our expectations; the
3261 # user can still override this though.
3262 if rm -f && rm -fr && rm -rf; then : OK; else
3263 cat >&2 <<'END'
3264 Oops!
3265
3266 Your 'rm' program seems unable to run without file operands specified
3267 on the command line, even when the '-f' option is present. This is contrary
3268 to the behaviour of most rm programs out there, and not conforming with
3269 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3270
3271 Please tell bug-automake@gnu.org about your system, including the value
3272 of your $PATH and any error possibly output before this message. This
3273 can help us improve future automake versions.
3274
3275 END
3276 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3277 echo 'Configuration will proceed anyway, since you have set the' >&2
3278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3279 echo >&2
3280 else
3281 cat >&2 <<'END'
3282 Aborting the configuration process, to ensure you take notice of the issue.
3283
3284 You can download and install GNU coreutils to get an 'rm' implementation
3285 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3286
3287 If you want to complete the configuration process using your problematic
3288 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3289 to "yes", and re-run configure.
3290
3291 END
3292 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3293 fi
3294 fi
3295
3296
3297 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318 DEPDIR="${am__leading_dot}deps"
3319
3320 ac_config_commands="$ac_config_commands depfiles"
3321
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3323 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3324 cat > confinc.mk << 'END'
3325 am__doit:
3326 @echo this is the am__doit target >confinc.out
3327 .PHONY: am__doit
3328 END
3329 am__include="#"
3330 am__quote=
3331 # BSD make does it like this.
3332 echo '.include "confinc.mk" # ignored' > confmf.BSD
3333 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3334 echo 'include confinc.mk # ignored' > confmf.GNU
3335 _am_result=no
3336 for s in GNU BSD; do
3337 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3338 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }
3342 case $?:`cat confinc.out 2>/dev/null` in #(
3343 '0:this is the am__doit target') :
3344 case $s in #(
3345 BSD) :
3346 am__include='.include' am__quote='"' ;; #(
3347 *) :
3348 am__include='include' am__quote='' ;;
3349 esac ;; #(
3350 *) :
3351 ;;
3352 esac
3353 if test "$am__include" != "#"; then
3354 _am_result="yes ($s style)"
3355 break
3356 fi
3357 done
3358 rm -f confinc.* confmf.*
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3360 printf "%s\n" "${_am_result}" >&6; }
3361
3362 # Check whether --enable-dependency-tracking was given.
3363 if test ${enable_dependency_tracking+y}
3364 then :
3365 enableval=$enable_dependency_tracking;
3366 fi
3367
3368 if test "x$enable_dependency_tracking" != xno; then
3369 am_depcomp="$ac_aux_dir/depcomp"
3370 AMDEPBACKSLASH='\'
3371 am__nodep='_no'
3372 fi
3373 if test "x$enable_dependency_tracking" != xno; then
3374 AMDEP_TRUE=
3375 AMDEP_FALSE='#'
3376 else
3377 AMDEP_TRUE='#'
3378 AMDEP_FALSE=
3379 fi
3380
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 printf %s "checking for $ac_word... " >&6; }
3392 if test ${ac_cv_prog_CC+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else $as_nop
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 case $as_dir in #(((
3404 '') as_dir=./ ;;
3405 */) ;;
3406 *) as_dir=$as_dir/ ;;
3407 esac
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 printf "%s\n" "$CC" >&6; }
3424 else
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 printf "%s\n" "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$ac_cv_prog_CC"; then
3432 ac_ct_CC=$CC
3433 # Extract the first word of "gcc", so it can be a program name with args.
3434 set dummy gcc; ac_word=$2
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 printf %s "checking for $ac_word... " >&6; }
3437 if test ${ac_cv_prog_ac_ct_CC+y}
3438 then :
3439 printf %s "(cached) " >&6
3440 else $as_nop
3441 if test -n "$ac_ct_CC"; then
3442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 case $as_dir in #(((
3449 '') as_dir=./ ;;
3450 */) ;;
3451 *) as_dir=$as_dir/ ;;
3452 esac
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_ac_ct_CC="gcc"
3456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466 if test -n "$ac_ct_CC"; then
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3468 printf "%s\n" "$ac_ct_CC" >&6; }
3469 else
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 printf "%s\n" "no" >&6; }
3472 fi
3473
3474 if test "x$ac_ct_CC" = x; then
3475 CC=""
3476 else
3477 case $cross_compiling:$ac_tool_warned in
3478 yes:)
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3482 esac
3483 CC=$ac_ct_CC
3484 fi
3485 else
3486 CC="$ac_cv_prog_CC"
3487 fi
3488
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}cc; ac_word=$2
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 printf %s "checking for $ac_word... " >&6; }
3495 if test ${ac_cv_prog_CC+y}
3496 then :
3497 printf %s "(cached) " >&6
3498 else $as_nop
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_CC="${ac_tool_prefix}cc"
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 printf "%s\n" "$CC" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532
3533 fi
3534 fi
3535 if test -z "$CC"; then
3536 # Extract the first word of "cc", so it can be a program name with args.
3537 set dummy cc; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_CC+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else $as_nop
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 ac_prog_rejected=no
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 case $as_dir in #(((
3553 '') as_dir=./ ;;
3554 */) ;;
3555 *) as_dir=$as_dir/ ;;
3556 esac
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560 ac_prog_rejected=yes
3561 continue
3562 fi
3563 ac_cv_prog_CC="cc"
3564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567 done
3568 done
3569 IFS=$as_save_IFS
3570
3571 if test $ac_prog_rejected = yes; then
3572 # We found a bogon in the path, so make sure we never use it.
3573 set dummy $ac_cv_prog_CC
3574 shift
3575 if test $# != 0; then
3576 # We chose a different compiler from the bogus one.
3577 # However, it has the same basename, so the bogon will be chosen
3578 # first if we set CC to just the basename; use the full file name.
3579 shift
3580 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3581 fi
3582 fi
3583 fi
3584 fi
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 printf "%s\n" "$CC" >&6; }
3589 else
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 printf "%s\n" "no" >&6; }
3592 fi
3593
3594
3595 fi
3596 if test -z "$CC"; then
3597 if test -n "$ac_tool_prefix"; then
3598 for ac_prog in cl.exe
3599 do
3600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 printf %s "checking for $ac_word... " >&6; }
3604 if test ${ac_cv_prog_CC+y}
3605 then :
3606 printf %s "(cached) " >&6
3607 else $as_nop
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 case $as_dir in #(((
3616 '') as_dir=./ ;;
3617 */) ;;
3618 *) as_dir=$as_dir/ ;;
3619 esac
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 printf "%s\n" "$CC" >&6; }
3636 else
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 printf "%s\n" "no" >&6; }
3639 fi
3640
3641
3642 test -n "$CC" && break
3643 done
3644 fi
3645 if test -z "$CC"; then
3646 ac_ct_CC=$CC
3647 for ac_prog in cl.exe
3648 do
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 printf %s "checking for $ac_word... " >&6; }
3653 if test ${ac_cv_prog_ac_ct_CC+y}
3654 then :
3655 printf %s "(cached) " >&6
3656 else $as_nop
3657 if test -n "$ac_ct_CC"; then
3658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 case $as_dir in #(((
3665 '') as_dir=./ ;;
3666 */) ;;
3667 *) as_dir=$as_dir/ ;;
3668 esac
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_ac_ct_CC="$ac_prog"
3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3673 break 2
3674 fi
3675 done
3676 done
3677 IFS=$as_save_IFS
3678
3679 fi
3680 fi
3681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3682 if test -n "$ac_ct_CC"; then
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3684 printf "%s\n" "$ac_ct_CC" >&6; }
3685 else
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 printf "%s\n" "no" >&6; }
3688 fi
3689
3690
3691 test -n "$ac_ct_CC" && break
3692 done
3693
3694 if test "x$ac_ct_CC" = x; then
3695 CC=""
3696 else
3697 case $cross_compiling:$ac_tool_warned in
3698 yes:)
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701 ac_tool_warned=yes ;;
3702 esac
3703 CC=$ac_ct_CC
3704 fi
3705 fi
3706
3707 fi
3708 if test -z "$CC"; then
3709 if test -n "$ac_tool_prefix"; then
3710 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}clang; ac_word=$2
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 printf %s "checking for $ac_word... " >&6; }
3714 if test ${ac_cv_prog_CC+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724 IFS=$as_save_IFS
3725 case $as_dir in #(((
3726 '') as_dir=./ ;;
3727 */) ;;
3728 *) as_dir=$as_dir/ ;;
3729 esac
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_CC="${ac_tool_prefix}clang"
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738 IFS=$as_save_IFS
3739
3740 fi
3741 fi
3742 CC=$ac_cv_prog_CC
3743 if test -n "$CC"; then
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3745 printf "%s\n" "$CC" >&6; }
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3749 fi
3750
3751
3752 fi
3753 if test -z "$ac_cv_prog_CC"; then
3754 ac_ct_CC=$CC
3755 # Extract the first word of "clang", so it can be a program name with args.
3756 set dummy clang; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_ac_ct_CC+y}
3760 then :
3761 printf %s "(cached) " >&6
3762 else $as_nop
3763 if test -n "$ac_ct_CC"; then
3764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769 IFS=$as_save_IFS
3770 case $as_dir in #(((
3771 '') as_dir=./ ;;
3772 */) ;;
3773 *) as_dir=$as_dir/ ;;
3774 esac
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_ac_ct_CC="clang"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779 break 2
3780 fi
3781 done
3782 done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788 if test -n "$ac_ct_CC"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790 printf "%s\n" "$ac_ct_CC" >&6; }
3791 else
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796 if test "x$ac_ct_CC" = x; then
3797 CC=""
3798 else
3799 case $cross_compiling:$ac_tool_warned in
3800 yes:)
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803 ac_tool_warned=yes ;;
3804 esac
3805 CC=$ac_ct_CC
3806 fi
3807 else
3808 CC="$ac_cv_prog_CC"
3809 fi
3810
3811 fi
3812
3813
3814 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error $? "no acceptable C compiler found in \$PATH
3817 See \`config.log' for more details" "$LINENO" 5; }
3818
3819 # Provide some information about the compiler.
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3821 set X $ac_compile
3822 ac_compiler=$2
3823 for ac_option in --version -v -V -qversion -version; do
3824 { { ac_try="$ac_compiler $ac_option >&5"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 printf "%s\n" "$ac_try_echo"; } >&5
3831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3832 ac_status=$?
3833 if test -s conftest.err; then
3834 sed '10a\
3835 ... rest of stderr output deleted ...
3836 10q' conftest.err >conftest.er1
3837 cat conftest.er1 >&5
3838 fi
3839 rm -f conftest.er1 conftest.err
3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }
3842 done
3843
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 int
3848 main (void)
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 ac_clean_files_save=$ac_clean_files
3856 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3857 # Try to create an executable without -o first, disregard a.out.
3858 # It will help us diagnose broken compilers, and finding out an intuition
3859 # of exeext.
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3861 printf %s "checking whether the C compiler works... " >&6; }
3862 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3863
3864 # The possible output files:
3865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3866
3867 ac_rmfiles=
3868 for ac_file in $ac_files
3869 do
3870 case $ac_file in
3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873 esac
3874 done
3875 rm -f $ac_rmfiles
3876
3877 if { { ac_try="$ac_link_default"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 printf "%s\n" "$ac_try_echo"; } >&5
3884 (eval "$ac_link_default") 2>&5
3885 ac_status=$?
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 then :
3889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3890 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3891 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3892 # so that the user can short-circuit this test for compilers unknown to
3893 # Autoconf.
3894 for ac_file in $ac_files ''
3895 do
3896 test -f "$ac_file" || continue
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3899 ;;
3900 [ab].out )
3901 # We found the default executable, but exeext='' is most
3902 # certainly right.
3903 break;;
3904 *.* )
3905 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3906 then :; else
3907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3908 fi
3909 # We set ac_cv_exeext here because the later test for it is not
3910 # safe: cross compilers may not add the suffix if given an `-o'
3911 # argument, so we may need to know it at that point already.
3912 # Even if this section looks crufty: it has the advantage of
3913 # actually working.
3914 break;;
3915 * )
3916 break;;
3917 esac
3918 done
3919 test "$ac_cv_exeext" = no && ac_cv_exeext=
3920
3921 else $as_nop
3922 ac_file=''
3923 fi
3924 if test -z "$ac_file"
3925 then :
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 printf "%s\n" "no" >&6; }
3928 printf "%s\n" "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error 77 "C compiler cannot create executables
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 else $as_nop
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 printf "%s\n" "yes" >&6; }
3938 fi
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3940 printf %s "checking for C compiler default output file name... " >&6; }
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942 printf "%s\n" "$ac_file" >&6; }
3943 ac_exeext=$ac_cv_exeext
3944
3945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3946 ac_clean_files=$ac_clean_files_save
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948 printf %s "checking for suffix of executables... " >&6; }
3949 if { { ac_try="$ac_link"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 printf "%s\n" "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3957 ac_status=$?
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 then :
3961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3963 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 # `rm'.
3965 for ac_file in conftest.exe conftest conftest.*; do
3966 test -f "$ac_file" || continue
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 break;;
3971 * ) break;;
3972 esac
3973 done
3974 else $as_nop
3975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3978 See \`config.log' for more details" "$LINENO" 5; }
3979 fi
3980 rm -f conftest conftest$ac_cv_exeext
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 printf "%s\n" "$ac_cv_exeext" >&6; }
3983
3984 rm -f conftest.$ac_ext
3985 EXEEXT=$ac_cv_exeext
3986 ac_exeext=$EXEEXT
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <stdio.h>
3990 int
3991 main (void)
3992 {
3993 FILE *f = fopen ("conftest.out", "w");
3994 return ferror (f) || fclose (f) != 0;
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 ac_clean_files="$ac_clean_files conftest.out"
4001 # Check that the compiler produces executables we can run. If not, either
4002 # the compiler is broken, or we cross compile.
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4004 printf %s "checking whether we are cross compiling... " >&6; }
4005 if test "$cross_compiling" != yes; then
4006 { { ac_try="$ac_link"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 printf "%s\n" "$ac_try_echo"; } >&5
4013 (eval "$ac_link") 2>&5
4014 ac_status=$?
4015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
4017 if { ac_try='./conftest$ac_cv_exeext'
4018 { { case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 printf "%s\n" "$ac_try_echo"; } >&5
4024 (eval "$ac_try") 2>&5
4025 ac_status=$?
4026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }; }; then
4028 cross_compiling=no
4029 else
4030 if test "$cross_compiling" = maybe; then
4031 cross_compiling=yes
4032 else
4033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error 77 "cannot run C compiled programs.
4036 If you meant to cross compile, use \`--host'.
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 fi
4040 fi
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4042 printf "%s\n" "$cross_compiling" >&6; }
4043
4044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4045 ac_clean_files=$ac_clean_files_save
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4047 printf %s "checking for suffix of object files... " >&6; }
4048 if test ${ac_cv_objext+y}
4049 then :
4050 printf %s "(cached) " >&6
4051 else $as_nop
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054
4055 int
4056 main (void)
4057 {
4058
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.o conftest.obj
4064 if { { ac_try="$ac_compile"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 printf "%s\n" "$ac_try_echo"; } >&5
4071 (eval "$ac_compile") 2>&5
4072 ac_status=$?
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 then :
4076 for ac_file in conftest.o conftest.obj conftest.*; do
4077 test -f "$ac_file" || continue;
4078 case $ac_file in
4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4081 break;;
4082 esac
4083 done
4084 else $as_nop
4085 printf "%s\n" "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error $? "cannot compute suffix of object files: cannot compile
4091 See \`config.log' for more details" "$LINENO" 5; }
4092 fi
4093 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4094 fi
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096 printf "%s\n" "$ac_cv_objext" >&6; }
4097 OBJEXT=$ac_cv_objext
4098 ac_objext=$OBJEXT
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4100 printf %s "checking whether the compiler supports GNU C... " >&6; }
4101 if test ${ac_cv_c_compiler_gnu+y}
4102 then :
4103 printf %s "(cached) " >&6
4104 else $as_nop
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107
4108 int
4109 main (void)
4110 {
4111 #ifndef __GNUC__
4112 choke me
4113 #endif
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"
4120 then :
4121 ac_compiler_gnu=yes
4122 else $as_nop
4123 ac_compiler_gnu=no
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4127
4128 fi
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4130 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
4133 if test $ac_compiler_gnu = yes; then
4134 GCC=yes
4135 else
4136 GCC=
4137 fi
4138 ac_test_CFLAGS=${CFLAGS+y}
4139 ac_save_CFLAGS=$CFLAGS
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4141 printf %s "checking whether $CC accepts -g... " >&6; }
4142 if test ${ac_cv_prog_cc_g+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
4146 ac_save_c_werror_flag=$ac_c_werror_flag
4147 ac_c_werror_flag=yes
4148 ac_cv_prog_cc_g=no
4149 CFLAGS="-g"
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152
4153 int
4154 main (void)
4155 {
4156
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 if ac_fn_c_try_compile "$LINENO"
4162 then :
4163 ac_cv_prog_cc_g=yes
4164 else $as_nop
4165 CFLAGS=""
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168
4169 int
4170 main (void)
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"
4178 then :
4179
4180 else $as_nop
4181 ac_c_werror_flag=$ac_save_c_werror_flag
4182 CFLAGS="-g"
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185
4186 int
4187 main (void)
4188 {
4189
4190 ;
4191 return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"
4195 then :
4196 ac_cv_prog_cc_g=yes
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204 fi
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4207 if test $ac_test_CFLAGS; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4214 fi
4215 else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4220 fi
4221 fi
4222 ac_prog_cc_stdc=no
4223 if test x$ac_prog_cc_stdc = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4226 printf %s "checking for $CC option to enable C11 features... " >&6; }
4227 if test ${ac_cv_prog_cc_c11+y}
4228 then :
4229 printf %s "(cached) " >&6
4230 else $as_nop
4231 ac_cv_prog_cc_c11=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 $ac_c_conftest_c11_program
4236 _ACEOF
4237 for ac_arg in '' -std=gnu11
4238 do
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"
4241 then :
4242 ac_cv_prog_cc_c11=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam
4245 test "x$ac_cv_prog_cc_c11" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249 fi
4250
4251 if test "x$ac_cv_prog_cc_c11" = xno
4252 then :
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 printf "%s\n" "unsupported" >&6; }
4255 else $as_nop
4256 if test "x$ac_cv_prog_cc_c11" = x
4257 then :
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259 printf "%s\n" "none needed" >&6; }
4260 else $as_nop
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4262 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4263 CC="$CC $ac_cv_prog_cc_c11"
4264 fi
4265 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4266 ac_prog_cc_stdc=c11
4267 fi
4268 fi
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4272 printf %s "checking for $CC option to enable C99 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c99+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 ac_cv_prog_cc_c99=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c99_program
4282 _ACEOF
4283 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_c99=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c99" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c99" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else $as_nop
4302 if test "x$ac_cv_prog_cc_c99" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else $as_nop
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c99"
4310 fi
4311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4312 ac_prog_cc_stdc=c99
4313 fi
4314 fi
4315 if test x$ac_prog_cc_stdc = xno
4316 then :
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4318 printf %s "checking for $CC option to enable C89 features... " >&6; }
4319 if test ${ac_cv_prog_cc_c89+y}
4320 then :
4321 printf %s "(cached) " >&6
4322 else $as_nop
4323 ac_cv_prog_cc_c89=no
4324 ac_save_CC=$CC
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 $ac_c_conftest_c89_program
4328 _ACEOF
4329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4330 do
4331 CC="$ac_save_CC $ac_arg"
4332 if ac_fn_c_try_compile "$LINENO"
4333 then :
4334 ac_cv_prog_cc_c89=$ac_arg
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.beam
4337 test "x$ac_cv_prog_cc_c89" != "xno" && break
4338 done
4339 rm -f conftest.$ac_ext
4340 CC=$ac_save_CC
4341 fi
4342
4343 if test "x$ac_cv_prog_cc_c89" = xno
4344 then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346 printf "%s\n" "unsupported" >&6; }
4347 else $as_nop
4348 if test "x$ac_cv_prog_cc_c89" = x
4349 then :
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351 printf "%s\n" "none needed" >&6; }
4352 else $as_nop
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4354 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4355 CC="$CC $ac_cv_prog_cc_c89"
4356 fi
4357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4358 ac_prog_cc_stdc=c89
4359 fi
4360 fi
4361
4362 ac_ext=c
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4375 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4376 if test ${am_cv_prog_cc_c_o+y}
4377 then :
4378 printf %s "(cached) " >&6
4379 else $as_nop
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382
4383 int
4384 main (void)
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 # Make sure it works both with $CC and with simple cc.
4392 # Following AC_PROG_CC_C_O, we do the test twice because some
4393 # compilers refuse to overwrite an existing .o file with -o,
4394 # though they will create one.
4395 am_cv_prog_cc_c_o=yes
4396 for am_i in 1 2; do
4397 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4398 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } \
4402 && test -f conftest2.$ac_objext; then
4403 : OK
4404 else
4405 am_cv_prog_cc_c_o=no
4406 break
4407 fi
4408 done
4409 rm -f core conftest*
4410 unset am_i
4411 fi
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4413 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4414 if test "$am_cv_prog_cc_c_o" != yes; then
4415 # Losing compiler, so override with the script.
4416 # FIXME: It is wrong to rewrite CC.
4417 # But if we don't then we get into trouble of one sort or another.
4418 # A longer-term fix would be to have automake use am__CC in this case,
4419 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4420 CC="$am_aux_dir/compile $CC"
4421 fi
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428
4429 depcc="$CC" am_compiler_list=
4430
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4432 printf %s "checking dependency style of $depcc... " >&6; }
4433 if test ${am_cv_CC_dependencies_compiler_type+y}
4434 then :
4435 printf %s "(cached) " >&6
4436 else $as_nop
4437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4438 # We make a subdir and do the tests there. Otherwise we can end up
4439 # making bogus files that we don't know about and never remove. For
4440 # instance it was reported that on HP-UX the gcc test will end up
4441 # making a dummy file named 'D' -- because '-MD' means "put the output
4442 # in D".
4443 rm -rf conftest.dir
4444 mkdir conftest.dir
4445 # Copy depcomp to subdir because otherwise we won't find it if we're
4446 # using a relative directory.
4447 cp "$am_depcomp" conftest.dir
4448 cd conftest.dir
4449 # We will build objects and dependencies in a subdirectory because
4450 # it helps to detect inapplicable dependency modes. For instance
4451 # both Tru64's cc and ICC support -MD to output dependencies as a
4452 # side effect of compilation, but ICC will put the dependencies in
4453 # the current directory while Tru64 will put them in the object
4454 # directory.
4455 mkdir sub
4456
4457 am_cv_CC_dependencies_compiler_type=none
4458 if test "$am_compiler_list" = ""; then
4459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460 fi
4461 am__universal=false
4462 case " $depcc " in #(
4463 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4464 esac
4465
4466 for depmode in $am_compiler_list; do
4467 # Setup a source with many dependencies, because some compilers
4468 # like to wrap large dependency lists on column 80 (with \), and
4469 # we should not choose a depcomp mode which is confused by this.
4470 #
4471 # We need to recreate these files for each test, as the compiler may
4472 # overwrite some of them when testing with obscure command lines.
4473 # This happens at least with the AIX C compiler.
4474 : > sub/conftest.c
4475 for i in 1 2 3 4 5 6; do
4476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4478 # Solaris 10 /bin/sh.
4479 echo '/* dummy */' > sub/conftst$i.h
4480 done
4481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4482
4483 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4484 # mode. It turns out that the SunPro C++ compiler does not properly
4485 # handle '-M -o', and we need to detect this. Also, some Intel
4486 # versions had trouble with output in subdirs.
4487 am__obj=sub/conftest.${OBJEXT-o}
4488 am__minus_obj="-o $am__obj"
4489 case $depmode in
4490 gcc)
4491 # This depmode causes a compiler race in universal mode.
4492 test "$am__universal" = false || continue
4493 ;;
4494 nosideeffect)
4495 # After this tag, mechanisms are not by side-effect, so they'll
4496 # only be used when explicitly requested.
4497 if test "x$enable_dependency_tracking" = xyes; then
4498 continue
4499 else
4500 break
4501 fi
4502 ;;
4503 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4504 # This compiler won't grok '-c -o', but also, the minuso test has
4505 # not run yet. These depmodes are late enough in the game, and
4506 # so weak that their functioning should not be impacted.
4507 am__obj=conftest.${OBJEXT-o}
4508 am__minus_obj=
4509 ;;
4510 none) break ;;
4511 esac
4512 if depmode=$depmode \
4513 source=sub/conftest.c object=$am__obj \
4514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4516 >/dev/null 2>conftest.err &&
4517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4521 # icc doesn't choke on unknown options, it will just issue warnings
4522 # or remarks (even with -Werror). So we grep stderr for any message
4523 # that says an option was ignored or not supported.
4524 # When given -MP, icc 7.0 and 7.1 complain thusly:
4525 # icc: Command line warning: ignoring option '-M'; no argument required
4526 # The diagnosis changed in icc 8.0:
4527 # icc: Command line remark: option '-MP' not supported
4528 if (grep 'ignoring option' conftest.err ||
4529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4530 am_cv_CC_dependencies_compiler_type=$depmode
4531 break
4532 fi
4533 fi
4534 done
4535
4536 cd ..
4537 rm -rf conftest.dir
4538 else
4539 am_cv_CC_dependencies_compiler_type=none
4540 fi
4541
4542 fi
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4544 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4545 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4546
4547 if
4548 test "x$enable_dependency_tracking" != xno \
4549 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4550 am__fastdepCC_TRUE=
4551 am__fastdepCC_FALSE='#'
4552 else
4553 am__fastdepCC_TRUE='#'
4554 am__fastdepCC_FALSE=
4555 fi
4556
4557
4558
4559
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4561 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4562 if test ${ac_cv_c_undeclared_builtin_options+y}
4563 then :
4564 printf %s "(cached) " >&6
4565 else $as_nop
4566 ac_save_CFLAGS=$CFLAGS
4567 ac_cv_c_undeclared_builtin_options='cannot detect'
4568 for ac_arg in '' -fno-builtin; do
4569 CFLAGS="$ac_save_CFLAGS $ac_arg"
4570 # This test program should *not* compile successfully.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573
4574 int
4575 main (void)
4576 {
4577 (void) strchr;
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"
4583 then :
4584
4585 else $as_nop
4586 # This test program should compile successfully.
4587 # No library function is consistently available on
4588 # freestanding implementations, so test against a dummy
4589 # declaration. Include always-available headers on the
4590 # off chance that they somehow elicit warnings.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <float.h>
4594 #include <limits.h>
4595 #include <stdarg.h>
4596 #include <stddef.h>
4597 extern void ac_decl (int, char *);
4598
4599 int
4600 main (void)
4601 {
4602 (void) ac_decl (0, (char *) 0);
4603 (void) ac_decl;
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"
4610 then :
4611 if test x"$ac_arg" = x
4612 then :
4613 ac_cv_c_undeclared_builtin_options='none needed'
4614 else $as_nop
4615 ac_cv_c_undeclared_builtin_options=$ac_arg
4616 fi
4617 break
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4622 done
4623 CFLAGS=$ac_save_CFLAGS
4624
4625 fi
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4627 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4628 case $ac_cv_c_undeclared_builtin_options in #(
4629 'cannot detect') :
4630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $? "cannot make $CC report undeclared builtins
4633 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4634 'none needed') :
4635 ac_c_undeclared_builtin_options='' ;; #(
4636 *) :
4637 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4638 esac
4639
4640 ac_header= ac_cache=
4641 for ac_item in $ac_header_c_list
4642 do
4643 if test $ac_cache; then
4644 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4645 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4646 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4647 fi
4648 ac_header= ac_cache=
4649 elif test $ac_header; then
4650 ac_cache=$ac_item
4651 else
4652 ac_header=$ac_item
4653 fi
4654 done
4655
4656
4657
4658
4659
4660
4661
4662
4663 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4664 then :
4665
4666 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4667
4668 fi
4669
4670
4671
4672
4673 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4674 if test "x$ac_cv_have_decl___clang__" = xyes
4675 then :
4676 CLANGCC="yes"
4677 else $as_nop
4678 CLANGCC="no"
4679 fi
4680 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4681 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4682 then :
4683 INTELCC="yes"
4684 else $as_nop
4685 INTELCC="no"
4686 fi
4687 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4688 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4689 then :
4690 SUNCC="yes"
4691 else $as_nop
4692 SUNCC="no"
4693 fi
4694
4695
4696
4697
4698
4699
4700
4701
4702 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 printf %s "checking for $ac_word... " >&6; }
4708 if test ${ac_cv_path_PKG_CONFIG+y}
4709 then :
4710 printf %s "(cached) " >&6
4711 else $as_nop
4712 case $PKG_CONFIG in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 case $as_dir in #(((
4722 '') as_dir=./ ;;
4723 */) ;;
4724 *) as_dir=$as_dir/ ;;
4725 esac
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4728 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 ;;
4737 esac
4738 fi
4739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4740 if test -n "$PKG_CONFIG"; then
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4742 printf "%s\n" "$PKG_CONFIG" >&6; }
4743 else
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 printf "%s\n" "no" >&6; }
4746 fi
4747
4748
4749 fi
4750 if test -z "$ac_cv_path_PKG_CONFIG"; then
4751 ac_pt_PKG_CONFIG=$PKG_CONFIG
4752 # Extract the first word of "pkg-config", so it can be a program name with args.
4753 set dummy pkg-config; ac_word=$2
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 printf %s "checking for $ac_word... " >&6; }
4756 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4757 then :
4758 printf %s "(cached) " >&6
4759 else $as_nop
4760 case $ac_pt_PKG_CONFIG in
4761 [\\/]* | ?:[\\/]*)
4762 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4763 ;;
4764 *)
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768 IFS=$as_save_IFS
4769 case $as_dir in #(((
4770 '') as_dir=./ ;;
4771 */) ;;
4772 *) as_dir=$as_dir/ ;;
4773 esac
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4776 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4778 break 2
4779 fi
4780 done
4781 done
4782 IFS=$as_save_IFS
4783
4784 ;;
4785 esac
4786 fi
4787 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4788 if test -n "$ac_pt_PKG_CONFIG"; then
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4790 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4791 else
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 printf "%s\n" "no" >&6; }
4794 fi
4795
4796 if test "x$ac_pt_PKG_CONFIG" = x; then
4797 PKG_CONFIG=""
4798 else
4799 case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805 PKG_CONFIG=$ac_pt_PKG_CONFIG
4806 fi
4807 else
4808 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4809 fi
4810
4811 fi
4812 if test -n "$PKG_CONFIG"; then
4813 _pkg_min_version=0.9.0
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4815 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4816 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4818 printf "%s\n" "yes" >&6; }
4819 else
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 printf "%s\n" "no" >&6; }
4822 PKG_CONFIG=""
4823 fi
4824 fi
4825
4826
4827 # Make sure we can run config.sub.
4828 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4829 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4830
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4832 printf %s "checking build system type... " >&6; }
4833 if test ${ac_cv_build+y}
4834 then :
4835 printf %s "(cached) " >&6
4836 else $as_nop
4837 ac_build_alias=$build_alias
4838 test "x$ac_build_alias" = x &&
4839 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4840 test "x$ac_build_alias" = x &&
4841 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4842 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4843 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4844
4845 fi
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4847 printf "%s\n" "$ac_cv_build" >&6; }
4848 case $ac_cv_build in
4849 *-*-*) ;;
4850 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4851 esac
4852 build=$ac_cv_build
4853 ac_save_IFS=$IFS; IFS='-'
4854 set x $ac_cv_build
4855 shift
4856 build_cpu=$1
4857 build_vendor=$2
4858 shift; shift
4859 # Remember, the first character of IFS is used to create $*,
4860 # except with old shells:
4861 build_os=$*
4862 IFS=$ac_save_IFS
4863 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4864
4865
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4867 printf %s "checking host system type... " >&6; }
4868 if test ${ac_cv_host+y}
4869 then :
4870 printf %s "(cached) " >&6
4871 else $as_nop
4872 if test "x$host_alias" = x; then
4873 ac_cv_host=$ac_cv_build
4874 else
4875 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4876 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4877 fi
4878
4879 fi
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4881 printf "%s\n" "$ac_cv_host" >&6; }
4882 case $ac_cv_host in
4883 *-*-*) ;;
4884 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4885 esac
4886 host=$ac_cv_host
4887 ac_save_IFS=$IFS; IFS='-'
4888 set x $ac_cv_host
4889 shift
4890 host_cpu=$1
4891 host_vendor=$2
4892 shift; shift
4893 # Remember, the first character of IFS is used to create $*,
4894 # except with old shells:
4895 host_os=$*
4896 IFS=$ac_save_IFS
4897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4898
4899
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4901 printf %s "checking for a sed that does not truncate output... " >&6; }
4902 if test ${ac_cv_path_SED+y}
4903 then :
4904 printf %s "(cached) " >&6
4905 else $as_nop
4906 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4907 for ac_i in 1 2 3 4 5 6 7; do
4908 ac_script="$ac_script$as_nl$ac_script"
4909 done
4910 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4911 { ac_script=; unset ac_script;}
4912 if test -z "$SED"; then
4913 ac_path_SED_found=false
4914 # Loop through the user's path and test for each of PROGNAME-LIST
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918 IFS=$as_save_IFS
4919 case $as_dir in #(((
4920 '') as_dir=./ ;;
4921 */) ;;
4922 *) as_dir=$as_dir/ ;;
4923 esac
4924 for ac_prog in sed gsed
4925 do
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4928 as_fn_executable_p "$ac_path_SED" || continue
4929 # Check for GNU ac_path_SED and select it if it is found.
4930 # Check for GNU $ac_path_SED
4931 case `"$ac_path_SED" --version 2>&1` in
4932 *GNU*)
4933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4934 *)
4935 ac_count=0
4936 printf %s 0123456789 >"conftest.in"
4937 while :
4938 do
4939 cat "conftest.in" "conftest.in" >"conftest.tmp"
4940 mv "conftest.tmp" "conftest.in"
4941 cp "conftest.in" "conftest.nl"
4942 printf "%s\n" '' >> "conftest.nl"
4943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945 as_fn_arith $ac_count + 1 && ac_count=$as_val
4946 if test $ac_count -gt ${ac_path_SED_max-0}; then
4947 # Best one so far, save it but keep looking for a better one
4948 ac_cv_path_SED="$ac_path_SED"
4949 ac_path_SED_max=$ac_count
4950 fi
4951 # 10*(2^10) chars as input seems more than enough
4952 test $ac_count -gt 10 && break
4953 done
4954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955 esac
4956
4957 $ac_path_SED_found && break 3
4958 done
4959 done
4960 done
4961 IFS=$as_save_IFS
4962 if test -z "$ac_cv_path_SED"; then
4963 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4964 fi
4965 else
4966 ac_cv_path_SED=$SED
4967 fi
4968
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4971 printf "%s\n" "$ac_cv_path_SED" >&6; }
4972 SED="$ac_cv_path_SED"
4973 rm -f conftest.sed
4974
4975
4976
4977
4978
4979
4980 # Check whether --enable-selective-werror was given.
4981 if test ${enable_selective_werror+y}
4982 then :
4983 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4984 else $as_nop
4985 SELECTIVE_WERROR=yes
4986 fi
4987
4988
4989
4990
4991
4992 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4993 if test "x$SUNCC" = "xyes"; then
4994 BASE_CFLAGS="-v"
4995 else
4996 BASE_CFLAGS=""
4997 fi
4998
4999 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013 xorg_testset_save_CFLAGS="$CFLAGS"
5014
5015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5019 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5020 then :
5021 printf %s "(cached) " >&6
5022 else $as_nop
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 int i;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"
5028 then :
5029 xorg_cv_cc_flag_unknown_warning_option=yes
5030 else $as_nop
5031 xorg_cv_cc_flag_unknown_warning_option=no
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5034 fi
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5036 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5038 CFLAGS="$xorg_testset_save_CFLAGS"
5039 fi
5040
5041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044 fi
5045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5047 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5048 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5049 then :
5050 printf %s "(cached) " >&6
5051 else $as_nop
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 int i;
5055 _ACEOF
5056 if ac_fn_c_try_compile "$LINENO"
5057 then :
5058 xorg_cv_cc_flag_unused_command_line_argument=yes
5059 else $as_nop
5060 xorg_cv_cc_flag_unused_command_line_argument=no
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5063 fi
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5065 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5067 CFLAGS="$xorg_testset_save_CFLAGS"
5068 fi
5069
5070 found="no"
5071
5072 if test $found = "no" ; then
5073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075 fi
5076
5077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5079 fi
5080
5081 CFLAGS="$CFLAGS -Wall"
5082
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5084 printf %s "checking if $CC supports -Wall... " >&6; }
5085 cacheid=xorg_cv_cc_flag__Wall
5086 if eval test \${$cacheid+y}
5087 then :
5088 printf %s "(cached) " >&6
5089 else $as_nop
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 int i;
5093 int
5094 main (void)
5095 {
5096
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_link "$LINENO"
5102 then :
5103 eval $cacheid=yes
5104 else $as_nop
5105 eval $cacheid=no
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5108 conftest$ac_exeext conftest.$ac_ext
5109 fi
5110
5111
5112 CFLAGS="$xorg_testset_save_CFLAGS"
5113
5114 eval supported=\$$cacheid
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5116 printf "%s\n" "$supported" >&6; }
5117 if test "$supported" = "yes" ; then
5118 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5119 found="yes"
5120 fi
5121 fi
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 xorg_testset_save_CFLAGS="$CFLAGS"
5138
5139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5142 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5143 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5144 then :
5145 printf %s "(cached) " >&6
5146 else $as_nop
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 int i;
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"
5152 then :
5153 xorg_cv_cc_flag_unknown_warning_option=yes
5154 else $as_nop
5155 xorg_cv_cc_flag_unknown_warning_option=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5160 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5162 CFLAGS="$xorg_testset_save_CFLAGS"
5163 fi
5164
5165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 fi
5169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5171 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5172 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5173 then :
5174 printf %s "(cached) " >&6
5175 else $as_nop
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"
5181 then :
5182 xorg_cv_cc_flag_unused_command_line_argument=yes
5183 else $as_nop
5184 xorg_cv_cc_flag_unused_command_line_argument=no
5185 fi
5186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5187 fi
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5189 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5191 CFLAGS="$xorg_testset_save_CFLAGS"
5192 fi
5193
5194 found="no"
5195
5196 if test $found = "no" ; then
5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199 fi
5200
5201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203 fi
5204
5205 CFLAGS="$CFLAGS -Wpointer-arith"
5206
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5208 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5209 cacheid=xorg_cv_cc_flag__Wpointer_arith
5210 if eval test \${$cacheid+y}
5211 then :
5212 printf %s "(cached) " >&6
5213 else $as_nop
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 int i;
5217 int
5218 main (void)
5219 {
5220
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 if ac_fn_c_try_link "$LINENO"
5226 then :
5227 eval $cacheid=yes
5228 else $as_nop
5229 eval $cacheid=no
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5232 conftest$ac_exeext conftest.$ac_ext
5233 fi
5234
5235
5236 CFLAGS="$xorg_testset_save_CFLAGS"
5237
5238 eval supported=\$$cacheid
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5240 printf "%s\n" "$supported" >&6; }
5241 if test "$supported" = "yes" ; then
5242 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5243 found="yes"
5244 fi
5245 fi
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 xorg_testset_save_CFLAGS="$CFLAGS"
5262
5263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5267 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5268 then :
5269 printf %s "(cached) " >&6
5270 else $as_nop
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 int i;
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"
5276 then :
5277 xorg_cv_cc_flag_unknown_warning_option=yes
5278 else $as_nop
5279 xorg_cv_cc_flag_unknown_warning_option=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282 fi
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5284 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5286 CFLAGS="$xorg_testset_save_CFLAGS"
5287 fi
5288
5289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292 fi
5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5295 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5296 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5297 then :
5298 printf %s "(cached) " >&6
5299 else $as_nop
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 int i;
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"
5305 then :
5306 xorg_cv_cc_flag_unused_command_line_argument=yes
5307 else $as_nop
5308 xorg_cv_cc_flag_unused_command_line_argument=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5311 fi
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5315 CFLAGS="$xorg_testset_save_CFLAGS"
5316 fi
5317
5318 found="no"
5319
5320 if test $found = "no" ; then
5321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323 fi
5324
5325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327 fi
5328
5329 CFLAGS="$CFLAGS -Wmissing-declarations"
5330
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5332 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5333 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5334 if eval test \${$cacheid+y}
5335 then :
5336 printf %s "(cached) " >&6
5337 else $as_nop
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 int i;
5341 int
5342 main (void)
5343 {
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_link "$LINENO"
5350 then :
5351 eval $cacheid=yes
5352 else $as_nop
5353 eval $cacheid=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5356 conftest$ac_exeext conftest.$ac_ext
5357 fi
5358
5359
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362 eval supported=\$$cacheid
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364 printf "%s\n" "$supported" >&6; }
5365 if test "$supported" = "yes" ; then
5366 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5367 found="yes"
5368 fi
5369 fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 xorg_testset_save_CFLAGS="$CFLAGS"
5386
5387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5392 then :
5393 printf %s "(cached) " >&6
5394 else $as_nop
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 int i;
5398 _ACEOF
5399 if ac_fn_c_try_compile "$LINENO"
5400 then :
5401 xorg_cv_cc_flag_unknown_warning_option=yes
5402 else $as_nop
5403 xorg_cv_cc_flag_unknown_warning_option=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5406 fi
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411 fi
5412
5413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416 fi
5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5421 then :
5422 printf %s "(cached) " >&6
5423 else $as_nop
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 int i;
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"
5429 then :
5430 xorg_cv_cc_flag_unused_command_line_argument=yes
5431 else $as_nop
5432 xorg_cv_cc_flag_unused_command_line_argument=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5435 fi
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440 fi
5441
5442 found="no"
5443
5444 if test $found = "no" ; then
5445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447 fi
5448
5449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451 fi
5452
5453 CFLAGS="$CFLAGS -Wformat=2"
5454
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5456 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5457 cacheid=xorg_cv_cc_flag__Wformat_2
5458 if eval test \${$cacheid+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 int i;
5465 int
5466 main (void)
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 if ac_fn_c_try_link "$LINENO"
5474 then :
5475 eval $cacheid=yes
5476 else $as_nop
5477 eval $cacheid=no
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5480 conftest$ac_exeext conftest.$ac_ext
5481 fi
5482
5483
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485
5486 eval supported=\$$cacheid
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5488 printf "%s\n" "$supported" >&6; }
5489 if test "$supported" = "yes" ; then
5490 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5491 found="yes"
5492 fi
5493 fi
5494
5495 if test $found = "no" ; then
5496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 fi
5499
5500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5502 fi
5503
5504 CFLAGS="$CFLAGS -Wformat"
5505
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5507 printf %s "checking if $CC supports -Wformat... " >&6; }
5508 cacheid=xorg_cv_cc_flag__Wformat
5509 if eval test \${$cacheid+y}
5510 then :
5511 printf %s "(cached) " >&6
5512 else $as_nop
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 int i;
5516 int
5517 main (void)
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"
5525 then :
5526 eval $cacheid=yes
5527 else $as_nop
5528 eval $cacheid=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5531 conftest$ac_exeext conftest.$ac_ext
5532 fi
5533
5534
5535 CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537 eval supported=\$$cacheid
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539 printf "%s\n" "$supported" >&6; }
5540 if test "$supported" = "yes" ; then
5541 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5542 found="yes"
5543 fi
5544 fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 xorg_testset_save_CFLAGS="$CFLAGS"
5563
5564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5568 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5569 then :
5570 printf %s "(cached) " >&6
5571 else $as_nop
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 int i;
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"
5577 then :
5578 xorg_cv_cc_flag_unknown_warning_option=yes
5579 else $as_nop
5580 xorg_cv_cc_flag_unknown_warning_option=no
5581 fi
5582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5583 fi
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5585 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5587 CFLAGS="$xorg_testset_save_CFLAGS"
5588 fi
5589
5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5593 fi
5594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5596 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5597 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5598 then :
5599 printf %s "(cached) " >&6
5600 else $as_nop
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 int i;
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"
5606 then :
5607 xorg_cv_cc_flag_unused_command_line_argument=yes
5608 else $as_nop
5609 xorg_cv_cc_flag_unused_command_line_argument=no
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5612 fi
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5614 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5616 CFLAGS="$xorg_testset_save_CFLAGS"
5617 fi
5618
5619 found="no"
5620
5621 if test $found = "no" ; then
5622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624 fi
5625
5626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628 fi
5629
5630 CFLAGS="$CFLAGS -Wstrict-prototypes"
5631
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5633 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5634 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5635 if eval test \${$cacheid+y}
5636 then :
5637 printf %s "(cached) " >&6
5638 else $as_nop
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 int i;
5642 int
5643 main (void)
5644 {
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_link "$LINENO"
5651 then :
5652 eval $cacheid=yes
5653 else $as_nop
5654 eval $cacheid=no
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5657 conftest$ac_exeext conftest.$ac_ext
5658 fi
5659
5660
5661 CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663 eval supported=\$$cacheid
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665 printf "%s\n" "$supported" >&6; }
5666 if test "$supported" = "yes" ; then
5667 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5668 found="yes"
5669 fi
5670 fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else $as_nop
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 int i;
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"
5701 then :
5702 xorg_cv_cc_flag_unknown_warning_option=yes
5703 else $as_nop
5704 xorg_cv_cc_flag_unknown_warning_option=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5707 fi
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5709 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5711 CFLAGS="$xorg_testset_save_CFLAGS"
5712 fi
5713
5714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5717 fi
5718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5720 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5721 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5722 then :
5723 printf %s "(cached) " >&6
5724 else $as_nop
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 int i;
5728 _ACEOF
5729 if ac_fn_c_try_compile "$LINENO"
5730 then :
5731 xorg_cv_cc_flag_unused_command_line_argument=yes
5732 else $as_nop
5733 xorg_cv_cc_flag_unused_command_line_argument=no
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5736 fi
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5740 CFLAGS="$xorg_testset_save_CFLAGS"
5741 fi
5742
5743 found="no"
5744
5745 if test $found = "no" ; then
5746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748 fi
5749
5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752 fi
5753
5754 CFLAGS="$CFLAGS -Wmissing-prototypes"
5755
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5757 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5758 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5759 if eval test \${$cacheid+y}
5760 then :
5761 printf %s "(cached) " >&6
5762 else $as_nop
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 int i;
5766 int
5767 main (void)
5768 {
5769
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 if ac_fn_c_try_link "$LINENO"
5775 then :
5776 eval $cacheid=yes
5777 else $as_nop
5778 eval $cacheid=no
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5781 conftest$ac_exeext conftest.$ac_ext
5782 fi
5783
5784
5785 CFLAGS="$xorg_testset_save_CFLAGS"
5786
5787 eval supported=\$$cacheid
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5789 printf "%s\n" "$supported" >&6; }
5790 if test "$supported" = "yes" ; then
5791 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5792 found="yes"
5793 fi
5794 fi
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810 xorg_testset_save_CFLAGS="$CFLAGS"
5811
5812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5815 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5816 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5817 then :
5818 printf %s "(cached) " >&6
5819 else $as_nop
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 int i;
5823 _ACEOF
5824 if ac_fn_c_try_compile "$LINENO"
5825 then :
5826 xorg_cv_cc_flag_unknown_warning_option=yes
5827 else $as_nop
5828 xorg_cv_cc_flag_unknown_warning_option=no
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5831 fi
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5833 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5835 CFLAGS="$xorg_testset_save_CFLAGS"
5836 fi
5837
5838 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841 fi
5842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5844 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5845 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5846 then :
5847 printf %s "(cached) " >&6
5848 else $as_nop
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 int i;
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"
5854 then :
5855 xorg_cv_cc_flag_unused_command_line_argument=yes
5856 else $as_nop
5857 xorg_cv_cc_flag_unused_command_line_argument=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5860 fi
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5862 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5864 CFLAGS="$xorg_testset_save_CFLAGS"
5865 fi
5866
5867 found="no"
5868
5869 if test $found = "no" ; then
5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 fi
5873
5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876 fi
5877
5878 CFLAGS="$CFLAGS -Wnested-externs"
5879
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5881 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5882 cacheid=xorg_cv_cc_flag__Wnested_externs
5883 if eval test \${$cacheid+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else $as_nop
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 int
5891 main (void)
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"
5899 then :
5900 eval $cacheid=yes
5901 else $as_nop
5902 eval $cacheid=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5905 conftest$ac_exeext conftest.$ac_ext
5906 fi
5907
5908
5909 CFLAGS="$xorg_testset_save_CFLAGS"
5910
5911 eval supported=\$$cacheid
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5913 printf "%s\n" "$supported" >&6; }
5914 if test "$supported" = "yes" ; then
5915 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5916 found="yes"
5917 fi
5918 fi
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934 xorg_testset_save_CFLAGS="$CFLAGS"
5935
5936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5939 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5940 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5941 then :
5942 printf %s "(cached) " >&6
5943 else $as_nop
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 int i;
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"
5949 then :
5950 xorg_cv_cc_flag_unknown_warning_option=yes
5951 else $as_nop
5952 xorg_cv_cc_flag_unknown_warning_option=no
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5955 fi
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5957 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5959 CFLAGS="$xorg_testset_save_CFLAGS"
5960 fi
5961
5962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5965 fi
5966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5968 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5969 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5970 then :
5971 printf %s "(cached) " >&6
5972 else $as_nop
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 int i;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"
5978 then :
5979 xorg_cv_cc_flag_unused_command_line_argument=yes
5980 else $as_nop
5981 xorg_cv_cc_flag_unused_command_line_argument=no
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5984 fi
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5988 CFLAGS="$xorg_testset_save_CFLAGS"
5989 fi
5990
5991 found="no"
5992
5993 if test $found = "no" ; then
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996 fi
5997
5998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000 fi
6001
6002 CFLAGS="$CFLAGS -Wbad-function-cast"
6003
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6005 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6006 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6007 if eval test \${$cacheid+y}
6008 then :
6009 printf %s "(cached) " >&6
6010 else $as_nop
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 int i;
6014 int
6015 main (void)
6016 {
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_link "$LINENO"
6023 then :
6024 eval $cacheid=yes
6025 else $as_nop
6026 eval $cacheid=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6029 conftest$ac_exeext conftest.$ac_ext
6030 fi
6031
6032
6033 CFLAGS="$xorg_testset_save_CFLAGS"
6034
6035 eval supported=\$$cacheid
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6037 printf "%s\n" "$supported" >&6; }
6038 if test "$supported" = "yes" ; then
6039 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6040 found="yes"
6041 fi
6042 fi
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 xorg_testset_save_CFLAGS="$CFLAGS"
6059
6060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6063 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6064 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else $as_nop
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 int i;
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"
6073 then :
6074 xorg_cv_cc_flag_unknown_warning_option=yes
6075 else $as_nop
6076 xorg_cv_cc_flag_unknown_warning_option=no
6077 fi
6078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6079 fi
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6081 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6083 CFLAGS="$xorg_testset_save_CFLAGS"
6084 fi
6085
6086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089 fi
6090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6092 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6093 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6094 then :
6095 printf %s "(cached) " >&6
6096 else $as_nop
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 int i;
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"
6102 then :
6103 xorg_cv_cc_flag_unused_command_line_argument=yes
6104 else $as_nop
6105 xorg_cv_cc_flag_unused_command_line_argument=no
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6108 fi
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6110 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6112 CFLAGS="$xorg_testset_save_CFLAGS"
6113 fi
6114
6115 found="no"
6116
6117 if test $found = "no" ; then
6118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120 fi
6121
6122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124 fi
6125
6126 CFLAGS="$CFLAGS -Wold-style-definition"
6127
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6129 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6130 cacheid=xorg_cv_cc_flag__Wold_style_definition
6131 if eval test \${$cacheid+y}
6132 then :
6133 printf %s "(cached) " >&6
6134 else $as_nop
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 int i;
6138 int
6139 main (void)
6140 {
6141
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_c_try_link "$LINENO"
6147 then :
6148 eval $cacheid=yes
6149 else $as_nop
6150 eval $cacheid=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6153 conftest$ac_exeext conftest.$ac_ext
6154 fi
6155
6156
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159 eval supported=\$$cacheid
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161 printf "%s\n" "$supported" >&6; }
6162 if test "$supported" = "yes" ; then
6163 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6164 found="yes"
6165 fi
6166 fi
6167
6168 if test $found = "no" ; then
6169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171 fi
6172
6173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6175 fi
6176
6177 CFLAGS="$CFLAGS -fd"
6178
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6180 printf %s "checking if $CC supports -fd... " >&6; }
6181 cacheid=xorg_cv_cc_flag__fd
6182 if eval test \${$cacheid+y}
6183 then :
6184 printf %s "(cached) " >&6
6185 else $as_nop
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 int i;
6189 int
6190 main (void)
6191 {
6192
6193 ;
6194 return 0;
6195 }
6196 _ACEOF
6197 if ac_fn_c_try_link "$LINENO"
6198 then :
6199 eval $cacheid=yes
6200 else $as_nop
6201 eval $cacheid=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6204 conftest$ac_exeext conftest.$ac_ext
6205 fi
6206
6207
6208 CFLAGS="$xorg_testset_save_CFLAGS"
6209
6210 eval supported=\$$cacheid
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6212 printf "%s\n" "$supported" >&6; }
6213 if test "$supported" = "yes" ; then
6214 BASE_CFLAGS="$BASE_CFLAGS -fd"
6215 found="yes"
6216 fi
6217 fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else $as_nop
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 int i;
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"
6248 then :
6249 xorg_cv_cc_flag_unknown_warning_option=yes
6250 else $as_nop
6251 xorg_cv_cc_flag_unknown_warning_option=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6254 fi
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259 fi
6260
6261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264 fi
6265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else $as_nop
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"
6277 then :
6278 xorg_cv_cc_flag_unused_command_line_argument=yes
6279 else $as_nop
6280 xorg_cv_cc_flag_unused_command_line_argument=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6283 fi
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288 fi
6289
6290 found="no"
6291
6292 if test $found = "no" ; then
6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295 fi
6296
6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6299 fi
6300
6301 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6302
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6304 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6305 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6306 if eval test \${$cacheid+y}
6307 then :
6308 printf %s "(cached) " >&6
6309 else $as_nop
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 int i;
6313 int
6314 main (void)
6315 {
6316
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 if ac_fn_c_try_link "$LINENO"
6322 then :
6323 eval $cacheid=yes
6324 else $as_nop
6325 eval $cacheid=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6328 conftest$ac_exeext conftest.$ac_ext
6329 fi
6330
6331
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333
6334 eval supported=\$$cacheid
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6336 printf "%s\n" "$supported" >&6; }
6337 if test "$supported" = "yes" ; then
6338 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6339 found="yes"
6340 fi
6341 fi
6342
6343
6344
6345
6346
6347 # This chunk adds additional warnings that could catch undesired effects.
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 xorg_testset_save_CFLAGS="$CFLAGS"
6362
6363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6366 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6367 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else $as_nop
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 int i;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"
6376 then :
6377 xorg_cv_cc_flag_unknown_warning_option=yes
6378 else $as_nop
6379 xorg_cv_cc_flag_unknown_warning_option=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6382 fi
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6384 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387 fi
6388
6389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392 fi
6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6395 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6396 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6397 then :
6398 printf %s "(cached) " >&6
6399 else $as_nop
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 int i;
6403 _ACEOF
6404 if ac_fn_c_try_compile "$LINENO"
6405 then :
6406 xorg_cv_cc_flag_unused_command_line_argument=yes
6407 else $as_nop
6408 xorg_cv_cc_flag_unused_command_line_argument=no
6409 fi
6410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6411 fi
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6413 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6415 CFLAGS="$xorg_testset_save_CFLAGS"
6416 fi
6417
6418 found="no"
6419
6420 if test $found = "no" ; then
6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423 fi
6424
6425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427 fi
6428
6429 CFLAGS="$CFLAGS -Wunused"
6430
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6432 printf %s "checking if $CC supports -Wunused... " >&6; }
6433 cacheid=xorg_cv_cc_flag__Wunused
6434 if eval test \${$cacheid+y}
6435 then :
6436 printf %s "(cached) " >&6
6437 else $as_nop
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 int i;
6441 int
6442 main (void)
6443 {
6444
6445 ;
6446 return 0;
6447 }
6448 _ACEOF
6449 if ac_fn_c_try_link "$LINENO"
6450 then :
6451 eval $cacheid=yes
6452 else $as_nop
6453 eval $cacheid=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6456 conftest$ac_exeext conftest.$ac_ext
6457 fi
6458
6459
6460 CFLAGS="$xorg_testset_save_CFLAGS"
6461
6462 eval supported=\$$cacheid
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6464 printf "%s\n" "$supported" >&6; }
6465 if test "$supported" = "yes" ; then
6466 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6467 found="yes"
6468 fi
6469 fi
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 xorg_testset_save_CFLAGS="$CFLAGS"
6486
6487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6491 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6492 then :
6493 printf %s "(cached) " >&6
6494 else $as_nop
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 int i;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"
6500 then :
6501 xorg_cv_cc_flag_unknown_warning_option=yes
6502 else $as_nop
6503 xorg_cv_cc_flag_unknown_warning_option=no
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6508 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6510 CFLAGS="$xorg_testset_save_CFLAGS"
6511 fi
6512
6513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 fi
6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6519 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6520 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6521 then :
6522 printf %s "(cached) " >&6
6523 else $as_nop
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 int i;
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"
6529 then :
6530 xorg_cv_cc_flag_unused_command_line_argument=yes
6531 else $as_nop
6532 xorg_cv_cc_flag_unused_command_line_argument=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6535 fi
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6539 CFLAGS="$xorg_testset_save_CFLAGS"
6540 fi
6541
6542 found="no"
6543
6544 if test $found = "no" ; then
6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547 fi
6548
6549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551 fi
6552
6553 CFLAGS="$CFLAGS -Wuninitialized"
6554
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6556 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6557 cacheid=xorg_cv_cc_flag__Wuninitialized
6558 if eval test \${$cacheid+y}
6559 then :
6560 printf %s "(cached) " >&6
6561 else $as_nop
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 int i;
6565 int
6566 main (void)
6567 {
6568
6569 ;
6570 return 0;
6571 }
6572 _ACEOF
6573 if ac_fn_c_try_link "$LINENO"
6574 then :
6575 eval $cacheid=yes
6576 else $as_nop
6577 eval $cacheid=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6580 conftest$ac_exeext conftest.$ac_ext
6581 fi
6582
6583
6584 CFLAGS="$xorg_testset_save_CFLAGS"
6585
6586 eval supported=\$$cacheid
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6588 printf "%s\n" "$supported" >&6; }
6589 if test "$supported" = "yes" ; then
6590 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6591 found="yes"
6592 fi
6593 fi
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609 xorg_testset_save_CFLAGS="$CFLAGS"
6610
6611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6614 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6615 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else $as_nop
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"
6624 then :
6625 xorg_cv_cc_flag_unknown_warning_option=yes
6626 else $as_nop
6627 xorg_cv_cc_flag_unknown_warning_option=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6630 fi
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635 fi
6636
6637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640 fi
6641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6645 then :
6646 printf %s "(cached) " >&6
6647 else $as_nop
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 int i;
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"
6653 then :
6654 xorg_cv_cc_flag_unused_command_line_argument=yes
6655 else $as_nop
6656 xorg_cv_cc_flag_unused_command_line_argument=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6659 fi
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6661 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6663 CFLAGS="$xorg_testset_save_CFLAGS"
6664 fi
6665
6666 found="no"
6667
6668 if test $found = "no" ; then
6669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671 fi
6672
6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675 fi
6676
6677 CFLAGS="$CFLAGS -Wshadow"
6678
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6680 printf %s "checking if $CC supports -Wshadow... " >&6; }
6681 cacheid=xorg_cv_cc_flag__Wshadow
6682 if eval test \${$cacheid+y}
6683 then :
6684 printf %s "(cached) " >&6
6685 else $as_nop
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 int i;
6689 int
6690 main (void)
6691 {
6692
6693 ;
6694 return 0;
6695 }
6696 _ACEOF
6697 if ac_fn_c_try_link "$LINENO"
6698 then :
6699 eval $cacheid=yes
6700 else $as_nop
6701 eval $cacheid=no
6702 fi
6703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6704 conftest$ac_exeext conftest.$ac_ext
6705 fi
6706
6707
6708 CFLAGS="$xorg_testset_save_CFLAGS"
6709
6710 eval supported=\$$cacheid
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6712 printf "%s\n" "$supported" >&6; }
6713 if test "$supported" = "yes" ; then
6714 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6715 found="yes"
6716 fi
6717 fi
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 xorg_testset_save_CFLAGS="$CFLAGS"
6734
6735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6738 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6739 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6740 then :
6741 printf %s "(cached) " >&6
6742 else $as_nop
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 int i;
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"
6748 then :
6749 xorg_cv_cc_flag_unknown_warning_option=yes
6750 else $as_nop
6751 xorg_cv_cc_flag_unknown_warning_option=no
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6754 fi
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6758 CFLAGS="$xorg_testset_save_CFLAGS"
6759 fi
6760
6761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6764 fi
6765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6769 then :
6770 printf %s "(cached) " >&6
6771 else $as_nop
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 int i;
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"
6777 then :
6778 xorg_cv_cc_flag_unused_command_line_argument=yes
6779 else $as_nop
6780 xorg_cv_cc_flag_unused_command_line_argument=no
6781 fi
6782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6783 fi
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6787 CFLAGS="$xorg_testset_save_CFLAGS"
6788 fi
6789
6790 found="no"
6791
6792 if test $found = "no" ; then
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 fi
6796
6797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799 fi
6800
6801 CFLAGS="$CFLAGS -Wmissing-noreturn"
6802
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6804 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6805 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6806 if eval test \${$cacheid+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else $as_nop
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 int
6814 main (void)
6815 {
6816
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"
6822 then :
6823 eval $cacheid=yes
6824 else $as_nop
6825 eval $cacheid=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6828 conftest$ac_exeext conftest.$ac_ext
6829 fi
6830
6831
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6833
6834 eval supported=\$$cacheid
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6836 printf "%s\n" "$supported" >&6; }
6837 if test "$supported" = "yes" ; then
6838 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6839 found="yes"
6840 fi
6841 fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 xorg_testset_save_CFLAGS="$CFLAGS"
6858
6859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6862 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6863 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else $as_nop
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int i;
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"
6872 then :
6873 xorg_cv_cc_flag_unknown_warning_option=yes
6874 else $as_nop
6875 xorg_cv_cc_flag_unknown_warning_option=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6878 fi
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882 CFLAGS="$xorg_testset_save_CFLAGS"
6883 fi
6884
6885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888 fi
6889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else $as_nop
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 int i;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"
6901 then :
6902 xorg_cv_cc_flag_unused_command_line_argument=yes
6903 else $as_nop
6904 xorg_cv_cc_flag_unused_command_line_argument=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6907 fi
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6909 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6911 CFLAGS="$xorg_testset_save_CFLAGS"
6912 fi
6913
6914 found="no"
6915
6916 if test $found = "no" ; then
6917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919 fi
6920
6921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6923 fi
6924
6925 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6926
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6928 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6929 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6930 if eval test \${$cacheid+y}
6931 then :
6932 printf %s "(cached) " >&6
6933 else $as_nop
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 int i;
6937 int
6938 main (void)
6939 {
6940
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"
6946 then :
6947 eval $cacheid=yes
6948 else $as_nop
6949 eval $cacheid=no
6950 fi
6951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6952 conftest$ac_exeext conftest.$ac_ext
6953 fi
6954
6955
6956 CFLAGS="$xorg_testset_save_CFLAGS"
6957
6958 eval supported=\$$cacheid
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6960 printf "%s\n" "$supported" >&6; }
6961 if test "$supported" = "yes" ; then
6962 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6963 found="yes"
6964 fi
6965 fi
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981 xorg_testset_save_CFLAGS="$CFLAGS"
6982
6983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6986 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6987 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6988 then :
6989 printf %s "(cached) " >&6
6990 else $as_nop
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int i;
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"
6996 then :
6997 xorg_cv_cc_flag_unknown_warning_option=yes
6998 else $as_nop
6999 xorg_cv_cc_flag_unknown_warning_option=no
7000 fi
7001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7002 fi
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7006 CFLAGS="$xorg_testset_save_CFLAGS"
7007 fi
7008
7009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012 fi
7013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7017 then :
7018 printf %s "(cached) " >&6
7019 else $as_nop
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 int i;
7023 _ACEOF
7024 if ac_fn_c_try_compile "$LINENO"
7025 then :
7026 xorg_cv_cc_flag_unused_command_line_argument=yes
7027 else $as_nop
7028 xorg_cv_cc_flag_unused_command_line_argument=no
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7031 fi
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7033 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7035 CFLAGS="$xorg_testset_save_CFLAGS"
7036 fi
7037
7038 found="no"
7039
7040 if test $found = "no" ; then
7041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043 fi
7044
7045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047 fi
7048
7049 CFLAGS="$CFLAGS -Wredundant-decls"
7050
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7052 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7053 cacheid=xorg_cv_cc_flag__Wredundant_decls
7054 if eval test \${$cacheid+y}
7055 then :
7056 printf %s "(cached) " >&6
7057 else $as_nop
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 int i;
7061 int
7062 main (void)
7063 {
7064
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_link "$LINENO"
7070 then :
7071 eval $cacheid=yes
7072 else $as_nop
7073 eval $cacheid=no
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7076 conftest$ac_exeext conftest.$ac_ext
7077 fi
7078
7079
7080 CFLAGS="$xorg_testset_save_CFLAGS"
7081
7082 eval supported=\$$cacheid
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7084 printf "%s\n" "$supported" >&6; }
7085 if test "$supported" = "yes" ; then
7086 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7087 found="yes"
7088 fi
7089 fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105 xorg_testset_save_CFLAGS="$CFLAGS"
7106
7107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else $as_nop
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"
7120 then :
7121 xorg_cv_cc_flag_unknown_warning_option=yes
7122 else $as_nop
7123 xorg_cv_cc_flag_unknown_warning_option=no
7124 fi
7125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7126 fi
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7130 CFLAGS="$xorg_testset_save_CFLAGS"
7131 fi
7132
7133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136 fi
7137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7141 then :
7142 printf %s "(cached) " >&6
7143 else $as_nop
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 int i;
7147 _ACEOF
7148 if ac_fn_c_try_compile "$LINENO"
7149 then :
7150 xorg_cv_cc_flag_unused_command_line_argument=yes
7151 else $as_nop
7152 xorg_cv_cc_flag_unused_command_line_argument=no
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 fi
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7159 CFLAGS="$xorg_testset_save_CFLAGS"
7160 fi
7161
7162 found="no"
7163
7164 if test $found = "no" ; then
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 fi
7168
7169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171 fi
7172
7173 CFLAGS="$CFLAGS -Wlogical-op"
7174
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7176 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7177 cacheid=xorg_cv_cc_flag__Wlogical_op
7178 if eval test \${$cacheid+y}
7179 then :
7180 printf %s "(cached) " >&6
7181 else $as_nop
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 int i;
7185 int
7186 main (void)
7187 {
7188
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 if ac_fn_c_try_link "$LINENO"
7194 then :
7195 eval $cacheid=yes
7196 else $as_nop
7197 eval $cacheid=no
7198 fi
7199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7200 conftest$ac_exeext conftest.$ac_ext
7201 fi
7202
7203
7204 CFLAGS="$xorg_testset_save_CFLAGS"
7205
7206 eval supported=\$$cacheid
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7208 printf "%s\n" "$supported" >&6; }
7209 if test "$supported" = "yes" ; then
7210 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7211 found="yes"
7212 fi
7213 fi
7214
7215
7216
7217 # These are currently disabled because they are noisy. They will be enabled
7218 # in the future once the codebase is sufficiently modernized to silence
7219 # them. For now, I don't want them to drown out the other warnings.
7220 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7221 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7222 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7223
7224 # Turn some warnings into errors, so we don't accidently get successful builds
7225 # when there are problems that should be fixed.
7226
7227 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 xorg_testset_save_CFLAGS="$CFLAGS"
7242
7243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7247 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7248 then :
7249 printf %s "(cached) " >&6
7250 else $as_nop
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 int i;
7254 _ACEOF
7255 if ac_fn_c_try_compile "$LINENO"
7256 then :
7257 xorg_cv_cc_flag_unknown_warning_option=yes
7258 else $as_nop
7259 xorg_cv_cc_flag_unknown_warning_option=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7262 fi
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7266 CFLAGS="$xorg_testset_save_CFLAGS"
7267 fi
7268
7269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272 fi
7273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7277 then :
7278 printf %s "(cached) " >&6
7279 else $as_nop
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 int i;
7283 _ACEOF
7284 if ac_fn_c_try_compile "$LINENO"
7285 then :
7286 xorg_cv_cc_flag_unused_command_line_argument=yes
7287 else $as_nop
7288 xorg_cv_cc_flag_unused_command_line_argument=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7291 fi
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7293 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296 fi
7297
7298 found="no"
7299
7300 if test $found = "no" ; then
7301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303 fi
7304
7305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307 fi
7308
7309 CFLAGS="$CFLAGS -Werror=implicit"
7310
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7312 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7313 cacheid=xorg_cv_cc_flag__Werror_implicit
7314 if eval test \${$cacheid+y}
7315 then :
7316 printf %s "(cached) " >&6
7317 else $as_nop
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 int i;
7321 int
7322 main (void)
7323 {
7324
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 if ac_fn_c_try_link "$LINENO"
7330 then :
7331 eval $cacheid=yes
7332 else $as_nop
7333 eval $cacheid=no
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7336 conftest$ac_exeext conftest.$ac_ext
7337 fi
7338
7339
7340 CFLAGS="$xorg_testset_save_CFLAGS"
7341
7342 eval supported=\$$cacheid
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7344 printf "%s\n" "$supported" >&6; }
7345 if test "$supported" = "yes" ; then
7346 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7347 found="yes"
7348 fi
7349 fi
7350
7351 if test $found = "no" ; then
7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354 fi
7355
7356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358 fi
7359
7360 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7361
7362 { 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
7363 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7364 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7365 if eval test \${$cacheid+y}
7366 then :
7367 printf %s "(cached) " >&6
7368 else $as_nop
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 int i;
7372 int
7373 main (void)
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"
7381 then :
7382 eval $cacheid=yes
7383 else $as_nop
7384 eval $cacheid=no
7385 fi
7386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7387 conftest$ac_exeext conftest.$ac_ext
7388 fi
7389
7390
7391 CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393 eval supported=\$$cacheid
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395 printf "%s\n" "$supported" >&6; }
7396 if test "$supported" = "yes" ; then
7397 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7398 found="yes"
7399 fi
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 xorg_testset_save_CFLAGS="$CFLAGS"
7417
7418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7421 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7422 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7423 then :
7424 printf %s "(cached) " >&6
7425 else $as_nop
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"
7431 then :
7432 xorg_cv_cc_flag_unknown_warning_option=yes
7433 else $as_nop
7434 xorg_cv_cc_flag_unknown_warning_option=no
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7437 fi
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7439 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7441 CFLAGS="$xorg_testset_save_CFLAGS"
7442 fi
7443
7444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447 fi
7448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7450 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7451 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else $as_nop
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 int i;
7458 _ACEOF
7459 if ac_fn_c_try_compile "$LINENO"
7460 then :
7461 xorg_cv_cc_flag_unused_command_line_argument=yes
7462 else $as_nop
7463 xorg_cv_cc_flag_unused_command_line_argument=no
7464 fi
7465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7466 fi
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7468 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7470 CFLAGS="$xorg_testset_save_CFLAGS"
7471 fi
7472
7473 found="no"
7474
7475 if test $found = "no" ; then
7476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478 fi
7479
7480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7482 fi
7483
7484 CFLAGS="$CFLAGS -Werror=nonnull"
7485
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7487 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7488 cacheid=xorg_cv_cc_flag__Werror_nonnull
7489 if eval test \${$cacheid+y}
7490 then :
7491 printf %s "(cached) " >&6
7492 else $as_nop
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 int i;
7496 int
7497 main (void)
7498 {
7499
7500 ;
7501 return 0;
7502 }
7503 _ACEOF
7504 if ac_fn_c_try_link "$LINENO"
7505 then :
7506 eval $cacheid=yes
7507 else $as_nop
7508 eval $cacheid=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7511 conftest$ac_exeext conftest.$ac_ext
7512 fi
7513
7514
7515 CFLAGS="$xorg_testset_save_CFLAGS"
7516
7517 eval supported=\$$cacheid
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7519 printf "%s\n" "$supported" >&6; }
7520 if test "$supported" = "yes" ; then
7521 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7522 found="yes"
7523 fi
7524 fi
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 xorg_testset_save_CFLAGS="$CFLAGS"
7541
7542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7545 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7546 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7547 then :
7548 printf %s "(cached) " >&6
7549 else $as_nop
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 int i;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"
7555 then :
7556 xorg_cv_cc_flag_unknown_warning_option=yes
7557 else $as_nop
7558 xorg_cv_cc_flag_unknown_warning_option=no
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7561 fi
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7563 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7565 CFLAGS="$xorg_testset_save_CFLAGS"
7566 fi
7567
7568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571 fi
7572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7574 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7575 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else $as_nop
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int i;
7582 _ACEOF
7583 if ac_fn_c_try_compile "$LINENO"
7584 then :
7585 xorg_cv_cc_flag_unused_command_line_argument=yes
7586 else $as_nop
7587 xorg_cv_cc_flag_unused_command_line_argument=no
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7590 fi
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7594 CFLAGS="$xorg_testset_save_CFLAGS"
7595 fi
7596
7597 found="no"
7598
7599 if test $found = "no" ; then
7600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602 fi
7603
7604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606 fi
7607
7608 CFLAGS="$CFLAGS -Werror=init-self"
7609
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7611 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7612 cacheid=xorg_cv_cc_flag__Werror_init_self
7613 if eval test \${$cacheid+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else $as_nop
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 int i;
7620 int
7621 main (void)
7622 {
7623
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"
7629 then :
7630 eval $cacheid=yes
7631 else $as_nop
7632 eval $cacheid=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7635 conftest$ac_exeext conftest.$ac_ext
7636 fi
7637
7638
7639 CFLAGS="$xorg_testset_save_CFLAGS"
7640
7641 eval supported=\$$cacheid
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7643 printf "%s\n" "$supported" >&6; }
7644 if test "$supported" = "yes" ; then
7645 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7646 found="yes"
7647 fi
7648 fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 xorg_testset_save_CFLAGS="$CFLAGS"
7665
7666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7670 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else $as_nop
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 int i;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"
7679 then :
7680 xorg_cv_cc_flag_unknown_warning_option=yes
7681 else $as_nop
7682 xorg_cv_cc_flag_unknown_warning_option=no
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7685 fi
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7689 CFLAGS="$xorg_testset_save_CFLAGS"
7690 fi
7691
7692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7695 fi
7696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7700 then :
7701 printf %s "(cached) " >&6
7702 else $as_nop
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 int i;
7706 _ACEOF
7707 if ac_fn_c_try_compile "$LINENO"
7708 then :
7709 xorg_cv_cc_flag_unused_command_line_argument=yes
7710 else $as_nop
7711 xorg_cv_cc_flag_unused_command_line_argument=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7714 fi
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7719 fi
7720
7721 found="no"
7722
7723 if test $found = "no" ; then
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 fi
7727
7728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 fi
7731
7732 CFLAGS="$CFLAGS -Werror=main"
7733
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7735 printf %s "checking if $CC supports -Werror=main... " >&6; }
7736 cacheid=xorg_cv_cc_flag__Werror_main
7737 if eval test \${$cacheid+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else $as_nop
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 int i;
7744 int
7745 main (void)
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"
7753 then :
7754 eval $cacheid=yes
7755 else $as_nop
7756 eval $cacheid=no
7757 fi
7758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7759 conftest$ac_exeext conftest.$ac_ext
7760 fi
7761
7762
7763 CFLAGS="$xorg_testset_save_CFLAGS"
7764
7765 eval supported=\$$cacheid
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7767 printf "%s\n" "$supported" >&6; }
7768 if test "$supported" = "yes" ; then
7769 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7770 found="yes"
7771 fi
7772 fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788 xorg_testset_save_CFLAGS="$CFLAGS"
7789
7790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7795 then :
7796 printf %s "(cached) " >&6
7797 else $as_nop
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 int i;
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"
7803 then :
7804 xorg_cv_cc_flag_unknown_warning_option=yes
7805 else $as_nop
7806 xorg_cv_cc_flag_unknown_warning_option=no
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7809 fi
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7813 CFLAGS="$xorg_testset_save_CFLAGS"
7814 fi
7815
7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819 fi
7820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7824 then :
7825 printf %s "(cached) " >&6
7826 else $as_nop
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 int i;
7830 _ACEOF
7831 if ac_fn_c_try_compile "$LINENO"
7832 then :
7833 xorg_cv_cc_flag_unused_command_line_argument=yes
7834 else $as_nop
7835 xorg_cv_cc_flag_unused_command_line_argument=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7838 fi
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7840 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7842 CFLAGS="$xorg_testset_save_CFLAGS"
7843 fi
7844
7845 found="no"
7846
7847 if test $found = "no" ; then
7848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850 fi
7851
7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854 fi
7855
7856 CFLAGS="$CFLAGS -Werror=missing-braces"
7857
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7859 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7860 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7861 if eval test \${$cacheid+y}
7862 then :
7863 printf %s "(cached) " >&6
7864 else $as_nop
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 int i;
7868 int
7869 main (void)
7870 {
7871
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"
7877 then :
7878 eval $cacheid=yes
7879 else $as_nop
7880 eval $cacheid=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7883 conftest$ac_exeext conftest.$ac_ext
7884 fi
7885
7886
7887 CFLAGS="$xorg_testset_save_CFLAGS"
7888
7889 eval supported=\$$cacheid
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7891 printf "%s\n" "$supported" >&6; }
7892 if test "$supported" = "yes" ; then
7893 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7894 found="yes"
7895 fi
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912 xorg_testset_save_CFLAGS="$CFLAGS"
7913
7914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7918 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7919 then :
7920 printf %s "(cached) " >&6
7921 else $as_nop
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 int i;
7925 _ACEOF
7926 if ac_fn_c_try_compile "$LINENO"
7927 then :
7928 xorg_cv_cc_flag_unknown_warning_option=yes
7929 else $as_nop
7930 xorg_cv_cc_flag_unknown_warning_option=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7933 fi
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7937 CFLAGS="$xorg_testset_save_CFLAGS"
7938 fi
7939
7940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943 fi
7944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7948 then :
7949 printf %s "(cached) " >&6
7950 else $as_nop
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 int i;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"
7956 then :
7957 xorg_cv_cc_flag_unused_command_line_argument=yes
7958 else $as_nop
7959 xorg_cv_cc_flag_unused_command_line_argument=no
7960 fi
7961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7962 fi
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966 CFLAGS="$xorg_testset_save_CFLAGS"
7967 fi
7968
7969 found="no"
7970
7971 if test $found = "no" ; then
7972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974 fi
7975
7976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 fi
7979
7980 CFLAGS="$CFLAGS -Werror=sequence-point"
7981
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7983 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7984 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7985 if eval test \${$cacheid+y}
7986 then :
7987 printf %s "(cached) " >&6
7988 else $as_nop
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 int i;
7992 int
7993 main (void)
7994 {
7995
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_link "$LINENO"
8001 then :
8002 eval $cacheid=yes
8003 else $as_nop
8004 eval $cacheid=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8007 conftest$ac_exeext conftest.$ac_ext
8008 fi
8009
8010
8011 CFLAGS="$xorg_testset_save_CFLAGS"
8012
8013 eval supported=\$$cacheid
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8015 printf "%s\n" "$supported" >&6; }
8016 if test "$supported" = "yes" ; then
8017 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8018 found="yes"
8019 fi
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 xorg_testset_save_CFLAGS="$CFLAGS"
8037
8038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8042 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8043 then :
8044 printf %s "(cached) " >&6
8045 else $as_nop
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 int i;
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"
8051 then :
8052 xorg_cv_cc_flag_unknown_warning_option=yes
8053 else $as_nop
8054 xorg_cv_cc_flag_unknown_warning_option=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8057 fi
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067 fi
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8072 then :
8073 printf %s "(cached) " >&6
8074 else $as_nop
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 int i;
8078 _ACEOF
8079 if ac_fn_c_try_compile "$LINENO"
8080 then :
8081 xorg_cv_cc_flag_unused_command_line_argument=yes
8082 else $as_nop
8083 xorg_cv_cc_flag_unused_command_line_argument=no
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8086 fi
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8090 CFLAGS="$xorg_testset_save_CFLAGS"
8091 fi
8092
8093 found="no"
8094
8095 if test $found = "no" ; then
8096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098 fi
8099
8100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102 fi
8103
8104 CFLAGS="$CFLAGS -Werror=return-type"
8105
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8107 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8108 cacheid=xorg_cv_cc_flag__Werror_return_type
8109 if eval test \${$cacheid+y}
8110 then :
8111 printf %s "(cached) " >&6
8112 else $as_nop
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 int i;
8116 int
8117 main (void)
8118 {
8119
8120 ;
8121 return 0;
8122 }
8123 _ACEOF
8124 if ac_fn_c_try_link "$LINENO"
8125 then :
8126 eval $cacheid=yes
8127 else $as_nop
8128 eval $cacheid=no
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8131 conftest$ac_exeext conftest.$ac_ext
8132 fi
8133
8134
8135 CFLAGS="$xorg_testset_save_CFLAGS"
8136
8137 eval supported=\$$cacheid
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8139 printf "%s\n" "$supported" >&6; }
8140 if test "$supported" = "yes" ; then
8141 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8142 found="yes"
8143 fi
8144 fi
8145
8146 if test $found = "no" ; then
8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 fi
8150
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153 fi
8154
8155 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8156
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8158 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8159 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8160 if eval test \${$cacheid+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 int i;
8167 int
8168 main (void)
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"
8176 then :
8177 eval $cacheid=yes
8178 else $as_nop
8179 eval $cacheid=no
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8182 conftest$ac_exeext conftest.$ac_ext
8183 fi
8184
8185
8186 CFLAGS="$xorg_testset_save_CFLAGS"
8187
8188 eval supported=\$$cacheid
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8190 printf "%s\n" "$supported" >&6; }
8191 if test "$supported" = "yes" ; then
8192 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8193 found="yes"
8194 fi
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 xorg_testset_save_CFLAGS="$CFLAGS"
8212
8213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8217 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else $as_nop
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 int i;
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"
8226 then :
8227 xorg_cv_cc_flag_unknown_warning_option=yes
8228 else $as_nop
8229 xorg_cv_cc_flag_unknown_warning_option=no
8230 fi
8231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8232 fi
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8236 CFLAGS="$xorg_testset_save_CFLAGS"
8237 fi
8238
8239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242 fi
8243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8247 then :
8248 printf %s "(cached) " >&6
8249 else $as_nop
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int i;
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"
8255 then :
8256 xorg_cv_cc_flag_unused_command_line_argument=yes
8257 else $as_nop
8258 xorg_cv_cc_flag_unused_command_line_argument=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8261 fi
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8265 CFLAGS="$xorg_testset_save_CFLAGS"
8266 fi
8267
8268 found="no"
8269
8270 if test $found = "no" ; then
8271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273 fi
8274
8275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277 fi
8278
8279 CFLAGS="$CFLAGS -Werror=trigraphs"
8280
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8282 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8283 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8284 if eval test \${$cacheid+y}
8285 then :
8286 printf %s "(cached) " >&6
8287 else $as_nop
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 int i;
8291 int
8292 main (void)
8293 {
8294
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 if ac_fn_c_try_link "$LINENO"
8300 then :
8301 eval $cacheid=yes
8302 else $as_nop
8303 eval $cacheid=no
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8306 conftest$ac_exeext conftest.$ac_ext
8307 fi
8308
8309
8310 CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312 eval supported=\$$cacheid
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314 printf "%s\n" "$supported" >&6; }
8315 if test "$supported" = "yes" ; then
8316 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8317 found="yes"
8318 fi
8319 fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 xorg_testset_save_CFLAGS="$CFLAGS"
8336
8337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8342 then :
8343 printf %s "(cached) " >&6
8344 else $as_nop
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 int i;
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"
8350 then :
8351 xorg_cv_cc_flag_unknown_warning_option=yes
8352 else $as_nop
8353 xorg_cv_cc_flag_unknown_warning_option=no
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8356 fi
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8358 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8360 CFLAGS="$xorg_testset_save_CFLAGS"
8361 fi
8362
8363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8366 fi
8367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8369 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8370 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else $as_nop
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 int i;
8377 _ACEOF
8378 if ac_fn_c_try_compile "$LINENO"
8379 then :
8380 xorg_cv_cc_flag_unused_command_line_argument=yes
8381 else $as_nop
8382 xorg_cv_cc_flag_unused_command_line_argument=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8385 fi
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8389 CFLAGS="$xorg_testset_save_CFLAGS"
8390 fi
8391
8392 found="no"
8393
8394 if test $found = "no" ; then
8395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397 fi
8398
8399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401 fi
8402
8403 CFLAGS="$CFLAGS -Werror=array-bounds"
8404
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8406 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8407 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8408 if eval test \${$cacheid+y}
8409 then :
8410 printf %s "(cached) " >&6
8411 else $as_nop
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 int i;
8415 int
8416 main (void)
8417 {
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"
8424 then :
8425 eval $cacheid=yes
8426 else $as_nop
8427 eval $cacheid=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8430 conftest$ac_exeext conftest.$ac_ext
8431 fi
8432
8433
8434 CFLAGS="$xorg_testset_save_CFLAGS"
8435
8436 eval supported=\$$cacheid
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8438 printf "%s\n" "$supported" >&6; }
8439 if test "$supported" = "yes" ; then
8440 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8441 found="yes"
8442 fi
8443 fi
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459 xorg_testset_save_CFLAGS="$CFLAGS"
8460
8461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8466 then :
8467 printf %s "(cached) " >&6
8468 else $as_nop
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471 int i;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"
8474 then :
8475 xorg_cv_cc_flag_unknown_warning_option=yes
8476 else $as_nop
8477 xorg_cv_cc_flag_unknown_warning_option=no
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8480 fi
8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8484 CFLAGS="$xorg_testset_save_CFLAGS"
8485 fi
8486
8487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490 fi
8491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8495 then :
8496 printf %s "(cached) " >&6
8497 else $as_nop
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 int i;
8501 _ACEOF
8502 if ac_fn_c_try_compile "$LINENO"
8503 then :
8504 xorg_cv_cc_flag_unused_command_line_argument=yes
8505 else $as_nop
8506 xorg_cv_cc_flag_unused_command_line_argument=no
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8509 fi
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8513 CFLAGS="$xorg_testset_save_CFLAGS"
8514 fi
8515
8516 found="no"
8517
8518 if test $found = "no" ; then
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 fi
8522
8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 fi
8526
8527 CFLAGS="$CFLAGS -Werror=write-strings"
8528
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8530 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8531 cacheid=xorg_cv_cc_flag__Werror_write_strings
8532 if eval test \${$cacheid+y}
8533 then :
8534 printf %s "(cached) " >&6
8535 else $as_nop
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538 int i;
8539 int
8540 main (void)
8541 {
8542
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 if ac_fn_c_try_link "$LINENO"
8548 then :
8549 eval $cacheid=yes
8550 else $as_nop
8551 eval $cacheid=no
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8554 conftest$ac_exeext conftest.$ac_ext
8555 fi
8556
8557
8558 CFLAGS="$xorg_testset_save_CFLAGS"
8559
8560 eval supported=\$$cacheid
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8562 printf "%s\n" "$supported" >&6; }
8563 if test "$supported" = "yes" ; then
8564 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8565 found="yes"
8566 fi
8567 fi
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583 xorg_testset_save_CFLAGS="$CFLAGS"
8584
8585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8589 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8590 then :
8591 printf %s "(cached) " >&6
8592 else $as_nop
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 int i;
8596 _ACEOF
8597 if ac_fn_c_try_compile "$LINENO"
8598 then :
8599 xorg_cv_cc_flag_unknown_warning_option=yes
8600 else $as_nop
8601 xorg_cv_cc_flag_unknown_warning_option=no
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8604 fi
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8606 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609 fi
8610
8611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614 fi
8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8619 then :
8620 printf %s "(cached) " >&6
8621 else $as_nop
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"
8627 then :
8628 xorg_cv_cc_flag_unused_command_line_argument=yes
8629 else $as_nop
8630 xorg_cv_cc_flag_unused_command_line_argument=no
8631 fi
8632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8633 fi
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8637 CFLAGS="$xorg_testset_save_CFLAGS"
8638 fi
8639
8640 found="no"
8641
8642 if test $found = "no" ; then
8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645 fi
8646
8647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649 fi
8650
8651 CFLAGS="$CFLAGS -Werror=address"
8652
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8654 printf %s "checking if $CC supports -Werror=address... " >&6; }
8655 cacheid=xorg_cv_cc_flag__Werror_address
8656 if eval test \${$cacheid+y}
8657 then :
8658 printf %s "(cached) " >&6
8659 else $as_nop
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 int i;
8663 int
8664 main (void)
8665 {
8666
8667 ;
8668 return 0;
8669 }
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"
8672 then :
8673 eval $cacheid=yes
8674 else $as_nop
8675 eval $cacheid=no
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8678 conftest$ac_exeext conftest.$ac_ext
8679 fi
8680
8681
8682 CFLAGS="$xorg_testset_save_CFLAGS"
8683
8684 eval supported=\$$cacheid
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8686 printf "%s\n" "$supported" >&6; }
8687 if test "$supported" = "yes" ; then
8688 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8689 found="yes"
8690 fi
8691 fi
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707 xorg_testset_save_CFLAGS="$CFLAGS"
8708
8709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8713 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8714 then :
8715 printf %s "(cached) " >&6
8716 else $as_nop
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 int i;
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"
8722 then :
8723 xorg_cv_cc_flag_unknown_warning_option=yes
8724 else $as_nop
8725 xorg_cv_cc_flag_unknown_warning_option=no
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728 fi
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8730 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8732 CFLAGS="$xorg_testset_save_CFLAGS"
8733 fi
8734
8735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738 fi
8739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8741 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8742 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8743 then :
8744 printf %s "(cached) " >&6
8745 else $as_nop
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 int i;
8749 _ACEOF
8750 if ac_fn_c_try_compile "$LINENO"
8751 then :
8752 xorg_cv_cc_flag_unused_command_line_argument=yes
8753 else $as_nop
8754 xorg_cv_cc_flag_unused_command_line_argument=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8757 fi
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8761 CFLAGS="$xorg_testset_save_CFLAGS"
8762 fi
8763
8764 found="no"
8765
8766 if test $found = "no" ; then
8767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769 fi
8770
8771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773 fi
8774
8775 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8776
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8778 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8779 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8780 if eval test \${$cacheid+y}
8781 then :
8782 printf %s "(cached) " >&6
8783 else $as_nop
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 int i;
8787 int
8788 main (void)
8789 {
8790
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"
8796 then :
8797 eval $cacheid=yes
8798 else $as_nop
8799 eval $cacheid=no
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8802 conftest$ac_exeext conftest.$ac_ext
8803 fi
8804
8805
8806 CFLAGS="$xorg_testset_save_CFLAGS"
8807
8808 eval supported=\$$cacheid
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8810 printf "%s\n" "$supported" >&6; }
8811 if test "$supported" = "yes" ; then
8812 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8813 found="yes"
8814 fi
8815 fi
8816
8817 if test $found = "no" ; then
8818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8820 fi
8821
8822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8824 fi
8825
8826 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8827
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8829 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8830 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8831 if eval test \${$cacheid+y}
8832 then :
8833 printf %s "(cached) " >&6
8834 else $as_nop
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837 int i;
8838 int
8839 main (void)
8840 {
8841
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"
8847 then :
8848 eval $cacheid=yes
8849 else $as_nop
8850 eval $cacheid=no
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8853 conftest$ac_exeext conftest.$ac_ext
8854 fi
8855
8856
8857 CFLAGS="$xorg_testset_save_CFLAGS"
8858
8859 eval supported=\$$cacheid
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8861 printf "%s\n" "$supported" >&6; }
8862 if test "$supported" = "yes" ; then
8863 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8864 found="yes"
8865 fi
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882 xorg_testset_save_CFLAGS="$CFLAGS"
8883
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8889 then :
8890 printf %s "(cached) " >&6
8891 else $as_nop
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 int i;
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"
8897 then :
8898 xorg_cv_cc_flag_unknown_warning_option=yes
8899 else $as_nop
8900 xorg_cv_cc_flag_unknown_warning_option=no
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8903 fi
8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8908 fi
8909
8910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8913 fi
8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8918 then :
8919 printf %s "(cached) " >&6
8920 else $as_nop
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 int i;
8924 _ACEOF
8925 if ac_fn_c_try_compile "$LINENO"
8926 then :
8927 xorg_cv_cc_flag_unused_command_line_argument=yes
8928 else $as_nop
8929 xorg_cv_cc_flag_unused_command_line_argument=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8932 fi
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8936 CFLAGS="$xorg_testset_save_CFLAGS"
8937 fi
8938
8939 found="no"
8940
8941 if test $found = "no" ; then
8942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 fi
8945
8946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948 fi
8949
8950 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8951
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8953 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8954 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8955 if eval test \${$cacheid+y}
8956 then :
8957 printf %s "(cached) " >&6
8958 else $as_nop
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961 int i;
8962 int
8963 main (void)
8964 {
8965
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 if ac_fn_c_try_link "$LINENO"
8971 then :
8972 eval $cacheid=yes
8973 else $as_nop
8974 eval $cacheid=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8977 conftest$ac_exeext conftest.$ac_ext
8978 fi
8979
8980
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982
8983 eval supported=\$$cacheid
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8985 printf "%s\n" "$supported" >&6; }
8986 if test "$supported" = "yes" ; then
8987 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8988 found="yes"
8989 fi
8990 fi
8991
8992 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8993 else
8994 { 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
8995 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;}
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009 xorg_testset_save_CFLAGS="$CFLAGS"
9010
9011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9014 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9015 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9016 then :
9017 printf %s "(cached) " >&6
9018 else $as_nop
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 int i;
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"
9024 then :
9025 xorg_cv_cc_flag_unknown_warning_option=yes
9026 else $as_nop
9027 xorg_cv_cc_flag_unknown_warning_option=no
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9030 fi
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9032 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9034 CFLAGS="$xorg_testset_save_CFLAGS"
9035 fi
9036
9037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040 fi
9041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9043 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9044 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9045 then :
9046 printf %s "(cached) " >&6
9047 else $as_nop
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 int i;
9051 _ACEOF
9052 if ac_fn_c_try_compile "$LINENO"
9053 then :
9054 xorg_cv_cc_flag_unused_command_line_argument=yes
9055 else $as_nop
9056 xorg_cv_cc_flag_unused_command_line_argument=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9059 fi
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9061 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9063 CFLAGS="$xorg_testset_save_CFLAGS"
9064 fi
9065
9066 found="no"
9067
9068 if test $found = "no" ; then
9069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071 fi
9072
9073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9075 fi
9076
9077 CFLAGS="$CFLAGS -Wimplicit"
9078
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9080 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9081 cacheid=xorg_cv_cc_flag__Wimplicit
9082 if eval test \${$cacheid+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else $as_nop
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 int
9090 main (void)
9091 {
9092
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_link "$LINENO"
9098 then :
9099 eval $cacheid=yes
9100 else $as_nop
9101 eval $cacheid=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9104 conftest$ac_exeext conftest.$ac_ext
9105 fi
9106
9107
9108 CFLAGS="$xorg_testset_save_CFLAGS"
9109
9110 eval supported=\$$cacheid
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9112 printf "%s\n" "$supported" >&6; }
9113 if test "$supported" = "yes" ; then
9114 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9115 found="yes"
9116 fi
9117 fi
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133 xorg_testset_save_CFLAGS="$CFLAGS"
9134
9135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9138 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9139 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9140 then :
9141 printf %s "(cached) " >&6
9142 else $as_nop
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 _ACEOF
9147 if ac_fn_c_try_compile "$LINENO"
9148 then :
9149 xorg_cv_cc_flag_unknown_warning_option=yes
9150 else $as_nop
9151 xorg_cv_cc_flag_unknown_warning_option=no
9152 fi
9153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9154 fi
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9158 CFLAGS="$xorg_testset_save_CFLAGS"
9159 fi
9160
9161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164 fi
9165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9169 then :
9170 printf %s "(cached) " >&6
9171 else $as_nop
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int i;
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"
9177 then :
9178 xorg_cv_cc_flag_unused_command_line_argument=yes
9179 else $as_nop
9180 xorg_cv_cc_flag_unused_command_line_argument=no
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9183 fi
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9185 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9187 CFLAGS="$xorg_testset_save_CFLAGS"
9188 fi
9189
9190 found="no"
9191
9192 if test $found = "no" ; then
9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195 fi
9196
9197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199 fi
9200
9201 CFLAGS="$CFLAGS -Wnonnull"
9202
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9204 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9205 cacheid=xorg_cv_cc_flag__Wnonnull
9206 if eval test \${$cacheid+y}
9207 then :
9208 printf %s "(cached) " >&6
9209 else $as_nop
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 int i;
9213 int
9214 main (void)
9215 {
9216
9217 ;
9218 return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_link "$LINENO"
9222 then :
9223 eval $cacheid=yes
9224 else $as_nop
9225 eval $cacheid=no
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9228 conftest$ac_exeext conftest.$ac_ext
9229 fi
9230
9231
9232 CFLAGS="$xorg_testset_save_CFLAGS"
9233
9234 eval supported=\$$cacheid
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9236 printf "%s\n" "$supported" >&6; }
9237 if test "$supported" = "yes" ; then
9238 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9239 found="yes"
9240 fi
9241 fi
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257 xorg_testset_save_CFLAGS="$CFLAGS"
9258
9259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9262 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9263 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else $as_nop
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 int i;
9270 _ACEOF
9271 if ac_fn_c_try_compile "$LINENO"
9272 then :
9273 xorg_cv_cc_flag_unknown_warning_option=yes
9274 else $as_nop
9275 xorg_cv_cc_flag_unknown_warning_option=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9283 fi
9284
9285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288 fi
9289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9293 then :
9294 printf %s "(cached) " >&6
9295 else $as_nop
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 int i;
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"
9301 then :
9302 xorg_cv_cc_flag_unused_command_line_argument=yes
9303 else $as_nop
9304 xorg_cv_cc_flag_unused_command_line_argument=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9307 fi
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312 fi
9313
9314 found="no"
9315
9316 if test $found = "no" ; then
9317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 fi
9320
9321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323 fi
9324
9325 CFLAGS="$CFLAGS -Winit-self"
9326
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9328 printf %s "checking if $CC supports -Winit-self... " >&6; }
9329 cacheid=xorg_cv_cc_flag__Winit_self
9330 if eval test \${$cacheid+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else $as_nop
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 int i;
9337 int
9338 main (void)
9339 {
9340
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"
9346 then :
9347 eval $cacheid=yes
9348 else $as_nop
9349 eval $cacheid=no
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9352 conftest$ac_exeext conftest.$ac_ext
9353 fi
9354
9355
9356 CFLAGS="$xorg_testset_save_CFLAGS"
9357
9358 eval supported=\$$cacheid
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9360 printf "%s\n" "$supported" >&6; }
9361 if test "$supported" = "yes" ; then
9362 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9363 found="yes"
9364 fi
9365 fi
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381 xorg_testset_save_CFLAGS="$CFLAGS"
9382
9383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9387 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9388 then :
9389 printf %s "(cached) " >&6
9390 else $as_nop
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 int i;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"
9396 then :
9397 xorg_cv_cc_flag_unknown_warning_option=yes
9398 else $as_nop
9399 xorg_cv_cc_flag_unknown_warning_option=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9402 fi
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9406 CFLAGS="$xorg_testset_save_CFLAGS"
9407 fi
9408
9409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9412 fi
9413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9417 then :
9418 printf %s "(cached) " >&6
9419 else $as_nop
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 int i;
9423 _ACEOF
9424 if ac_fn_c_try_compile "$LINENO"
9425 then :
9426 xorg_cv_cc_flag_unused_command_line_argument=yes
9427 else $as_nop
9428 xorg_cv_cc_flag_unused_command_line_argument=no
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9431 fi
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9433 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9435 CFLAGS="$xorg_testset_save_CFLAGS"
9436 fi
9437
9438 found="no"
9439
9440 if test $found = "no" ; then
9441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443 fi
9444
9445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447 fi
9448
9449 CFLAGS="$CFLAGS -Wmain"
9450
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9452 printf %s "checking if $CC supports -Wmain... " >&6; }
9453 cacheid=xorg_cv_cc_flag__Wmain
9454 if eval test \${$cacheid+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else $as_nop
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 int i;
9461 int
9462 main (void)
9463 {
9464
9465 ;
9466 return 0;
9467 }
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"
9470 then :
9471 eval $cacheid=yes
9472 else $as_nop
9473 eval $cacheid=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9476 conftest$ac_exeext conftest.$ac_ext
9477 fi
9478
9479
9480 CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482 eval supported=\$$cacheid
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484 printf "%s\n" "$supported" >&6; }
9485 if test "$supported" = "yes" ; then
9486 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9487 found="yes"
9488 fi
9489 fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505 xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9512 then :
9513 printf %s "(cached) " >&6
9514 else $as_nop
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 _ACEOF
9519 if ac_fn_c_try_compile "$LINENO"
9520 then :
9521 xorg_cv_cc_flag_unknown_warning_option=yes
9522 else $as_nop
9523 xorg_cv_cc_flag_unknown_warning_option=no
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9526 fi
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9528 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9530 CFLAGS="$xorg_testset_save_CFLAGS"
9531 fi
9532
9533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9536 fi
9537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9539 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9540 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9541 then :
9542 printf %s "(cached) " >&6
9543 else $as_nop
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546 int i;
9547 _ACEOF
9548 if ac_fn_c_try_compile "$LINENO"
9549 then :
9550 xorg_cv_cc_flag_unused_command_line_argument=yes
9551 else $as_nop
9552 xorg_cv_cc_flag_unused_command_line_argument=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9555 fi
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9557 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9559 CFLAGS="$xorg_testset_save_CFLAGS"
9560 fi
9561
9562 found="no"
9563
9564 if test $found = "no" ; then
9565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567 fi
9568
9569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571 fi
9572
9573 CFLAGS="$CFLAGS -Wmissing-braces"
9574
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9576 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9577 cacheid=xorg_cv_cc_flag__Wmissing_braces
9578 if eval test \${$cacheid+y}
9579 then :
9580 printf %s "(cached) " >&6
9581 else $as_nop
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int i;
9585 int
9586 main (void)
9587 {
9588
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"
9594 then :
9595 eval $cacheid=yes
9596 else $as_nop
9597 eval $cacheid=no
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9600 conftest$ac_exeext conftest.$ac_ext
9601 fi
9602
9603
9604 CFLAGS="$xorg_testset_save_CFLAGS"
9605
9606 eval supported=\$$cacheid
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9608 printf "%s\n" "$supported" >&6; }
9609 if test "$supported" = "yes" ; then
9610 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9611 found="yes"
9612 fi
9613 fi
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629 xorg_testset_save_CFLAGS="$CFLAGS"
9630
9631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9635 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9636 then :
9637 printf %s "(cached) " >&6
9638 else $as_nop
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 int i;
9642 _ACEOF
9643 if ac_fn_c_try_compile "$LINENO"
9644 then :
9645 xorg_cv_cc_flag_unknown_warning_option=yes
9646 else $as_nop
9647 xorg_cv_cc_flag_unknown_warning_option=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9650 fi
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9652 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9654 CFLAGS="$xorg_testset_save_CFLAGS"
9655 fi
9656
9657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660 fi
9661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9663 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9664 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9665 then :
9666 printf %s "(cached) " >&6
9667 else $as_nop
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9670 int i;
9671 _ACEOF
9672 if ac_fn_c_try_compile "$LINENO"
9673 then :
9674 xorg_cv_cc_flag_unused_command_line_argument=yes
9675 else $as_nop
9676 xorg_cv_cc_flag_unused_command_line_argument=no
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9679 fi
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9683 CFLAGS="$xorg_testset_save_CFLAGS"
9684 fi
9685
9686 found="no"
9687
9688 if test $found = "no" ; then
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691 fi
9692
9693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695 fi
9696
9697 CFLAGS="$CFLAGS -Wsequence-point"
9698
9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9700 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9701 cacheid=xorg_cv_cc_flag__Wsequence_point
9702 if eval test \${$cacheid+y}
9703 then :
9704 printf %s "(cached) " >&6
9705 else $as_nop
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 int i;
9709 int
9710 main (void)
9711 {
9712
9713 ;
9714 return 0;
9715 }
9716 _ACEOF
9717 if ac_fn_c_try_link "$LINENO"
9718 then :
9719 eval $cacheid=yes
9720 else $as_nop
9721 eval $cacheid=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9724 conftest$ac_exeext conftest.$ac_ext
9725 fi
9726
9727
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9729
9730 eval supported=\$$cacheid
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9732 printf "%s\n" "$supported" >&6; }
9733 if test "$supported" = "yes" ; then
9734 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9735 found="yes"
9736 fi
9737 fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753 xorg_testset_save_CFLAGS="$CFLAGS"
9754
9755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9760 then :
9761 printf %s "(cached) " >&6
9762 else $as_nop
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 int i;
9766 _ACEOF
9767 if ac_fn_c_try_compile "$LINENO"
9768 then :
9769 xorg_cv_cc_flag_unknown_warning_option=yes
9770 else $as_nop
9771 xorg_cv_cc_flag_unknown_warning_option=no
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9774 fi
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9776 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9778 CFLAGS="$xorg_testset_save_CFLAGS"
9779 fi
9780
9781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 fi
9785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9789 then :
9790 printf %s "(cached) " >&6
9791 else $as_nop
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 int i;
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"
9797 then :
9798 xorg_cv_cc_flag_unused_command_line_argument=yes
9799 else $as_nop
9800 xorg_cv_cc_flag_unused_command_line_argument=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9803 fi
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9805 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808 fi
9809
9810 found="no"
9811
9812 if test $found = "no" ; then
9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815 fi
9816
9817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819 fi
9820
9821 CFLAGS="$CFLAGS -Wreturn-type"
9822
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9824 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9825 cacheid=xorg_cv_cc_flag__Wreturn_type
9826 if eval test \${$cacheid+y}
9827 then :
9828 printf %s "(cached) " >&6
9829 else $as_nop
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 int i;
9833 int
9834 main (void)
9835 {
9836
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 if ac_fn_c_try_link "$LINENO"
9842 then :
9843 eval $cacheid=yes
9844 else $as_nop
9845 eval $cacheid=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9848 conftest$ac_exeext conftest.$ac_ext
9849 fi
9850
9851
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854 eval supported=\$$cacheid
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856 printf "%s\n" "$supported" >&6; }
9857 if test "$supported" = "yes" ; then
9858 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9859 found="yes"
9860 fi
9861 fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9884 then :
9885 printf %s "(cached) " >&6
9886 else $as_nop
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 int i;
9890 _ACEOF
9891 if ac_fn_c_try_compile "$LINENO"
9892 then :
9893 xorg_cv_cc_flag_unknown_warning_option=yes
9894 else $as_nop
9895 xorg_cv_cc_flag_unknown_warning_option=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9898 fi
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9900 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9902 CFLAGS="$xorg_testset_save_CFLAGS"
9903 fi
9904
9905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908 fi
9909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9913 then :
9914 printf %s "(cached) " >&6
9915 else $as_nop
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918 int i;
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"
9921 then :
9922 xorg_cv_cc_flag_unused_command_line_argument=yes
9923 else $as_nop
9924 xorg_cv_cc_flag_unused_command_line_argument=no
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9927 fi
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9929 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9931 CFLAGS="$xorg_testset_save_CFLAGS"
9932 fi
9933
9934 found="no"
9935
9936 if test $found = "no" ; then
9937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939 fi
9940
9941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9943 fi
9944
9945 CFLAGS="$CFLAGS -Wtrigraphs"
9946
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9948 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9949 cacheid=xorg_cv_cc_flag__Wtrigraphs
9950 if eval test \${$cacheid+y}
9951 then :
9952 printf %s "(cached) " >&6
9953 else $as_nop
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 int i;
9957 int
9958 main (void)
9959 {
9960
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"
9966 then :
9967 eval $cacheid=yes
9968 else $as_nop
9969 eval $cacheid=no
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9972 conftest$ac_exeext conftest.$ac_ext
9973 fi
9974
9975
9976 CFLAGS="$xorg_testset_save_CFLAGS"
9977
9978 eval supported=\$$cacheid
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9980 printf "%s\n" "$supported" >&6; }
9981 if test "$supported" = "yes" ; then
9982 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9983 found="yes"
9984 fi
9985 fi
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001 xorg_testset_save_CFLAGS="$CFLAGS"
10002
10003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10007 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10008 then :
10009 printf %s "(cached) " >&6
10010 else $as_nop
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 int i;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"
10016 then :
10017 xorg_cv_cc_flag_unknown_warning_option=yes
10018 else $as_nop
10019 xorg_cv_cc_flag_unknown_warning_option=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10022 fi
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10024 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10026 CFLAGS="$xorg_testset_save_CFLAGS"
10027 fi
10028
10029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032 fi
10033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10035 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10036 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10037 then :
10038 printf %s "(cached) " >&6
10039 else $as_nop
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 int i;
10043 _ACEOF
10044 if ac_fn_c_try_compile "$LINENO"
10045 then :
10046 xorg_cv_cc_flag_unused_command_line_argument=yes
10047 else $as_nop
10048 xorg_cv_cc_flag_unused_command_line_argument=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10051 fi
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10053 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10055 CFLAGS="$xorg_testset_save_CFLAGS"
10056 fi
10057
10058 found="no"
10059
10060 if test $found = "no" ; then
10061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063 fi
10064
10065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067 fi
10068
10069 CFLAGS="$CFLAGS -Warray-bounds"
10070
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10072 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10073 cacheid=xorg_cv_cc_flag__Warray_bounds
10074 if eval test \${$cacheid+y}
10075 then :
10076 printf %s "(cached) " >&6
10077 else $as_nop
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 int i;
10081 int
10082 main (void)
10083 {
10084
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"
10090 then :
10091 eval $cacheid=yes
10092 else $as_nop
10093 eval $cacheid=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10096 conftest$ac_exeext conftest.$ac_ext
10097 fi
10098
10099
10100 CFLAGS="$xorg_testset_save_CFLAGS"
10101
10102 eval supported=\$$cacheid
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10104 printf "%s\n" "$supported" >&6; }
10105 if test "$supported" = "yes" ; then
10106 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10107 found="yes"
10108 fi
10109 fi
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 xorg_testset_save_CFLAGS="$CFLAGS"
10126
10127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10130 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10131 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10132 then :
10133 printf %s "(cached) " >&6
10134 else $as_nop
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137 int i;
10138 _ACEOF
10139 if ac_fn_c_try_compile "$LINENO"
10140 then :
10141 xorg_cv_cc_flag_unknown_warning_option=yes
10142 else $as_nop
10143 xorg_cv_cc_flag_unknown_warning_option=no
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10146 fi
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10148 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10150 CFLAGS="$xorg_testset_save_CFLAGS"
10151 fi
10152
10153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10156 fi
10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10159 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10160 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10161 then :
10162 printf %s "(cached) " >&6
10163 else $as_nop
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10166 int i;
10167 _ACEOF
10168 if ac_fn_c_try_compile "$LINENO"
10169 then :
10170 xorg_cv_cc_flag_unused_command_line_argument=yes
10171 else $as_nop
10172 xorg_cv_cc_flag_unused_command_line_argument=no
10173 fi
10174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10175 fi
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10177 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10179 CFLAGS="$xorg_testset_save_CFLAGS"
10180 fi
10181
10182 found="no"
10183
10184 if test $found = "no" ; then
10185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187 fi
10188
10189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191 fi
10192
10193 CFLAGS="$CFLAGS -Wwrite-strings"
10194
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10196 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10197 cacheid=xorg_cv_cc_flag__Wwrite_strings
10198 if eval test \${$cacheid+y}
10199 then :
10200 printf %s "(cached) " >&6
10201 else $as_nop
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 int i;
10205 int
10206 main (void)
10207 {
10208
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"
10214 then :
10215 eval $cacheid=yes
10216 else $as_nop
10217 eval $cacheid=no
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10220 conftest$ac_exeext conftest.$ac_ext
10221 fi
10222
10223
10224 CFLAGS="$xorg_testset_save_CFLAGS"
10225
10226 eval supported=\$$cacheid
10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10228 printf "%s\n" "$supported" >&6; }
10229 if test "$supported" = "yes" ; then
10230 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10231 found="yes"
10232 fi
10233 fi
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 xorg_testset_save_CFLAGS="$CFLAGS"
10250
10251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10256 then :
10257 printf %s "(cached) " >&6
10258 else $as_nop
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int i;
10262 _ACEOF
10263 if ac_fn_c_try_compile "$LINENO"
10264 then :
10265 xorg_cv_cc_flag_unknown_warning_option=yes
10266 else $as_nop
10267 xorg_cv_cc_flag_unknown_warning_option=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10270 fi
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10272 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10274 CFLAGS="$xorg_testset_save_CFLAGS"
10275 fi
10276
10277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280 fi
10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10285 then :
10286 printf %s "(cached) " >&6
10287 else $as_nop
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290 int i;
10291 _ACEOF
10292 if ac_fn_c_try_compile "$LINENO"
10293 then :
10294 xorg_cv_cc_flag_unused_command_line_argument=yes
10295 else $as_nop
10296 xorg_cv_cc_flag_unused_command_line_argument=no
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10299 fi
10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10301 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10303 CFLAGS="$xorg_testset_save_CFLAGS"
10304 fi
10305
10306 found="no"
10307
10308 if test $found = "no" ; then
10309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311 fi
10312
10313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315 fi
10316
10317 CFLAGS="$CFLAGS -Waddress"
10318
10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10320 printf %s "checking if $CC supports -Waddress... " >&6; }
10321 cacheid=xorg_cv_cc_flag__Waddress
10322 if eval test \${$cacheid+y}
10323 then :
10324 printf %s "(cached) " >&6
10325 else $as_nop
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10328 int i;
10329 int
10330 main (void)
10331 {
10332
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"
10338 then :
10339 eval $cacheid=yes
10340 else $as_nop
10341 eval $cacheid=no
10342 fi
10343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10344 conftest$ac_exeext conftest.$ac_ext
10345 fi
10346
10347
10348 CFLAGS="$xorg_testset_save_CFLAGS"
10349
10350 eval supported=\$$cacheid
10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10352 printf "%s\n" "$supported" >&6; }
10353 if test "$supported" = "yes" ; then
10354 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10355 found="yes"
10356 fi
10357 fi
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373 xorg_testset_save_CFLAGS="$CFLAGS"
10374
10375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10378 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10379 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10380 then :
10381 printf %s "(cached) " >&6
10382 else $as_nop
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10385 int i;
10386 _ACEOF
10387 if ac_fn_c_try_compile "$LINENO"
10388 then :
10389 xorg_cv_cc_flag_unknown_warning_option=yes
10390 else $as_nop
10391 xorg_cv_cc_flag_unknown_warning_option=no
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10394 fi
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10396 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10398 CFLAGS="$xorg_testset_save_CFLAGS"
10399 fi
10400
10401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10404 fi
10405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10407 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10408 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10409 then :
10410 printf %s "(cached) " >&6
10411 else $as_nop
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 int i;
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"
10417 then :
10418 xorg_cv_cc_flag_unused_command_line_argument=yes
10419 else $as_nop
10420 xorg_cv_cc_flag_unused_command_line_argument=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10423 fi
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427 CFLAGS="$xorg_testset_save_CFLAGS"
10428 fi
10429
10430 found="no"
10431
10432 if test $found = "no" ; then
10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435 fi
10436
10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 fi
10440
10441 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10442
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10444 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10445 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10446 if eval test \${$cacheid+y}
10447 then :
10448 printf %s "(cached) " >&6
10449 else $as_nop
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 int i;
10453 int
10454 main (void)
10455 {
10456
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"
10462 then :
10463 eval $cacheid=yes
10464 else $as_nop
10465 eval $cacheid=no
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10468 conftest$ac_exeext conftest.$ac_ext
10469 fi
10470
10471
10472 CFLAGS="$xorg_testset_save_CFLAGS"
10473
10474 eval supported=\$$cacheid
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10476 printf "%s\n" "$supported" >&6; }
10477 if test "$supported" = "yes" ; then
10478 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10479 found="yes"
10480 fi
10481 fi
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497 xorg_testset_save_CFLAGS="$CFLAGS"
10498
10499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10503 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10504 then :
10505 printf %s "(cached) " >&6
10506 else $as_nop
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 int i;
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"
10512 then :
10513 xorg_cv_cc_flag_unknown_warning_option=yes
10514 else $as_nop
10515 xorg_cv_cc_flag_unknown_warning_option=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10518 fi
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10522 CFLAGS="$xorg_testset_save_CFLAGS"
10523 fi
10524
10525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528 fi
10529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10533 then :
10534 printf %s "(cached) " >&6
10535 else $as_nop
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 int i;
10539 _ACEOF
10540 if ac_fn_c_try_compile "$LINENO"
10541 then :
10542 xorg_cv_cc_flag_unused_command_line_argument=yes
10543 else $as_nop
10544 xorg_cv_cc_flag_unused_command_line_argument=no
10545 fi
10546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10547 fi
10548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10551 CFLAGS="$xorg_testset_save_CFLAGS"
10552 fi
10553
10554 found="no"
10555
10556 if test $found = "no" ; then
10557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10559 fi
10560
10561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10563 fi
10564
10565 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10566
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10568 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10569 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10570 if eval test \${$cacheid+y}
10571 then :
10572 printf %s "(cached) " >&6
10573 else $as_nop
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10576 int i;
10577 int
10578 main (void)
10579 {
10580
10581 ;
10582 return 0;
10583 }
10584 _ACEOF
10585 if ac_fn_c_try_link "$LINENO"
10586 then :
10587 eval $cacheid=yes
10588 else $as_nop
10589 eval $cacheid=no
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10592 conftest$ac_exeext conftest.$ac_ext
10593 fi
10594
10595
10596 CFLAGS="$xorg_testset_save_CFLAGS"
10597
10598 eval supported=\$$cacheid
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10600 printf "%s\n" "$supported" >&6; }
10601 if test "$supported" = "yes" ; then
10602 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10603 found="yes"
10604 fi
10605 fi
10606
10607
10608 fi
10609
10610
10611
10612
10613
10614
10615
10616 CWARNFLAGS="$BASE_CFLAGS"
10617 if test "x$GCC" = xyes ; then
10618 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10619 fi
10620
10621
10622
10623
10624
10625
10626
10627
10628 # Check whether --enable-strict-compilation was given.
10629 if test ${enable_strict_compilation+y}
10630 then :
10631 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10632 else $as_nop
10633 STRICT_COMPILE=no
10634 fi
10635
10636
10637
10638
10639
10640
10641 STRICT_CFLAGS=""
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655 xorg_testset_save_CFLAGS="$CFLAGS"
10656
10657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10661 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10662 then :
10663 printf %s "(cached) " >&6
10664 else $as_nop
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 int i;
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"
10670 then :
10671 xorg_cv_cc_flag_unknown_warning_option=yes
10672 else $as_nop
10673 xorg_cv_cc_flag_unknown_warning_option=no
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10676 fi
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10678 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10680 CFLAGS="$xorg_testset_save_CFLAGS"
10681 fi
10682
10683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686 fi
10687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10689 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10690 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10691 then :
10692 printf %s "(cached) " >&6
10693 else $as_nop
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696 int i;
10697 _ACEOF
10698 if ac_fn_c_try_compile "$LINENO"
10699 then :
10700 xorg_cv_cc_flag_unused_command_line_argument=yes
10701 else $as_nop
10702 xorg_cv_cc_flag_unused_command_line_argument=no
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10705 fi
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10707 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10709 CFLAGS="$xorg_testset_save_CFLAGS"
10710 fi
10711
10712 found="no"
10713
10714 if test $found = "no" ; then
10715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10717 fi
10718
10719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10721 fi
10722
10723 CFLAGS="$CFLAGS -pedantic"
10724
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10726 printf %s "checking if $CC supports -pedantic... " >&6; }
10727 cacheid=xorg_cv_cc_flag__pedantic
10728 if eval test \${$cacheid+y}
10729 then :
10730 printf %s "(cached) " >&6
10731 else $as_nop
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 int i;
10735 int
10736 main (void)
10737 {
10738
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"
10744 then :
10745 eval $cacheid=yes
10746 else $as_nop
10747 eval $cacheid=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10750 conftest$ac_exeext conftest.$ac_ext
10751 fi
10752
10753
10754 CFLAGS="$xorg_testset_save_CFLAGS"
10755
10756 eval supported=\$$cacheid
10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10758 printf "%s\n" "$supported" >&6; }
10759 if test "$supported" = "yes" ; then
10760 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10761 found="yes"
10762 fi
10763 fi
10764
10765
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"
10848
10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10850 printf %s "checking if $CC supports -Werror... " >&6; }
10851 cacheid=xorg_cv_cc_flag__Werror
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"
10885 found="yes"
10886 fi
10887 fi
10888
10889 if test $found = "no" ; then
10890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10892 fi
10893
10894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10896 fi
10897
10898 CFLAGS="$CFLAGS -errwarn"
10899
10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10901 printf %s "checking if $CC supports -errwarn... " >&6; }
10902 cacheid=xorg_cv_cc_flag__errwarn
10903 if eval test \${$cacheid+y}
10904 then :
10905 printf %s "(cached) " >&6
10906 else $as_nop
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909 int i;
10910 int
10911 main (void)
10912 {
10913
10914 ;
10915 return 0;
10916 }
10917 _ACEOF
10918 if ac_fn_c_try_link "$LINENO"
10919 then :
10920 eval $cacheid=yes
10921 else $as_nop
10922 eval $cacheid=no
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10925 conftest$ac_exeext conftest.$ac_ext
10926 fi
10927
10928
10929 CFLAGS="$xorg_testset_save_CFLAGS"
10930
10931 eval supported=\$$cacheid
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10933 printf "%s\n" "$supported" >&6; }
10934 if test "$supported" = "yes" ; then
10935 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10936 found="yes"
10937 fi
10938 fi
10939
10940
10941
10942 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10943 # activate it with -Werror, so we add it here explicitly.
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957 xorg_testset_save_CFLAGS="$CFLAGS"
10958
10959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else $as_nop
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 int i;
10970 _ACEOF
10971 if ac_fn_c_try_compile "$LINENO"
10972 then :
10973 xorg_cv_cc_flag_unknown_warning_option=yes
10974 else $as_nop
10975 xorg_cv_cc_flag_unknown_warning_option=no
10976 fi
10977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10978 fi
10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10982 CFLAGS="$xorg_testset_save_CFLAGS"
10983 fi
10984
10985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10988 fi
10989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10993 then :
10994 printf %s "(cached) " >&6
10995 else $as_nop
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998 int i;
10999 _ACEOF
11000 if ac_fn_c_try_compile "$LINENO"
11001 then :
11002 xorg_cv_cc_flag_unused_command_line_argument=yes
11003 else $as_nop
11004 xorg_cv_cc_flag_unused_command_line_argument=no
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11007 fi
11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11011 CFLAGS="$xorg_testset_save_CFLAGS"
11012 fi
11013
11014 found="no"
11015
11016 if test $found = "no" ; then
11017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11019 fi
11020
11021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11023 fi
11024
11025 CFLAGS="$CFLAGS -Werror=attributes"
11026
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11028 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11029 cacheid=xorg_cv_cc_flag__Werror_attributes
11030 if eval test \${$cacheid+y}
11031 then :
11032 printf %s "(cached) " >&6
11033 else $as_nop
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 int i;
11037 int
11038 main (void)
11039 {
11040
11041 ;
11042 return 0;
11043 }
11044 _ACEOF
11045 if ac_fn_c_try_link "$LINENO"
11046 then :
11047 eval $cacheid=yes
11048 else $as_nop
11049 eval $cacheid=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11052 conftest$ac_exeext conftest.$ac_ext
11053 fi
11054
11055
11056 CFLAGS="$xorg_testset_save_CFLAGS"
11057
11058 eval supported=\$$cacheid
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11060 printf "%s\n" "$supported" >&6; }
11061 if test "$supported" = "yes" ; then
11062 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11063 found="yes"
11064 fi
11065 fi
11066
11067
11068
11069 if test "x$STRICT_COMPILE" = "xyes"; then
11070 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11071 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11072 fi
11073
11074
11075
11076
11077
11078
11079 cat >>confdefs.h <<_ACEOF
11080 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11081 _ACEOF
11082
11083 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11084 if test "x$PVM" = "x"; then
11085 PVM="0"
11086 fi
11087
11088 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11089
11090 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11091 if test "x$PVP" = "x"; then
11092 PVP="0"
11093 fi
11094
11095 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11096
11097
11098
11099 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11100 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11101 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11102 touch \$(top_srcdir)/ChangeLog; \
11103 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11104
11105
11106
11107
11108 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11109 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11110 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11111 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11112 touch \$(top_srcdir)/INSTALL; \
11113 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11114
11115
11116
11117
11118
11119
11120 case $host_os in
11121 solaris*)
11122 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11123 # check for a man page file found in later versions that use
11124 # traditional section numbers instead
11125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11126 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11127 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11128 then :
11129 printf %s "(cached) " >&6
11130 else $as_nop
11131 test "$cross_compiling" = yes &&
11132 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11133 if test -r "/usr/share/man/man7/attributes.7"; then
11134 ac_cv_file__usr_share_man_man7_attributes_7=yes
11135 else
11136 ac_cv_file__usr_share_man_man7_attributes_7=no
11137 fi
11138 fi
11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11140 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11141 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11142 then :
11143 SYSV_MAN_SECTIONS=false
11144 else $as_nop
11145 SYSV_MAN_SECTIONS=true
11146 fi
11147
11148 ;;
11149 *) SYSV_MAN_SECTIONS=false ;;
11150 esac
11151
11152 if test x$APP_MAN_SUFFIX = x ; then
11153 APP_MAN_SUFFIX=1
11154 fi
11155 if test x$APP_MAN_DIR = x ; then
11156 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11157 fi
11158
11159 if test x$LIB_MAN_SUFFIX = x ; then
11160 LIB_MAN_SUFFIX=3
11161 fi
11162 if test x$LIB_MAN_DIR = x ; then
11163 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11164 fi
11165
11166 if test x$FILE_MAN_SUFFIX = x ; then
11167 case $SYSV_MAN_SECTIONS in
11168 true) FILE_MAN_SUFFIX=4 ;;
11169 *) FILE_MAN_SUFFIX=5 ;;
11170 esac
11171 fi
11172 if test x$FILE_MAN_DIR = x ; then
11173 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11174 fi
11175
11176 if test x$MISC_MAN_SUFFIX = x ; then
11177 case $SYSV_MAN_SECTIONS in
11178 true) MISC_MAN_SUFFIX=5 ;;
11179 *) MISC_MAN_SUFFIX=7 ;;
11180 esac
11181 fi
11182 if test x$MISC_MAN_DIR = x ; then
11183 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11184 fi
11185
11186 if test x$DRIVER_MAN_SUFFIX = x ; then
11187 case $SYSV_MAN_SECTIONS in
11188 true) DRIVER_MAN_SUFFIX=7 ;;
11189 *) DRIVER_MAN_SUFFIX=4 ;;
11190 esac
11191 fi
11192 if test x$DRIVER_MAN_DIR = x ; then
11193 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11194 fi
11195
11196 if test x$ADMIN_MAN_SUFFIX = x ; then
11197 case $SYSV_MAN_SECTIONS in
11198 true) ADMIN_MAN_SUFFIX=1m ;;
11199 *) ADMIN_MAN_SUFFIX=8 ;;
11200 esac
11201 fi
11202 if test x$ADMIN_MAN_DIR = x ; then
11203 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11204 fi
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220 XORG_MAN_PAGE="X Version 11"
11221
11222 MAN_SUBSTS="\
11223 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11224 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11225 -e 's|__xservername__|Xorg|g' \
11226 -e 's|__xconfigfile__|xorg.conf|g' \
11227 -e 's|__projectroot__|\$(prefix)|g' \
11228 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11229 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11230 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11231 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11232 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11233 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11234 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11235
11236
11237
11238 # Check whether --enable-silent-rules was given.
11239 if test ${enable_silent_rules+y}
11240 then :
11241 enableval=$enable_silent_rules;
11242 fi
11243
11244 case $enable_silent_rules in # (((
11245 yes) AM_DEFAULT_VERBOSITY=0;;
11246 no) AM_DEFAULT_VERBOSITY=1;;
11247 *) AM_DEFAULT_VERBOSITY=0;;
11248 esac
11249 am_make=${MAKE-make}
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11251 printf %s "checking whether $am_make supports nested variables... " >&6; }
11252 if test ${am_cv_make_support_nested_variables+y}
11253 then :
11254 printf %s "(cached) " >&6
11255 else $as_nop
11256 if printf "%s\n" 'TRUE=$(BAR$(V))
11257 BAR0=false
11258 BAR1=true
11259 V=1
11260 am__doit:
11261 @$(TRUE)
11262 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11263 am_cv_make_support_nested_variables=yes
11264 else
11265 am_cv_make_support_nested_variables=no
11266 fi
11267 fi
11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11269 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11270 if test $am_cv_make_support_nested_variables = yes; then
11271 AM_V='$(V)'
11272 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11273 else
11274 AM_V=$AM_DEFAULT_VERBOSITY
11275 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11276 fi
11277 AM_BACKSLASH='\'
11278
11279
11280
11281 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11282 if test "x$ac_cv_func_strlcpy" = xyes
11283 then :
11284 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11285
11286 fi
11287 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
11288 if test "x$ac_cv_func_getpid" = xyes
11289 then :
11290 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
11291
11292 fi
11293 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
11294 if test "x$ac_cv_func_nl_langinfo" = xyes
11295 then :
11296 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
11297
11298 fi
11299
11300
11301
11302 if test "X$prefix" = "XNONE"; then
11303 acl_final_prefix="$ac_default_prefix"
11304 else
11305 acl_final_prefix="$prefix"
11306 fi
11307 if test "X$exec_prefix" = "XNONE"; then
11308 acl_final_exec_prefix='${prefix}'
11309 else
11310 acl_final_exec_prefix="$exec_prefix"
11311 fi
11312 acl_save_prefix="$prefix"
11313 prefix="$acl_final_prefix"
11314 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11315 prefix="$acl_save_prefix"
11316
11317
11318
11319 # Check whether --with-gnu-ld was given.
11320 if test ${with_gnu_ld+y}
11321 then :
11322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11323 else $as_nop
11324 with_gnu_ld=no
11325 fi
11326
11327 # Prepare PATH_SEPARATOR.
11328 # The user is always right.
11329 if test "${PATH_SEPARATOR+set}" != set; then
11330 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11331 # contains only /bin. Note that ksh looks also at the FPATH variable,
11332 # so we have to set that as well for the test.
11333 PATH_SEPARATOR=:
11334 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11335 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11336 || PATH_SEPARATOR=';'
11337 }
11338 fi
11339
11340 ac_prog=ld
11341 if test "$GCC" = yes; then
11342 # Check if gcc -print-prog-name=ld gives a path.
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11344 printf %s "checking for ld used by $CC... " >&6; }
11345 case $host in
11346 *-*-mingw*)
11347 # gcc leaves a trailing carriage return which upsets mingw
11348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11349 *)
11350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11351 esac
11352 case $ac_prog in
11353 # Accept absolute paths.
11354 [\\/]* | ?:[\\/]*)
11355 re_direlt='/[^/][^/]*/\.\./'
11356 # Canonicalize the pathname of ld
11357 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
11358 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
11359 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11360 done
11361 test -z "$LD" && LD="$ac_prog"
11362 ;;
11363 "")
11364 # If it fails, then pretend we aren't using GCC.
11365 ac_prog=ld
11366 ;;
11367 *)
11368 # If it is relative, then search for the first ld in PATH.
11369 with_gnu_ld=unknown
11370 ;;
11371 esac
11372 elif test "$with_gnu_ld" = yes; then
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11374 printf %s "checking for GNU ld... " >&6; }
11375 else
11376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11377 printf %s "checking for non-GNU ld... " >&6; }
11378 fi
11379 if test ${acl_cv_path_LD+y}
11380 then :
11381 printf %s "(cached) " >&6
11382 else $as_nop
11383 if test -z "$LD"; then
11384 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11385 for ac_dir in $PATH; do
11386 IFS="$acl_save_ifs"
11387 test -z "$ac_dir" && ac_dir=.
11388 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11389 acl_cv_path_LD="$ac_dir/$ac_prog"
11390 # Check to see if the program is GNU ld. I'd rather use --version,
11391 # but apparently some variants of GNU ld only accept -v.
11392 # Break only if it was the GNU/non-GNU ld that we prefer.
11393 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
11394 *GNU* | *'with BFD'*)
11395 test "$with_gnu_ld" != no && break
11396 ;;
11397 *)
11398 test "$with_gnu_ld" != yes && break
11399 ;;
11400 esac
11401 fi
11402 done
11403 IFS="$acl_save_ifs"
11404 else
11405 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11406 fi
11407 fi
11408
11409 LD="$acl_cv_path_LD"
11410 if test -n "$LD"; then
11411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11412 printf "%s\n" "$LD" >&6; }
11413 else
11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 printf "%s\n" "no" >&6; }
11416 fi
11417 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11419 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11420 if test ${acl_cv_prog_gnu_ld+y}
11421 then :
11422 printf %s "(cached) " >&6
11423 else $as_nop
11424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11425 case `$LD -v 2>&1 </dev/null` in
11426 *GNU* | *'with BFD'*)
11427 acl_cv_prog_gnu_ld=yes
11428 ;;
11429 *)
11430 acl_cv_prog_gnu_ld=no
11431 ;;
11432 esac
11433 fi
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11435 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
11436 with_gnu_ld=$acl_cv_prog_gnu_ld
11437
11438
11439
11440
11441
11442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11443 printf %s "checking for shared library run path origin... " >&6; }
11444 if test ${acl_cv_rpath+y}
11445 then :
11446 printf %s "(cached) " >&6
11447 else $as_nop
11448
11449 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11450 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11451 . ./conftest.sh
11452 rm -f ./conftest.sh
11453 acl_cv_rpath=done
11454
11455 fi
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11457 printf "%s\n" "$acl_cv_rpath" >&6; }
11458 wl="$acl_cv_wl"
11459 acl_libext="$acl_cv_libext"
11460 acl_shlibext="$acl_cv_shlibext"
11461 acl_libname_spec="$acl_cv_libname_spec"
11462 acl_library_names_spec="$acl_cv_library_names_spec"
11463 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11464 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11465 acl_hardcode_direct="$acl_cv_hardcode_direct"
11466 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11467 # Check whether --enable-rpath was given.
11468 if test ${enable_rpath+y}
11469 then :
11470 enableval=$enable_rpath; :
11471 else $as_nop
11472 enable_rpath=yes
11473 fi
11474
11475
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11482 printf %s "checking how to run the C preprocessor... " >&6; }
11483 # On Suns, sometimes $CPP names a directory.
11484 if test -n "$CPP" && test -d "$CPP"; then
11485 CPP=
11486 fi
11487 if test -z "$CPP"; then
11488 if test ${ac_cv_prog_CPP+y}
11489 then :
11490 printf %s "(cached) " >&6
11491 else $as_nop
11492 # Double quotes because $CC needs to be expanded
11493 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11494 do
11495 ac_preproc_ok=false
11496 for ac_c_preproc_warn_flag in '' yes
11497 do
11498 # Use a header file that comes with gcc, so configuring glibc
11499 # with a fresh cross-compiler works.
11500 # On the NeXT, cc -E runs the code through the compiler's parser,
11501 # not just through cpp. "Syntax error" is here to catch this case.
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #include <limits.h>
11505 Syntax error
11506 _ACEOF
11507 if ac_fn_c_try_cpp "$LINENO"
11508 then :
11509
11510 else $as_nop
11511 # Broken: fails on valid input.
11512 continue
11513 fi
11514 rm -f conftest.err conftest.i conftest.$ac_ext
11515
11516 # OK, works on sane cases. Now check whether nonexistent headers
11517 # can be detected and how.
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 #include <ac_nonexistent.h>
11521 _ACEOF
11522 if ac_fn_c_try_cpp "$LINENO"
11523 then :
11524 # Broken: success on invalid input.
11525 continue
11526 else $as_nop
11527 # Passes both tests.
11528 ac_preproc_ok=:
11529 break
11530 fi
11531 rm -f conftest.err conftest.i conftest.$ac_ext
11532
11533 done
11534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11535 rm -f conftest.i conftest.err conftest.$ac_ext
11536 if $ac_preproc_ok
11537 then :
11538 break
11539 fi
11540
11541 done
11542 ac_cv_prog_CPP=$CPP
11543
11544 fi
11545 CPP=$ac_cv_prog_CPP
11546 else
11547 ac_cv_prog_CPP=$CPP
11548 fi
11549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11550 printf "%s\n" "$CPP" >&6; }
11551 ac_preproc_ok=false
11552 for ac_c_preproc_warn_flag in '' yes
11553 do
11554 # Use a header file that comes with gcc, so configuring glibc
11555 # with a fresh cross-compiler works.
11556 # On the NeXT, cc -E runs the code through the compiler's parser,
11557 # not just through cpp. "Syntax error" is here to catch this case.
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 #include <limits.h>
11561 Syntax error
11562 _ACEOF
11563 if ac_fn_c_try_cpp "$LINENO"
11564 then :
11565
11566 else $as_nop
11567 # Broken: fails on valid input.
11568 continue
11569 fi
11570 rm -f conftest.err conftest.i conftest.$ac_ext
11571
11572 # OK, works on sane cases. Now check whether nonexistent headers
11573 # can be detected and how.
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576 #include <ac_nonexistent.h>
11577 _ACEOF
11578 if ac_fn_c_try_cpp "$LINENO"
11579 then :
11580 # Broken: success on invalid input.
11581 continue
11582 else $as_nop
11583 # Passes both tests.
11584 ac_preproc_ok=:
11585 break
11586 fi
11587 rm -f conftest.err conftest.i conftest.$ac_ext
11588
11589 done
11590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11591 rm -f conftest.i conftest.err conftest.$ac_ext
11592 if $ac_preproc_ok
11593 then :
11594
11595 else $as_nop
11596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11598 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11599 See \`config.log' for more details" "$LINENO" 5; }
11600 fi
11601
11602 ac_ext=c
11603 ac_cpp='$CPP $CPPFLAGS'
11604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11607
11608
11609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11610 printf %s "checking for grep that handles long lines and -e... " >&6; }
11611 if test ${ac_cv_path_GREP+y}
11612 then :
11613 printf %s "(cached) " >&6
11614 else $as_nop
11615 if test -z "$GREP"; then
11616 ac_path_GREP_found=false
11617 # Loop through the user's path and test for each of PROGNAME-LIST
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11620 do
11621 IFS=$as_save_IFS
11622 case $as_dir in #(((
11623 '') as_dir=./ ;;
11624 */) ;;
11625 *) as_dir=$as_dir/ ;;
11626 esac
11627 for ac_prog in grep ggrep
11628 do
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11631 as_fn_executable_p "$ac_path_GREP" || continue
11632 # Check for GNU ac_path_GREP and select it if it is found.
11633 # Check for GNU $ac_path_GREP
11634 case `"$ac_path_GREP" --version 2>&1` in
11635 *GNU*)
11636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11637 *)
11638 ac_count=0
11639 printf %s 0123456789 >"conftest.in"
11640 while :
11641 do
11642 cat "conftest.in" "conftest.in" >"conftest.tmp"
11643 mv "conftest.tmp" "conftest.in"
11644 cp "conftest.in" "conftest.nl"
11645 printf "%s\n" 'GREP' >> "conftest.nl"
11646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11648 as_fn_arith $ac_count + 1 && ac_count=$as_val
11649 if test $ac_count -gt ${ac_path_GREP_max-0}; then
11650 # Best one so far, save it but keep looking for a better one
11651 ac_cv_path_GREP="$ac_path_GREP"
11652 ac_path_GREP_max=$ac_count
11653 fi
11654 # 10*(2^10) chars as input seems more than enough
11655 test $ac_count -gt 10 && break
11656 done
11657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11658 esac
11659
11660 $ac_path_GREP_found && break 3
11661 done
11662 done
11663 done
11664 IFS=$as_save_IFS
11665 if test -z "$ac_cv_path_GREP"; then
11666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11667 fi
11668 else
11669 ac_cv_path_GREP=$GREP
11670 fi
11671
11672 fi
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11674 printf "%s\n" "$ac_cv_path_GREP" >&6; }
11675 GREP="$ac_cv_path_GREP"
11676
11677
11678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11679 printf %s "checking for egrep... " >&6; }
11680 if test ${ac_cv_path_EGREP+y}
11681 then :
11682 printf %s "(cached) " >&6
11683 else $as_nop
11684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11685 then ac_cv_path_EGREP="$GREP -E"
11686 else
11687 if test -z "$EGREP"; then
11688 ac_path_EGREP_found=false
11689 # Loop through the user's path and test for each of PROGNAME-LIST
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11692 do
11693 IFS=$as_save_IFS
11694 case $as_dir in #(((
11695 '') as_dir=./ ;;
11696 */) ;;
11697 *) as_dir=$as_dir/ ;;
11698 esac
11699 for ac_prog in egrep
11700 do
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11703 as_fn_executable_p "$ac_path_EGREP" || continue
11704 # Check for GNU ac_path_EGREP and select it if it is found.
11705 # Check for GNU $ac_path_EGREP
11706 case `"$ac_path_EGREP" --version 2>&1` in
11707 *GNU*)
11708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11709 *)
11710 ac_count=0
11711 printf %s 0123456789 >"conftest.in"
11712 while :
11713 do
11714 cat "conftest.in" "conftest.in" >"conftest.tmp"
11715 mv "conftest.tmp" "conftest.in"
11716 cp "conftest.in" "conftest.nl"
11717 printf "%s\n" 'EGREP' >> "conftest.nl"
11718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11720 as_fn_arith $ac_count + 1 && ac_count=$as_val
11721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11722 # Best one so far, save it but keep looking for a better one
11723 ac_cv_path_EGREP="$ac_path_EGREP"
11724 ac_path_EGREP_max=$ac_count
11725 fi
11726 # 10*(2^10) chars as input seems more than enough
11727 test $ac_count -gt 10 && break
11728 done
11729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11730 esac
11731
11732 $ac_path_EGREP_found && break 3
11733 done
11734 done
11735 done
11736 IFS=$as_save_IFS
11737 if test -z "$ac_cv_path_EGREP"; then
11738 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11739 fi
11740 else
11741 ac_cv_path_EGREP=$EGREP
11742 fi
11743
11744 fi
11745 fi
11746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11747 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11748 EGREP="$ac_cv_path_EGREP"
11749
11750
11751
11752
11753 acl_libdirstem=lib
11754 acl_libdirstem2=
11755 case "$host_os" in
11756 solaris*)
11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11758 printf %s "checking for 64-bit host... " >&6; }
11759 if test ${gl_cv_solaris_64bit+y}
11760 then :
11761 printf %s "(cached) " >&6
11762 else $as_nop
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765
11766 #ifdef _LP64
11767 sixtyfour bits
11768 #endif
11769
11770 _ACEOF
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 $EGREP "sixtyfour bits" >/dev/null 2>&1
11773 then :
11774 gl_cv_solaris_64bit=yes
11775 else $as_nop
11776 gl_cv_solaris_64bit=no
11777 fi
11778 rm -rf conftest*
11779
11780
11781 fi
11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
11783 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
11784 if test $gl_cv_solaris_64bit = yes; then
11785 acl_libdirstem=lib/64
11786 case "$host_cpu" in
11787 sparc*) acl_libdirstem2=lib/sparcv9 ;;
11788 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
11789 esac
11790 fi
11791 ;;
11792 *)
11793 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11794 if test -n "$searchpath"; then
11795 acl_save_IFS="${IFS= }"; IFS=":"
11796 for searchdir in $searchpath; do
11797 if test -d "$searchdir"; then
11798 case "$searchdir" in
11799 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11800 */../ | */.. )
11801 # Better ignore directories of this form. They are misleading.
11802 ;;
11803 *) searchdir=`cd "$searchdir" && pwd`
11804 case "$searchdir" in
11805 */lib64 ) acl_libdirstem=lib64 ;;
11806 esac ;;
11807 esac
11808 fi
11809 done
11810 IFS="$acl_save_IFS"
11811 fi
11812 ;;
11813 esac
11814 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827 use_additional=yes
11828
11829 acl_save_prefix="$prefix"
11830 prefix="$acl_final_prefix"
11831 acl_save_exec_prefix="$exec_prefix"
11832 exec_prefix="$acl_final_exec_prefix"
11833
11834 eval additional_includedir=\"$includedir\"
11835 eval additional_libdir=\"$libdir\"
11836
11837 exec_prefix="$acl_save_exec_prefix"
11838 prefix="$acl_save_prefix"
11839
11840
11841 # Check whether --with-libiconv-prefix was given.
11842 if test ${with_libiconv_prefix+y}
11843 then :
11844 withval=$with_libiconv_prefix;
11845 if test "X$withval" = "Xno"; then
11846 use_additional=no
11847 else
11848 if test "X$withval" = "X"; then
11849
11850 acl_save_prefix="$prefix"
11851 prefix="$acl_final_prefix"
11852 acl_save_exec_prefix="$exec_prefix"
11853 exec_prefix="$acl_final_exec_prefix"
11854
11855 eval additional_includedir=\"$includedir\"
11856 eval additional_libdir=\"$libdir\"
11857
11858 exec_prefix="$acl_save_exec_prefix"
11859 prefix="$acl_save_prefix"
11860
11861 else
11862 additional_includedir="$withval/include"
11863 additional_libdir="$withval/$acl_libdirstem"
11864 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11865 && ! test -d "$withval/$acl_libdirstem"; then
11866 additional_libdir="$withval/$acl_libdirstem2"
11867 fi
11868 fi
11869 fi
11870
11871 fi
11872
11873 LIBICONV=
11874 LTLIBICONV=
11875 INCICONV=
11876 LIBICONV_PREFIX=
11877 HAVE_LIBICONV=
11878 rpathdirs=
11879 ltrpathdirs=
11880 names_already_handled=
11881 names_next_round='iconv '
11882 while test -n "$names_next_round"; do
11883 names_this_round="$names_next_round"
11884 names_next_round=
11885 for name in $names_this_round; do
11886 already_handled=
11887 for n in $names_already_handled; do
11888 if test "$n" = "$name"; then
11889 already_handled=yes
11890 break
11891 fi
11892 done
11893 if test -z "$already_handled"; then
11894 names_already_handled="$names_already_handled $name"
11895 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11896 eval value=\"\$HAVE_LIB$uppername\"
11897 if test -n "$value"; then
11898 if test "$value" = yes; then
11899 eval value=\"\$LIB$uppername\"
11900 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11901 eval value=\"\$LTLIB$uppername\"
11902 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11903 else
11904 :
11905 fi
11906 else
11907 found_dir=
11908 found_la=
11909 found_so=
11910 found_a=
11911 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11912 if test -n "$acl_shlibext"; then
11913 shrext=".$acl_shlibext" # typically: shrext=.so
11914 else
11915 shrext=
11916 fi
11917 if test $use_additional = yes; then
11918 dir="$additional_libdir"
11919 if test -n "$acl_shlibext"; then
11920 if test -f "$dir/$libname$shrext"; then
11921 found_dir="$dir"
11922 found_so="$dir/$libname$shrext"
11923 else
11924 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11925 ver=`(cd "$dir" && \
11926 for f in "$libname$shrext".*; do echo "$f"; done \
11927 | sed -e "s,^$libname$shrext\\\\.,," \
11928 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11929 | sed 1q ) 2>/dev/null`
11930 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11931 found_dir="$dir"
11932 found_so="$dir/$libname$shrext.$ver"
11933 fi
11934 else
11935 eval library_names=\"$acl_library_names_spec\"
11936 for f in $library_names; do
11937 if test -f "$dir/$f"; then
11938 found_dir="$dir"
11939 found_so="$dir/$f"
11940 break
11941 fi
11942 done
11943 fi
11944 fi
11945 fi
11946 if test "X$found_dir" = "X"; then
11947 if test -f "$dir/$libname.$acl_libext"; then
11948 found_dir="$dir"
11949 found_a="$dir/$libname.$acl_libext"
11950 fi
11951 fi
11952 if test "X$found_dir" != "X"; then
11953 if test -f "$dir/$libname.la"; then
11954 found_la="$dir/$libname.la"
11955 fi
11956 fi
11957 fi
11958 if test "X$found_dir" = "X"; then
11959 for x in $LDFLAGS $LTLIBICONV; do
11960
11961 acl_save_prefix="$prefix"
11962 prefix="$acl_final_prefix"
11963 acl_save_exec_prefix="$exec_prefix"
11964 exec_prefix="$acl_final_exec_prefix"
11965 eval x=\"$x\"
11966 exec_prefix="$acl_save_exec_prefix"
11967 prefix="$acl_save_prefix"
11968
11969 case "$x" in
11970 -L*)
11971 dir=`echo "X$x" | sed -e 's/^X-L//'`
11972 if test -n "$acl_shlibext"; then
11973 if test -f "$dir/$libname$shrext"; then
11974 found_dir="$dir"
11975 found_so="$dir/$libname$shrext"
11976 else
11977 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11978 ver=`(cd "$dir" && \
11979 for f in "$libname$shrext".*; do echo "$f"; done \
11980 | sed -e "s,^$libname$shrext\\\\.,," \
11981 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11982 | sed 1q ) 2>/dev/null`
11983 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11984 found_dir="$dir"
11985 found_so="$dir/$libname$shrext.$ver"
11986 fi
11987 else
11988 eval library_names=\"$acl_library_names_spec\"
11989 for f in $library_names; do
11990 if test -f "$dir/$f"; then
11991 found_dir="$dir"
11992 found_so="$dir/$f"
11993 break
11994 fi
11995 done
11996 fi
11997 fi
11998 fi
11999 if test "X$found_dir" = "X"; then
12000 if test -f "$dir/$libname.$acl_libext"; then
12001 found_dir="$dir"
12002 found_a="$dir/$libname.$acl_libext"
12003 fi
12004 fi
12005 if test "X$found_dir" != "X"; then
12006 if test -f "$dir/$libname.la"; then
12007 found_la="$dir/$libname.la"
12008 fi
12009 fi
12010 ;;
12011 esac
12012 if test "X$found_dir" != "X"; then
12013 break
12014 fi
12015 done
12016 fi
12017 if test "X$found_dir" != "X"; then
12018 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12019 if test "X$found_so" != "X"; then
12020 if test "$enable_rpath" = no \
12021 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12022 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12023 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12024 else
12025 haveit=
12026 for x in $ltrpathdirs; do
12027 if test "X$x" = "X$found_dir"; then
12028 haveit=yes
12029 break
12030 fi
12031 done
12032 if test -z "$haveit"; then
12033 ltrpathdirs="$ltrpathdirs $found_dir"
12034 fi
12035 if test "$acl_hardcode_direct" = yes; then
12036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12037 else
12038 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12039 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12040 haveit=
12041 for x in $rpathdirs; do
12042 if test "X$x" = "X$found_dir"; then
12043 haveit=yes
12044 break
12045 fi
12046 done
12047 if test -z "$haveit"; then
12048 rpathdirs="$rpathdirs $found_dir"
12049 fi
12050 else
12051 haveit=
12052 for x in $LDFLAGS $LIBICONV; do
12053
12054 acl_save_prefix="$prefix"
12055 prefix="$acl_final_prefix"
12056 acl_save_exec_prefix="$exec_prefix"
12057 exec_prefix="$acl_final_exec_prefix"
12058 eval x=\"$x\"
12059 exec_prefix="$acl_save_exec_prefix"
12060 prefix="$acl_save_prefix"
12061
12062 if test "X$x" = "X-L$found_dir"; then
12063 haveit=yes
12064 break
12065 fi
12066 done
12067 if test -z "$haveit"; then
12068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12069 fi
12070 if test "$acl_hardcode_minus_L" != no; then
12071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12072 else
12073 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12074 fi
12075 fi
12076 fi
12077 fi
12078 else
12079 if test "X$found_a" != "X"; then
12080 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12081 else
12082 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12083 fi
12084 fi
12085 additional_includedir=
12086 case "$found_dir" in
12087 */$acl_libdirstem | */$acl_libdirstem/)
12088 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12089 if test "$name" = 'iconv'; then
12090 LIBICONV_PREFIX="$basedir"
12091 fi
12092 additional_includedir="$basedir/include"
12093 ;;
12094 */$acl_libdirstem2 | */$acl_libdirstem2/)
12095 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12096 if test "$name" = 'iconv'; then
12097 LIBICONV_PREFIX="$basedir"
12098 fi
12099 additional_includedir="$basedir/include"
12100 ;;
12101 esac
12102 if test "X$additional_includedir" != "X"; then
12103 if test "X$additional_includedir" != "X/usr/include"; then
12104 haveit=
12105 if test "X$additional_includedir" = "X/usr/local/include"; then
12106 if test -n "$GCC"; then
12107 case $host_os in
12108 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12109 esac
12110 fi
12111 fi
12112 if test -z "$haveit"; then
12113 for x in $CPPFLAGS $INCICONV; do
12114
12115 acl_save_prefix="$prefix"
12116 prefix="$acl_final_prefix"
12117 acl_save_exec_prefix="$exec_prefix"
12118 exec_prefix="$acl_final_exec_prefix"
12119 eval x=\"$x\"
12120 exec_prefix="$acl_save_exec_prefix"
12121 prefix="$acl_save_prefix"
12122
12123 if test "X$x" = "X-I$additional_includedir"; then
12124 haveit=yes
12125 break
12126 fi
12127 done
12128 if test -z "$haveit"; then
12129 if test -d "$additional_includedir"; then
12130 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12131 fi
12132 fi
12133 fi
12134 fi
12135 fi
12136 if test -n "$found_la"; then
12137 save_libdir="$libdir"
12138 case "$found_la" in
12139 */* | *\\*) . "$found_la" ;;
12140 *) . "./$found_la" ;;
12141 esac
12142 libdir="$save_libdir"
12143 for dep in $dependency_libs; do
12144 case "$dep" in
12145 -L*)
12146 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12147 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12148 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12149 haveit=
12150 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12151 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12152 if test -n "$GCC"; then
12153 case $host_os in
12154 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12155 esac
12156 fi
12157 fi
12158 if test -z "$haveit"; then
12159 haveit=
12160 for x in $LDFLAGS $LIBICONV; do
12161
12162 acl_save_prefix="$prefix"
12163 prefix="$acl_final_prefix"
12164 acl_save_exec_prefix="$exec_prefix"
12165 exec_prefix="$acl_final_exec_prefix"
12166 eval x=\"$x\"
12167 exec_prefix="$acl_save_exec_prefix"
12168 prefix="$acl_save_prefix"
12169
12170 if test "X$x" = "X-L$additional_libdir"; then
12171 haveit=yes
12172 break
12173 fi
12174 done
12175 if test -z "$haveit"; then
12176 if test -d "$additional_libdir"; then
12177 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12178 fi
12179 fi
12180 haveit=
12181 for x in $LDFLAGS $LTLIBICONV; do
12182
12183 acl_save_prefix="$prefix"
12184 prefix="$acl_final_prefix"
12185 acl_save_exec_prefix="$exec_prefix"
12186 exec_prefix="$acl_final_exec_prefix"
12187 eval x=\"$x\"
12188 exec_prefix="$acl_save_exec_prefix"
12189 prefix="$acl_save_prefix"
12190
12191 if test "X$x" = "X-L$additional_libdir"; then
12192 haveit=yes
12193 break
12194 fi
12195 done
12196 if test -z "$haveit"; then
12197 if test -d "$additional_libdir"; then
12198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12199 fi
12200 fi
12201 fi
12202 fi
12203 ;;
12204 -R*)
12205 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12206 if test "$enable_rpath" != no; then
12207 haveit=
12208 for x in $rpathdirs; do
12209 if test "X$x" = "X$dir"; then
12210 haveit=yes
12211 break
12212 fi
12213 done
12214 if test -z "$haveit"; then
12215 rpathdirs="$rpathdirs $dir"
12216 fi
12217 haveit=
12218 for x in $ltrpathdirs; do
12219 if test "X$x" = "X$dir"; then
12220 haveit=yes
12221 break
12222 fi
12223 done
12224 if test -z "$haveit"; then
12225 ltrpathdirs="$ltrpathdirs $dir"
12226 fi
12227 fi
12228 ;;
12229 -l*)
12230 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12231 ;;
12232 *.la)
12233 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12234 ;;
12235 *)
12236 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12237 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12238 ;;
12239 esac
12240 done
12241 fi
12242 else
12243 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12245 fi
12246 fi
12247 fi
12248 done
12249 done
12250 if test "X$rpathdirs" != "X"; then
12251 if test -n "$acl_hardcode_libdir_separator"; then
12252 alldirs=
12253 for found_dir in $rpathdirs; do
12254 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12255 done
12256 acl_save_libdir="$libdir"
12257 libdir="$alldirs"
12258 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12259 libdir="$acl_save_libdir"
12260 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12261 else
12262 for found_dir in $rpathdirs; do
12263 acl_save_libdir="$libdir"
12264 libdir="$found_dir"
12265 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12266 libdir="$acl_save_libdir"
12267 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12268 done
12269 fi
12270 fi
12271 if test "X$ltrpathdirs" != "X"; then
12272 for found_dir in $ltrpathdirs; do
12273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12274 done
12275 fi
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 am_save_CPPFLAGS="$CPPFLAGS"
12289
12290 for element in $INCICONV; do
12291 haveit=
12292 for x in $CPPFLAGS; do
12293
12294 acl_save_prefix="$prefix"
12295 prefix="$acl_final_prefix"
12296 acl_save_exec_prefix="$exec_prefix"
12297 exec_prefix="$acl_final_exec_prefix"
12298 eval x=\"$x\"
12299 exec_prefix="$acl_save_exec_prefix"
12300 prefix="$acl_save_prefix"
12301
12302 if test "X$x" = "X$element"; then
12303 haveit=yes
12304 break
12305 fi
12306 done
12307 if test -z "$haveit"; then
12308 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12309 fi
12310 done
12311
12312
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12314 printf %s "checking for iconv... " >&6; }
12315 if test ${am_cv_func_iconv+y}
12316 then :
12317 printf %s "(cached) " >&6
12318 else $as_nop
12319
12320 am_cv_func_iconv="no, consider installing GNU libiconv"
12321 am_cv_lib_iconv=no
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324
12325 #include <stdlib.h>
12326 #include <iconv.h>
12327
12328 int
12329 main (void)
12330 {
12331 iconv_t cd = iconv_open("","");
12332 iconv(cd,NULL,NULL,NULL,NULL);
12333 iconv_close(cd);
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"
12339 then :
12340 am_cv_func_iconv=yes
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12343 conftest$ac_exeext conftest.$ac_ext
12344 if test "$am_cv_func_iconv" != yes; then
12345 am_save_LIBS="$LIBS"
12346 LIBS="$LIBS $LIBICONV"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349
12350 #include <stdlib.h>
12351 #include <iconv.h>
12352
12353 int
12354 main (void)
12355 {
12356 iconv_t cd = iconv_open("","");
12357 iconv(cd,NULL,NULL,NULL,NULL);
12358 iconv_close(cd);
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"
12364 then :
12365 am_cv_lib_iconv=yes
12366 am_cv_func_iconv=yes
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS="$am_save_LIBS"
12371 fi
12372
12373 fi
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12375 printf "%s\n" "$am_cv_func_iconv" >&6; }
12376 if test "$am_cv_func_iconv" = yes; then
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12378 printf %s "checking for working iconv... " >&6; }
12379 if test ${am_cv_func_iconv_works+y}
12380 then :
12381 printf %s "(cached) " >&6
12382 else $as_nop
12383
12384 am_save_LIBS="$LIBS"
12385 if test $am_cv_lib_iconv = yes; then
12386 LIBS="$LIBS $LIBICONV"
12387 fi
12388 am_cv_func_iconv_works=no
12389 for ac_iconv_const in '' 'const'; do
12390 if test "$cross_compiling" = yes
12391 then :
12392 case "$host_os" in
12393 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12394 *) am_cv_func_iconv_works="guessing yes" ;;
12395 esac
12396 else $as_nop
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399
12400 #include <iconv.h>
12401 #include <string.h>
12402
12403 #ifndef ICONV_CONST
12404 # define ICONV_CONST $ac_iconv_const
12405 #endif
12406
12407 int
12408 main (void)
12409 {
12410 int result = 0;
12411 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12412 returns. */
12413 {
12414 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12415 if (cd_utf8_to_88591 != (iconv_t)(-1))
12416 {
12417 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12418 char buf[10];
12419 ICONV_CONST char *inptr = input;
12420 size_t inbytesleft = strlen (input);
12421 char *outptr = buf;
12422 size_t outbytesleft = sizeof (buf);
12423 size_t res = iconv (cd_utf8_to_88591,
12424 &inptr, &inbytesleft,
12425 &outptr, &outbytesleft);
12426 if (res == 0)
12427 result |= 1;
12428 iconv_close (cd_utf8_to_88591);
12429 }
12430 }
12431 /* Test against Solaris 10 bug: Failures are not distinguishable from
12432 successful returns. */
12433 {
12434 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12435 if (cd_ascii_to_88591 != (iconv_t)(-1))
12436 {
12437 static ICONV_CONST char input[] = "\263";
12438 char buf[10];
12439 ICONV_CONST char *inptr = input;
12440 size_t inbytesleft = strlen (input);
12441 char *outptr = buf;
12442 size_t outbytesleft = sizeof (buf);
12443 size_t res = iconv (cd_ascii_to_88591,
12444 &inptr, &inbytesleft,
12445 &outptr, &outbytesleft);
12446 if (res == 0)
12447 result |= 2;
12448 iconv_close (cd_ascii_to_88591);
12449 }
12450 }
12451 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12452 {
12453 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12454 if (cd_88591_to_utf8 != (iconv_t)(-1))
12455 {
12456 static ICONV_CONST char input[] = "\304";
12457 static char buf[2] = { (char)0xDE, (char)0xAD };
12458 ICONV_CONST char *inptr = input;
12459 size_t inbytesleft = 1;
12460 char *outptr = buf;
12461 size_t outbytesleft = 1;
12462 size_t res = iconv (cd_88591_to_utf8,
12463 &inptr, &inbytesleft,
12464 &outptr, &outbytesleft);
12465 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12466 result |= 4;
12467 iconv_close (cd_88591_to_utf8);
12468 }
12469 }
12470 #if 0 /* This bug could be worked around by the caller. */
12471 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12472 {
12473 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12474 if (cd_88591_to_utf8 != (iconv_t)(-1))
12475 {
12476 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12477 char buf[50];
12478 ICONV_CONST char *inptr = input;
12479 size_t inbytesleft = strlen (input);
12480 char *outptr = buf;
12481 size_t outbytesleft = sizeof (buf);
12482 size_t res = iconv (cd_88591_to_utf8,
12483 &inptr, &inbytesleft,
12484 &outptr, &outbytesleft);
12485 if ((int)res > 0)
12486 result |= 8;
12487 iconv_close (cd_88591_to_utf8);
12488 }
12489 }
12490 #endif
12491 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12492 provided. */
12493 if (/* Try standardized names. */
12494 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12495 /* Try IRIX, OSF/1 names. */
12496 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12497 /* Try AIX names. */
12498 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12499 /* Try HP-UX names. */
12500 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12501 result |= 16;
12502 return result;
12503
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_run "$LINENO"
12509 then :
12510 am_cv_func_iconv_works=yes
12511 fi
12512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12513 conftest.$ac_objext conftest.beam conftest.$ac_ext
12514 fi
12515
12516 test "$am_cv_func_iconv_works" = no || break
12517 done
12518 LIBS="$am_save_LIBS"
12519
12520 fi
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12522 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
12523 case "$am_cv_func_iconv_works" in
12524 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12525 *) am_func_iconv=yes ;;
12526 esac
12527 else
12528 am_func_iconv=no am_cv_lib_iconv=no
12529 fi
12530 if test "$am_func_iconv" = yes; then
12531
12532 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
12533
12534 fi
12535 if test "$am_cv_lib_iconv" = yes; then
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12537 printf %s "checking how to link with libiconv... " >&6; }
12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12539 printf "%s\n" "$LIBICONV" >&6; }
12540 else
12541 CPPFLAGS="$am_save_CPPFLAGS"
12542 LIBICONV=
12543 LTLIBICONV=
12544 fi
12545
12546
12547
12548 if test "$am_cv_func_iconv" = yes; then
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12550 printf %s "checking for iconv declaration... " >&6; }
12551 if test ${am_cv_proto_iconv+y}
12552 then :
12553 printf %s "(cached) " >&6
12554 else $as_nop
12555
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558
12559 #include <stdlib.h>
12560 #include <iconv.h>
12561 extern
12562 #ifdef __cplusplus
12563 "C"
12564 #endif
12565 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12566 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12567 #else
12568 size_t iconv();
12569 #endif
12570
12571 int
12572 main (void)
12573 {
12574
12575 ;
12576 return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_compile "$LINENO"
12580 then :
12581 am_cv_proto_iconv_arg1=""
12582 else $as_nop
12583 am_cv_proto_iconv_arg1="const"
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12586 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12587 fi
12588
12589 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
12591 $am_cv_proto_iconv" >&5
12592 printf "%s\n" "
12593 $am_cv_proto_iconv" >&6; }
12594
12595 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
12596
12597
12598 fi
12599
12600
12601
12602 pkg_failed=no
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
12604 printf %s "checking for XCLOCK... " >&6; }
12605
12606 if test -n "$XCLOCK_CFLAGS"; then
12607 pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
12608 elif test -n "$PKG_CONFIG"; then
12609 if test -n "$PKG_CONFIG" && \
12610 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
12611 ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
12612 ac_status=$?
12613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12614 test $ac_status = 0; }; then
12615 pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
12616 test "x$?" != "x0" && pkg_failed=yes
12617 else
12618 pkg_failed=yes
12619 fi
12620 else
12621 pkg_failed=untried
12622 fi
12623 if test -n "$XCLOCK_LIBS"; then
12624 pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
12625 elif test -n "$PKG_CONFIG"; then
12626 if test -n "$PKG_CONFIG" && \
12627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
12628 ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
12629 ac_status=$?
12630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631 test $ac_status = 0; }; then
12632 pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
12633 test "x$?" != "x0" && pkg_failed=yes
12634 else
12635 pkg_failed=yes
12636 fi
12637 else
12638 pkg_failed=untried
12639 fi
12640
12641
12642
12643 if test $pkg_failed = yes; then
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 printf "%s\n" "no" >&6; }
12646
12647 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12648 _pkg_short_errors_supported=yes
12649 else
12650 _pkg_short_errors_supported=no
12651 fi
12652 if test $_pkg_short_errors_supported = yes; then
12653 XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
12654 else
12655 XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
12656 fi
12657 # Put the nasty error message in config.log where it belongs
12658 echo "$XCLOCK_PKG_ERRORS" >&5
12659
12660 as_fn_error $? "Package requirements (xaw7 xmu x11 xproto >= 7.0.17) were not met:
12661
12662 $XCLOCK_PKG_ERRORS
12663
12664 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12665 installed software in a non-standard prefix.
12666
12667 Alternatively, you may set the environment variables XCLOCK_CFLAGS
12668 and XCLOCK_LIBS to avoid the need to call pkg-config.
12669 See the pkg-config man page for more details." "$LINENO" 5
12670 elif test $pkg_failed = untried; then
12671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 printf "%s\n" "no" >&6; }
12673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12674 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12675 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12676 is in your PATH or set the PKG_CONFIG environment variable to the full
12677 path to pkg-config.
12678
12679 Alternatively, you may set the environment variables XCLOCK_CFLAGS
12680 and XCLOCK_LIBS to avoid the need to call pkg-config.
12681 See the pkg-config man page for more details.
12682
12683 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12684 See \`config.log' for more details" "$LINENO" 5; }
12685 else
12686 XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
12687 XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689 printf "%s\n" "yes" >&6; }
12690
12691 fi
12692 XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
12693
12694
12695 # Check whether --with-xft was given.
12696 if test ${with_xft+y}
12697 then :
12698 withval=$with_xft; use_xft="$withval"
12699 else $as_nop
12700 use_xft="try"
12701 fi
12702
12703 if test x$use_xft != xno ; then
12704
12705 pkg_failed=no
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
12707 printf %s "checking for XFT... " >&6; }
12708
12709 if test -n "$XFT_CFLAGS"; then
12710 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
12711 elif test -n "$PKG_CONFIG"; then
12712 if test -n "$PKG_CONFIG" && \
12713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
12714 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
12715 ac_status=$?
12716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717 test $ac_status = 0; }; then
12718 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
12719 test "x$?" != "x0" && pkg_failed=yes
12720 else
12721 pkg_failed=yes
12722 fi
12723 else
12724 pkg_failed=untried
12725 fi
12726 if test -n "$XFT_LIBS"; then
12727 pkg_cv_XFT_LIBS="$XFT_LIBS"
12728 elif test -n "$PKG_CONFIG"; then
12729 if test -n "$PKG_CONFIG" && \
12730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
12731 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
12732 ac_status=$?
12733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734 test $ac_status = 0; }; then
12735 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
12736 test "x$?" != "x0" && pkg_failed=yes
12737 else
12738 pkg_failed=yes
12739 fi
12740 else
12741 pkg_failed=untried
12742 fi
12743
12744
12745
12746 if test $pkg_failed = yes; then
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 printf "%s\n" "no" >&6; }
12749
12750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12751 _pkg_short_errors_supported=yes
12752 else
12753 _pkg_short_errors_supported=no
12754 fi
12755 if test $_pkg_short_errors_supported = yes; then
12756 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender xft" 2>&1`
12757 else
12758 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender xft" 2>&1`
12759 fi
12760 # Put the nasty error message in config.log where it belongs
12761 echo "$XFT_PKG_ERRORS" >&5
12762
12763 as_fn_error $? "Package requirements (xrender xft) were not met:
12764
12765 $XFT_PKG_ERRORS
12766
12767 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12768 installed software in a non-standard prefix.
12769
12770 Alternatively, you may set the environment variables XFT_CFLAGS
12771 and XFT_LIBS to avoid the need to call pkg-config.
12772 See the pkg-config man page for more details." "$LINENO" 5
12773 elif test $pkg_failed = untried; then
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 printf "%s\n" "no" >&6; }
12776 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12777 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12778 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12779 is in your PATH or set the PKG_CONFIG environment variable to the full
12780 path to pkg-config.
12781
12782 Alternatively, you may set the environment variables XFT_CFLAGS
12783 and XFT_LIBS to avoid the need to call pkg-config.
12784 See the pkg-config man page for more details.
12785
12786 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12787 See \`config.log' for more details" "$LINENO" 5; }
12788 else
12789 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
12790 XFT_LIBS=$pkg_cv_XFT_LIBS
12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12792 printf "%s\n" "yes" >&6; }
12793
12794 fi
12795 # Solaris 11 has sqrt in libc but needs libm for sincos
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
12797 printf %s "checking for library containing sqrt... " >&6; }
12798 if test ${ac_cv_search_sqrt+y}
12799 then :
12800 printf %s "(cached) " >&6
12801 else $as_nop
12802 ac_func_search_save_LIBS=$LIBS
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809 char sqrt ();
12810 int
12811 main (void)
12812 {
12813 return sqrt ();
12814 ;
12815 return 0;
12816 }
12817 _ACEOF
12818 for ac_lib in '' m
12819 do
12820 if test -z "$ac_lib"; then
12821 ac_res="none required"
12822 else
12823 ac_res=-l$ac_lib
12824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12825 fi
12826 if ac_fn_c_try_link "$LINENO"
12827 then :
12828 ac_cv_search_sqrt=$ac_res
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12831 conftest$ac_exeext
12832 if test ${ac_cv_search_sqrt+y}
12833 then :
12834 break
12835 fi
12836 done
12837 if test ${ac_cv_search_sqrt+y}
12838 then :
12839
12840 else $as_nop
12841 ac_cv_search_sqrt=no
12842 fi
12843 rm conftest.$ac_ext
12844 LIBS=$ac_func_search_save_LIBS
12845 fi
12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
12847 printf "%s\n" "$ac_cv_search_sqrt" >&6; }
12848 ac_res=$ac_cv_search_sqrt
12849 if test "$ac_res" != no
12850 then :
12851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12852
12853 fi
12854
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sincos" >&5
12856 printf %s "checking for library containing sincos... " >&6; }
12857 if test ${ac_cv_search_sincos+y}
12858 then :
12859 printf %s "(cached) " >&6
12860 else $as_nop
12861 ac_func_search_save_LIBS=$LIBS
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 char sincos ();
12869 int
12870 main (void)
12871 {
12872 return sincos ();
12873 ;
12874 return 0;
12875 }
12876 _ACEOF
12877 for ac_lib in '' m
12878 do
12879 if test -z "$ac_lib"; then
12880 ac_res="none required"
12881 else
12882 ac_res=-l$ac_lib
12883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12884 fi
12885 if ac_fn_c_try_link "$LINENO"
12886 then :
12887 ac_cv_search_sincos=$ac_res
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12890 conftest$ac_exeext
12891 if test ${ac_cv_search_sincos+y}
12892 then :
12893 break
12894 fi
12895 done
12896 if test ${ac_cv_search_sincos+y}
12897 then :
12898
12899 else $as_nop
12900 ac_cv_search_sincos=no
12901 fi
12902 rm conftest.$ac_ext
12903 LIBS=$ac_func_search_save_LIBS
12904 fi
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sincos" >&5
12906 printf "%s\n" "$ac_cv_search_sincos" >&6; }
12907 ac_res=$ac_cv_search_sincos
12908 if test "$ac_res" != no
12909 then :
12910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12911
12912 printf "%s\n" "#define HAVE_SINCOS 1" >>confdefs.h
12913
12914 fi
12915
12916 XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
12917 XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
12918
12919 printf "%s\n" "#define XRENDER 1" >>confdefs.h
12920
12921
12922 printf "%s\n" "#define XFREE86_FT2 1" >>confdefs.h
12923
12924 fi
12925
12926
12927 # Check whether --with-xkb was given.
12928 if test ${with_xkb+y}
12929 then :
12930 withval=$with_xkb; use_xkb="$withval"
12931 else $as_nop
12932 use_xkb="try"
12933 fi
12934
12935 if test x$use_xkb != xno ; then
12936
12937 pkg_failed=no
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
12939 printf %s "checking for XKB... " >&6; }
12940
12941 if test -n "$XKB_CFLAGS"; then
12942 pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
12943 elif test -n "$PKG_CONFIG"; then
12944 if test -n "$PKG_CONFIG" && \
12945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
12946 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
12947 ac_status=$?
12948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; }; then
12950 pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
12951 test "x$?" != "x0" && pkg_failed=yes
12952 else
12953 pkg_failed=yes
12954 fi
12955 else
12956 pkg_failed=untried
12957 fi
12958 if test -n "$XKB_LIBS"; then
12959 pkg_cv_XKB_LIBS="$XKB_LIBS"
12960 elif test -n "$PKG_CONFIG"; then
12961 if test -n "$PKG_CONFIG" && \
12962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
12963 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
12964 ac_status=$?
12965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966 test $ac_status = 0; }; then
12967 pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
12968 test "x$?" != "x0" && pkg_failed=yes
12969 else
12970 pkg_failed=yes
12971 fi
12972 else
12973 pkg_failed=untried
12974 fi
12975
12976
12977
12978 if test $pkg_failed = yes; then
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 printf "%s\n" "no" >&6; }
12981
12982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12983 _pkg_short_errors_supported=yes
12984 else
12985 _pkg_short_errors_supported=no
12986 fi
12987 if test $_pkg_short_errors_supported = yes; then
12988 XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile" 2>&1`
12989 else
12990 XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile" 2>&1`
12991 fi
12992 # Put the nasty error message in config.log where it belongs
12993 echo "$XKB_PKG_ERRORS" >&5
12994
12995 as_fn_error $? "Package requirements (xkbfile) were not met:
12996
12997 $XKB_PKG_ERRORS
12998
12999 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13000 installed software in a non-standard prefix.
13001
13002 Alternatively, you may set the environment variables XKB_CFLAGS
13003 and XKB_LIBS to avoid the need to call pkg-config.
13004 See the pkg-config man page for more details." "$LINENO" 5
13005 elif test $pkg_failed = untried; then
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 printf "%s\n" "no" >&6; }
13008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13010 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13011 is in your PATH or set the PKG_CONFIG environment variable to the full
13012 path to pkg-config.
13013
13014 Alternatively, you may set the environment variables XKB_CFLAGS
13015 and XKB_LIBS to avoid the need to call pkg-config.
13016 See the pkg-config man page for more details.
13017
13018 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13019 See \`config.log' for more details" "$LINENO" 5; }
13020 else
13021 XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
13022 XKB_LIBS=$pkg_cv_XKB_LIBS
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024 printf "%s\n" "yes" >&6; }
13025
13026 fi
13027 XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
13028 XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
13029
13030 printf "%s\n" "#define XKB 1" >>confdefs.h
13031
13032 fi
13033
13034
13035
13036 pkg_failed=no
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
13038 printf %s "checking for APPDEFS... " >&6; }
13039
13040 if test -n "$APPDEFS_CFLAGS"; then
13041 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
13042 elif test -n "$PKG_CONFIG"; then
13043 if test -n "$PKG_CONFIG" && \
13044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
13045 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
13046 ac_status=$?
13047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048 test $ac_status = 0; }; then
13049 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
13050 test "x$?" != "x0" && pkg_failed=yes
13051 else
13052 pkg_failed=yes
13053 fi
13054 else
13055 pkg_failed=untried
13056 fi
13057 if test -n "$APPDEFS_LIBS"; then
13058 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
13059 elif test -n "$PKG_CONFIG"; then
13060 if test -n "$PKG_CONFIG" && \
13061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
13062 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
13063 ac_status=$?
13064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065 test $ac_status = 0; }; then
13066 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
13067 test "x$?" != "x0" && pkg_failed=yes
13068 else
13069 pkg_failed=yes
13070 fi
13071 else
13072 pkg_failed=untried
13073 fi
13074
13075
13076
13077 if test $pkg_failed = yes; then
13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 printf "%s\n" "no" >&6; }
13080
13081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13082 _pkg_short_errors_supported=yes
13083 else
13084 _pkg_short_errors_supported=no
13085 fi
13086 if test $_pkg_short_errors_supported = yes; then
13087 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
13088 else
13089 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
13090 fi
13091 # Put the nasty error message in config.log where it belongs
13092 echo "$APPDEFS_PKG_ERRORS" >&5
13093
13094 as_fn_error $? "Package requirements (xt) were not met:
13095
13096 $APPDEFS_PKG_ERRORS
13097
13098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13099 installed software in a non-standard prefix.
13100
13101 Alternatively, you may set the environment variables APPDEFS_CFLAGS
13102 and APPDEFS_LIBS to avoid the need to call pkg-config.
13103 See the pkg-config man page for more details." "$LINENO" 5
13104 elif test $pkg_failed = untried; then
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 printf "%s\n" "no" >&6; }
13107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13108 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13109 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13110 is in your PATH or set the PKG_CONFIG environment variable to the full
13111 path to pkg-config.
13112
13113 Alternatively, you may set the environment variables APPDEFS_CFLAGS
13114 and APPDEFS_LIBS to avoid the need to call pkg-config.
13115 See the pkg-config man page for more details.
13116
13117 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13118 See \`config.log' for more details" "$LINENO" 5; }
13119 else
13120 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
13121 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13123 printf "%s\n" "yes" >&6; }
13124
13125 fi
13126 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
13127
13128 # Check whether --with-appdefaultdir was given.
13129 if test ${with_appdefaultdir+y}
13130 then :
13131 withval=$with_appdefaultdir; appdefaultdir="$withval"
13132 else $as_nop
13133 appdefaultdir="${xt_appdefaultdir}"
13134 fi
13135
13136
13137
13138 ac_config_files="$ac_config_files Makefile man/Makefile"
13139
13140 cat >confcache <<\_ACEOF
13141 # This file is a shell script that caches the results of configure
13142 # tests run on this system so they can be shared between configure
13143 # scripts and configure runs, see configure's option --config-cache.
13144 # It is not useful on other systems. If it contains results you don't
13145 # want to keep, you may remove or edit it.
13146 #
13147 # config.status only pays attention to the cache file if you give it
13148 # the --recheck option to rerun configure.
13149 #
13150 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13151 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13152 # following values.
13153
13154 _ACEOF
13155
13156 # The following way of writing the cache mishandles newlines in values,
13157 # but we know of no workaround that is simple, portable, and efficient.
13158 # So, we kill variables containing newlines.
13159 # Ultrix sh set writes to stderr and can't be redirected directly,
13160 # and sets the high bit in the cache file unless we assign to the vars.
13161 (
13162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13163 eval ac_val=\$$ac_var
13164 case $ac_val in #(
13165 *${as_nl}*)
13166 case $ac_var in #(
13167 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13168 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13169 esac
13170 case $ac_var in #(
13171 _ | IFS | as_nl) ;; #(
13172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13173 *) { eval $ac_var=; unset $ac_var;} ;;
13174 esac ;;
13175 esac
13176 done
13177
13178 (set) 2>&1 |
13179 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13180 *${as_nl}ac_space=\ *)
13181 # `set' does not quote correctly, so add quotes: double-quote
13182 # substitution turns \\\\ into \\, and sed turns \\ into \.
13183 sed -n \
13184 "s/'/'\\\\''/g;
13185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13186 ;; #(
13187 *)
13188 # `set' quotes correctly as required by POSIX, so do not add quotes.
13189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13190 ;;
13191 esac |
13192 sort
13193 ) |
13194 sed '
13195 /^ac_cv_env_/b end
13196 t clear
13197 :clear
13198 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13199 t end
13200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13201 :end' >>confcache
13202 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13203 if test -w "$cache_file"; then
13204 if test "x$cache_file" != "x/dev/null"; then
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13206 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13207 if test ! -f "$cache_file" || test -h "$cache_file"; then
13208 cat confcache >"$cache_file"
13209 else
13210 case $cache_file in #(
13211 */* | ?:*)
13212 mv -f confcache "$cache_file"$$ &&
13213 mv -f "$cache_file"$$ "$cache_file" ;; #(
13214 *)
13215 mv -f confcache "$cache_file" ;;
13216 esac
13217 fi
13218 fi
13219 else
13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13221 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13222 fi
13223 fi
13224 rm -f confcache
13225
13226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13227 # Let make expand exec_prefix.
13228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13229
13230 DEFS=-DHAVE_CONFIG_H
13231
13232 ac_libobjs=
13233 ac_ltlibobjs=
13234 U=
13235 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13236 # 1. Remove the extension, and $U if already installed.
13237 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13238 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13240 # will be set to the directory where LIBOBJS objects are built.
13241 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13242 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13243 done
13244 LIBOBJS=$ac_libobjs
13245
13246 LTLIBOBJS=$ac_ltlibobjs
13247
13248
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13250 printf %s "checking that generated files are newer than configure... " >&6; }
13251 if test -n "$am_sleep_pid"; then
13252 # Hide warnings about reused PIDs.
13253 wait $am_sleep_pid 2>/dev/null
13254 fi
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13256 printf "%s\n" "done" >&6; }
13257 if test -n "$EXEEXT"; then
13258 am__EXEEXT_TRUE=
13259 am__EXEEXT_FALSE='#'
13260 else
13261 am__EXEEXT_TRUE='#'
13262 am__EXEEXT_FALSE=
13263 fi
13264
13265 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13266 as_fn_error $? "conditional \"AMDEP\" was never defined.
13267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268 fi
13269 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13270 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13272 fi
13273
13274 : "${CONFIG_STATUS=./config.status}"
13275 ac_write_fail=0
13276 ac_clean_files_save=$ac_clean_files
13277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13279 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13280 as_write_fail=0
13281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13282 #! $SHELL
13283 # Generated by $as_me.
13284 # Run this file to recreate the current configuration.
13285 # Compiler output produced by configure, useful for debugging
13286 # configure, is in config.log if it exists.
13287
13288 debug=false
13289 ac_cs_recheck=false
13290 ac_cs_silent=false
13291
13292 SHELL=\${CONFIG_SHELL-$SHELL}
13293 export SHELL
13294 _ASEOF
13295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13296 ## -------------------- ##
13297 ## M4sh Initialization. ##
13298 ## -------------------- ##
13299
13300 # Be more Bourne compatible
13301 DUALCASE=1; export DUALCASE # for MKS sh
13302 as_nop=:
13303 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13304 then :
13305 emulate sh
13306 NULLCMD=:
13307 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13308 # is contrary to our usage. Disable this feature.
13309 alias -g '${1+"$@"}'='"$@"'
13310 setopt NO_GLOB_SUBST
13311 else $as_nop
13312 case `(set -o) 2>/dev/null` in #(
13313 *posix*) :
13314 set -o posix ;; #(
13315 *) :
13316 ;;
13317 esac
13318 fi
13319
13320
13321
13322 # Reset variables that may have inherited troublesome values from
13323 # the environment.
13324
13325 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13326 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13327 # side effect of setting IFS to empty, thus disabling word splitting.)
13328 # Quoting is to prevent editors from complaining about space-tab.
13329 as_nl='
13330 '
13331 export as_nl
13332 IFS=" "" $as_nl"
13333
13334 PS1='$ '
13335 PS2='> '
13336 PS4='+ '
13337
13338 # Ensure predictable behavior from utilities with locale-dependent output.
13339 LC_ALL=C
13340 export LC_ALL
13341 LANGUAGE=C
13342 export LANGUAGE
13343
13344 # We cannot yet rely on "unset" to work, but we need these variables
13345 # to be unset--not just set to an empty or harmless value--now, to
13346 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13347 # also avoids known problems related to "unset" and subshell syntax
13348 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13349 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13350 do eval test \${$as_var+y} \
13351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13352 done
13353
13354 # Ensure that fds 0, 1, and 2 are open.
13355 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13356 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13357 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13358
13359 # The user is always right.
13360 if ${PATH_SEPARATOR+false} :; then
13361 PATH_SEPARATOR=:
13362 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13363 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13364 PATH_SEPARATOR=';'
13365 }
13366 fi
13367
13368
13369 # Find who we are. Look in the path if we contain no directory separator.
13370 as_myself=
13371 case $0 in #((
13372 *[\\/]* ) as_myself=$0 ;;
13373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376 IFS=$as_save_IFS
13377 case $as_dir in #(((
13378 '') as_dir=./ ;;
13379 */) ;;
13380 *) as_dir=$as_dir/ ;;
13381 esac
13382 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13383 done
13384 IFS=$as_save_IFS
13385
13386 ;;
13387 esac
13388 # We did not find ourselves, most probably we were run as `sh COMMAND'
13389 # in which case we are not to be found in the path.
13390 if test "x$as_myself" = x; then
13391 as_myself=$0
13392 fi
13393 if test ! -f "$as_myself"; then
13394 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13395 exit 1
13396 fi
13397
13398
13399
13400 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13401 # ----------------------------------------
13402 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13403 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13404 # script with STATUS, using 1 if that was 0.
13405 as_fn_error ()
13406 {
13407 as_status=$1; test $as_status -eq 0 && as_status=1
13408 if test "$4"; then
13409 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13411 fi
13412 printf "%s\n" "$as_me: error: $2" >&2
13413 as_fn_exit $as_status
13414 } # as_fn_error
13415
13416
13417
13418 # as_fn_set_status STATUS
13419 # -----------------------
13420 # Set $? to STATUS, without forking.
13421 as_fn_set_status ()
13422 {
13423 return $1
13424 } # as_fn_set_status
13425
13426 # as_fn_exit STATUS
13427 # -----------------
13428 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13429 as_fn_exit ()
13430 {
13431 set +e
13432 as_fn_set_status $1
13433 exit $1
13434 } # as_fn_exit
13435
13436 # as_fn_unset VAR
13437 # ---------------
13438 # Portably unset VAR.
13439 as_fn_unset ()
13440 {
13441 { eval $1=; unset $1;}
13442 }
13443 as_unset=as_fn_unset
13444
13445 # as_fn_append VAR VALUE
13446 # ----------------------
13447 # Append the text in VALUE to the end of the definition contained in VAR. Take
13448 # advantage of any shell optimizations that allow amortized linear growth over
13449 # repeated appends, instead of the typical quadratic growth present in naive
13450 # implementations.
13451 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13452 then :
13453 eval 'as_fn_append ()
13454 {
13455 eval $1+=\$2
13456 }'
13457 else $as_nop
13458 as_fn_append ()
13459 {
13460 eval $1=\$$1\$2
13461 }
13462 fi # as_fn_append
13463
13464 # as_fn_arith ARG...
13465 # ------------------
13466 # Perform arithmetic evaluation on the ARGs, and store the result in the
13467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13468 # must be portable across $(()) and expr.
13469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13470 then :
13471 eval 'as_fn_arith ()
13472 {
13473 as_val=$(( $* ))
13474 }'
13475 else $as_nop
13476 as_fn_arith ()
13477 {
13478 as_val=`expr "$@" || test $? -eq 1`
13479 }
13480 fi # as_fn_arith
13481
13482
13483 if expr a : '\(a\)' >/dev/null 2>&1 &&
13484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13485 as_expr=expr
13486 else
13487 as_expr=false
13488 fi
13489
13490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13491 as_basename=basename
13492 else
13493 as_basename=false
13494 fi
13495
13496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13497 as_dirname=dirname
13498 else
13499 as_dirname=false
13500 fi
13501
13502 as_me=`$as_basename -- "$0" ||
13503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13504 X"$0" : 'X\(//\)$' \| \
13505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13506 printf "%s\n" X/"$0" |
13507 sed '/^.*\/\([^/][^/]*\)\/*$/{
13508 s//\1/
13509 q
13510 }
13511 /^X\/\(\/\/\)$/{
13512 s//\1/
13513 q
13514 }
13515 /^X\/\(\/\).*/{
13516 s//\1/
13517 q
13518 }
13519 s/.*/./; q'`
13520
13521 # Avoid depending upon Character Ranges.
13522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13525 as_cr_digits='0123456789'
13526 as_cr_alnum=$as_cr_Letters$as_cr_digits
13527
13528
13529 # Determine whether it's possible to make 'echo' print without a newline.
13530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13531 # for compatibility with existing Makefiles.
13532 ECHO_C= ECHO_N= ECHO_T=
13533 case `echo -n x` in #(((((
13534 -n*)
13535 case `echo 'xy\c'` in
13536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13537 xy) ECHO_C='\c';;
13538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13539 ECHO_T=' ';;
13540 esac;;
13541 *)
13542 ECHO_N='-n';;
13543 esac
13544
13545 # For backward compatibility with old third-party macros, we provide
13546 # the shell variables $as_echo and $as_echo_n. New code should use
13547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13548 as_echo='printf %s\n'
13549 as_echo_n='printf %s'
13550
13551 rm -f conf$$ conf$$.exe conf$$.file
13552 if test -d conf$$.dir; then
13553 rm -f conf$$.dir/conf$$.file
13554 else
13555 rm -f conf$$.dir
13556 mkdir conf$$.dir 2>/dev/null
13557 fi
13558 if (echo >conf$$.file) 2>/dev/null; then
13559 if ln -s conf$$.file conf$$ 2>/dev/null; then
13560 as_ln_s='ln -s'
13561 # ... but there are two gotchas:
13562 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13563 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13564 # In both cases, we have to default to `cp -pR'.
13565 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13566 as_ln_s='cp -pR'
13567 elif ln conf$$.file conf$$ 2>/dev/null; then
13568 as_ln_s=ln
13569 else
13570 as_ln_s='cp -pR'
13571 fi
13572 else
13573 as_ln_s='cp -pR'
13574 fi
13575 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13576 rmdir conf$$.dir 2>/dev/null
13577
13578
13579 # as_fn_mkdir_p
13580 # -------------
13581 # Create "$as_dir" as a directory, including parents if necessary.
13582 as_fn_mkdir_p ()
13583 {
13584
13585 case $as_dir in #(
13586 -*) as_dir=./$as_dir;;
13587 esac
13588 test -d "$as_dir" || eval $as_mkdir_p || {
13589 as_dirs=
13590 while :; do
13591 case $as_dir in #(
13592 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13593 *) as_qdir=$as_dir;;
13594 esac
13595 as_dirs="'$as_qdir' $as_dirs"
13596 as_dir=`$as_dirname -- "$as_dir" ||
13597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13598 X"$as_dir" : 'X\(//\)[^/]' \| \
13599 X"$as_dir" : 'X\(//\)$' \| \
13600 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13601 printf "%s\n" X"$as_dir" |
13602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13603 s//\1/
13604 q
13605 }
13606 /^X\(\/\/\)[^/].*/{
13607 s//\1/
13608 q
13609 }
13610 /^X\(\/\/\)$/{
13611 s//\1/
13612 q
13613 }
13614 /^X\(\/\).*/{
13615 s//\1/
13616 q
13617 }
13618 s/.*/./; q'`
13619 test -d "$as_dir" && break
13620 done
13621 test -z "$as_dirs" || eval "mkdir $as_dirs"
13622 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13623
13624
13625 } # as_fn_mkdir_p
13626 if mkdir -p . 2>/dev/null; then
13627 as_mkdir_p='mkdir -p "$as_dir"'
13628 else
13629 test -d ./-p && rmdir ./-p
13630 as_mkdir_p=false
13631 fi
13632
13633
13634 # as_fn_executable_p FILE
13635 # -----------------------
13636 # Test if FILE is an executable regular file.
13637 as_fn_executable_p ()
13638 {
13639 test -f "$1" && test -x "$1"
13640 } # as_fn_executable_p
13641 as_test_x='test -x'
13642 as_executable_p=as_fn_executable_p
13643
13644 # Sed expression to map a string onto a valid CPP name.
13645 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13646
13647 # Sed expression to map a string onto a valid variable name.
13648 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13649
13650
13651 exec 6>&1
13652 ## ----------------------------------- ##
13653 ## Main body of $CONFIG_STATUS script. ##
13654 ## ----------------------------------- ##
13655 _ASEOF
13656 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13657
13658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659 # Save the log message, to keep $0 and so on meaningful, and to
13660 # report actual input values of CONFIG_FILES etc. instead of their
13661 # values after options handling.
13662 ac_log="
13663 This file was extended by xclock $as_me 1.1.1, which was
13664 generated by GNU Autoconf 2.71. Invocation command line was
13665
13666 CONFIG_FILES = $CONFIG_FILES
13667 CONFIG_HEADERS = $CONFIG_HEADERS
13668 CONFIG_LINKS = $CONFIG_LINKS
13669 CONFIG_COMMANDS = $CONFIG_COMMANDS
13670 $ $0 $@
13671
13672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13673 "
13674
13675 _ACEOF
13676
13677 case $ac_config_files in *"
13678 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13679 esac
13680
13681 case $ac_config_headers in *"
13682 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13683 esac
13684
13685
13686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687 # Files that config.status was made for.
13688 config_files="$ac_config_files"
13689 config_headers="$ac_config_headers"
13690 config_commands="$ac_config_commands"
13691
13692 _ACEOF
13693
13694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13695 ac_cs_usage="\
13696 \`$as_me' instantiates files and other configuration actions
13697 from templates according to the current configuration. Unless the files
13698 and actions are specified as TAGs, all are instantiated by default.
13699
13700 Usage: $0 [OPTION]... [TAG]...
13701
13702 -h, --help print this help, then exit
13703 -V, --version print version number and configuration settings, then exit
13704 --config print configuration, then exit
13705 -q, --quiet, --silent
13706 do not print progress messages
13707 -d, --debug don't remove temporary files
13708 --recheck update $as_me by reconfiguring in the same conditions
13709 --file=FILE[:TEMPLATE]
13710 instantiate the configuration file FILE
13711 --header=FILE[:TEMPLATE]
13712 instantiate the configuration header FILE
13713
13714 Configuration files:
13715 $config_files
13716
13717 Configuration headers:
13718 $config_headers
13719
13720 Configuration commands:
13721 $config_commands
13722
13723 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>."
13724
13725 _ACEOF
13726 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13727 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13729 ac_cs_config='$ac_cs_config_escaped'
13730 ac_cs_version="\\
13731 xclock config.status 1.1.1
13732 configured by $0, generated by GNU Autoconf 2.71,
13733 with options \\"\$ac_cs_config\\"
13734
13735 Copyright (C) 2021 Free Software Foundation, Inc.
13736 This config.status script is free software; the Free Software Foundation
13737 gives unlimited permission to copy, distribute and modify it."
13738
13739 ac_pwd='$ac_pwd'
13740 srcdir='$srcdir'
13741 INSTALL='$INSTALL'
13742 MKDIR_P='$MKDIR_P'
13743 AWK='$AWK'
13744 test -n "\$AWK" || AWK=awk
13745 _ACEOF
13746
13747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748 # The default lists apply if the user does not specify any file.
13749 ac_need_defaults=:
13750 while test $# != 0
13751 do
13752 case $1 in
13753 --*=?*)
13754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13756 ac_shift=:
13757 ;;
13758 --*=)
13759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13760 ac_optarg=
13761 ac_shift=:
13762 ;;
13763 *)
13764 ac_option=$1
13765 ac_optarg=$2
13766 ac_shift=shift
13767 ;;
13768 esac
13769
13770 case $ac_option in
13771 # Handling of the options.
13772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13773 ac_cs_recheck=: ;;
13774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13775 printf "%s\n" "$ac_cs_version"; exit ;;
13776 --config | --confi | --conf | --con | --co | --c )
13777 printf "%s\n" "$ac_cs_config"; exit ;;
13778 --debug | --debu | --deb | --de | --d | -d )
13779 debug=: ;;
13780 --file | --fil | --fi | --f )
13781 $ac_shift
13782 case $ac_optarg in
13783 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13784 '') as_fn_error $? "missing file argument" ;;
13785 esac
13786 as_fn_append CONFIG_FILES " '$ac_optarg'"
13787 ac_need_defaults=false;;
13788 --header | --heade | --head | --hea )
13789 $ac_shift
13790 case $ac_optarg in
13791 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13792 esac
13793 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13794 ac_need_defaults=false;;
13795 --he | --h)
13796 # Conflict between --help and --header
13797 as_fn_error $? "ambiguous option: \`$1'
13798 Try \`$0 --help' for more information.";;
13799 --help | --hel | -h )
13800 printf "%s\n" "$ac_cs_usage"; exit ;;
13801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13803 ac_cs_silent=: ;;
13804
13805 # This is an error.
13806 -*) as_fn_error $? "unrecognized option: \`$1'
13807 Try \`$0 --help' for more information." ;;
13808
13809 *) as_fn_append ac_config_targets " $1"
13810 ac_need_defaults=false ;;
13811
13812 esac
13813 shift
13814 done
13815
13816 ac_configure_extra_args=
13817
13818 if $ac_cs_silent; then
13819 exec 6>/dev/null
13820 ac_configure_extra_args="$ac_configure_extra_args --silent"
13821 fi
13822
13823 _ACEOF
13824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13825 if \$ac_cs_recheck; then
13826 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13827 shift
13828 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13829 CONFIG_SHELL='$SHELL'
13830 export CONFIG_SHELL
13831 exec "\$@"
13832 fi
13833
13834 _ACEOF
13835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13836 exec 5>>config.log
13837 {
13838 echo
13839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13840 ## Running $as_me. ##
13841 _ASBOX
13842 printf "%s\n" "$ac_log"
13843 } >&5
13844
13845 _ACEOF
13846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13847 #
13848 # INIT-COMMANDS
13849 #
13850 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13851
13852 _ACEOF
13853
13854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855
13856 # Handling of arguments.
13857 for ac_config_target in $ac_config_targets
13858 do
13859 case $ac_config_target in
13860 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13861 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13862 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13863 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13864
13865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13866 esac
13867 done
13868
13869
13870 # If the user did not use the arguments to specify the items to instantiate,
13871 # then the envvar interface is used. Set only those that are not.
13872 # We use the long form for the default assignment because of an extremely
13873 # bizarre bug on SunOS 4.1.3.
13874 if $ac_need_defaults; then
13875 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13876 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13877 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13878 fi
13879
13880 # Have a temporary directory for convenience. Make it in the build tree
13881 # simply because there is no reason against having it here, and in addition,
13882 # creating and moving files from /tmp can sometimes cause problems.
13883 # Hook for its removal unless debugging.
13884 # Note that there is a small window in which the directory will not be cleaned:
13885 # after its creation but before its name has been assigned to `$tmp'.
13886 $debug ||
13887 {
13888 tmp= ac_tmp=
13889 trap 'exit_status=$?
13890 : "${ac_tmp:=$tmp}"
13891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13892 ' 0
13893 trap 'as_fn_exit 1' 1 2 13 15
13894 }
13895 # Create a (secure) tmp directory for tmp files.
13896
13897 {
13898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13899 test -d "$tmp"
13900 } ||
13901 {
13902 tmp=./conf$$-$RANDOM
13903 (umask 077 && mkdir "$tmp")
13904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13905 ac_tmp=$tmp
13906
13907 # Set up the scripts for CONFIG_FILES section.
13908 # No need to generate them if there are no CONFIG_FILES.
13909 # This happens for instance with `./config.status config.h'.
13910 if test -n "$CONFIG_FILES"; then
13911
13912
13913 ac_cr=`echo X | tr X '\015'`
13914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13915 # But we know of no other shell where ac_cr would be empty at this
13916 # point, so we can use a bashism as a fallback.
13917 if test "x$ac_cr" = x; then
13918 eval ac_cr=\$\'\\r\'
13919 fi
13920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13922 ac_cs_awk_cr='\\r'
13923 else
13924 ac_cs_awk_cr=$ac_cr
13925 fi
13926
13927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13928 _ACEOF
13929
13930
13931 {
13932 echo "cat >conf$$subs.awk <<_ACEOF" &&
13933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13934 echo "_ACEOF"
13935 } >conf$$subs.sh ||
13936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13938 ac_delim='%!_!# '
13939 for ac_last_try in false false false false false :; do
13940 . ./conf$$subs.sh ||
13941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13942
13943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13944 if test $ac_delim_n = $ac_delim_num; then
13945 break
13946 elif $ac_last_try; then
13947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13948 else
13949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13950 fi
13951 done
13952 rm -f conf$$subs.sh
13953
13954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13956 _ACEOF
13957 sed -n '
13958 h
13959 s/^/S["/; s/!.*/"]=/
13960 p
13961 g
13962 s/^[^!]*!//
13963 :repl
13964 t repl
13965 s/'"$ac_delim"'$//
13966 t delim
13967 :nl
13968 h
13969 s/\(.\{148\}\)..*/\1/
13970 t more1
13971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13972 p
13973 n
13974 b repl
13975 :more1
13976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13977 p
13978 g
13979 s/.\{148\}//
13980 t nl
13981 :delim
13982 h
13983 s/\(.\{148\}\)..*/\1/
13984 t more2
13985 s/["\\]/\\&/g; s/^/"/; s/$/"/
13986 p
13987 b
13988 :more2
13989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13990 p
13991 g
13992 s/.\{148\}//
13993 t delim
13994 ' <conf$$subs.awk | sed '
13995 /^[^""]/{
13996 N
13997 s/\n//
13998 }
13999 ' >>$CONFIG_STATUS || ac_write_fail=1
14000 rm -f conf$$subs.awk
14001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002 _ACAWK
14003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14004 for (key in S) S_is_set[key] = 1
14005 FS = ""
14006
14007 }
14008 {
14009 line = $ 0
14010 nfields = split(line, field, "@")
14011 substed = 0
14012 len = length(field[1])
14013 for (i = 2; i < nfields; i++) {
14014 key = field[i]
14015 keylen = length(key)
14016 if (S_is_set[key]) {
14017 value = S[key]
14018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14019 len += length(value) + length(field[++i])
14020 substed = 1
14021 } else
14022 len += 1 + keylen
14023 }
14024
14025 print line
14026 }
14027
14028 _ACAWK
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14033 else
14034 cat
14035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14037 _ACEOF
14038
14039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14041 # trailing colons and then remove the whole line if VPATH becomes empty
14042 # (actually we leave an empty line to preserve line numbers).
14043 if test "x$srcdir" = x.; then
14044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14045 h
14046 s///
14047 s/^/:/
14048 s/[ ]*$/:/
14049 s/:\$(srcdir):/:/g
14050 s/:\${srcdir}:/:/g
14051 s/:@srcdir@:/:/g
14052 s/^:*//
14053 s/:*$//
14054 x
14055 s/\(=[ ]*\).*/\1/
14056 G
14057 s/\n//
14058 s/^[^=]*=[ ]*$//
14059 }'
14060 fi
14061
14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14063 fi # test -n "$CONFIG_FILES"
14064
14065 # Set up the scripts for CONFIG_HEADERS section.
14066 # No need to generate them if there are no CONFIG_HEADERS.
14067 # This happens for instance with `./config.status Makefile'.
14068 if test -n "$CONFIG_HEADERS"; then
14069 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14070 BEGIN {
14071 _ACEOF
14072
14073 # Transform confdefs.h into an awk script `defines.awk', embedded as
14074 # here-document in config.status, that substitutes the proper values into
14075 # config.h.in to produce config.h.
14076
14077 # Create a delimiter string that does not exist in confdefs.h, to ease
14078 # handling of long lines.
14079 ac_delim='%!_!# '
14080 for ac_last_try in false false :; do
14081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14082 if test -z "$ac_tt"; then
14083 break
14084 elif $ac_last_try; then
14085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14086 else
14087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14088 fi
14089 done
14090
14091 # For the awk script, D is an array of macro values keyed by name,
14092 # likewise P contains macro parameters if any. Preserve backslash
14093 # newline sequences.
14094
14095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14096 sed -n '
14097 s/.\{148\}/&'"$ac_delim"'/g
14098 t rset
14099 :rset
14100 s/^[ ]*#[ ]*define[ ][ ]*/ /
14101 t def
14102 d
14103 :def
14104 s/\\$//
14105 t bsnl
14106 s/["\\]/\\&/g
14107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14108 D["\1"]=" \3"/p
14109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14110 d
14111 :bsnl
14112 s/["\\]/\\&/g
14113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14114 D["\1"]=" \3\\\\\\n"\\/p
14115 t cont
14116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14117 t cont
14118 d
14119 :cont
14120 n
14121 s/.\{148\}/&'"$ac_delim"'/g
14122 t clear
14123 :clear
14124 s/\\$//
14125 t bsnlc
14126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14127 d
14128 :bsnlc
14129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14130 b cont
14131 ' <confdefs.h | sed '
14132 s/'"$ac_delim"'/"\\\
14133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14134
14135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136 for (key in D) D_is_set[key] = 1
14137 FS = ""
14138 }
14139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14140 line = \$ 0
14141 split(line, arg, " ")
14142 if (arg[1] == "#") {
14143 defundef = arg[2]
14144 mac1 = arg[3]
14145 } else {
14146 defundef = substr(arg[1], 2)
14147 mac1 = arg[2]
14148 }
14149 split(mac1, mac2, "(") #)
14150 macro = mac2[1]
14151 prefix = substr(line, 1, index(line, defundef) - 1)
14152 if (D_is_set[macro]) {
14153 # Preserve the white space surrounding the "#".
14154 print prefix "define", macro P[macro] D[macro]
14155 next
14156 } else {
14157 # Replace #undef with comments. This is necessary, for example,
14158 # in the case of _POSIX_SOURCE, which is predefined and required
14159 # on some systems where configure will not decide to define it.
14160 if (defundef == "undef") {
14161 print "/*", prefix defundef, macro, "*/"
14162 next
14163 }
14164 }
14165 }
14166 { print }
14167 _ACAWK
14168 _ACEOF
14169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14171 fi # test -n "$CONFIG_HEADERS"
14172
14173
14174 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14175 shift
14176 for ac_tag
14177 do
14178 case $ac_tag in
14179 :[FHLC]) ac_mode=$ac_tag; continue;;
14180 esac
14181 case $ac_mode$ac_tag in
14182 :[FHL]*:*);;
14183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14184 :[FH]-) ac_tag=-:-;;
14185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14186 esac
14187 ac_save_IFS=$IFS
14188 IFS=:
14189 set x $ac_tag
14190 IFS=$ac_save_IFS
14191 shift
14192 ac_file=$1
14193 shift
14194
14195 case $ac_mode in
14196 :L) ac_source=$1;;
14197 :[FH])
14198 ac_file_inputs=
14199 for ac_f
14200 do
14201 case $ac_f in
14202 -) ac_f="$ac_tmp/stdin";;
14203 *) # Look for the file first in the build tree, then in the source tree
14204 # (if the path is not absolute). The absolute path cannot be DOS-style,
14205 # because $ac_f cannot contain `:'.
14206 test -f "$ac_f" ||
14207 case $ac_f in
14208 [\\/$]*) false;;
14209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14210 esac ||
14211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14212 esac
14213 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14214 as_fn_append ac_file_inputs " '$ac_f'"
14215 done
14216
14217 # Let's still pretend it is `configure' which instantiates (i.e., don't
14218 # use $as_me), people would be surprised to read:
14219 # /* config.h. Generated by config.status. */
14220 configure_input='Generated from '`
14221 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14222 `' by configure.'
14223 if test x"$ac_file" != x-; then
14224 configure_input="$ac_file. $configure_input"
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14226 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14227 fi
14228 # Neutralize special characters interpreted by sed in replacement strings.
14229 case $configure_input in #(
14230 *\&* | *\|* | *\\* )
14231 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14233 *) ac_sed_conf_input=$configure_input;;
14234 esac
14235
14236 case $ac_tag in
14237 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14239 esac
14240 ;;
14241 esac
14242
14243 ac_dir=`$as_dirname -- "$ac_file" ||
14244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14245 X"$ac_file" : 'X\(//\)[^/]' \| \
14246 X"$ac_file" : 'X\(//\)$' \| \
14247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14248 printf "%s\n" X"$ac_file" |
14249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14250 s//\1/
14251 q
14252 }
14253 /^X\(\/\/\)[^/].*/{
14254 s//\1/
14255 q
14256 }
14257 /^X\(\/\/\)$/{
14258 s//\1/
14259 q
14260 }
14261 /^X\(\/\).*/{
14262 s//\1/
14263 q
14264 }
14265 s/.*/./; q'`
14266 as_dir="$ac_dir"; as_fn_mkdir_p
14267 ac_builddir=.
14268
14269 case "$ac_dir" in
14270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14271 *)
14272 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14273 # A ".." for each directory in $ac_dir_suffix.
14274 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14275 case $ac_top_builddir_sub in
14276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14278 esac ;;
14279 esac
14280 ac_abs_top_builddir=$ac_pwd
14281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14282 # for backward compatibility:
14283 ac_top_builddir=$ac_top_build_prefix
14284
14285 case $srcdir in
14286 .) # We are building in place.
14287 ac_srcdir=.
14288 ac_top_srcdir=$ac_top_builddir_sub
14289 ac_abs_top_srcdir=$ac_pwd ;;
14290 [\\/]* | ?:[\\/]* ) # Absolute name.
14291 ac_srcdir=$srcdir$ac_dir_suffix;
14292 ac_top_srcdir=$srcdir
14293 ac_abs_top_srcdir=$srcdir ;;
14294 *) # Relative name.
14295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14296 ac_top_srcdir=$ac_top_build_prefix$srcdir
14297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14298 esac
14299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14300
14301
14302 case $ac_mode in
14303 :F)
14304 #
14305 # CONFIG_FILE
14306 #
14307
14308 case $INSTALL in
14309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14311 esac
14312 ac_MKDIR_P=$MKDIR_P
14313 case $MKDIR_P in
14314 [\\/$]* | ?:[\\/]* ) ;;
14315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14316 esac
14317 _ACEOF
14318
14319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14320 # If the template does not know about datarootdir, expand it.
14321 # FIXME: This hack should be removed a few years after 2.60.
14322 ac_datarootdir_hack=; ac_datarootdir_seen=
14323 ac_sed_dataroot='
14324 /datarootdir/ {
14325 p
14326 q
14327 }
14328 /@datadir@/p
14329 /@docdir@/p
14330 /@infodir@/p
14331 /@localedir@/p
14332 /@mandir@/p'
14333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14334 *datarootdir*) ac_datarootdir_seen=yes;;
14335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14337 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14338 _ACEOF
14339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14340 ac_datarootdir_hack='
14341 s&@datadir@&$datadir&g
14342 s&@docdir@&$docdir&g
14343 s&@infodir@&$infodir&g
14344 s&@localedir@&$localedir&g
14345 s&@mandir@&$mandir&g
14346 s&\\\${datarootdir}&$datarootdir&g' ;;
14347 esac
14348 _ACEOF
14349
14350 # Neutralize VPATH when `$srcdir' = `.'.
14351 # Shell code in configure.ac might set extrasub.
14352 # FIXME: do we really want to maintain this feature?
14353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14354 ac_sed_extra="$ac_vpsub
14355 $extrasub
14356 _ACEOF
14357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358 :t
14359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14360 s|@configure_input@|$ac_sed_conf_input|;t t
14361 s&@top_builddir@&$ac_top_builddir_sub&;t t
14362 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14363 s&@srcdir@&$ac_srcdir&;t t
14364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14365 s&@top_srcdir@&$ac_top_srcdir&;t t
14366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14367 s&@builddir@&$ac_builddir&;t t
14368 s&@abs_builddir@&$ac_abs_builddir&;t t
14369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14370 s&@INSTALL@&$ac_INSTALL&;t t
14371 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14372 $ac_datarootdir_hack
14373 "
14374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14376
14377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14380 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14382 which seems to be undefined. Please make sure it is defined" >&5
14383 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14384 which seems to be undefined. Please make sure it is defined" >&2;}
14385
14386 rm -f "$ac_tmp/stdin"
14387 case $ac_file in
14388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14390 esac \
14391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14392 ;;
14393 :H)
14394 #
14395 # CONFIG_HEADER
14396 #
14397 if test x"$ac_file" != x-; then
14398 {
14399 printf "%s\n" "/* $configure_input */" >&1 \
14400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14401 } >"$ac_tmp/config.h" \
14402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14405 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14406 else
14407 rm -f "$ac_file"
14408 mv "$ac_tmp/config.h" "$ac_file" \
14409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14410 fi
14411 else
14412 printf "%s\n" "/* $configure_input */" >&1 \
14413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14414 || as_fn_error $? "could not create -" "$LINENO" 5
14415 fi
14416 # Compute "$ac_file"'s index in $config_headers.
14417 _am_arg="$ac_file"
14418 _am_stamp_count=1
14419 for _am_header in $config_headers :; do
14420 case $_am_header in
14421 $_am_arg | $_am_arg:* )
14422 break ;;
14423 * )
14424 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14425 esac
14426 done
14427 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14428 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14429 X"$_am_arg" : 'X\(//\)[^/]' \| \
14430 X"$_am_arg" : 'X\(//\)$' \| \
14431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14432 printf "%s\n" X"$_am_arg" |
14433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\(\/\/\)[^/].*/{
14438 s//\1/
14439 q
14440 }
14441 /^X\(\/\/\)$/{
14442 s//\1/
14443 q
14444 }
14445 /^X\(\/\).*/{
14446 s//\1/
14447 q
14448 }
14449 s/.*/./; q'`/stamp-h$_am_stamp_count
14450 ;;
14451
14452 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14453 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14454 ;;
14455 esac
14456
14457
14458 case $ac_file$ac_mode in
14459 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14460 # Older Autoconf quotes --file arguments for eval, but not when files
14461 # are listed without --file. Let's play safe and only enable the eval
14462 # if we detect the quoting.
14463 # TODO: see whether this extra hack can be removed once we start
14464 # requiring Autoconf 2.70 or later.
14465 case $CONFIG_FILES in #(
14466 *\'*) :
14467 eval set x "$CONFIG_FILES" ;; #(
14468 *) :
14469 set x $CONFIG_FILES ;; #(
14470 *) :
14471 ;;
14472 esac
14473 shift
14474 # Used to flag and report bootstrapping failures.
14475 am_rc=0
14476 for am_mf
14477 do
14478 # Strip MF so we end up with the name of the file.
14479 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14480 # Check whether this is an Automake generated Makefile which includes
14481 # dependency-tracking related rules and includes.
14482 # Grep'ing the whole file directly is not great: AIX grep has a line
14483 # limit of 2048, but all sed's we know have understand at least 4000.
14484 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14485 || continue
14486 am_dirpart=`$as_dirname -- "$am_mf" ||
14487 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14488 X"$am_mf" : 'X\(//\)[^/]' \| \
14489 X"$am_mf" : 'X\(//\)$' \| \
14490 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14491 printf "%s\n" X"$am_mf" |
14492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14493 s//\1/
14494 q
14495 }
14496 /^X\(\/\/\)[^/].*/{
14497 s//\1/
14498 q
14499 }
14500 /^X\(\/\/\)$/{
14501 s//\1/
14502 q
14503 }
14504 /^X\(\/\).*/{
14505 s//\1/
14506 q
14507 }
14508 s/.*/./; q'`
14509 am_filepart=`$as_basename -- "$am_mf" ||
14510 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14511 X"$am_mf" : 'X\(//\)$' \| \
14512 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14513 printf "%s\n" X/"$am_mf" |
14514 sed '/^.*\/\([^/][^/]*\)\/*$/{
14515 s//\1/
14516 q
14517 }
14518 /^X\/\(\/\/\)$/{
14519 s//\1/
14520 q
14521 }
14522 /^X\/\(\/\).*/{
14523 s//\1/
14524 q
14525 }
14526 s/.*/./; q'`
14527 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14528 && sed -e '/# am--include-marker/d' "$am_filepart" \
14529 | $MAKE -f - am--depfiles" >&5
14530 (cd "$am_dirpart" \
14531 && sed -e '/# am--include-marker/d' "$am_filepart" \
14532 | $MAKE -f - am--depfiles) >&5 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } || am_rc=$?
14536 done
14537 if test $am_rc -ne 0; then
14538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14540 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14541 for automatic dependency tracking. If GNU make was not used, consider
14542 re-running the configure script with MAKE=\"gmake\" (or whatever is
14543 necessary). You can also try re-running configure with the
14544 '--disable-dependency-tracking' option to at least be able to build
14545 the package (albeit without support for automatic dependency tracking).
14546 See \`config.log' for more details" "$LINENO" 5; }
14547 fi
14548 { am_dirpart=; unset am_dirpart;}
14549 { am_filepart=; unset am_filepart;}
14550 { am_mf=; unset am_mf;}
14551 { am_rc=; unset am_rc;}
14552 rm -f conftest-deps.mk
14553 }
14554 ;;
14555
14556 esac
14557 done # for ac_tag
14558
14559
14560 as_fn_exit 0
14561 _ACEOF
14562 ac_clean_files=$ac_clean_files_save
14563
14564 test $ac_write_fail = 0 ||
14565 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14566
14567
14568 # configure is writing to config.log, and then calls config.status.
14569 # config.status does its own redirection, appending to config.log.
14570 # Unfortunately, on DOS this fails, as config.log is still kept open
14571 # by configure, so config.status won't be able to write to it; its
14572 # output is simply discarded. So we exec the FD to /dev/null,
14573 # effectively closing config.log, so it can be properly (re)opened and
14574 # appended to by config.status. When coming back to configure, we
14575 # need to make the FD available again.
14576 if test "$no_create" != yes; then
14577 ac_cs_success=:
14578 ac_config_status_args=
14579 test "$silent" = yes &&
14580 ac_config_status_args="$ac_config_status_args --quiet"
14581 exec 5>/dev/null
14582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14583 exec 5>>config.log
14584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14585 # would make configure fail if this is the last instruction.
14586 $ac_cs_success || as_fn_exit 1
14587 fi
14588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14590 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14591 fi
14592
14593
14594