configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xclock 1.0.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xclock'
563 PACKAGE_TARNAME='xclock'
564 PACKAGE_VERSION='1.0.6'
565 PACKAGE_STRING='xclock 1.0.6'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 appdefaultdir
610 APPDEFS_LIBS
611 APPDEFS_CFLAGS
612 XKB_LIBS
613 XKB_CFLAGS
614 XFT_LIBS
615 XFT_CFLAGS
616 XCLOCK_LIBS
617 XCLOCK_CFLAGS
618 LTLIBICONV
619 LIBICONV
620 AM_BACKSLASH
621 AM_DEFAULT_VERBOSITY
622 MAN_SUBSTS
623 XORG_MAN_PAGE
624 ADMIN_MAN_DIR
625 DRIVER_MAN_DIR
626 MISC_MAN_DIR
627 FILE_MAN_DIR
628 LIB_MAN_DIR
629 APP_MAN_DIR
630 ADMIN_MAN_SUFFIX
631 DRIVER_MAN_SUFFIX
632 MISC_MAN_SUFFIX
633 FILE_MAN_SUFFIX
634 LIB_MAN_SUFFIX
635 APP_MAN_SUFFIX
636 SED
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 INSTALL_CMD
646 PKG_CONFIG
647 CHANGELOG_CMD
648 STRICT_CFLAGS
649 CWARNFLAGS
650 BASE_CFLAGS
651 EGREP
652 GREP
653 CPP
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 MAINT
671 MAINTAINER_MODE_FALSE
672 MAINTAINER_MODE_TRUE
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_maintainer_mode
738 enable_dependency_tracking
739 enable_selective_werror
740 enable_strict_compilation
741 enable_silent_rules
742 with_gnu_ld
743 enable_rpath
744 with_libiconv_prefix
745 with_xft
746 with_xkb
747 with_appdefaultdir
748 '
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP
758 PKG_CONFIG
759 XCLOCK_CFLAGS
760 XCLOCK_LIBS
761 XFT_CFLAGS
762 XFT_LIBS
763 XKB_CFLAGS
764 XKB_LIBS
765 APPDEFS_CFLAGS
766 APPDEFS_LIBS'
767
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
790
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
816
817 ac_prev=
818 ac_dashdash=
819 for ac_option
820 do
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
826 fi
827
828 case $ac_option in
829 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *=) ac_optarg= ;;
831 *) ac_optarg=yes ;;
832 esac
833
834 # Accept the important Cygnus configure options, so we can diagnose typos.
835
836 case $ac_dashdash$ac_option in
837 --)
838 ac_dashdash=yes ;;
839
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
841 ac_prev=bindir ;;
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 bindir=$ac_optarg ;;
844
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
849
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
856
857 --config-cache | -C)
858 cache_file=config.cache ;;
859
860 -datadir | --datadir | --datadi | --datad)
861 ac_prev=datadir ;;
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
864
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
871
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=no ;;
887
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
892
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
897
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
913
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
922
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
926
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
933
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
938
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
944
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
951
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
956
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
961
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
968
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
973
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
980
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
985
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
989
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
993
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
997
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1006
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1011
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1018
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1025
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1042
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1047
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1052
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1056
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1062
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1073
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1078
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1083
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1090
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1095
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1098
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1101
1102 -with-* | --with-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=\$ac_optarg ;;
1117
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=no ;;
1133
1134 --x)
1135 # Obsolete; use --with-x.
1136 with_x=yes ;;
1137
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1144
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1151
1152 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information"
1154 ;;
1155
1156 *=*)
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
1161 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1162 esac
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1165
1166 *)
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172 ;;
1173
1174 esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 as_fn_error $? "missing argument to $ac_option"
1180 fi
1181
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1184 no) ;;
1185 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 esac
1188 fi
1189
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1195 do
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1198 case $ac_val in
1199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1202 esac
1203 # Be sure to have absolute directory names.
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
1208 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used" >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1226 fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\).*/{
1266 s//\1/
1267 q
1268 }
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1273 fi
1274 else
1275 ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280 fi
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1288 fi
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1301
1302 #
1303 # Report the --help message.
1304 #
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures xclock 1.0.6 to adapt to many kinds of systems.
1310
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1315
1316 Defaults for the options are specified in brackets.
1317
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1334
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1339
1340 For better control, use the options below.
1341
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/xclock]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1363
1364 cat <<\_ACEOF
1365
1366 Program names:
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370
1371 System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of xclock 1.0.6:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --disable-selective-werror
1392 Turn off selective compiler errors. (default:
1393 enabled)
1394 --enable-strict-compilation
1395 Enable all warnings from compiler and make them
1396 errors (default: disabled)
1397 --enable-silent-rules less verbose build output (undo: `make V=1')
1398 --disable-silent-rules verbose build output (undo: `make V=0')
1399 --disable-rpath do not hardcode runtime library paths
1400
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-gnu-ld assume the C compiler uses GNU ld default=no
1405 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1406 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1407 --with-xft Use Xft2 and Xrender for rendering (Default is YES)
1408 --with-xkb Use XKB to sound bells (Default is YES)
1409 --with-appdefaultdir=<pathname>
1410 specify directory for app-defaults files (default is
1411 autodetected)
1412
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CPP C preprocessor
1422 PKG_CONFIG path to pkg-config utility
1423 XCLOCK_CFLAGS
1424 C compiler flags for XCLOCK, overriding pkg-config
1425 XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1426 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
1427 XFT_LIBS linker flags for XFT, overriding pkg-config
1428 XKB_CFLAGS C compiler flags for XKB, overriding pkg-config
1429 XKB_LIBS linker flags for XKB, overriding pkg-config
1430 APPDEFS_CFLAGS
1431 C compiler flags for APPDEFS, overriding pkg-config
1432 APPDEFS_LIBS
1433 linker flags for APPDEFS, overriding pkg-config
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 xclock configure 1.0.6
1502 generated by GNU Autoconf 2.68
1503
1504 Copyright (C) 2010 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547 fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1554 # ---------------------------------------------
1555 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1556 # accordingly.
1557 ac_fn_c_check_decl ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 as_decl_name=`echo $2|sed 's/ *(.*//'`
1561 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1563 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1564 if eval \${$3+:} false; then :
1565 $as_echo_n "(cached) " >&6
1566 else
1567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h. */
1569 $4
1570 int
1571 main ()
1572 {
1573 #ifndef $as_decl_name
1574 #ifdef __cplusplus
1575 (void) $as_decl_use;
1576 #else
1577 (void) $as_decl_name;
1578 #endif
1579 #endif
1580
1581 ;
1582 return 0;
1583 }
1584 _ACEOF
1585 if ac_fn_c_try_compile "$LINENO"; then :
1586 eval "$3=yes"
1587 else
1588 eval "$3=no"
1589 fi
1590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591 fi
1592 eval ac_res=\$$3
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597 } # ac_fn_c_check_decl
1598
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_cpp ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } > conftest.i && {
1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_try_run LINENO
1637 # ----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639 # that executables *can* be run.
1640 ac_fn_c_try_run ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>&5
1651 ac_status=$?
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654 { { case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_try") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; }; }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: program exited with status $ac_status" >&5
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=$ac_status
1671 fi
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_run
1677
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_compile
1708
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 $as_test_x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1771
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1776
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1782
1783 #undef $2
1784
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1798
1799 int
1800 main ()
1801 {
1802 return $2 ();
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_func
1821 cat >config.log <<_ACEOF
1822 This file contains any messages produced by compilers while
1823 running configure, to aid debugging if configure makes a mistake.
1824
1825 It was created by xclock $as_me 1.0.6, which was
1826 generated by GNU Autoconf 2.68. Invocation command line was
1827
1828 $ $0 $@
1829
1830 _ACEOF
1831 exec 5>>config.log
1832 {
1833 cat <<_ASUNAME
1834 ## --------- ##
1835 ## Platform. ##
1836 ## --------- ##
1837
1838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1846
1847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854
1855 _ASUNAME
1856
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 $as_echo "PATH: $as_dir"
1863 done
1864 IFS=$as_save_IFS
1865
1866 } >&5
1867
1868 cat >&5 <<_ACEOF
1869
1870
1871 ## ----------- ##
1872 ## Core tests. ##
1873 ## ----------- ##
1874
1875 _ACEOF
1876
1877
1878 # Keep a trace of the command line.
1879 # Strip out --no-create and --no-recursion so they do not pile up.
1880 # Strip out --silent because we don't want to record it for future runs.
1881 # Also quote any args containing shell meta-characters.
1882 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_configure_args=
1884 ac_configure_args0=
1885 ac_configure_args1=
1886 ac_must_keep_next=false
1887 for ac_pass in 1 2
1888 do
1889 for ac_arg
1890 do
1891 case $ac_arg in
1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1895 continue ;;
1896 *\'*)
1897 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 esac
1899 case $ac_pass in
1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901 2)
1902 as_fn_append ac_configure_args1 " '$ac_arg'"
1903 if test $ac_must_keep_next = true; then
1904 ac_must_keep_next=false # Got value, back to normal.
1905 else
1906 case $ac_arg in
1907 *=* | --config-cache | -C | -disable-* | --disable-* \
1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910 | -with-* | --with-* | -without-* | --without-* | --x)
1911 case "$ac_configure_args0 " in
1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 esac
1914 ;;
1915 -* ) ac_must_keep_next=true ;;
1916 esac
1917 fi
1918 as_fn_append ac_configure_args " '$ac_arg'"
1919 ;;
1920 esac
1921 done
1922 done
1923 { ac_configure_args0=; unset ac_configure_args0;}
1924 { ac_configure_args1=; unset ac_configure_args1;}
1925
1926 # When interrupted or exit'd, cleanup temporary files, and complete
1927 # config.log. We remove comments because anyway the quotes in there
1928 # would cause problems or look ugly.
1929 # WARNING: Use '\'' to represent an apostrophe within the trap.
1930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931 trap 'exit_status=$?
1932 # Save into config.log some information that might help in debugging.
1933 {
1934 echo
1935
1936 $as_echo "## ---------------- ##
1937 ## Cache variables. ##
1938 ## ---------------- ##"
1939 echo
1940 # The following way of writing the cache mishandles newlines in values,
1941 (
1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in #(
1945 *${as_nl}*)
1946 case $ac_var in #(
1947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 esac
1950 case $ac_var in #(
1951 _ | IFS | as_nl) ;; #(
1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953 *) { eval $ac_var=; unset $ac_var;} ;;
1954 esac ;;
1955 esac
1956 done
1957 (set) 2>&1 |
1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959 *${as_nl}ac_space=\ *)
1960 sed -n \
1961 "s/'\''/'\''\\\\'\'''\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 ;; #(
1964 *)
1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 ;;
1967 esac |
1968 sort
1969 )
1970 echo
1971
1972 $as_echo "## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##"
1975 echo
1976 for ac_var in $ac_subst_vars
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985
1986 if test -n "$ac_subst_files"; then
1987 $as_echo "## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##"
1990 echo
1991 for ac_var in $ac_subst_files
1992 do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 esac
1997 $as_echo "$ac_var='\''$ac_val'\''"
1998 done | sort
1999 echo
2000 fi
2001
2002 if test -s confdefs.h; then
2003 $as_echo "## ----------- ##
2004 ## confdefs.h. ##
2005 ## ----------- ##"
2006 echo
2007 cat confdefs.h
2008 echo
2009 fi
2010 test "$ac_signal" != 0 &&
2011 $as_echo "$as_me: caught signal $ac_signal"
2012 $as_echo "$as_me: exit $exit_status"
2013 } >&5
2014 rm -f core *.core core.conftest.* &&
2015 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016 exit $exit_status
2017 ' 0
2018 for ac_signal in 1 2 13 15; do
2019 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 done
2021 ac_signal=0
2022
2023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2024 rm -f -r conftest* confdefs.h
2025
2026 $as_echo "/* confdefs.h */" > confdefs.h
2027
2028 # Predefined preprocessor variables.
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_NAME "$PACKAGE_NAME"
2032 _ACEOF
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036 _ACEOF
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2040 _ACEOF
2041
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_STRING "$PACKAGE_STRING"
2044 _ACEOF
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_URL "$PACKAGE_URL"
2052 _ACEOF
2053
2054
2055 # Let the site file select an alternate cache file if it wants to.
2056 # Prefer an explicitly selected file to automatically selected ones.
2057 ac_site_file1=NONE
2058 ac_site_file2=NONE
2059 if test -n "$CONFIG_SITE"; then
2060 # We do not want a PATH search for config.site.
2061 case $CONFIG_SITE in #((
2062 -*) ac_site_file1=./$CONFIG_SITE;;
2063 */*) ac_site_file1=$CONFIG_SITE;;
2064 *) ac_site_file1=./$CONFIG_SITE;;
2065 esac
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2069 else
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2072 fi
2073 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074 do
2075 test "x$ac_site_file" = xNONE && continue
2076 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2080 . "$ac_site_file" \
2081 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083 as_fn_error $? "failed to load site script $ac_site_file
2084 See \`config.log' for more details" "$LINENO" 5; }
2085 fi
2086 done
2087
2088 if test -r "$cache_file"; then
2089 # Some versions of bash will fail to source /dev/null (special files
2090 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2091 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
2094 case $cache_file in
2095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096 *) . "./$cache_file";;
2097 esac
2098 fi
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 >$cache_file
2103 fi
2104
2105 # Check that the precious variables saved in the cache have kept the same
2106 # value.
2107 ac_cache_corrupted=false
2108 for ac_var in $ac_precious_vars; do
2109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110 eval ac_new_set=\$ac_env_${ac_var}_set
2111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112 eval ac_new_val=\$ac_env_${ac_var}_value
2113 case $ac_old_set,$ac_new_set in
2114 set,)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,set)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,);;
2123 *)
2124 if test "x$ac_old_val" != "x$ac_new_val"; then
2125 # differences in whitespace do not lead to failure.
2126 ac_old_val_w=`echo x $ac_old_val`
2127 ac_new_val_w=`echo x $ac_new_val`
2128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131 ac_cache_corrupted=:
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135 eval $ac_var=\$ac_old_val
2136 fi
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 fi;;
2142 esac
2143 # Pass precious variables to config.status.
2144 if test "$ac_new_set" = set; then
2145 case $ac_new_val in
2146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 *) ac_arg=$ac_var=$ac_new_val ;;
2148 esac
2149 case " $ac_configure_args " in
2150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152 esac
2153 fi
2154 done
2155 if $ac_cache_corrupted; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161 fi
2162 ## -------------------- ##
2163 ## Main body of script. ##
2164 ## -------------------- ##
2165
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172
2173 am__api_version='1.11'
2174
2175 ac_aux_dir=
2176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177 if test -f "$ac_dir/install-sh"; then
2178 ac_aux_dir=$ac_dir
2179 ac_install_sh="$ac_aux_dir/install-sh -c"
2180 break
2181 elif test -f "$ac_dir/install.sh"; then
2182 ac_aux_dir=$ac_dir
2183 ac_install_sh="$ac_aux_dir/install.sh -c"
2184 break
2185 elif test -f "$ac_dir/shtool"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/shtool install -c"
2188 break
2189 fi
2190 done
2191 if test -z "$ac_aux_dir"; then
2192 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193 fi
2194
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202
2203
2204 # Find a good install program. We prefer a C program (faster),
2205 # so one script is as good as another. But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2210 # AIX /bin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 # Reject install programs that cannot install multiple files.
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2220 if test -z "$INSTALL"; then
2221 if ${ac_cv_path_install+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in #((
2231 ./ | .// | /[cC]/* | \
2232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234 /usr/ucb/* ) ;;
2235 *)
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2238 # by default.
2239 for ac_prog in ginstall scoinst install; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242 if test $ac_prog = install &&
2243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # AIX install. It has an incompatible calling convention.
2245 :
2246 elif test $ac_prog = install &&
2247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # program-specific install script used by HP pwplus--don't use.
2249 :
2250 else
2251 rm -rf conftest.one conftest.two conftest.dir
2252 echo one > conftest.one
2253 echo two > conftest.two
2254 mkdir conftest.dir
2255 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256 test -s conftest.one && test -s conftest.two &&
2257 test -s conftest.dir/conftest.one &&
2258 test -s conftest.dir/conftest.two
2259 then
2260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261 break 3
2262 fi
2263 fi
2264 fi
2265 done
2266 done
2267 ;;
2268 esac
2269
2270 done
2271 IFS=$as_save_IFS
2272
2273 rm -rf conftest.one conftest.two conftest.dir
2274
2275 fi
2276 if test "${ac_cv_path_install+set}" = set; then
2277 INSTALL=$ac_cv_path_install
2278 else
2279 # As a last resort, use the slow shell script. Don't cache a
2280 # value for INSTALL within a source directory, because that will
2281 # break other packages using the cache if that directory is
2282 # removed, or if the value is a relative name.
2283 INSTALL=$ac_install_sh
2284 fi
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287 $as_echo "$INSTALL" >&6; }
2288
2289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290 # It thinks the first close brace ends the variable substitution.
2291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292
2293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294
2295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298 $as_echo_n "checking whether build environment is sane... " >&6; }
2299 # Just in case
2300 sleep 1
2301 echo timestamp > conftest.file
2302 # Reject unsafe characters in $srcdir or the absolute working directory
2303 # name. Accept space and tab only in the latter.
2304 am_lf='
2305 '
2306 case `pwd` in
2307 *[\\\"\#\$\&\'\`$am_lf]*)
2308 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309 esac
2310 case $srcdir in
2311 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2312 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313 esac
2314
2315 # Do `set' in a subshell so we don't clobber the current shell's
2316 # arguments. Must try -L first in case configure is actually a
2317 # symlink; some systems play weird games with the mod time of symlinks
2318 # (eg FreeBSD returns the mod time of the symlink's containing
2319 # directory).
2320 if (
2321 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322 if test "$*" = "X"; then
2323 # -L didn't work.
2324 set X `ls -t "$srcdir/configure" conftest.file`
2325 fi
2326 rm -f conftest.file
2327 if test "$*" != "X $srcdir/configure conftest.file" \
2328 && test "$*" != "X conftest.file $srcdir/configure"; then
2329
2330 # If neither matched, then we have a broken ls. This can happen
2331 # if, for instance, CONFIG_SHELL is bash and it inherits a
2332 # broken ls alias from the environment. This has actually
2333 # happened. Such a system could not be considered "sane".
2334 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2336 fi
2337
2338 test "$2" = conftest.file
2339 )
2340 then
2341 # Ok.
2342 :
2343 else
2344 as_fn_error $? "newly created file is older than distributed files!
2345 Check your system clock" "$LINENO" 5
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2348 $as_echo "yes" >&6; }
2349 test "$program_prefix" != NONE &&
2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351 # Use a double $ so make ignores it.
2352 test "$program_suffix" != NONE &&
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354 # Double any \ or $.
2355 # By default was `s,x,x', remove it if useless.
2356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358
2359 # expand $ac_aux_dir to an absolute path
2360 am_aux_dir=`cd $ac_aux_dir && pwd`
2361
2362 if test x"${MISSING+set}" != xset; then
2363 case $am_aux_dir in
2364 *\ * | *\ *)
2365 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2366 *)
2367 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2368 esac
2369 fi
2370 # Use eval to expand $SHELL
2371 if eval "$MISSING --run true"; then
2372 am_missing_run="$MISSING --run "
2373 else
2374 am_missing_run=
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2376 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2377 fi
2378
2379 if test x"${install_sh}" != xset; then
2380 case $am_aux_dir in
2381 *\ * | *\ *)
2382 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2383 *)
2384 install_sh="\${SHELL} $am_aux_dir/install-sh"
2385 esac
2386 fi
2387
2388 # Installed binaries are usually stripped using `strip' when the user
2389 # run `make install-strip'. However `strip' might not be the right
2390 # tool to use in cross-compilation environments, therefore Automake
2391 # will honor the `STRIP' environment variable to overrule this program.
2392 if test "$cross_compiling" != no; then
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}strip; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_STRIP+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$STRIP"; then
2402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 STRIP=$ac_cv_prog_STRIP
2422 if test -n "$STRIP"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2424 $as_echo "$STRIP" >&6; }
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430
2431 fi
2432 if test -z "$ac_cv_prog_STRIP"; then
2433 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args.
2435 set dummy strip; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_ac_ct_STRIP="strip"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2462 if test -n "$ac_ct_STRIP"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2464 $as_echo "$ac_ct_STRIP" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470 if test "x$ac_ct_STRIP" = x; then
2471 STRIP=":"
2472 else
2473 case $cross_compiling:$ac_tool_warned in
2474 yes:)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477 ac_tool_warned=yes ;;
2478 esac
2479 STRIP=$ac_ct_STRIP
2480 fi
2481 else
2482 STRIP="$ac_cv_prog_STRIP"
2483 fi
2484
2485 fi
2486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2489 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2490 if test -z "$MKDIR_P"; then
2491 if ${ac_cv_path_mkdir+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496 do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_prog in mkdir gmkdir; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2502 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2503 'mkdir (GNU coreutils) '* | \
2504 'mkdir (coreutils) '* | \
2505 'mkdir (fileutils) '4.1*)
2506 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2507 break 3;;
2508 esac
2509 done
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515
2516 test -d ./--version && rmdir ./--version
2517 if test "${ac_cv_path_mkdir+set}" = set; then
2518 MKDIR_P="$ac_cv_path_mkdir -p"
2519 else
2520 # As a last resort, use the slow shell script. Don't cache a
2521 # value for MKDIR_P within a source directory, because that will
2522 # break other packages using the cache if that directory is
2523 # removed, or if the value is a relative name.
2524 MKDIR_P="$ac_install_sh -d"
2525 fi
2526 fi
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2528 $as_echo "$MKDIR_P" >&6; }
2529
2530 mkdir_p="$MKDIR_P"
2531 case $mkdir_p in
2532 [\\/$]* | ?:[\\/]*) ;;
2533 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534 esac
2535
2536 for ac_prog in gawk mawk nawk awk
2537 do
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_AWK+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$AWK"; then
2546 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_AWK="$ac_prog"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 AWK=$ac_cv_prog_AWK
2566 if test -n "$AWK"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2568 $as_echo "$AWK" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575 test -n "$AWK" && break
2576 done
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2580 set x ${MAKE-make}
2581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2582 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 cat >conftest.make <<\_ACEOF
2586 SHELL = /bin/sh
2587 all:
2588 @echo '@@@%%%=$(MAKE)=@@@%%%'
2589 _ACEOF
2590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2592 *@@@%%%=?*=@@@%%%*)
2593 eval ac_cv_prog_make_${ac_make}_set=yes;;
2594 *)
2595 eval ac_cv_prog_make_${ac_make}_set=no;;
2596 esac
2597 rm -f conftest.make
2598 fi
2599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601 $as_echo "yes" >&6; }
2602 SET_MAKE=
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 SET_MAKE="MAKE=${MAKE-make}"
2607 fi
2608
2609 rm -rf .tst 2>/dev/null
2610 mkdir .tst 2>/dev/null
2611 if test -d .tst; then
2612 am__leading_dot=.
2613 else
2614 am__leading_dot=_
2615 fi
2616 rmdir .tst 2>/dev/null
2617
2618 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2620 # is not polluted with repeated "-I."
2621 am__isrc=' -I$(srcdir)'
2622 # test to see if srcdir already configured
2623 if test -f $srcdir/config.status; then
2624 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2625 fi
2626 fi
2627
2628 # test whether we have cygpath
2629 if test -z "$CYGPATH_W"; then
2630 if (cygpath --version) >/dev/null 2>/dev/null; then
2631 CYGPATH_W='cygpath -w'
2632 else
2633 CYGPATH_W=echo
2634 fi
2635 fi
2636
2637
2638 # Define the identity of the package.
2639 PACKAGE='xclock'
2640 VERSION='1.0.6'
2641
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE "$PACKAGE"
2645 _ACEOF
2646
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define VERSION "$VERSION"
2650 _ACEOF
2651
2652 # Some tools Automake needs.
2653
2654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668 # We need awk for the "check" target. The system "awk" is bad on
2669 # some platforms.
2670 # Always define AMTAR for backward compatibility.
2671
2672 AMTAR=${AMTAR-"${am_missing_run}tar"}
2673
2674 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675
2676
2677
2678
2679
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2682 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2683 # Check whether --enable-maintainer-mode was given.
2684 if test "${enable_maintainer_mode+set}" = set; then :
2685 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2686 else
2687 USE_MAINTAINER_MODE=no
2688 fi
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2691 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2692 if test $USE_MAINTAINER_MODE = yes; then
2693 MAINTAINER_MODE_TRUE=
2694 MAINTAINER_MODE_FALSE='#'
2695 else
2696 MAINTAINER_MODE_TRUE='#'
2697 MAINTAINER_MODE_FALSE=
2698 fi
2699
2700 MAINT=$MAINTAINER_MODE_TRUE
2701
2702
2703
2704 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716 DEPDIR="${am__leading_dot}deps"
2717
2718 ac_config_commands="$ac_config_commands depfiles"
2719
2720
2721 am_make=${MAKE-make}
2722 cat > confinc << 'END'
2723 am__doit:
2724 @echo this is the am__doit target
2725 .PHONY: am__doit
2726 END
2727 # If we don't find an include directive, just comment out the code.
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2729 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2730 am__include="#"
2731 am__quote=
2732 _am_result=none
2733 # First try GNU make style include.
2734 echo "include confinc" > confmf
2735 # Ignore all kinds of additional output from `make'.
2736 case `$am_make -s -f confmf 2> /dev/null` in #(
2737 *the\ am__doit\ target*)
2738 am__include=include
2739 am__quote=
2740 _am_result=GNU
2741 ;;
2742 esac
2743 # Now try BSD make style include.
2744 if test "$am__include" = "#"; then
2745 echo '.include "confinc"' > confmf
2746 case `$am_make -s -f confmf 2> /dev/null` in #(
2747 *the\ am__doit\ target*)
2748 am__include=.include
2749 am__quote="\""
2750 _am_result=BSD
2751 ;;
2752 esac
2753 fi
2754
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2757 $as_echo "$_am_result" >&6; }
2758 rm -f confinc confmf
2759
2760 # Check whether --enable-dependency-tracking was given.
2761 if test "${enable_dependency_tracking+set}" = set; then :
2762 enableval=$enable_dependency_tracking;
2763 fi
2764
2765 if test "x$enable_dependency_tracking" != xno; then
2766 am_depcomp="$ac_aux_dir/depcomp"
2767 AMDEPBACKSLASH='\'
2768 fi
2769 if test "x$enable_dependency_tracking" != xno; then
2770 AMDEP_TRUE=
2771 AMDEP_FALSE='#'
2772 else
2773 AMDEP_TRUE='#'
2774 AMDEP_FALSE=
2775 fi
2776
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_CC"; then
2823 ac_ct_CC=$CC
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860 if test "x$ac_ct_CC" = x; then
2861 CC=""
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869 CC=$ac_ct_CC
2870 fi
2871 else
2872 CC="$ac_cv_prog_CC"
2873 fi
2874
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914 fi
2915 fi
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 ac_prog_rejected=no
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2937 continue
2938 fi
2939 ac_cv_prog_CC="cc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2950 shift
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2955 shift
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957 fi
2958 fi
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2975 do
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 test -n "$CC" && break
3014 done
3015 fi
3016 if test -z "$CC"; then
3017 ac_ct_CC=$CC
3018 for ac_prog in cl.exe
3019 do
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 test -n "$ac_ct_CC" && break
3058 done
3059
3060 if test "x$ac_ct_CC" = x; then
3061 CC=""
3062 else
3063 case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069 CC=$ac_ct_CC
3070 fi
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details" "$LINENO" 5; }
3080
3081 # Provide some information about the compiler.
3082 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 set X $ac_compile
3084 ac_compiler=$2
3085 for ac_option in --version -v -V -qversion; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 ac_status=$?
3095 if test -s conftest.err; then
3096 sed '10a\
3097 ... rest of stderr output deleted ...
3098 10q' conftest.err >conftest.er1
3099 cat conftest.er1 >&5
3100 fi
3101 rm -f conftest.er1 conftest.err
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3104 done
3105
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3121 # of exeext.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123 $as_echo_n "checking whether the C compiler works... " >&6; }
3124 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129 ac_rmfiles=
3130 for ac_file in $ac_files
3131 do
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 esac
3136 done
3137 rm -f $ac_rmfiles
3138
3139 if { { ac_try="$ac_link_default"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link_default") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3153 # so that the user can short-circuit this test for compilers unknown to
3154 # Autoconf.
3155 for ac_file in $ac_files ''
3156 do
3157 test -f "$ac_file" || continue
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 ;;
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 then :; else
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 fi
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3174 # actually working.
3175 break;;
3176 * )
3177 break;;
3178 esac
3179 done
3180 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182 else
3183 ac_file=''
3184 fi
3185 if test -z "$ac_file"; then :
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error 77 "C compiler cannot create executables
3194 See \`config.log' for more details" "$LINENO" 5; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 $as_echo "yes" >&6; }
3198 fi
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3200 $as_echo_n "checking for C compiler default output file name... " >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3202 $as_echo "$ac_file" >&6; }
3203 ac_exeext=$ac_cv_exeext
3204
3205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3206 ac_clean_files=$ac_clean_files_save
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 break;;
3230 * ) break;;
3231 esac
3232 done
3233 else
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details" "$LINENO" 5; }
3238 fi
3239 rm -f conftest conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3242
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248 #include <stdio.h>
3249 int
3250 main ()
3251 {
3252 FILE *f = fopen ("conftest.out", "w");
3253 return ferror (f) || fclose (f) != 0;
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 ac_clean_files="$ac_clean_files conftest.out"
3260 # Check that the compiler produces executables we can run. If not, either
3261 # the compiler is broken, or we cross compile.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3263 $as_echo_n "checking whether we are cross compiling... " >&6; }
3264 if test "$cross_compiling" != yes; then
3265 { { ac_try="$ac_link"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276 if { ac_try='./conftest$ac_cv_exeext'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3287 cross_compiling=no
3288 else
3289 if test "$cross_compiling" = maybe; then
3290 cross_compiling=yes
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 fi
3298 fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3301 $as_echo "$cross_compiling" >&6; }
3302
3303 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3306 $as_echo_n "checking for suffix of object files... " >&6; }
3307 if ${ac_cv_objext+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.o conftest.obj
3322 if { { ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compile") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 for ac_file in conftest.o conftest.obj conftest.*; do
3334 test -f "$ac_file" || continue;
3335 case $ac_file in
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3338 break;;
3339 esac
3340 done
3341 else
3342 $as_echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot compute suffix of object files: cannot compile
3348 See \`config.log' for more details" "$LINENO" 5; }
3349 fi
3350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3353 $as_echo "$ac_cv_objext" >&6; }
3354 OBJEXT=$ac_cv_objext
3355 ac_objext=$OBJEXT
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3358 if ${ac_cv_c_compiler_gnu+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main ()
3366 {
3367 #ifndef __GNUC__
3368 choke me
3369 #endif
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_compiler_gnu=yes
3377 else
3378 ac_compiler_gnu=no
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3386 if test $ac_compiler_gnu = yes; then
3387 GCC=yes
3388 else
3389 GCC=
3390 fi
3391 ac_test_CFLAGS=${CFLAGS+set}
3392 ac_save_CFLAGS=$CFLAGS
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3395 if ${ac_cv_prog_cc_g+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 ac_save_c_werror_flag=$ac_c_werror_flag
3399 ac_c_werror_flag=yes
3400 ac_cv_prog_cc_g=no
3401 CFLAGS="-g"
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414 ac_cv_prog_cc_g=yes
3415 else
3416 CFLAGS=""
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429
3430 else
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3432 CFLAGS="-g"
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_g=yes
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3455 $as_echo "$ac_cv_prog_cc_g" >&6; }
3456 if test "$ac_test_CFLAGS" = set; then
3457 CFLAGS=$ac_save_CFLAGS
3458 elif test $ac_cv_prog_cc_g = yes; then
3459 if test "$GCC" = yes; then
3460 CFLAGS="-g -O2"
3461 else
3462 CFLAGS="-g"
3463 fi
3464 else
3465 if test "$GCC" = yes; then
3466 CFLAGS="-O2"
3467 else
3468 CFLAGS=
3469 fi
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3473 if ${ac_cv_prog_cc_c89+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_cv_prog_cc_c89=no
3477 ac_save_CC=$CC
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480 #include <stdarg.h>
3481 #include <stdio.h>
3482 #include <sys/types.h>
3483 #include <sys/stat.h>
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3488 char **p;
3489 int i;
3490 {
3491 return p[i];
3492 }
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3494 {
3495 char *s;
3496 va_list v;
3497 va_start (v,p);
3498 s = g (p, va_arg (v,int));
3499 va_end (v);
3500 return s;
3501 }
3502
3503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
3506 as 'x'. The following induces an error, until -std is added to get
3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
3509 that's true only with -std. */
3510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511
3512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513 inside strings and character constants. */
3514 #define FOO(x) 'x'
3515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516
3517 int test (int i, double x);
3518 struct s1 {int (*f) (int a);};
3519 struct s2 {int (*f) (double a);};
3520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521 int argc;
3522 char **argv;
3523 int
3524 main ()
3525 {
3526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 do
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_c89=$ac_arg
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext
3539 test "x$ac_cv_prog_cc_c89" != "xno" && break
3540 done
3541 rm -f conftest.$ac_ext
3542 CC=$ac_save_CC
3543
3544 fi
3545 # AC_CACHE_VAL
3546 case "x$ac_cv_prog_cc_c89" in
3547 x)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 $as_echo "none needed" >&6; } ;;
3550 xno)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 $as_echo "unsupported" >&6; } ;;
3553 *)
3554 CC="$CC $ac_cv_prog_cc_c89"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557 esac
3558 if test "x$ac_cv_prog_cc_c89" != xno; then :
3559
3560 fi
3561
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568 depcc="$CC" am_compiler_list=
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571 $as_echo_n "checking dependency style of $depcc... " >&6; }
3572 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576 # We make a subdir and do the tests there. Otherwise we can end up
3577 # making bogus files that we don't know about and never remove. For
3578 # instance it was reported that on HP-UX the gcc test will end up
3579 # making a dummy file named `D' -- because `-MD' means `put the output
3580 # in D'.
3581 mkdir conftest.dir
3582 # Copy depcomp to subdir because otherwise we won't find it if we're
3583 # using a relative directory.
3584 cp "$am_depcomp" conftest.dir
3585 cd conftest.dir
3586 # We will build objects and dependencies in a subdirectory because
3587 # it helps to detect inapplicable dependency modes. For instance
3588 # both Tru64's cc and ICC support -MD to output dependencies as a
3589 # side effect of compilation, but ICC will put the dependencies in
3590 # the current directory while Tru64 will put them in the object
3591 # directory.
3592 mkdir sub
3593
3594 am_cv_CC_dependencies_compiler_type=none
3595 if test "$am_compiler_list" = ""; then
3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 fi
3598 am__universal=false
3599 case " $depcc " in #(
3600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3601 esac
3602
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3607 #
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3611 : > sub/conftest.c
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3617 done
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619
3620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621 # mode. It turns out that the SunPro C++ compiler does not properly
3622 # handle `-M -o', and we need to detect this. Also, some Intel
3623 # versions had trouble with output in subdirs
3624 am__obj=sub/conftest.${OBJEXT-o}
3625 am__minus_obj="-o $am__obj"
3626 case $depmode in
3627 gcc)
3628 # This depmode causes a compiler race in universal mode.
3629 test "$am__universal" = false || continue
3630 ;;
3631 nosideeffect)
3632 # after this tag, mechanisms are not by side-effect, so they'll
3633 # only be used when explicitly requested
3634 if test "x$enable_dependency_tracking" = xyes; then
3635 continue
3636 else
3637 break
3638 fi
3639 ;;
3640 msvisualcpp | msvcmsys)
3641 # This compiler won't grok `-c -o', but also, the minuso test has
3642 # not run yet. These depmodes are late enough in the game, and
3643 # so weak that their functioning should not be impacted.
3644 am__obj=conftest.${OBJEXT-o}
3645 am__minus_obj=
3646 ;;
3647 none) break ;;
3648 esac
3649 if depmode=$depmode \
3650 source=sub/conftest.c object=$am__obj \
3651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653 >/dev/null 2>conftest.err &&
3654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658 # icc doesn't choke on unknown options, it will just issue warnings
3659 # or remarks (even with -Werror). So we grep stderr for any message
3660 # that says an option was ignored or not supported.
3661 # When given -MP, icc 7.0 and 7.1 complain thusly:
3662 # icc: Command line warning: ignoring option '-M'; no argument required
3663 # The diagnosis changed in icc 8.0:
3664 # icc: Command line remark: option '-MP' not supported
3665 if (grep 'ignoring option' conftest.err ||
3666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667 am_cv_CC_dependencies_compiler_type=$depmode
3668 break
3669 fi
3670 fi
3671 done
3672
3673 cd ..
3674 rm -rf conftest.dir
3675 else
3676 am_cv_CC_dependencies_compiler_type=none
3677 fi
3678
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3683
3684 if
3685 test "x$enable_dependency_tracking" != xno \
3686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3687 am__fastdepCC_TRUE=
3688 am__fastdepCC_FALSE='#'
3689 else
3690 am__fastdepCC_TRUE='#'
3691 am__fastdepCC_FALSE=
3692 fi
3693
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3697 if ${ac_cv_prog_cc_c99+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_cv_prog_cc_c99=no
3701 ac_save_CC=$CC
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <stdarg.h>
3705 #include <stdbool.h>
3706 #include <stdlib.h>
3707 #include <wchar.h>
3708 #include <stdio.h>
3709
3710 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3711 #define debug(...) fprintf (stderr, __VA_ARGS__)
3712 #define showlist(...) puts (#__VA_ARGS__)
3713 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3714 static void
3715 test_varargs_macros (void)
3716 {
3717 int x = 1234;
3718 int y = 5678;
3719 debug ("Flag");
3720 debug ("X = %d\n", x);
3721 showlist (The first, second, and third items.);
3722 report (x>y, "x is %d but y is %d", x, y);
3723 }
3724
3725 // Check long long types.
3726 #define BIG64 18446744073709551615ull
3727 #define BIG32 4294967295ul
3728 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3729 #if !BIG_OK
3730 your preprocessor is broken;
3731 #endif
3732 #if BIG_OK
3733 #else
3734 your preprocessor is broken;
3735 #endif
3736 static long long int bignum = -9223372036854775807LL;
3737 static unsigned long long int ubignum = BIG64;
3738
3739 struct incomplete_array
3740 {
3741 int datasize;
3742 double data[];
3743 };
3744
3745 struct named_init {
3746 int number;
3747 const wchar_t *name;
3748 double average;
3749 };
3750
3751 typedef const char *ccp;
3752
3753 static inline int
3754 test_restrict (ccp restrict text)
3755 {
3756 // See if C++-style comments work.
3757 // Iterate through items via the restricted pointer.
3758 // Also check for declarations in for loops.
3759 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3760 continue;
3761 return 0;
3762 }
3763
3764 // Check varargs and va_copy.
3765 static void
3766 test_varargs (const char *format, ...)
3767 {
3768 va_list args;
3769 va_start (args, format);
3770 va_list args_copy;
3771 va_copy (args_copy, args);
3772
3773 const char *str;
3774 int number;
3775 float fnumber;
3776
3777 while (*format)
3778 {
3779 switch (*format++)
3780 {
3781 case 's': // string
3782 str = va_arg (args_copy, const char *);
3783 break;
3784 case 'd': // int
3785 number = va_arg (args_copy, int);
3786 break;
3787 case 'f': // float
3788 fnumber = va_arg (args_copy, double);
3789 break;
3790 default:
3791 break;
3792 }
3793 }
3794 va_end (args_copy);
3795 va_end (args);
3796 }
3797
3798 int
3799 main ()
3800 {
3801
3802 // Check bool.
3803 _Bool success = false;
3804
3805 // Check restrict.
3806 if (test_restrict ("String literal") == 0)
3807 success = true;
3808 char *restrict newvar = "Another string";
3809
3810 // Check varargs.
3811 test_varargs ("s, d' f .", "string", 65, 34.234);
3812 test_varargs_macros ();
3813
3814 // Check flexible array members.
3815 struct incomplete_array *ia =
3816 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3817 ia->datasize = 10;
3818 for (int i = 0; i < ia->datasize; ++i)
3819 ia->data[i] = i * 1.234;
3820
3821 // Check named initializers.
3822 struct named_init ni = {
3823 .number = 34,
3824 .name = L"Test wide string",
3825 .average = 543.34343,
3826 };
3827
3828 ni.number = 58;
3829
3830 int dynamic_array[ni.number];
3831 dynamic_array[ni.number - 1] = 543;
3832
3833 // work around unused variable warnings
3834 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3835 || dynamic_array[ni.number - 1] != 543);
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3842 do
3843 CC="$ac_save_CC $ac_arg"
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_c99=$ac_arg
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c99" != "xno" && break
3849 done
3850 rm -f conftest.$ac_ext
3851 CC=$ac_save_CC
3852
3853 fi
3854 # AC_CACHE_VAL
3855 case "x$ac_cv_prog_cc_c99" in
3856 x)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3859 xno)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3862 *)
3863 CC="$CC $ac_cv_prog_cc_c99"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3865 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3866 esac
3867 if test "x$ac_cv_prog_cc_c99" != xno; then :
3868
3869 fi
3870
3871
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3882 CPP=
3883 fi
3884 if test -z "$CPP"; then
3885 if ${ac_cv_prog_CPP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890 do
3891 ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3893 do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3902 #ifdef __STDC__
3903 # include <limits.h>
3904 #else
3905 # include <assert.h>
3906 #endif
3907 Syntax error
3908 _ACEOF
3909 if ac_fn_c_try_cpp "$LINENO"; then :
3910
3911 else
3912 # Broken: fails on valid input.
3913 continue
3914 fi
3915 rm -f conftest.err conftest.i conftest.$ac_ext
3916
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3922 _ACEOF
3923 if ac_fn_c_try_cpp "$LINENO"; then :
3924 # Broken: success on invalid input.
3925 continue
3926 else
3927 # Passes both tests.
3928 ac_preproc_ok=:
3929 break
3930 fi
3931 rm -f conftest.err conftest.i conftest.$ac_ext
3932
3933 done
3934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935 rm -f conftest.i conftest.err conftest.$ac_ext
3936 if $ac_preproc_ok; then :
3937 break
3938 fi
3939
3940 done
3941 ac_cv_prog_CPP=$CPP
3942
3943 fi
3944 CPP=$ac_cv_prog_CPP
3945 else
3946 ac_cv_prog_CPP=$CPP
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3949 $as_echo "$CPP" >&6; }
3950 ac_preproc_ok=false
3951 for ac_c_preproc_warn_flag in '' yes
3952 do
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #ifdef __STDC__
3962 # include <limits.h>
3963 #else
3964 # include <assert.h>
3965 #endif
3966 Syntax error
3967 _ACEOF
3968 if ac_fn_c_try_cpp "$LINENO"; then :
3969
3970 else
3971 # Broken: fails on valid input.
3972 continue
3973 fi
3974 rm -f conftest.err conftest.i conftest.$ac_ext
3975
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #include <ac_nonexistent.h>
3981 _ACEOF
3982 if ac_fn_c_try_cpp "$LINENO"; then :
3983 # Broken: success on invalid input.
3984 continue
3985 else
3986 # Passes both tests.
3987 ac_preproc_ok=:
3988 break
3989 fi
3990 rm -f conftest.err conftest.i conftest.$ac_ext
3991
3992 done
3993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3994 rm -f conftest.i conftest.err conftest.$ac_ext
3995 if $ac_preproc_ok; then :
3996
3997 else
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4001 See \`config.log' for more details" "$LINENO" 5; }
4002 fi
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4012 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4013 if ${ac_cv_path_GREP+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 if test -z "$GREP"; then
4017 ac_path_GREP_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021 do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_prog in grep ggrep; do
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4027 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4028 # Check for GNU ac_path_GREP and select it if it is found.
4029 # Check for GNU $ac_path_GREP
4030 case `"$ac_path_GREP" --version 2>&1` in
4031 *GNU*)
4032 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4033 *)
4034 ac_count=0
4035 $as_echo_n 0123456789 >"conftest.in"
4036 while :
4037 do
4038 cat "conftest.in" "conftest.in" >"conftest.tmp"
4039 mv "conftest.tmp" "conftest.in"
4040 cp "conftest.in" "conftest.nl"
4041 $as_echo 'GREP' >> "conftest.nl"
4042 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044 as_fn_arith $ac_count + 1 && ac_count=$as_val
4045 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4046 # Best one so far, save it but keep looking for a better one
4047 ac_cv_path_GREP="$ac_path_GREP"
4048 ac_path_GREP_max=$ac_count
4049 fi
4050 # 10*(2^10) chars as input seems more than enough
4051 test $ac_count -gt 10 && break
4052 done
4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054 esac
4055
4056 $ac_path_GREP_found && break 3
4057 done
4058 done
4059 done
4060 IFS=$as_save_IFS
4061 if test -z "$ac_cv_path_GREP"; then
4062 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063 fi
4064 else
4065 ac_cv_path_GREP=$GREP
4066 fi
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4070 $as_echo "$ac_cv_path_GREP" >&6; }
4071 GREP="$ac_cv_path_GREP"
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4075 $as_echo_n "checking for egrep... " >&6; }
4076 if ${ac_cv_path_EGREP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080 then ac_cv_path_EGREP="$GREP -E"
4081 else
4082 if test -z "$EGREP"; then
4083 ac_path_EGREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in egrep; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4094 # Check for GNU ac_path_EGREP and select it if it is found.
4095 # Check for GNU $ac_path_EGREP
4096 case `"$ac_path_EGREP" --version 2>&1` in
4097 *GNU*)
4098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099 *)
4100 ac_count=0
4101 $as_echo_n 0123456789 >"conftest.in"
4102 while :
4103 do
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 $as_echo 'EGREP' >> "conftest.nl"
4108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110 as_fn_arith $ac_count + 1 && ac_count=$as_val
4111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_EGREP="$ac_path_EGREP"
4114 ac_path_EGREP_max=$ac_count
4115 fi
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4118 done
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 esac
4121
4122 $ac_path_EGREP_found && break 3
4123 done
4124 done
4125 done
4126 IFS=$as_save_IFS
4127 if test -z "$ac_cv_path_EGREP"; then
4128 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129 fi
4130 else
4131 ac_cv_path_EGREP=$EGREP
4132 fi
4133
4134 fi
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4137 $as_echo "$ac_cv_path_EGREP" >&6; }
4138 EGREP="$ac_cv_path_EGREP"
4139
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4142 $as_echo_n "checking for ANSI C header files... " >&6; }
4143 if ${ac_cv_header_stdc+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <stdlib.h>
4149 #include <stdarg.h>
4150 #include <string.h>
4151 #include <float.h>
4152
4153 int
4154 main ()
4155 {
4156
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_header_stdc=yes
4163 else
4164 ac_cv_header_stdc=no
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167
4168 if test $ac_cv_header_stdc = yes; then
4169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <string.h>
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "memchr" >/dev/null 2>&1; then :
4177
4178 else
4179 ac_cv_header_stdc=no
4180 fi
4181 rm -f conftest*
4182
4183 fi
4184
4185 if test $ac_cv_header_stdc = yes; then
4186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdlib.h>
4190
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "free" >/dev/null 2>&1; then :
4194
4195 else
4196 ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest*
4199
4200 fi
4201
4202 if test $ac_cv_header_stdc = yes; then
4203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204 if test "$cross_compiling" = yes; then :
4205 :
4206 else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ctype.h>
4210 #include <stdlib.h>
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214 #else
4215 # define ISLOWER(c) \
4216 (('a' <= (c) && (c) <= 'i') \
4217 || ('j' <= (c) && (c) <= 'r') \
4218 || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220 #endif
4221
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223 int
4224 main ()
4225 {
4226 int i;
4227 for (i = 0; i < 256; i++)
4228 if (XOR (islower (i), ISLOWER (i))
4229 || toupper (i) != TOUPPER (i))
4230 return 2;
4231 return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_run "$LINENO"; then :
4235
4236 else
4237 ac_cv_header_stdc=no
4238 fi
4239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4240 conftest.$ac_objext conftest.beam conftest.$ac_ext
4241 fi
4242
4243 fi
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4246 $as_echo "$ac_cv_header_stdc" >&6; }
4247 if test $ac_cv_header_stdc = yes; then
4248
4249 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4250
4251 fi
4252
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4256 do :
4257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4259 "
4260 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4261 cat >>confdefs.h <<_ACEOF
4262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263 _ACEOF
4264
4265 fi
4266
4267 done
4268
4269
4270
4271
4272 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4273 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4274 CLANGCC="yes"
4275 else
4276 CLANGCC="no"
4277 fi
4278
4279 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4280 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4281 INTELCC="yes"
4282 else
4283 INTELCC="no"
4284 fi
4285
4286 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4287 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4288 SUNCC="yes"
4289 else
4290 SUNCC="no"
4291 fi
4292
4293
4294
4295
4296 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 case $PKG_CONFIG in
4306 [\\/]* | ?:[\\/]*)
4307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4308 ;;
4309 *)
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321 done
4322 done
4323 IFS=$as_save_IFS
4324
4325 ;;
4326 esac
4327 fi
4328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4329 if test -n "$PKG_CONFIG"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4331 $as_echo "$PKG_CONFIG" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$ac_cv_path_PKG_CONFIG"; then
4340 ac_pt_PKG_CONFIG=$PKG_CONFIG
4341 # Extract the first word of "pkg-config", so it can be a program name with args.
4342 set dummy pkg-config; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 case $ac_pt_PKG_CONFIG in
4349 [\\/]* | ?:[\\/]*)
4350 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4351 ;;
4352 *)
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 ;;
4369 esac
4370 fi
4371 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4372 if test -n "$ac_pt_PKG_CONFIG"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4374 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4378 fi
4379
4380 if test "x$ac_pt_PKG_CONFIG" = x; then
4381 PKG_CONFIG=""
4382 else
4383 case $cross_compiling:$ac_tool_warned in
4384 yes:)
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387 ac_tool_warned=yes ;;
4388 esac
4389 PKG_CONFIG=$ac_pt_PKG_CONFIG
4390 fi
4391 else
4392 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4393 fi
4394
4395 fi
4396 if test -n "$PKG_CONFIG"; then
4397 _pkg_min_version=0.9.0
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4399 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4400 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 PKG_CONFIG=""
4407 fi
4408
4409 fi
4410 # Make sure we can run config.sub.
4411 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4412 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4413
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4415 $as_echo_n "checking build system type... " >&6; }
4416 if ${ac_cv_build+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 ac_build_alias=$build_alias
4420 test "x$ac_build_alias" = x &&
4421 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4422 test "x$ac_build_alias" = x &&
4423 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4424 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4426
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4429 $as_echo "$ac_cv_build" >&6; }
4430 case $ac_cv_build in
4431 *-*-*) ;;
4432 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4433 esac
4434 build=$ac_cv_build
4435 ac_save_IFS=$IFS; IFS='-'
4436 set x $ac_cv_build
4437 shift
4438 build_cpu=$1
4439 build_vendor=$2
4440 shift; shift
4441 # Remember, the first character of IFS is used to create $*,
4442 # except with old shells:
4443 build_os=$*
4444 IFS=$ac_save_IFS
4445 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4446
4447
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4449 $as_echo_n "checking host system type... " >&6; }
4450 if ${ac_cv_host+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test "x$host_alias" = x; then
4454 ac_cv_host=$ac_cv_build
4455 else
4456 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4458 fi
4459
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4462 $as_echo "$ac_cv_host" >&6; }
4463 case $ac_cv_host in
4464 *-*-*) ;;
4465 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4466 esac
4467 host=$ac_cv_host
4468 ac_save_IFS=$IFS; IFS='-'
4469 set x $ac_cv_host
4470 shift
4471 host_cpu=$1
4472 host_vendor=$2
4473 shift; shift
4474 # Remember, the first character of IFS is used to create $*,
4475 # except with old shells:
4476 host_os=$*
4477 IFS=$ac_save_IFS
4478 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4479
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4483 if ${ac_cv_path_SED+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4487 for ac_i in 1 2 3 4 5 6 7; do
4488 ac_script="$ac_script$as_nl$ac_script"
4489 done
4490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4491 { ac_script=; unset ac_script;}
4492 if test -z "$SED"; then
4493 ac_path_SED_found=false
4494 # Loop through the user's path and test for each of PROGNAME-LIST
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_prog in sed gsed; do
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4503 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4504 # Check for GNU ac_path_SED and select it if it is found.
4505 # Check for GNU $ac_path_SED
4506 case `"$ac_path_SED" --version 2>&1` in
4507 *GNU*)
4508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4509 *)
4510 ac_count=0
4511 $as_echo_n 0123456789 >"conftest.in"
4512 while :
4513 do
4514 cat "conftest.in" "conftest.in" >"conftest.tmp"
4515 mv "conftest.tmp" "conftest.in"
4516 cp "conftest.in" "conftest.nl"
4517 $as_echo '' >> "conftest.nl"
4518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4520 as_fn_arith $ac_count + 1 && ac_count=$as_val
4521 if test $ac_count -gt ${ac_path_SED_max-0}; then
4522 # Best one so far, save it but keep looking for a better one
4523 ac_cv_path_SED="$ac_path_SED"
4524 ac_path_SED_max=$ac_count
4525 fi
4526 # 10*(2^10) chars as input seems more than enough
4527 test $ac_count -gt 10 && break
4528 done
4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530 esac
4531
4532 $ac_path_SED_found && break 3
4533 done
4534 done
4535 done
4536 IFS=$as_save_IFS
4537 if test -z "$ac_cv_path_SED"; then
4538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4539 fi
4540 else
4541 ac_cv_path_SED=$SED
4542 fi
4543
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4546 $as_echo "$ac_cv_path_SED" >&6; }
4547 SED="$ac_cv_path_SED"
4548 rm -f conftest.sed
4549
4550
4551
4552
4553
4554
4555 # Check whether --enable-selective-werror was given.
4556 if test "${enable_selective_werror+set}" = set; then :
4557 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4558 else
4559 SELECTIVE_WERROR=yes
4560 fi
4561
4562
4563 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4564 if test "x$SUNCC" = "xyes"; then
4565 BASE_CFLAGS="-v"
4566 else
4567 BASE_CFLAGS=""
4568 fi
4569
4570 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4571
4572
4573
4574
4575
4576 xorg_testset_save_CFLAGS="$CFLAGS"
4577
4578 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4582 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 int i;
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590 xorg_cv_cc_flag_unknown_warning_option=yes
4591 else
4592 xorg_cv_cc_flag_unknown_warning_option=no
4593 fi
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4597 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4598 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4599 CFLAGS="$xorg_testset_save_CFLAGS"
4600 fi
4601
4602 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4605 fi
4606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4608 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4609 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 int i;
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 xorg_cv_cc_flag_unused_command_line_argument=yes
4618 else
4619 xorg_cv_cc_flag_unused_command_line_argument=no
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4624 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4625 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4626 CFLAGS="$xorg_testset_save_CFLAGS"
4627 fi
4628
4629 found="no"
4630
4631 if test $found = "no" ; then
4632 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4634 fi
4635
4636 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638 fi
4639
4640 CFLAGS="$CFLAGS -Wall"
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4643 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4644 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4645 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 int i;
4651 int
4652 main ()
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 if ac_fn_c_try_link "$LINENO"; then :
4660 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4661 else
4662 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext \
4665 conftest$ac_exeext conftest.$ac_ext
4666 fi
4667
4668
4669 CFLAGS="$xorg_testset_save_CFLAGS"
4670
4671 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4673 $as_echo "$supported" >&6; }
4674 if test "$supported" = "yes" ; then
4675 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4676 found="yes"
4677 fi
4678 fi
4679
4680
4681
4682
4683
4684
4685
4686 xorg_testset_save_CFLAGS="$CFLAGS"
4687
4688 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 int i;
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 xorg_cv_cc_flag_unknown_warning_option=yes
4701 else
4702 xorg_cv_cc_flag_unknown_warning_option=no
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4708 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4709 CFLAGS="$xorg_testset_save_CFLAGS"
4710 fi
4711
4712 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715 fi
4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 int i;
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 xorg_cv_cc_flag_unused_command_line_argument=yes
4728 else
4729 xorg_cv_cc_flag_unused_command_line_argument=no
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4735 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4736 CFLAGS="$xorg_testset_save_CFLAGS"
4737 fi
4738
4739 found="no"
4740
4741 if test $found = "no" ; then
4742 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744 fi
4745
4746 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 fi
4749
4750 CFLAGS="$CFLAGS -Wpointer-arith"
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4753 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4754 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4755 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 int i;
4761 int
4762 main ()
4763 {
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_link "$LINENO"; then :
4770 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4771 else
4772 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext \
4775 conftest$ac_exeext conftest.$ac_ext
4776 fi
4777
4778
4779 CFLAGS="$xorg_testset_save_CFLAGS"
4780
4781 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4783 $as_echo "$supported" >&6; }
4784 if test "$supported" = "yes" ; then
4785 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4786 found="yes"
4787 fi
4788 fi
4789
4790
4791
4792
4793
4794
4795
4796 xorg_testset_save_CFLAGS="$CFLAGS"
4797
4798 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 int i;
4808 _ACEOF
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 xorg_cv_cc_flag_unknown_warning_option=yes
4811 else
4812 xorg_cv_cc_flag_unknown_warning_option=no
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819 CFLAGS="$xorg_testset_save_CFLAGS"
4820 fi
4821
4822 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825 fi
4826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 int i;
4835 _ACEOF
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 xorg_cv_cc_flag_unused_command_line_argument=yes
4838 else
4839 xorg_cv_cc_flag_unused_command_line_argument=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846 CFLAGS="$xorg_testset_save_CFLAGS"
4847 fi
4848
4849 found="no"
4850
4851 if test $found = "no" ; then
4852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854 fi
4855
4856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 fi
4859
4860 CFLAGS="$CFLAGS -Wstrict-prototypes"
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4863 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4864 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4865 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 int i;
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_link "$LINENO"; then :
4880 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4881 else
4882 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext \
4885 conftest$ac_exeext conftest.$ac_ext
4886 fi
4887
4888
4889 CFLAGS="$xorg_testset_save_CFLAGS"
4890
4891 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893 $as_echo "$supported" >&6; }
4894 if test "$supported" = "yes" ; then
4895 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4896 found="yes"
4897 fi
4898 fi
4899
4900
4901
4902
4903
4904
4905
4906 xorg_testset_save_CFLAGS="$CFLAGS"
4907
4908 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4911 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4912 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 int i;
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 xorg_cv_cc_flag_unknown_warning_option=yes
4921 else
4922 xorg_cv_cc_flag_unknown_warning_option=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4927 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4928 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4929 CFLAGS="$xorg_testset_save_CFLAGS"
4930 fi
4931
4932 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4935 fi
4936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4939 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"; then :
4947 xorg_cv_cc_flag_unused_command_line_argument=yes
4948 else
4949 xorg_cv_cc_flag_unused_command_line_argument=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4954 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4955 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4956 CFLAGS="$xorg_testset_save_CFLAGS"
4957 fi
4958
4959 found="no"
4960
4961 if test $found = "no" ; then
4962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964 fi
4965
4966 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968 fi
4969
4970 CFLAGS="$CFLAGS -Wmissing-prototypes"
4971
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4973 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4974 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4975 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 int i;
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_link "$LINENO"; then :
4990 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4991 else
4992 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext \
4995 conftest$ac_exeext conftest.$ac_ext
4996 fi
4997
4998
4999 CFLAGS="$xorg_testset_save_CFLAGS"
5000
5001 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5003 $as_echo "$supported" >&6; }
5004 if test "$supported" = "yes" ; then
5005 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5006 found="yes"
5007 fi
5008 fi
5009
5010
5011
5012
5013
5014
5015
5016 xorg_testset_save_CFLAGS="$CFLAGS"
5017
5018 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027 int i;
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"; then :
5030 xorg_cv_cc_flag_unknown_warning_option=yes
5031 else
5032 xorg_cv_cc_flag_unknown_warning_option=no
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5038 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039 CFLAGS="$xorg_testset_save_CFLAGS"
5040 fi
5041
5042 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5043 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045 fi
5046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
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"; then :
5057 xorg_cv_cc_flag_unused_command_line_argument=yes
5058 else
5059 xorg_cv_cc_flag_unused_command_line_argument=no
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5065 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5066 CFLAGS="$xorg_testset_save_CFLAGS"
5067 fi
5068
5069 found="no"
5070
5071 if test $found = "no" ; then
5072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 fi
5075
5076 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 fi
5079
5080 CFLAGS="$CFLAGS -Wmissing-declarations"
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5083 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5084 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
5085 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 int i;
5091 int
5092 main ()
5093 {
5094
5095 ;
5096 return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_link "$LINENO"; then :
5100 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5101 else
5102 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext \
5105 conftest$ac_exeext conftest.$ac_ext
5106 fi
5107
5108
5109 CFLAGS="$xorg_testset_save_CFLAGS"
5110
5111 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113 $as_echo "$supported" >&6; }
5114 if test "$supported" = "yes" ; then
5115 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5116 found="yes"
5117 fi
5118 fi
5119
5120
5121
5122
5123
5124
5125
5126 xorg_testset_save_CFLAGS="$CFLAGS"
5127
5128 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 int i;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 xorg_cv_cc_flag_unknown_warning_option=yes
5141 else
5142 xorg_cv_cc_flag_unknown_warning_option=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5147 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5148 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5149 CFLAGS="$xorg_testset_save_CFLAGS"
5150 fi
5151
5152 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155 fi
5156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5158 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5159 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 int i;
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 xorg_cv_cc_flag_unused_command_line_argument=yes
5168 else
5169 xorg_cv_cc_flag_unused_command_line_argument=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5174 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5175 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177 fi
5178
5179 found="no"
5180
5181 if test $found = "no" ; then
5182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 fi
5185
5186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188 fi
5189
5190 CFLAGS="$CFLAGS -Wnested-externs"
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5193 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5194 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5195 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 int i;
5201 int
5202 main ()
5203 {
5204
5205 ;
5206 return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_c_try_link "$LINENO"; then :
5210 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5211 else
5212 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext \
5215 conftest$ac_exeext conftest.$ac_ext
5216 fi
5217
5218
5219 CFLAGS="$xorg_testset_save_CFLAGS"
5220
5221 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223 $as_echo "$supported" >&6; }
5224 if test "$supported" = "yes" ; then
5225 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5226 found="yes"
5227 fi
5228 fi
5229
5230
5231
5232
5233
5234
5235
5236 xorg_testset_save_CFLAGS="$CFLAGS"
5237
5238 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5241 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5242 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 int i;
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 xorg_cv_cc_flag_unknown_warning_option=yes
5251 else
5252 xorg_cv_cc_flag_unknown_warning_option=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5257 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5258 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5259 CFLAGS="$xorg_testset_save_CFLAGS"
5260 fi
5261
5262 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265 fi
5266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5268 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5269 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 int i;
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277 xorg_cv_cc_flag_unused_command_line_argument=yes
5278 else
5279 xorg_cv_cc_flag_unused_command_line_argument=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5284 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5285 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5286 CFLAGS="$xorg_testset_save_CFLAGS"
5287 fi
5288
5289 found="no"
5290
5291 if test $found = "no" ; then
5292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294 fi
5295
5296 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 fi
5299
5300 CFLAGS="$CFLAGS -Wbad-function-cast"
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5303 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5304 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5305 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 int i;
5311 int
5312 main ()
5313 {
5314
5315 ;
5316 return 0;
5317 }
5318 _ACEOF
5319 if ac_fn_c_try_link "$LINENO"; then :
5320 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5321 else
5322 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5326 fi
5327
5328
5329 CFLAGS="$xorg_testset_save_CFLAGS"
5330
5331 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5333 $as_echo "$supported" >&6; }
5334 if test "$supported" = "yes" ; then
5335 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5336 found="yes"
5337 fi
5338 fi
5339
5340
5341
5342
5343
5344
5345
5346 xorg_testset_save_CFLAGS="$CFLAGS"
5347
5348 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 xorg_cv_cc_flag_unknown_warning_option=yes
5361 else
5362 xorg_cv_cc_flag_unknown_warning_option=no
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5367 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5368 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5369 CFLAGS="$xorg_testset_save_CFLAGS"
5370 fi
5371
5372 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375 fi
5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5378 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5379 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 int i;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 xorg_cv_cc_flag_unused_command_line_argument=yes
5388 else
5389 xorg_cv_cc_flag_unused_command_line_argument=no
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5394 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5395 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5396 CFLAGS="$xorg_testset_save_CFLAGS"
5397 fi
5398
5399 found="no"
5400
5401 if test $found = "no" ; then
5402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404 fi
5405
5406 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408 fi
5409
5410 CFLAGS="$CFLAGS -Wformat=2"
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5413 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5414 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5415 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 int i;
5421 int
5422 main ()
5423 {
5424
5425 ;
5426 return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_link "$LINENO"; then :
5430 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5431 else
5432 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436 fi
5437
5438
5439 CFLAGS="$xorg_testset_save_CFLAGS"
5440
5441 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5443 $as_echo "$supported" >&6; }
5444 if test "$supported" = "yes" ; then
5445 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5446 found="yes"
5447 fi
5448 fi
5449
5450 if test $found = "no" ; then
5451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5453 fi
5454
5455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457 fi
5458
5459 CFLAGS="$CFLAGS -Wformat"
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5462 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5463 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5464 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 int
5471 main ()
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_link "$LINENO"; then :
5479 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5480 else
5481 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485 fi
5486
5487
5488 CFLAGS="$xorg_testset_save_CFLAGS"
5489
5490 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492 $as_echo "$supported" >&6; }
5493 if test "$supported" = "yes" ; then
5494 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5495 found="yes"
5496 fi
5497 fi
5498
5499
5500
5501
5502
5503
5504
5505 xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5510 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5511 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 int i;
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 xorg_cv_cc_flag_unknown_warning_option=yes
5520 else
5521 xorg_cv_cc_flag_unknown_warning_option=no
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5526 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5527 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5528 CFLAGS="$xorg_testset_save_CFLAGS"
5529 fi
5530
5531 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5532 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534 fi
5535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5537 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5538 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 int i;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 xorg_cv_cc_flag_unused_command_line_argument=yes
5547 else
5548 xorg_cv_cc_flag_unused_command_line_argument=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 found="no"
5559
5560 if test $found = "no" ; then
5561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564
5565 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 fi
5568
5569 CFLAGS="$CFLAGS -Wold-style-definition"
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5572 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5573 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5574 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 int i;
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 if ac_fn_c_try_link "$LINENO"; then :
5589 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5590 else
5591 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595 fi
5596
5597
5598 CFLAGS="$xorg_testset_save_CFLAGS"
5599
5600 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5602 $as_echo "$supported" >&6; }
5603 if test "$supported" = "yes" ; then
5604 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5605 found="yes"
5606 fi
5607 fi
5608
5609
5610
5611
5612
5613
5614
5615 xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 xorg_cv_cc_flag_unknown_warning_option=yes
5630 else
5631 xorg_cv_cc_flag_unknown_warning_option=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639 fi
5640
5641 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 fi
5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 int i;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 xorg_cv_cc_flag_unused_command_line_argument=yes
5657 else
5658 xorg_cv_cc_flag_unused_command_line_argument=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 found="no"
5669
5670 if test $found = "no" ; then
5671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674
5675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 fi
5678
5679 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5682 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5683 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5684 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 int
5691 main ()
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5700 else
5701 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5705 fi
5706
5707
5708 CFLAGS="$xorg_testset_save_CFLAGS"
5709
5710 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712 $as_echo "$supported" >&6; }
5713 if test "$supported" = "yes" ; then
5714 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5715 found="yes"
5716 fi
5717 fi
5718
5719
5720
5721 # This chunk adds additional warnings that could catch undesired effects.
5722
5723
5724
5725
5726
5727 xorg_testset_save_CFLAGS="$CFLAGS"
5728
5729 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 int i;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 xorg_cv_cc_flag_unknown_warning_option=yes
5742 else
5743 xorg_cv_cc_flag_unknown_warning_option=no
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5749 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5750 CFLAGS="$xorg_testset_save_CFLAGS"
5751 fi
5752
5753 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5754 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756 fi
5757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 int i;
5766 _ACEOF
5767 if ac_fn_c_try_compile "$LINENO"; then :
5768 xorg_cv_cc_flag_unused_command_line_argument=yes
5769 else
5770 xorg_cv_cc_flag_unused_command_line_argument=no
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5776 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5777 CFLAGS="$xorg_testset_save_CFLAGS"
5778 fi
5779
5780 found="no"
5781
5782 if test $found = "no" ; then
5783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 fi
5786
5787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 fi
5790
5791 CFLAGS="$CFLAGS -Wunused"
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5794 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5795 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5796 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int i;
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5812 else
5813 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 fi
5818
5819
5820 CFLAGS="$xorg_testset_save_CFLAGS"
5821
5822 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5824 $as_echo "$supported" >&6; }
5825 if test "$supported" = "yes" ; then
5826 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5827 found="yes"
5828 fi
5829 fi
5830
5831
5832
5833
5834
5835
5836
5837 xorg_testset_save_CFLAGS="$CFLAGS"
5838
5839 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int i;
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"; then :
5851 xorg_cv_cc_flag_unknown_warning_option=yes
5852 else
5853 xorg_cv_cc_flag_unknown_warning_option=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861 fi
5862
5863 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5864 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 fi
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 int i;
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"; then :
5878 xorg_cv_cc_flag_unused_command_line_argument=yes
5879 else
5880 xorg_cv_cc_flag_unused_command_line_argument=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887 CFLAGS="$xorg_testset_save_CFLAGS"
5888 fi
5889
5890 found="no"
5891
5892 if test $found = "no" ; then
5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 fi
5896
5897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 fi
5900
5901 CFLAGS="$CFLAGS -Wuninitialized"
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5904 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5905 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5906 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 int i;
5912 int
5913 main ()
5914 {
5915
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_link "$LINENO"; then :
5921 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5922 else
5923 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 fi
5928
5929
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934 $as_echo "$supported" >&6; }
5935 if test "$supported" = "yes" ; then
5936 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5937 found="yes"
5938 fi
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947 xorg_testset_save_CFLAGS="$CFLAGS"
5948
5949 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958 int i;
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961 xorg_cv_cc_flag_unknown_warning_option=yes
5962 else
5963 xorg_cv_cc_flag_unknown_warning_option=no
5964 fi
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5969 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5970 CFLAGS="$xorg_testset_save_CFLAGS"
5971 fi
5972
5973 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976 fi
5977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int i;
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 xorg_cv_cc_flag_unused_command_line_argument=yes
5989 else
5990 xorg_cv_cc_flag_unused_command_line_argument=no
5991 fi
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5996 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5997 CFLAGS="$xorg_testset_save_CFLAGS"
5998 fi
5999
6000 found="no"
6001
6002 if test $found = "no" ; then
6003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 fi
6006
6007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 fi
6010
6011 CFLAGS="$CFLAGS -Wshadow"
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6014 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6015 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
6016 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 int i;
6022 int
6023 main ()
6024 {
6025
6026 ;
6027 return 0;
6028 }
6029 _ACEOF
6030 if ac_fn_c_try_link "$LINENO"; then :
6031 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6032 else
6033 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
6037 fi
6038
6039
6040 CFLAGS="$xorg_testset_save_CFLAGS"
6041
6042 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044 $as_echo "$supported" >&6; }
6045 if test "$supported" = "yes" ; then
6046 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6047 found="yes"
6048 fi
6049 fi
6050
6051
6052
6053
6054
6055
6056
6057 xorg_testset_save_CFLAGS="$CFLAGS"
6058
6059 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 int i;
6069 _ACEOF
6070 if ac_fn_c_try_compile "$LINENO"; then :
6071 xorg_cv_cc_flag_unknown_warning_option=yes
6072 else
6073 xorg_cv_cc_flag_unknown_warning_option=no
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080 CFLAGS="$xorg_testset_save_CFLAGS"
6081 fi
6082
6083 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086 fi
6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 int i;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 xorg_cv_cc_flag_unused_command_line_argument=yes
6099 else
6100 xorg_cv_cc_flag_unused_command_line_argument=no
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107 CFLAGS="$xorg_testset_save_CFLAGS"
6108 fi
6109
6110 found="no"
6111
6112 if test $found = "no" ; then
6113 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 fi
6116
6117 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 fi
6120
6121 CFLAGS="$CFLAGS -Wcast-qual"
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6124 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6125 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6126 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 int i;
6132 int
6133 main ()
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_link "$LINENO"; then :
6141 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6142 else
6143 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 fi
6148
6149
6150 CFLAGS="$xorg_testset_save_CFLAGS"
6151
6152 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154 $as_echo "$supported" >&6; }
6155 if test "$supported" = "yes" ; then
6156 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6157 found="yes"
6158 fi
6159 fi
6160
6161
6162
6163
6164
6165
6166
6167 xorg_testset_save_CFLAGS="$CFLAGS"
6168
6169 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 int i;
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 xorg_cv_cc_flag_unknown_warning_option=yes
6182 else
6183 xorg_cv_cc_flag_unknown_warning_option=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6189 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191 fi
6192
6193 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6194 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6196 fi
6197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 int i;
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"; then :
6208 xorg_cv_cc_flag_unused_command_line_argument=yes
6209 else
6210 xorg_cv_cc_flag_unused_command_line_argument=no
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6216 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6217 CFLAGS="$xorg_testset_save_CFLAGS"
6218 fi
6219
6220 found="no"
6221
6222 if test $found = "no" ; then
6223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 fi
6226
6227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 fi
6230
6231 CFLAGS="$CFLAGS -Wmissing-noreturn"
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6234 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6235 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6236 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 int i;
6242 int
6243 main ()
6244 {
6245
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_link "$LINENO"; then :
6251 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6252 else
6253 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext \
6256 conftest$ac_exeext conftest.$ac_ext
6257 fi
6258
6259
6260 CFLAGS="$xorg_testset_save_CFLAGS"
6261
6262 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6264 $as_echo "$supported" >&6; }
6265 if test "$supported" = "yes" ; then
6266 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6267 found="yes"
6268 fi
6269 fi
6270
6271
6272
6273
6274
6275
6276
6277 xorg_testset_save_CFLAGS="$CFLAGS"
6278
6279 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6282 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6283 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 int i;
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 xorg_cv_cc_flag_unknown_warning_option=yes
6292 else
6293 xorg_cv_cc_flag_unknown_warning_option=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6298 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6299 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6300 CFLAGS="$xorg_testset_save_CFLAGS"
6301 fi
6302
6303 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306 fi
6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6309 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6310 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 int i;
6316 _ACEOF
6317 if ac_fn_c_try_compile "$LINENO"; then :
6318 xorg_cv_cc_flag_unused_command_line_argument=yes
6319 else
6320 xorg_cv_cc_flag_unused_command_line_argument=no
6321 fi
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6325 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6326 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6327 CFLAGS="$xorg_testset_save_CFLAGS"
6328 fi
6329
6330 found="no"
6331
6332 if test $found = "no" ; then
6333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 fi
6336
6337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339 fi
6340
6341 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6344 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6345 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6346 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 int i;
6352 int
6353 main ()
6354 {
6355
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6362 else
6363 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 fi
6368
6369
6370 CFLAGS="$xorg_testset_save_CFLAGS"
6371
6372 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6374 $as_echo "$supported" >&6; }
6375 if test "$supported" = "yes" ; then
6376 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6377 found="yes"
6378 fi
6379 fi
6380
6381
6382
6383
6384
6385
6386
6387 xorg_testset_save_CFLAGS="$CFLAGS"
6388
6389 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 int i;
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 xorg_cv_cc_flag_unknown_warning_option=yes
6402 else
6403 xorg_cv_cc_flag_unknown_warning_option=no
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6409 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6410 CFLAGS="$xorg_testset_save_CFLAGS"
6411 fi
6412
6413 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416 fi
6417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 int i;
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"; then :
6428 xorg_cv_cc_flag_unused_command_line_argument=yes
6429 else
6430 xorg_cv_cc_flag_unused_command_line_argument=no
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6436 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6437 CFLAGS="$xorg_testset_save_CFLAGS"
6438 fi
6439
6440 found="no"
6441
6442 if test $found = "no" ; then
6443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6445 fi
6446
6447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449 fi
6450
6451 CFLAGS="$CFLAGS -Wredundant-decls"
6452
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6454 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6455 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6456 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 int i;
6462 int
6463 main ()
6464 {
6465
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"; then :
6471 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6472 else
6473 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6477 fi
6478
6479
6480 CFLAGS="$xorg_testset_save_CFLAGS"
6481
6482 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6484 $as_echo "$supported" >&6; }
6485 if test "$supported" = "yes" ; then
6486 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6487 found="yes"
6488 fi
6489 fi
6490
6491
6492
6493 # These are currently disabled because they are noisy. They will be enabled
6494 # in the future once the codebase is sufficiently modernized to silence
6495 # them. For now, I don't want them to drown out the other warnings.
6496 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6497 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6498 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6499
6500 # Turn some warnings into errors, so we don't accidently get successful builds
6501 # when there are problems that should be fixed.
6502
6503 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6504
6505
6506
6507
6508
6509 xorg_testset_save_CFLAGS="$CFLAGS"
6510
6511 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 int i;
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"; then :
6523 xorg_cv_cc_flag_unknown_warning_option=yes
6524 else
6525 xorg_cv_cc_flag_unknown_warning_option=no
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6531 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6532 CFLAGS="$xorg_testset_save_CFLAGS"
6533 fi
6534
6535 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6536 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6538 fi
6539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 int i;
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 xorg_cv_cc_flag_unused_command_line_argument=yes
6551 else
6552 xorg_cv_cc_flag_unused_command_line_argument=no
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6558 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6559 CFLAGS="$xorg_testset_save_CFLAGS"
6560 fi
6561
6562 found="no"
6563
6564 if test $found = "no" ; then
6565 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567 fi
6568
6569 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571 fi
6572
6573 CFLAGS="$CFLAGS -Werror=implicit"
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6576 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6577 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6578 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 int i;
6584 int
6585 main ()
6586 {
6587
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 if ac_fn_c_try_link "$LINENO"; then :
6593 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6594 else
6595 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599 fi
6600
6601
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603
6604 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6606 $as_echo "$supported" >&6; }
6607 if test "$supported" = "yes" ; then
6608 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6609 found="yes"
6610 fi
6611 fi
6612
6613 if test $found = "no" ; then
6614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616 fi
6617
6618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620 fi
6621
6622 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6625 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6626 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6627 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 int i;
6633 int
6634 main ()
6635 {
6636
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_link "$LINENO"; then :
6642 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6643 else
6644 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 fi
6649
6650
6651 CFLAGS="$xorg_testset_save_CFLAGS"
6652
6653 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6655 $as_echo "$supported" >&6; }
6656 if test "$supported" = "yes" ; then
6657 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6658 found="yes"
6659 fi
6660 fi
6661
6662
6663
6664
6665
6666
6667
6668 xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unknown_warning_option=yes
6683 else
6684 xorg_cv_cc_flag_unknown_warning_option=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697 fi
6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 int i;
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 xorg_cv_cc_flag_unused_command_line_argument=yes
6710 else
6711 xorg_cv_cc_flag_unused_command_line_argument=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6719 fi
6720
6721 found="no"
6722
6723 if test $found = "no" ; then
6724 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726 fi
6727
6728 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 fi
6731
6732 CFLAGS="$CFLAGS -Werror=nonnull"
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6735 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6736 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6737 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 int i;
6743 int
6744 main ()
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6753 else
6754 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
6758 fi
6759
6760
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765 $as_echo "$supported" >&6; }
6766 if test "$supported" = "yes" ; then
6767 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6768 found="yes"
6769 fi
6770 fi
6771
6772
6773
6774
6775
6776
6777
6778 xorg_testset_save_CFLAGS="$CFLAGS"
6779
6780 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6783 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6784 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 int i;
6790 _ACEOF
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792 xorg_cv_cc_flag_unknown_warning_option=yes
6793 else
6794 xorg_cv_cc_flag_unknown_warning_option=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6799 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6800 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6801 CFLAGS="$xorg_testset_save_CFLAGS"
6802 fi
6803
6804 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6805 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807 fi
6808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6810 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6811 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"; then :
6819 xorg_cv_cc_flag_unused_command_line_argument=yes
6820 else
6821 xorg_cv_cc_flag_unused_command_line_argument=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 fi
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6826 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6827 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6828 CFLAGS="$xorg_testset_save_CFLAGS"
6829 fi
6830
6831 found="no"
6832
6833 if test $found = "no" ; then
6834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836 fi
6837
6838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 fi
6841
6842 CFLAGS="$CFLAGS -Werror=init-self"
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6845 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6846 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6847 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int i;
6853 int
6854 main ()
6855 {
6856
6857 ;
6858 return 0;
6859 }
6860 _ACEOF
6861 if ac_fn_c_try_link "$LINENO"; then :
6862 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6863 else
6864 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
6868 fi
6869
6870
6871 CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875 $as_echo "$supported" >&6; }
6876 if test "$supported" = "yes" ; then
6877 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6878 found="yes"
6879 fi
6880 fi
6881
6882
6883
6884
6885
6886
6887
6888 xorg_testset_save_CFLAGS="$CFLAGS"
6889
6890 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6893 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6894 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 int i;
6900 _ACEOF
6901 if ac_fn_c_try_compile "$LINENO"; then :
6902 xorg_cv_cc_flag_unknown_warning_option=yes
6903 else
6904 xorg_cv_cc_flag_unknown_warning_option=no
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6909 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6910 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6911 CFLAGS="$xorg_testset_save_CFLAGS"
6912 fi
6913
6914 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917 fi
6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6920 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6921 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926 int i;
6927 _ACEOF
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 xorg_cv_cc_flag_unused_command_line_argument=yes
6930 else
6931 xorg_cv_cc_flag_unused_command_line_argument=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6936 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6937 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6938 CFLAGS="$xorg_testset_save_CFLAGS"
6939 fi
6940
6941 found="no"
6942
6943 if test $found = "no" ; then
6944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946 fi
6947
6948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950 fi
6951
6952 CFLAGS="$CFLAGS -Werror=main"
6953
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6955 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6956 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6957 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 int i;
6963 int
6964 main ()
6965 {
6966
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_link "$LINENO"; then :
6972 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6973 else
6974 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 fi
6979
6980
6981 CFLAGS="$xorg_testset_save_CFLAGS"
6982
6983 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6985 $as_echo "$supported" >&6; }
6986 if test "$supported" = "yes" ; then
6987 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6988 found="yes"
6989 fi
6990 fi
6991
6992
6993
6994
6995
6996
6997
6998 xorg_testset_save_CFLAGS="$CFLAGS"
6999
7000 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 int i;
7010 _ACEOF
7011 if ac_fn_c_try_compile "$LINENO"; then :
7012 xorg_cv_cc_flag_unknown_warning_option=yes
7013 else
7014 xorg_cv_cc_flag_unknown_warning_option=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7020 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7021 CFLAGS="$xorg_testset_save_CFLAGS"
7022 fi
7023
7024 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7027 fi
7028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int i;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"; then :
7039 xorg_cv_cc_flag_unused_command_line_argument=yes
7040 else
7041 xorg_cv_cc_flag_unused_command_line_argument=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7047 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7048 CFLAGS="$xorg_testset_save_CFLAGS"
7049 fi
7050
7051 found="no"
7052
7053 if test $found = "no" ; then
7054 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056 fi
7057
7058 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 fi
7061
7062 CFLAGS="$CFLAGS -Werror=missing-braces"
7063
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7065 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7066 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
7067 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 int i;
7073 int
7074 main ()
7075 {
7076
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 if ac_fn_c_try_link "$LINENO"; then :
7082 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7083 else
7084 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7088 fi
7089
7090
7091 CFLAGS="$xorg_testset_save_CFLAGS"
7092
7093 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7095 $as_echo "$supported" >&6; }
7096 if test "$supported" = "yes" ; then
7097 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7098 found="yes"
7099 fi
7100 fi
7101
7102
7103
7104
7105
7106
7107
7108 xorg_testset_save_CFLAGS="$CFLAGS"
7109
7110 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7113 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7114 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 int i;
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 xorg_cv_cc_flag_unknown_warning_option=yes
7123 else
7124 xorg_cv_cc_flag_unknown_warning_option=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7129 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7130 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7131 CFLAGS="$xorg_testset_save_CFLAGS"
7132 fi
7133
7134 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7137 fi
7138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7140 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7141 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
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"; then :
7149 xorg_cv_cc_flag_unused_command_line_argument=yes
7150 else
7151 xorg_cv_cc_flag_unused_command_line_argument=no
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 fi
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7156 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7157 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7158 CFLAGS="$xorg_testset_save_CFLAGS"
7159 fi
7160
7161 found="no"
7162
7163 if test $found = "no" ; then
7164 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166 fi
7167
7168 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170 fi
7171
7172 CFLAGS="$CFLAGS -Werror=sequence-point"
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7175 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7176 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7177 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 int i;
7183 int
7184 main ()
7185 {
7186
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7193 else
7194 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 fi
7199
7200
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202
7203 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205 $as_echo "$supported" >&6; }
7206 if test "$supported" = "yes" ; then
7207 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7208 found="yes"
7209 fi
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218 xorg_testset_save_CFLAGS="$CFLAGS"
7219
7220 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 int i;
7230 _ACEOF
7231 if ac_fn_c_try_compile "$LINENO"; then :
7232 xorg_cv_cc_flag_unknown_warning_option=yes
7233 else
7234 xorg_cv_cc_flag_unknown_warning_option=no
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7240 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7241 CFLAGS="$xorg_testset_save_CFLAGS"
7242 fi
7243
7244 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247 fi
7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 int i;
7257 _ACEOF
7258 if ac_fn_c_try_compile "$LINENO"; then :
7259 xorg_cv_cc_flag_unused_command_line_argument=yes
7260 else
7261 xorg_cv_cc_flag_unused_command_line_argument=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7267 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7268 CFLAGS="$xorg_testset_save_CFLAGS"
7269 fi
7270
7271 found="no"
7272
7273 if test $found = "no" ; then
7274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 fi
7277
7278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280 fi
7281
7282 CFLAGS="$CFLAGS -Werror=return-type"
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7285 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7286 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7287 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 int
7294 main ()
7295 {
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7303 else
7304 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7305 fi
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 fi
7309
7310
7311 CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315 $as_echo "$supported" >&6; }
7316 if test "$supported" = "yes" ; then
7317 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7318 found="yes"
7319 fi
7320 fi
7321
7322 if test $found = "no" ; then
7323 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 fi
7326
7327 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 fi
7330
7331 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7334 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7335 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7336 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 int i;
7342 int
7343 main ()
7344 {
7345
7346 ;
7347 return 0;
7348 }
7349 _ACEOF
7350 if ac_fn_c_try_link "$LINENO"; then :
7351 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7352 else
7353 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7357 fi
7358
7359
7360 CFLAGS="$xorg_testset_save_CFLAGS"
7361
7362 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7364 $as_echo "$supported" >&6; }
7365 if test "$supported" = "yes" ; then
7366 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7367 found="yes"
7368 fi
7369 fi
7370
7371
7372
7373
7374
7375
7376
7377 xorg_testset_save_CFLAGS="$CFLAGS"
7378
7379 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"; then :
7391 xorg_cv_cc_flag_unknown_warning_option=yes
7392 else
7393 xorg_cv_cc_flag_unknown_warning_option=no
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7399 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7400 CFLAGS="$xorg_testset_save_CFLAGS"
7401 fi
7402
7403 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406 fi
7407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7415 int i;
7416 _ACEOF
7417 if ac_fn_c_try_compile "$LINENO"; then :
7418 xorg_cv_cc_flag_unused_command_line_argument=yes
7419 else
7420 xorg_cv_cc_flag_unused_command_line_argument=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7426 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7427 CFLAGS="$xorg_testset_save_CFLAGS"
7428 fi
7429
7430 found="no"
7431
7432 if test $found = "no" ; then
7433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435 fi
7436
7437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439 fi
7440
7441 CFLAGS="$CFLAGS -Werror=trigraphs"
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7444 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7445 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7446 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 int i;
7452 int
7453 main ()
7454 {
7455
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"; then :
7461 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7462 else
7463 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7464 fi
7465 rm -f core conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 fi
7468
7469
7470 CFLAGS="$xorg_testset_save_CFLAGS"
7471
7472 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7474 $as_echo "$supported" >&6; }
7475 if test "$supported" = "yes" ; then
7476 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7477 found="yes"
7478 fi
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487 xorg_testset_save_CFLAGS="$CFLAGS"
7488
7489 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 int i;
7499 _ACEOF
7500 if ac_fn_c_try_compile "$LINENO"; then :
7501 xorg_cv_cc_flag_unknown_warning_option=yes
7502 else
7503 xorg_cv_cc_flag_unknown_warning_option=no
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7509 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7510 CFLAGS="$xorg_testset_save_CFLAGS"
7511 fi
7512
7513 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516 fi
7517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 int i;
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"; then :
7528 xorg_cv_cc_flag_unused_command_line_argument=yes
7529 else
7530 xorg_cv_cc_flag_unused_command_line_argument=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 fi
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7536 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7537 CFLAGS="$xorg_testset_save_CFLAGS"
7538 fi
7539
7540 found="no"
7541
7542 if test $found = "no" ; then
7543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 fi
7546
7547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 fi
7550
7551 CFLAGS="$CFLAGS -Werror=array-bounds"
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7554 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7555 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7556 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 int i;
7562 int
7563 main ()
7564 {
7565
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7572 else
7573 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577 fi
7578
7579
7580 CFLAGS="$xorg_testset_save_CFLAGS"
7581
7582 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7584 $as_echo "$supported" >&6; }
7585 if test "$supported" = "yes" ; then
7586 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7587 found="yes"
7588 fi
7589 fi
7590
7591
7592
7593
7594
7595
7596
7597 xorg_testset_save_CFLAGS="$CFLAGS"
7598
7599 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 int i;
7609 _ACEOF
7610 if ac_fn_c_try_compile "$LINENO"; then :
7611 xorg_cv_cc_flag_unknown_warning_option=yes
7612 else
7613 xorg_cv_cc_flag_unknown_warning_option=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7619 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7620 CFLAGS="$xorg_testset_save_CFLAGS"
7621 fi
7622
7623 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626 fi
7627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 int i;
7636 _ACEOF
7637 if ac_fn_c_try_compile "$LINENO"; then :
7638 xorg_cv_cc_flag_unused_command_line_argument=yes
7639 else
7640 xorg_cv_cc_flag_unused_command_line_argument=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7646 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7647 CFLAGS="$xorg_testset_save_CFLAGS"
7648 fi
7649
7650 found="no"
7651
7652 if test $found = "no" ; then
7653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655 fi
7656
7657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659 fi
7660
7661 CFLAGS="$CFLAGS -Werror=write-strings"
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7664 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7665 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7666 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 int i;
7672 int
7673 main ()
7674 {
7675
7676 ;
7677 return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_link "$LINENO"; then :
7681 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7682 else
7683 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7684 fi
7685 rm -f core conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 fi
7688
7689
7690 CFLAGS="$xorg_testset_save_CFLAGS"
7691
7692 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7694 $as_echo "$supported" >&6; }
7695 if test "$supported" = "yes" ; then
7696 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7697 found="yes"
7698 fi
7699 fi
7700
7701
7702
7703
7704
7705
7706
7707 xorg_testset_save_CFLAGS="$CFLAGS"
7708
7709 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7712 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7713 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 int i;
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 xorg_cv_cc_flag_unknown_warning_option=yes
7722 else
7723 xorg_cv_cc_flag_unknown_warning_option=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7728 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7729 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7730 CFLAGS="$xorg_testset_save_CFLAGS"
7731 fi
7732
7733 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736 fi
7737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7739 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7740 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 int i;
7746 _ACEOF
7747 if ac_fn_c_try_compile "$LINENO"; then :
7748 xorg_cv_cc_flag_unused_command_line_argument=yes
7749 else
7750 xorg_cv_cc_flag_unused_command_line_argument=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7755 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7756 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7757 CFLAGS="$xorg_testset_save_CFLAGS"
7758 fi
7759
7760 found="no"
7761
7762 if test $found = "no" ; then
7763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765 fi
7766
7767 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 fi
7770
7771 CFLAGS="$CFLAGS -Werror=address"
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7774 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7775 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7776 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 int i;
7782 int
7783 main ()
7784 {
7785
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 if ac_fn_c_try_link "$LINENO"; then :
7791 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7792 else
7793 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
7797 fi
7798
7799
7800 CFLAGS="$xorg_testset_save_CFLAGS"
7801
7802 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7804 $as_echo "$supported" >&6; }
7805 if test "$supported" = "yes" ; then
7806 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7807 found="yes"
7808 fi
7809 fi
7810
7811
7812
7813
7814
7815
7816
7817 xorg_testset_save_CFLAGS="$CFLAGS"
7818
7819 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 int i;
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 xorg_cv_cc_flag_unknown_warning_option=yes
7832 else
7833 xorg_cv_cc_flag_unknown_warning_option=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7839 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841 fi
7842
7843 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7844 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 int i;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 xorg_cv_cc_flag_unused_command_line_argument=yes
7859 else
7860 xorg_cv_cc_flag_unused_command_line_argument=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7866 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7867 CFLAGS="$xorg_testset_save_CFLAGS"
7868 fi
7869
7870 found="no"
7871
7872 if test $found = "no" ; then
7873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875 fi
7876
7877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879 fi
7880
7881 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7882
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7884 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7885 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7886 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 int i;
7892 int
7893 main ()
7894 {
7895
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_link "$LINENO"; then :
7901 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7902 else
7903 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 fi
7908
7909
7910 CFLAGS="$xorg_testset_save_CFLAGS"
7911
7912 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7914 $as_echo "$supported" >&6; }
7915 if test "$supported" = "yes" ; then
7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7917 found="yes"
7918 fi
7919 fi
7920
7921 if test $found = "no" ; then
7922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 fi
7925
7926 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928 fi
7929
7930 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7931
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7933 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7934 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7935 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 int i;
7941 int
7942 main ()
7943 {
7944
7945 ;
7946 return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7951 else
7952 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 fi
7957
7958
7959 CFLAGS="$xorg_testset_save_CFLAGS"
7960
7961 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7963 $as_echo "$supported" >&6; }
7964 if test "$supported" = "yes" ; then
7965 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7966 found="yes"
7967 fi
7968 fi
7969
7970
7971
7972
7973
7974
7975
7976 xorg_testset_save_CFLAGS="$CFLAGS"
7977
7978 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7981 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7982 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 int i;
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7990 xorg_cv_cc_flag_unknown_warning_option=yes
7991 else
7992 xorg_cv_cc_flag_unknown_warning_option=no
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7997 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7998 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000 fi
8001
8002 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005 fi
8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8008 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8009 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 int i;
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 xorg_cv_cc_flag_unused_command_line_argument=yes
8018 else
8019 xorg_cv_cc_flag_unused_command_line_argument=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8024 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8025 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8026 CFLAGS="$xorg_testset_save_CFLAGS"
8027 fi
8028
8029 found="no"
8030
8031 if test $found = "no" ; then
8032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034 fi
8035
8036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8038 fi
8039
8040 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8043 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8044 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
8045 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 int i;
8051 int
8052 main ()
8053 {
8054
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8061 else
8062 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 fi
8067
8068
8069 CFLAGS="$xorg_testset_save_CFLAGS"
8070
8071 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8073 $as_echo "$supported" >&6; }
8074 if test "$supported" = "yes" ; then
8075 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8076 found="yes"
8077 fi
8078 fi
8079
8080 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8081 else
8082 { $as_echo "$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
8083 $as_echo "$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;}
8084
8085
8086
8087
8088
8089 xorg_testset_save_CFLAGS="$CFLAGS"
8090
8091 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 xorg_cv_cc_flag_unknown_warning_option=yes
8104 else
8105 xorg_cv_cc_flag_unknown_warning_option=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8111 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8112 CFLAGS="$xorg_testset_save_CFLAGS"
8113 fi
8114
8115 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118 fi
8119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 int i;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 xorg_cv_cc_flag_unused_command_line_argument=yes
8131 else
8132 xorg_cv_cc_flag_unused_command_line_argument=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8138 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8139 CFLAGS="$xorg_testset_save_CFLAGS"
8140 fi
8141
8142 found="no"
8143
8144 if test $found = "no" ; then
8145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147 fi
8148
8149 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151 fi
8152
8153 CFLAGS="$CFLAGS -Wimplicit"
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8156 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8157 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8158 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 int
8165 main ()
8166 {
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"; then :
8173 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8174 else
8175 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 fi
8180
8181
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186 $as_echo "$supported" >&6; }
8187 if test "$supported" = "yes" ; then
8188 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8189 found="yes"
8190 fi
8191 fi
8192
8193
8194
8195
8196
8197
8198
8199 xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8210 int i;
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 xorg_cv_cc_flag_unknown_warning_option=yes
8214 else
8215 xorg_cv_cc_flag_unknown_warning_option=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8220 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8221 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8222 CFLAGS="$xorg_testset_save_CFLAGS"
8223 fi
8224
8225 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228 fi
8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8231 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8232 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 int i;
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"; then :
8240 xorg_cv_cc_flag_unused_command_line_argument=yes
8241 else
8242 xorg_cv_cc_flag_unused_command_line_argument=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8247 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8248 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8249 CFLAGS="$xorg_testset_save_CFLAGS"
8250 fi
8251
8252 found="no"
8253
8254 if test $found = "no" ; then
8255 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 fi
8258
8259 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 fi
8262
8263 CFLAGS="$CFLAGS -Wnonnull"
8264
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8266 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8267 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8268 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 int i;
8274 int
8275 main ()
8276 {
8277
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8284 else
8285 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 fi
8290
8291
8292 CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296 $as_echo "$supported" >&6; }
8297 if test "$supported" = "yes" ; then
8298 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8299 found="yes"
8300 fi
8301 fi
8302
8303
8304
8305
8306
8307
8308
8309 xorg_testset_save_CFLAGS="$CFLAGS"
8310
8311 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 int i;
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323 xorg_cv_cc_flag_unknown_warning_option=yes
8324 else
8325 xorg_cv_cc_flag_unknown_warning_option=no
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8331 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8332 CFLAGS="$xorg_testset_save_CFLAGS"
8333 fi
8334
8335 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8336 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338 fi
8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
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"; then :
8350 xorg_cv_cc_flag_unused_command_line_argument=yes
8351 else
8352 xorg_cv_cc_flag_unused_command_line_argument=no
8353 fi
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8358 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8359 CFLAGS="$xorg_testset_save_CFLAGS"
8360 fi
8361
8362 found="no"
8363
8364 if test $found = "no" ; then
8365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 fi
8368
8369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371 fi
8372
8373 CFLAGS="$CFLAGS -Winit-self"
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8376 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8377 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8378 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 int i;
8384 int
8385 main ()
8386 {
8387
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_link "$LINENO"; then :
8393 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8394 else
8395 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8399 fi
8400
8401
8402 CFLAGS="$xorg_testset_save_CFLAGS"
8403
8404 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8406 $as_echo "$supported" >&6; }
8407 if test "$supported" = "yes" ; then
8408 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8409 found="yes"
8410 fi
8411 fi
8412
8413
8414
8415
8416
8417
8418
8419 xorg_testset_save_CFLAGS="$CFLAGS"
8420
8421 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 xorg_cv_cc_flag_unknown_warning_option=yes
8434 else
8435 xorg_cv_cc_flag_unknown_warning_option=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8441 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448 fi
8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 int i;
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 xorg_cv_cc_flag_unused_command_line_argument=yes
8461 else
8462 xorg_cv_cc_flag_unused_command_line_argument=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8468 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8469 CFLAGS="$xorg_testset_save_CFLAGS"
8470 fi
8471
8472 found="no"
8473
8474 if test $found = "no" ; then
8475 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 fi
8478
8479 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481 fi
8482
8483 CFLAGS="$CFLAGS -Wmain"
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8486 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8487 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8488 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 int i;
8494 int
8495 main ()
8496 {
8497
8498 ;
8499 return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8504 else
8505 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 fi
8510
8511
8512 CFLAGS="$xorg_testset_save_CFLAGS"
8513
8514 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516 $as_echo "$supported" >&6; }
8517 if test "$supported" = "yes" ; then
8518 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8519 found="yes"
8520 fi
8521 fi
8522
8523
8524
8525
8526
8527
8528
8529 xorg_testset_save_CFLAGS="$CFLAGS"
8530
8531 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 int i;
8541 _ACEOF
8542 if ac_fn_c_try_compile "$LINENO"; then :
8543 xorg_cv_cc_flag_unknown_warning_option=yes
8544 else
8545 xorg_cv_cc_flag_unknown_warning_option=no
8546 fi
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 fi
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552 CFLAGS="$xorg_testset_save_CFLAGS"
8553 fi
8554
8555 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558 fi
8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 int i;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"; then :
8570 xorg_cv_cc_flag_unused_command_line_argument=yes
8571 else
8572 xorg_cv_cc_flag_unused_command_line_argument=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8577 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8578 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580 fi
8581
8582 found="no"
8583
8584 if test $found = "no" ; then
8585 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 fi
8588
8589 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 fi
8592
8593 CFLAGS="$CFLAGS -Wmissing-braces"
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8596 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8597 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8598 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 int i;
8604 int
8605 main ()
8606 {
8607
8608 ;
8609 return 0;
8610 }
8611 _ACEOF
8612 if ac_fn_c_try_link "$LINENO"; then :
8613 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8614 else
8615 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 fi
8620
8621
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623
8624 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8626 $as_echo "$supported" >&6; }
8627 if test "$supported" = "yes" ; then
8628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8629 found="yes"
8630 fi
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639 xorg_testset_save_CFLAGS="$CFLAGS"
8640
8641 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 int i;
8651 _ACEOF
8652 if ac_fn_c_try_compile "$LINENO"; then :
8653 xorg_cv_cc_flag_unknown_warning_option=yes
8654 else
8655 xorg_cv_cc_flag_unknown_warning_option=no
8656 fi
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8661 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8662 CFLAGS="$xorg_testset_save_CFLAGS"
8663 fi
8664
8665 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8666 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668 fi
8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 int i;
8678 _ACEOF
8679 if ac_fn_c_try_compile "$LINENO"; then :
8680 xorg_cv_cc_flag_unused_command_line_argument=yes
8681 else
8682 xorg_cv_cc_flag_unused_command_line_argument=no
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8688 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8689 CFLAGS="$xorg_testset_save_CFLAGS"
8690 fi
8691
8692 found="no"
8693
8694 if test $found = "no" ; then
8695 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697 fi
8698
8699 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701 fi
8702
8703 CFLAGS="$CFLAGS -Wsequence-point"
8704
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8706 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8707 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8708 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 int i;
8714 int
8715 main ()
8716 {
8717
8718 ;
8719 return 0;
8720 }
8721 _ACEOF
8722 if ac_fn_c_try_link "$LINENO"; then :
8723 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8724 else
8725 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 fi
8730
8731
8732 CFLAGS="$xorg_testset_save_CFLAGS"
8733
8734 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8736 $as_echo "$supported" >&6; }
8737 if test "$supported" = "yes" ; then
8738 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8739 found="yes"
8740 fi
8741 fi
8742
8743
8744
8745
8746
8747
8748
8749 xorg_testset_save_CFLAGS="$CFLAGS"
8750
8751 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8754 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8755 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 int i;
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 xorg_cv_cc_flag_unknown_warning_option=yes
8764 else
8765 xorg_cv_cc_flag_unknown_warning_option=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8770 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8771 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8772 CFLAGS="$xorg_testset_save_CFLAGS"
8773 fi
8774
8775 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 fi
8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8781 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8782 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 int i;
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"; then :
8790 xorg_cv_cc_flag_unused_command_line_argument=yes
8791 else
8792 xorg_cv_cc_flag_unused_command_line_argument=no
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 fi
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8797 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8798 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8799 CFLAGS="$xorg_testset_save_CFLAGS"
8800 fi
8801
8802 found="no"
8803
8804 if test $found = "no" ; then
8805 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807 fi
8808
8809 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811 fi
8812
8813 CFLAGS="$CFLAGS -Wreturn-type"
8814
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8816 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8817 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8818 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 int i;
8824 int
8825 main ()
8826 {
8827
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 if ac_fn_c_try_link "$LINENO"; then :
8833 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8834 else
8835 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 fi
8840
8841
8842 CFLAGS="$xorg_testset_save_CFLAGS"
8843
8844 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8846 $as_echo "$supported" >&6; }
8847 if test "$supported" = "yes" ; then
8848 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8849 found="yes"
8850 fi
8851 fi
8852
8853
8854
8855
8856
8857
8858
8859 xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 _ACEOF
8872 if ac_fn_c_try_compile "$LINENO"; then :
8873 xorg_cv_cc_flag_unknown_warning_option=yes
8874 else
8875 xorg_cv_cc_flag_unknown_warning_option=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883 fi
8884
8885 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8886 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 fi
8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897 int i;
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 xorg_cv_cc_flag_unused_command_line_argument=yes
8901 else
8902 xorg_cv_cc_flag_unused_command_line_argument=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909 CFLAGS="$xorg_testset_save_CFLAGS"
8910 fi
8911
8912 found="no"
8913
8914 if test $found = "no" ; then
8915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917 fi
8918
8919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 fi
8922
8923 CFLAGS="$CFLAGS -Wtrigraphs"
8924
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8926 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8927 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8928 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 int i;
8934 int
8935 main ()
8936 {
8937
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8944 else
8945 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 fi
8950
8951
8952 CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956 $as_echo "$supported" >&6; }
8957 if test "$supported" = "yes" ; then
8958 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8959 found="yes"
8960 fi
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969 xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 int i;
8981 _ACEOF
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983 xorg_cv_cc_flag_unknown_warning_option=yes
8984 else
8985 xorg_cv_cc_flag_unknown_warning_option=no
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992 CFLAGS="$xorg_testset_save_CFLAGS"
8993 fi
8994
8995 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998 fi
8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 int i;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 xorg_cv_cc_flag_unused_command_line_argument=yes
9011 else
9012 xorg_cv_cc_flag_unused_command_line_argument=no
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019 CFLAGS="$xorg_testset_save_CFLAGS"
9020 fi
9021
9022 found="no"
9023
9024 if test $found = "no" ; then
9025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 fi
9028
9029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 fi
9032
9033 CFLAGS="$CFLAGS -Warray-bounds"
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9036 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9037 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
9038 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 int i;
9044 int
9045 main ()
9046 {
9047
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_link "$LINENO"; then :
9053 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9054 else
9055 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 $as_echo "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079 xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 int i;
9091 _ACEOF
9092 if ac_fn_c_try_compile "$LINENO"; then :
9093 xorg_cv_cc_flag_unknown_warning_option=yes
9094 else
9095 xorg_cv_cc_flag_unknown_warning_option=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103 fi
9104
9105 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9106 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 int i;
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 xorg_cv_cc_flag_unused_command_line_argument=yes
9121 else
9122 xorg_cv_cc_flag_unused_command_line_argument=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130 fi
9131
9132 found="no"
9133
9134 if test $found = "no" ; then
9135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 fi
9138
9139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 fi
9142
9143 CFLAGS="$CFLAGS -Wwrite-strings"
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9146 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9147 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9148 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9153 int i;
9154 int
9155 main ()
9156 {
9157
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9164 else
9165 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 fi
9170
9171
9172 CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176 $as_echo "$supported" >&6; }
9177 if test "$supported" = "yes" ; then
9178 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9179 found="yes"
9180 fi
9181 fi
9182
9183
9184
9185
9186
9187
9188
9189 xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 int i;
9201 _ACEOF
9202 if ac_fn_c_try_compile "$LINENO"; then :
9203 xorg_cv_cc_flag_unknown_warning_option=yes
9204 else
9205 xorg_cv_cc_flag_unknown_warning_option=no
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212 CFLAGS="$xorg_testset_save_CFLAGS"
9213 fi
9214
9215 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218 fi
9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 int i;
9228 _ACEOF
9229 if ac_fn_c_try_compile "$LINENO"; then :
9230 xorg_cv_cc_flag_unused_command_line_argument=yes
9231 else
9232 xorg_cv_cc_flag_unused_command_line_argument=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 found="no"
9243
9244 if test $found = "no" ; then
9245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 fi
9248
9249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 fi
9252
9253 CFLAGS="$CFLAGS -Waddress"
9254
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9256 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9257 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9258 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 int
9265 main ()
9266 {
9267
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_link "$LINENO"; then :
9273 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9274 else
9275 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 fi
9280
9281
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286 $as_echo "$supported" >&6; }
9287 if test "$supported" = "yes" ; then
9288 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9289 found="yes"
9290 fi
9291 fi
9292
9293
9294
9295
9296
9297
9298
9299 xorg_testset_save_CFLAGS="$CFLAGS"
9300
9301 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 int i;
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 xorg_cv_cc_flag_unknown_warning_option=yes
9314 else
9315 xorg_cv_cc_flag_unknown_warning_option=no
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9321 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9322 CFLAGS="$xorg_testset_save_CFLAGS"
9323 fi
9324
9325 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 fi
9329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 int i;
9338 _ACEOF
9339 if ac_fn_c_try_compile "$LINENO"; then :
9340 xorg_cv_cc_flag_unused_command_line_argument=yes
9341 else
9342 xorg_cv_cc_flag_unused_command_line_argument=no
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9348 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9349 CFLAGS="$xorg_testset_save_CFLAGS"
9350 fi
9351
9352 found="no"
9353
9354 if test $found = "no" ; then
9355 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357 fi
9358
9359 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 fi
9362
9363 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9366 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9367 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9368 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 int i;
9374 int
9375 main ()
9376 {
9377
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9384 else
9385 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 fi
9390
9391
9392 CFLAGS="$xorg_testset_save_CFLAGS"
9393
9394 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396 $as_echo "$supported" >&6; }
9397 if test "$supported" = "yes" ; then
9398 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9399 found="yes"
9400 fi
9401 fi
9402
9403
9404
9405
9406
9407
9408
9409 xorg_testset_save_CFLAGS="$CFLAGS"
9410
9411 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9420 int i;
9421 _ACEOF
9422 if ac_fn_c_try_compile "$LINENO"; then :
9423 xorg_cv_cc_flag_unknown_warning_option=yes
9424 else
9425 xorg_cv_cc_flag_unknown_warning_option=no
9426 fi
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9431 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9432 CFLAGS="$xorg_testset_save_CFLAGS"
9433 fi
9434
9435 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9438 fi
9439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 int i;
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"; then :
9450 xorg_cv_cc_flag_unused_command_line_argument=yes
9451 else
9452 xorg_cv_cc_flag_unused_command_line_argument=no
9453 fi
9454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9458 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9459 CFLAGS="$xorg_testset_save_CFLAGS"
9460 fi
9461
9462 found="no"
9463
9464 if test $found = "no" ; then
9465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467 fi
9468
9469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9471 fi
9472
9473 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9474
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9476 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9477 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9478 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 int i;
9484 int
9485 main ()
9486 {
9487
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9494 else
9495 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 fi
9500
9501
9502 CFLAGS="$xorg_testset_save_CFLAGS"
9503
9504 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9506 $as_echo "$supported" >&6; }
9507 if test "$supported" = "yes" ; then
9508 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9509 found="yes"
9510 fi
9511 fi
9512
9513
9514 fi
9515
9516
9517
9518
9519
9520
9521 CWARNFLAGS="$BASE_CFLAGS"
9522 if test "x$GCC" = xyes ; then
9523 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9524 fi
9525
9526
9527
9528
9529
9530
9531 # Check whether --enable-strict-compilation was given.
9532 if test "${enable_strict_compilation+set}" = set; then :
9533 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9534 else
9535 STRICT_COMPILE=no
9536 fi
9537
9538
9539 STRICT_CFLAGS=""
9540
9541
9542
9543
9544
9545 xorg_testset_save_CFLAGS="$CFLAGS"
9546
9547 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 int i;
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 xorg_cv_cc_flag_unknown_warning_option=yes
9560 else
9561 xorg_cv_cc_flag_unknown_warning_option=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9567 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9568 CFLAGS="$xorg_testset_save_CFLAGS"
9569 fi
9570
9571 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9572 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574 fi
9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 int i;
9584 _ACEOF
9585 if ac_fn_c_try_compile "$LINENO"; then :
9586 xorg_cv_cc_flag_unused_command_line_argument=yes
9587 else
9588 xorg_cv_cc_flag_unused_command_line_argument=no
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9594 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9595 CFLAGS="$xorg_testset_save_CFLAGS"
9596 fi
9597
9598 found="no"
9599
9600 if test $found = "no" ; then
9601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 fi
9604
9605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 fi
9608
9609 CFLAGS="$CFLAGS -pedantic"
9610
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9612 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9613 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9614 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int i;
9620 int
9621 main ()
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"; then :
9629 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9630 else
9631 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9635 fi
9636
9637
9638 CFLAGS="$xorg_testset_save_CFLAGS"
9639
9640 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9642 $as_echo "$supported" >&6; }
9643 if test "$supported" = "yes" ; then
9644 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9645 found="yes"
9646 fi
9647 fi
9648
9649
9650
9651
9652
9653
9654
9655 xorg_testset_save_CFLAGS="$CFLAGS"
9656
9657 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 int i;
9667 _ACEOF
9668 if ac_fn_c_try_compile "$LINENO"; then :
9669 xorg_cv_cc_flag_unknown_warning_option=yes
9670 else
9671 xorg_cv_cc_flag_unknown_warning_option=no
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9677 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9678 CFLAGS="$xorg_testset_save_CFLAGS"
9679 fi
9680
9681 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9684 fi
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 int i;
9694 _ACEOF
9695 if ac_fn_c_try_compile "$LINENO"; then :
9696 xorg_cv_cc_flag_unused_command_line_argument=yes
9697 else
9698 xorg_cv_cc_flag_unused_command_line_argument=no
9699 fi
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9704 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9705 CFLAGS="$xorg_testset_save_CFLAGS"
9706 fi
9707
9708 found="no"
9709
9710 if test $found = "no" ; then
9711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713 fi
9714
9715 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9717 fi
9718
9719 CFLAGS="$CFLAGS -Werror"
9720
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9722 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9723 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9724 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 int i;
9730 int
9731 main ()
9732 {
9733
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9740 else
9741 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 fi
9746
9747
9748 CFLAGS="$xorg_testset_save_CFLAGS"
9749
9750 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9752 $as_echo "$supported" >&6; }
9753 if test "$supported" = "yes" ; then
9754 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9755 found="yes"
9756 fi
9757 fi
9758
9759 if test $found = "no" ; then
9760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 fi
9763
9764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9766 fi
9767
9768 CFLAGS="$CFLAGS -errwarn"
9769
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9771 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9772 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9773 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 int i;
9779 int
9780 main ()
9781 {
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9789 else
9790 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 fi
9795
9796
9797 CFLAGS="$xorg_testset_save_CFLAGS"
9798
9799 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9801 $as_echo "$supported" >&6; }
9802 if test "$supported" = "yes" ; then
9803 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9804 found="yes"
9805 fi
9806 fi
9807
9808
9809
9810 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9811 # activate it with -Werror, so we add it here explicitly.
9812
9813
9814
9815
9816
9817 xorg_testset_save_CFLAGS="$CFLAGS"
9818
9819 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 int i;
9829 _ACEOF
9830 if ac_fn_c_try_compile "$LINENO"; then :
9831 xorg_cv_cc_flag_unknown_warning_option=yes
9832 else
9833 xorg_cv_cc_flag_unknown_warning_option=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836 fi
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9841 fi
9842
9843 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9844 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846 fi
9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 int i;
9856 _ACEOF
9857 if ac_fn_c_try_compile "$LINENO"; then :
9858 xorg_cv_cc_flag_unused_command_line_argument=yes
9859 else
9860 xorg_cv_cc_flag_unused_command_line_argument=no
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9866 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9867 CFLAGS="$xorg_testset_save_CFLAGS"
9868 fi
9869
9870 found="no"
9871
9872 if test $found = "no" ; then
9873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875 fi
9876
9877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9879 fi
9880
9881 CFLAGS="$CFLAGS -Werror=attributes"
9882
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9884 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9885 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9886 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 int i;
9892 int
9893 main ()
9894 {
9895
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
9901 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9902 else
9903 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 fi
9908
9909
9910 CFLAGS="$xorg_testset_save_CFLAGS"
9911
9912 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914 $as_echo "$supported" >&6; }
9915 if test "$supported" = "yes" ; then
9916 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9917 found="yes"
9918 fi
9919 fi
9920
9921
9922
9923 if test "x$STRICT_COMPILE" = "xyes"; then
9924 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9925 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9926 fi
9927
9928
9929
9930
9931
9932
9933 cat >>confdefs.h <<_ACEOF
9934 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9935 _ACEOF
9936
9937 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9938 if test "x$PVM" = "x"; then
9939 PVM="0"
9940 fi
9941
9942 cat >>confdefs.h <<_ACEOF
9943 #define PACKAGE_VERSION_MINOR $PVM
9944 _ACEOF
9945
9946 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9947 if test "x$PVP" = "x"; then
9948 PVP="0"
9949 fi
9950
9951 cat >>confdefs.h <<_ACEOF
9952 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9953 _ACEOF
9954
9955
9956
9957 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9958 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9959 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9960 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9961
9962
9963
9964
9965 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9966 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9967 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9968 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9969 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9970
9971
9972
9973
9974
9975
9976 if test x$APP_MAN_SUFFIX = x ; then
9977 APP_MAN_SUFFIX=1
9978 fi
9979 if test x$APP_MAN_DIR = x ; then
9980 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9981 fi
9982
9983 if test x$LIB_MAN_SUFFIX = x ; then
9984 LIB_MAN_SUFFIX=3
9985 fi
9986 if test x$LIB_MAN_DIR = x ; then
9987 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9988 fi
9989
9990 if test x$FILE_MAN_SUFFIX = x ; then
9991 case $host_os in
9992 solaris*) FILE_MAN_SUFFIX=4 ;;
9993 *) FILE_MAN_SUFFIX=5 ;;
9994 esac
9995 fi
9996 if test x$FILE_MAN_DIR = x ; then
9997 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9998 fi
9999
10000 if test x$MISC_MAN_SUFFIX = x ; then
10001 case $host_os in
10002 solaris*) MISC_MAN_SUFFIX=5 ;;
10003 *) MISC_MAN_SUFFIX=7 ;;
10004 esac
10005 fi
10006 if test x$MISC_MAN_DIR = x ; then
10007 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10008 fi
10009
10010 if test x$DRIVER_MAN_SUFFIX = x ; then
10011 case $host_os in
10012 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10013 *) DRIVER_MAN_SUFFIX=4 ;;
10014 esac
10015 fi
10016 if test x$DRIVER_MAN_DIR = x ; then
10017 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10018 fi
10019
10020 if test x$ADMIN_MAN_SUFFIX = x ; then
10021 case $host_os in
10022 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10023 *) ADMIN_MAN_SUFFIX=8 ;;
10024 esac
10025 fi
10026 if test x$ADMIN_MAN_DIR = x ; then
10027 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10028 fi
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 XORG_MAN_PAGE="X Version 11"
10045
10046 MAN_SUBSTS="\
10047 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10048 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10049 -e 's|__xservername__|Xorg|g' \
10050 -e 's|__xconfigfile__|xorg.conf|g' \
10051 -e 's|__projectroot__|\$(prefix)|g' \
10052 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10053 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10054 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10055 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10056 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10057 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10058 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10059
10060
10061
10062 # Check whether --enable-silent-rules was given.
10063 if test "${enable_silent_rules+set}" = set; then :
10064 enableval=$enable_silent_rules;
10065 fi
10066
10067 case $enable_silent_rules in
10068 yes) AM_DEFAULT_VERBOSITY=0;;
10069 no) AM_DEFAULT_VERBOSITY=1;;
10070 *) AM_DEFAULT_VERBOSITY=0;;
10071 esac
10072 AM_BACKSLASH='\'
10073
10074
10075
10076 ac_config_headers="$ac_config_headers config.h"
10077
10078
10079
10080
10081 for ac_func in strlcpy getpid
10082 do :
10083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10086 cat >>confdefs.h <<_ACEOF
10087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088 _ACEOF
10089
10090 fi
10091 done
10092
10093
10094
10095 if test "X$prefix" = "XNONE"; then
10096 acl_final_prefix="$ac_default_prefix"
10097 else
10098 acl_final_prefix="$prefix"
10099 fi
10100 if test "X$exec_prefix" = "XNONE"; then
10101 acl_final_exec_prefix='${prefix}'
10102 else
10103 acl_final_exec_prefix="$exec_prefix"
10104 fi
10105 acl_save_prefix="$prefix"
10106 prefix="$acl_final_prefix"
10107 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10108 prefix="$acl_save_prefix"
10109
10110
10111 # Check whether --with-gnu-ld was given.
10112 if test "${with_gnu_ld+set}" = set; then :
10113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10114 else
10115 with_gnu_ld=no
10116 fi
10117
10118 # Prepare PATH_SEPARATOR.
10119 # The user is always right.
10120 if test "${PATH_SEPARATOR+set}" != set; then
10121 echo "#! /bin/sh" >conf$$.sh
10122 echo "exit 0" >>conf$$.sh
10123 chmod +x conf$$.sh
10124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10125 PATH_SEPARATOR=';'
10126 else
10127 PATH_SEPARATOR=:
10128 fi
10129 rm -f conf$$.sh
10130 fi
10131 ac_prog=ld
10132 if test "$GCC" = yes; then
10133 # Check if gcc -print-prog-name=ld gives a path.
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10135 $as_echo_n "checking for ld used by GCC... " >&6; }
10136 case $host in
10137 *-*-mingw*)
10138 # gcc leaves a trailing carriage return which upsets mingw
10139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10140 *)
10141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10142 esac
10143 case $ac_prog in
10144 # Accept absolute paths.
10145 [\\/]* | [A-Za-z]:[\\/]*)
10146 re_direlt='/[^/][^/]*/\.\./'
10147 # Canonicalize the path of ld
10148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10151 done
10152 test -z "$LD" && LD="$ac_prog"
10153 ;;
10154 "")
10155 # If it fails, then pretend we aren't using GCC.
10156 ac_prog=ld
10157 ;;
10158 *)
10159 # If it is relative, then search for the first ld in PATH.
10160 with_gnu_ld=unknown
10161 ;;
10162 esac
10163 elif test "$with_gnu_ld" = yes; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10165 $as_echo_n "checking for GNU ld... " >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10168 $as_echo_n "checking for non-GNU ld... " >&6; }
10169 fi
10170 if ${acl_cv_path_LD+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 if test -z "$LD"; then
10174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10175 for ac_dir in $PATH; do
10176 test -z "$ac_dir" && ac_dir=.
10177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10178 acl_cv_path_LD="$ac_dir/$ac_prog"
10179 # Check to see if the program is GNU ld. I'd rather use --version,
10180 # but apparently some GNU ld's only accept -v.
10181 # Break only if it was the GNU/non-GNU ld that we prefer.
10182 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10183 *GNU* | *'with BFD'*)
10184 test "$with_gnu_ld" != no && break ;;
10185 *)
10186 test "$with_gnu_ld" != yes && break ;;
10187 esac
10188 fi
10189 done
10190 IFS="$ac_save_ifs"
10191 else
10192 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10193 fi
10194 fi
10195
10196 LD="$acl_cv_path_LD"
10197 if test -n "$LD"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10199 $as_echo "$LD" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10203 fi
10204 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10207 if ${acl_cv_prog_gnu_ld+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10211 case `$LD -v 2>&1 </dev/null` in
10212 *GNU* | *'with BFD'*)
10213 acl_cv_prog_gnu_ld=yes ;;
10214 *)
10215 acl_cv_prog_gnu_ld=no ;;
10216 esac
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10219 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10220 with_gnu_ld=$acl_cv_prog_gnu_ld
10221
10222
10223
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10226 $as_echo_n "checking for shared library run path origin... " >&6; }
10227 if ${acl_cv_rpath+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230
10231 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10232 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10233 . ./conftest.sh
10234 rm -f ./conftest.sh
10235 acl_cv_rpath=done
10236
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10239 $as_echo "$acl_cv_rpath" >&6; }
10240 wl="$acl_cv_wl"
10241 libext="$acl_cv_libext"
10242 shlibext="$acl_cv_shlibext"
10243 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10244 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10245 hardcode_direct="$acl_cv_hardcode_direct"
10246 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10247 # Check whether --enable-rpath was given.
10248 if test "${enable_rpath+set}" = set; then :
10249 enableval=$enable_rpath; :
10250 else
10251 enable_rpath=yes
10252 fi
10253
10254
10255
10256 acl_libdirstem=lib
10257 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10258 if test -n "$searchpath"; then
10259 acl_save_IFS="${IFS= }"; IFS=":"
10260 for searchdir in $searchpath; do
10261 if test -d "$searchdir"; then
10262 case "$searchdir" in
10263 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10264 *) searchdir=`cd "$searchdir" && pwd`
10265 case "$searchdir" in
10266 */lib64 ) acl_libdirstem=lib64 ;;
10267 esac ;;
10268 esac
10269 fi
10270 done
10271 IFS="$acl_save_IFS"
10272 fi
10273
10274
10275
10276
10277
10278
10279
10280
10281 use_additional=yes
10282
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10287
10288 eval additional_includedir=\"$includedir\"
10289 eval additional_libdir=\"$libdir\"
10290
10291 exec_prefix="$acl_save_exec_prefix"
10292 prefix="$acl_save_prefix"
10293
10294
10295 # Check whether --with-libiconv-prefix was given.
10296 if test "${with_libiconv_prefix+set}" = set; then :
10297 withval=$with_libiconv_prefix;
10298 if test "X$withval" = "Xno"; then
10299 use_additional=no
10300 else
10301 if test "X$withval" = "X"; then
10302
10303 acl_save_prefix="$prefix"
10304 prefix="$acl_final_prefix"
10305 acl_save_exec_prefix="$exec_prefix"
10306 exec_prefix="$acl_final_exec_prefix"
10307
10308 eval additional_includedir=\"$includedir\"
10309 eval additional_libdir=\"$libdir\"
10310
10311 exec_prefix="$acl_save_exec_prefix"
10312 prefix="$acl_save_prefix"
10313
10314 else
10315 additional_includedir="$withval/include"
10316 additional_libdir="$withval/$acl_libdirstem"
10317 fi
10318 fi
10319
10320 fi
10321
10322 LIBICONV=
10323 LTLIBICONV=
10324 INCICONV=
10325 rpathdirs=
10326 ltrpathdirs=
10327 names_already_handled=
10328 names_next_round='iconv '
10329 while test -n "$names_next_round"; do
10330 names_this_round="$names_next_round"
10331 names_next_round=
10332 for name in $names_this_round; do
10333 already_handled=
10334 for n in $names_already_handled; do
10335 if test "$n" = "$name"; then
10336 already_handled=yes
10337 break
10338 fi
10339 done
10340 if test -z "$already_handled"; then
10341 names_already_handled="$names_already_handled $name"
10342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10343 eval value=\"\$HAVE_LIB$uppername\"
10344 if test -n "$value"; then
10345 if test "$value" = yes; then
10346 eval value=\"\$LIB$uppername\"
10347 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10348 eval value=\"\$LTLIB$uppername\"
10349 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10350 else
10351 :
10352 fi
10353 else
10354 found_dir=
10355 found_la=
10356 found_so=
10357 found_a=
10358 if test $use_additional = yes; then
10359 if test -n "$shlibext" \
10360 && { test -f "$additional_libdir/lib$name.$shlibext" \
10361 || { test "$shlibext" = dll \
10362 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
10363 found_dir="$additional_libdir"
10364 if test -f "$additional_libdir/lib$name.$shlibext"; then
10365 found_so="$additional_libdir/lib$name.$shlibext"
10366 else
10367 found_so="$additional_libdir/lib$name.dll.a"
10368 fi
10369 if test -f "$additional_libdir/lib$name.la"; then
10370 found_la="$additional_libdir/lib$name.la"
10371 fi
10372 else
10373 if test -f "$additional_libdir/lib$name.$libext"; then
10374 found_dir="$additional_libdir"
10375 found_a="$additional_libdir/lib$name.$libext"
10376 if test -f "$additional_libdir/lib$name.la"; then
10377 found_la="$additional_libdir/lib$name.la"
10378 fi
10379 fi
10380 fi
10381 fi
10382 if test "X$found_dir" = "X"; then
10383 for x in $LDFLAGS $LTLIBICONV; do
10384
10385 acl_save_prefix="$prefix"
10386 prefix="$acl_final_prefix"
10387 acl_save_exec_prefix="$exec_prefix"
10388 exec_prefix="$acl_final_exec_prefix"
10389 eval x=\"$x\"
10390 exec_prefix="$acl_save_exec_prefix"
10391 prefix="$acl_save_prefix"
10392
10393 case "$x" in
10394 -L*)
10395 dir=`echo "X$x" | sed -e 's/^X-L//'`
10396 if test -n "$shlibext" \
10397 && { test -f "$dir/lib$name.$shlibext" \
10398 || { test "$shlibext" = dll \
10399 && test -f "$dir/lib$name.dll.a"; }; }; then
10400 found_dir="$dir"
10401 if test -f "$dir/lib$name.$shlibext"; then
10402 found_so="$dir/lib$name.$shlibext"
10403 else
10404 found_so="$dir/lib$name.dll.a"
10405 fi
10406 if test -f "$dir/lib$name.la"; then
10407 found_la="$dir/lib$name.la"
10408 fi
10409 else
10410 if test -f "$dir/lib$name.$libext"; then
10411 found_dir="$dir"
10412 found_a="$dir/lib$name.$libext"
10413 if test -f "$dir/lib$name.la"; then
10414 found_la="$dir/lib$name.la"
10415 fi
10416 fi
10417 fi
10418 ;;
10419 esac
10420 if test "X$found_dir" != "X"; then
10421 break
10422 fi
10423 done
10424 fi
10425 if test "X$found_dir" != "X"; then
10426 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10427 if test "X$found_so" != "X"; then
10428 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10430 else
10431 haveit=
10432 for x in $ltrpathdirs; do
10433 if test "X$x" = "X$found_dir"; then
10434 haveit=yes
10435 break
10436 fi
10437 done
10438 if test -z "$haveit"; then
10439 ltrpathdirs="$ltrpathdirs $found_dir"
10440 fi
10441 if test "$hardcode_direct" = yes; then
10442 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10443 else
10444 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10446 haveit=
10447 for x in $rpathdirs; do
10448 if test "X$x" = "X$found_dir"; then
10449 haveit=yes
10450 break
10451 fi
10452 done
10453 if test -z "$haveit"; then
10454 rpathdirs="$rpathdirs $found_dir"
10455 fi
10456 else
10457 haveit=
10458 for x in $LDFLAGS $LIBICONV; do
10459
10460 acl_save_prefix="$prefix"
10461 prefix="$acl_final_prefix"
10462 acl_save_exec_prefix="$exec_prefix"
10463 exec_prefix="$acl_final_exec_prefix"
10464 eval x=\"$x\"
10465 exec_prefix="$acl_save_exec_prefix"
10466 prefix="$acl_save_prefix"
10467
10468 if test "X$x" = "X-L$found_dir"; then
10469 haveit=yes
10470 break
10471 fi
10472 done
10473 if test -z "$haveit"; then
10474 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10475 fi
10476 if test "$hardcode_minus_L" != no; then
10477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10478 else
10479 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10480 fi
10481 fi
10482 fi
10483 fi
10484 else
10485 if test "X$found_a" != "X"; then
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10487 else
10488 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489 fi
10490 fi
10491 additional_includedir=
10492 case "$found_dir" in
10493 */$acl_libdirstem | */$acl_libdirstem/)
10494 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10495 additional_includedir="$basedir/include"
10496 ;;
10497 esac
10498 if test "X$additional_includedir" != "X"; then
10499 if test "X$additional_includedir" != "X/usr/include"; then
10500 haveit=
10501 if test "X$additional_includedir" = "X/usr/local/include"; then
10502 if test -n "$GCC"; then
10503 case $host_os in
10504 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10505 esac
10506 fi
10507 fi
10508 if test -z "$haveit"; then
10509 for x in $CPPFLAGS $INCICONV; do
10510
10511 acl_save_prefix="$prefix"
10512 prefix="$acl_final_prefix"
10513 acl_save_exec_prefix="$exec_prefix"
10514 exec_prefix="$acl_final_exec_prefix"
10515 eval x=\"$x\"
10516 exec_prefix="$acl_save_exec_prefix"
10517 prefix="$acl_save_prefix"
10518
10519 if test "X$x" = "X-I$additional_includedir"; then
10520 haveit=yes
10521 break
10522 fi
10523 done
10524 if test -z "$haveit"; then
10525 if test -d "$additional_includedir"; then
10526 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10527 fi
10528 fi
10529 fi
10530 fi
10531 fi
10532 if test -n "$found_la"; then
10533 save_libdir="$libdir"
10534 case "$found_la" in
10535 */* | *\\*) . "$found_la" ;;
10536 *) . "./$found_la" ;;
10537 esac
10538 libdir="$save_libdir"
10539 for dep in $dependency_libs; do
10540 case "$dep" in
10541 -L*)
10542 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10543 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10544 haveit=
10545 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10546 if test -n "$GCC"; then
10547 case $host_os in
10548 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10549 esac
10550 fi
10551 fi
10552 if test -z "$haveit"; then
10553 haveit=
10554 for x in $LDFLAGS $LIBICONV; do
10555
10556 acl_save_prefix="$prefix"
10557 prefix="$acl_final_prefix"
10558 acl_save_exec_prefix="$exec_prefix"
10559 exec_prefix="$acl_final_exec_prefix"
10560 eval x=\"$x\"
10561 exec_prefix="$acl_save_exec_prefix"
10562 prefix="$acl_save_prefix"
10563
10564 if test "X$x" = "X-L$additional_libdir"; then
10565 haveit=yes
10566 break
10567 fi
10568 done
10569 if test -z "$haveit"; then
10570 if test -d "$additional_libdir"; then
10571 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10572 fi
10573 fi
10574 haveit=
10575 for x in $LDFLAGS $LTLIBICONV; do
10576
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10581 eval x=\"$x\"
10582 exec_prefix="$acl_save_exec_prefix"
10583 prefix="$acl_save_prefix"
10584
10585 if test "X$x" = "X-L$additional_libdir"; then
10586 haveit=yes
10587 break
10588 fi
10589 done
10590 if test -z "$haveit"; then
10591 if test -d "$additional_libdir"; then
10592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10593 fi
10594 fi
10595 fi
10596 fi
10597 ;;
10598 -R*)
10599 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10600 if test "$enable_rpath" != no; then
10601 haveit=
10602 for x in $rpathdirs; do
10603 if test "X$x" = "X$dir"; then
10604 haveit=yes
10605 break
10606 fi
10607 done
10608 if test -z "$haveit"; then
10609 rpathdirs="$rpathdirs $dir"
10610 fi
10611 haveit=
10612 for x in $ltrpathdirs; do
10613 if test "X$x" = "X$dir"; then
10614 haveit=yes
10615 break
10616 fi
10617 done
10618 if test -z "$haveit"; then
10619 ltrpathdirs="$ltrpathdirs $dir"
10620 fi
10621 fi
10622 ;;
10623 -l*)
10624 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10625 ;;
10626 *.la)
10627 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628 ;;
10629 *)
10630 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10632 ;;
10633 esac
10634 done
10635 fi
10636 else
10637 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10639 fi
10640 fi
10641 fi
10642 done
10643 done
10644 if test "X$rpathdirs" != "X"; then
10645 if test -n "$hardcode_libdir_separator"; then
10646 alldirs=
10647 for found_dir in $rpathdirs; do
10648 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10649 done
10650 acl_save_libdir="$libdir"
10651 libdir="$alldirs"
10652 eval flag=\"$hardcode_libdir_flag_spec\"
10653 libdir="$acl_save_libdir"
10654 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10655 else
10656 for found_dir in $rpathdirs; do
10657 acl_save_libdir="$libdir"
10658 libdir="$found_dir"
10659 eval flag=\"$hardcode_libdir_flag_spec\"
10660 libdir="$acl_save_libdir"
10661 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10662 done
10663 fi
10664 fi
10665 if test "X$ltrpathdirs" != "X"; then
10666 for found_dir in $ltrpathdirs; do
10667 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10668 done
10669 fi
10670
10671
10672
10673
10674
10675
10676
10677 am_save_CPPFLAGS="$CPPFLAGS"
10678
10679 for element in $INCICONV; do
10680 haveit=
10681 for x in $CPPFLAGS; do
10682
10683 acl_save_prefix="$prefix"
10684 prefix="$acl_final_prefix"
10685 acl_save_exec_prefix="$exec_prefix"
10686 exec_prefix="$acl_final_exec_prefix"
10687 eval x=\"$x\"
10688 exec_prefix="$acl_save_exec_prefix"
10689 prefix="$acl_save_prefix"
10690
10691 if test "X$x" = "X$element"; then
10692 haveit=yes
10693 break
10694 fi
10695 done
10696 if test -z "$haveit"; then
10697 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10698 fi
10699 done
10700
10701
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10703 $as_echo_n "checking for iconv... " >&6; }
10704 if ${am_cv_func_iconv+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707
10708 am_cv_func_iconv="no, consider installing GNU libiconv"
10709 am_cv_lib_iconv=no
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <stdlib.h>
10713 #include <iconv.h>
10714 int
10715 main ()
10716 {
10717 iconv_t cd = iconv_open("","");
10718 iconv(cd,NULL,NULL,NULL,NULL);
10719 iconv_close(cd);
10720 ;
10721 return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725 am_cv_func_iconv=yes
10726 fi
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 if test "$am_cv_func_iconv" != yes; then
10730 am_save_LIBS="$LIBS"
10731 LIBS="$LIBS $LIBICONV"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #include <stdlib.h>
10735 #include <iconv.h>
10736 int
10737 main ()
10738 {
10739 iconv_t cd = iconv_open("","");
10740 iconv(cd,NULL,NULL,NULL,NULL);
10741 iconv_close(cd);
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 am_cv_lib_iconv=yes
10748 am_cv_func_iconv=yes
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 LIBS="$am_save_LIBS"
10753 fi
10754
10755 fi
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10757 $as_echo "$am_cv_func_iconv" >&6; }
10758 if test "$am_cv_func_iconv" = yes; then
10759
10760 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10761
10762 fi
10763 if test "$am_cv_lib_iconv" = yes; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10765 $as_echo_n "checking how to link with libiconv... " >&6; }
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10767 $as_echo "$LIBICONV" >&6; }
10768 else
10769 CPPFLAGS="$am_save_CPPFLAGS"
10770 LIBICONV=
10771 LTLIBICONV=
10772 fi
10773
10774
10775
10776 if test "$am_cv_func_iconv" = yes; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10778 $as_echo_n "checking for iconv declaration... " >&6; }
10779 if ${am_cv_proto_iconv+:} false; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10782
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785
10786 #include <stdlib.h>
10787 #include <iconv.h>
10788 extern
10789 #ifdef __cplusplus
10790 "C"
10791 #endif
10792 #if defined(__STDC__) || defined(__cplusplus)
10793 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10794 #else
10795 size_t iconv();
10796 #endif
10797
10798 int
10799 main ()
10800 {
10801
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"; then :
10807 am_cv_proto_iconv_arg1=""
10808 else
10809 am_cv_proto_iconv_arg1="const"
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812 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);"
10813 fi
10814
10815 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10817 }$am_cv_proto_iconv" >&5
10818 $as_echo "${ac_t:-
10819 }$am_cv_proto_iconv" >&6; }
10820
10821 cat >>confdefs.h <<_ACEOF
10822 #define ICONV_CONST $am_cv_proto_iconv_arg1
10823 _ACEOF
10824
10825 fi
10826
10827
10828
10829 pkg_failed=no
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
10831 $as_echo_n "checking for XCLOCK... " >&6; }
10832
10833 if test -n "$XCLOCK_CFLAGS"; then
10834 pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
10835 elif test -n "$PKG_CONFIG"; then
10836 if test -n "$PKG_CONFIG" && \
10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11\""; } >&5
10838 ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11") 2>&5
10839 ac_status=$?
10840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10841 test $ac_status = 0; }; then
10842 pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11" 2>/dev/null`
10843 else
10844 pkg_failed=yes
10845 fi
10846 else
10847 pkg_failed=untried
10848 fi
10849 if test -n "$XCLOCK_LIBS"; then
10850 pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
10851 elif test -n "$PKG_CONFIG"; then
10852 if test -n "$PKG_CONFIG" && \
10853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11\""; } >&5
10854 ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11") 2>&5
10855 ac_status=$?
10856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10857 test $ac_status = 0; }; then
10858 pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11" 2>/dev/null`
10859 else
10860 pkg_failed=yes
10861 fi
10862 else
10863 pkg_failed=untried
10864 fi
10865
10866
10867
10868 if test $pkg_failed = yes; then
10869
10870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10871 _pkg_short_errors_supported=yes
10872 else
10873 _pkg_short_errors_supported=no
10874 fi
10875 if test $_pkg_short_errors_supported = yes; then
10876 XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu x11" 2>&1`
10877 else
10878 XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu x11" 2>&1`
10879 fi
10880 # Put the nasty error message in config.log where it belongs
10881 echo "$XCLOCK_PKG_ERRORS" >&5
10882
10883 as_fn_error $? "Package requirements (xaw7 xmu x11) were not met:
10884
10885 $XCLOCK_PKG_ERRORS
10886
10887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10888 installed software in a non-standard prefix.
10889
10890 Alternatively, you may set the environment variables XCLOCK_CFLAGS
10891 and XCLOCK_LIBS to avoid the need to call pkg-config.
10892 See the pkg-config man page for more details.
10893 " "$LINENO" 5
10894 elif test $pkg_failed = untried; then
10895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10897 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10898 is in your PATH or set the PKG_CONFIG environment variable to the full
10899 path to pkg-config.
10900
10901 Alternatively, you may set the environment variables XCLOCK_CFLAGS
10902 and XCLOCK_LIBS to avoid the need to call pkg-config.
10903 See the pkg-config man page for more details.
10904
10905 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10906 See \`config.log' for more details" "$LINENO" 5; }
10907 else
10908 XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
10909 XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911 $as_echo "yes" >&6; }
10912 :
10913 fi
10914 XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
10915
10916
10917 # Check whether --with-xft was given.
10918 if test "${with_xft+set}" = set; then :
10919 withval=$with_xft; use_xft="$withval"
10920 else
10921 use_xft="try"
10922 fi
10923
10924 if test x$use_xft != xno ; then
10925
10926 pkg_failed=no
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
10928 $as_echo_n "checking for XFT... " >&6; }
10929
10930 if test -n "$XFT_CFLAGS"; then
10931 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
10932 elif test -n "$PKG_CONFIG"; then
10933 if test -n "$PKG_CONFIG" && \
10934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10935 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10936 ac_status=$?
10937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10938 test $ac_status = 0; }; then
10939 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
10940 else
10941 pkg_failed=yes
10942 fi
10943 else
10944 pkg_failed=untried
10945 fi
10946 if test -n "$XFT_LIBS"; then
10947 pkg_cv_XFT_LIBS="$XFT_LIBS"
10948 elif test -n "$PKG_CONFIG"; then
10949 if test -n "$PKG_CONFIG" && \
10950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
10951 ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
10952 ac_status=$?
10953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10954 test $ac_status = 0; }; then
10955 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
10956 else
10957 pkg_failed=yes
10958 fi
10959 else
10960 pkg_failed=untried
10961 fi
10962
10963
10964
10965 if test $pkg_failed = yes; then
10966
10967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10968 _pkg_short_errors_supported=yes
10969 else
10970 _pkg_short_errors_supported=no
10971 fi
10972 if test $_pkg_short_errors_supported = yes; then
10973 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender xft" 2>&1`
10974 else
10975 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender xft" 2>&1`
10976 fi
10977 # Put the nasty error message in config.log where it belongs
10978 echo "$XFT_PKG_ERRORS" >&5
10979
10980 as_fn_error $? "Package requirements (xrender xft) were not met:
10981
10982 $XFT_PKG_ERRORS
10983
10984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10985 installed software in a non-standard prefix.
10986
10987 Alternatively, you may set the environment variables XFT_CFLAGS
10988 and XFT_LIBS to avoid the need to call pkg-config.
10989 See the pkg-config man page for more details.
10990 " "$LINENO" 5
10991 elif test $pkg_failed = untried; then
10992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10994 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10995 is in your PATH or set the PKG_CONFIG environment variable to the full
10996 path to pkg-config.
10997
10998 Alternatively, you may set the environment variables XFT_CFLAGS
10999 and XFT_LIBS to avoid the need to call pkg-config.
11000 See the pkg-config man page for more details.
11001
11002 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11003 See \`config.log' for more details" "$LINENO" 5; }
11004 else
11005 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
11006 XFT_LIBS=$pkg_cv_XFT_LIBS
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11008 $as_echo "yes" >&6; }
11009 :
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
11012 $as_echo_n "checking for library containing sqrt... " >&6; }
11013 if ${ac_cv_search_sqrt+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 ac_func_search_save_LIBS=$LIBS
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char sqrt ();
11027 int
11028 main ()
11029 {
11030 return sqrt ();
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 for ac_lib in '' m; do
11036 if test -z "$ac_lib"; then
11037 ac_res="none required"
11038 else
11039 ac_res=-l$ac_lib
11040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11041 fi
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_search_sqrt=$ac_res
11044 fi
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext
11047 if ${ac_cv_search_sqrt+:} false; then :
11048 break
11049 fi
11050 done
11051 if ${ac_cv_search_sqrt+:} false; then :
11052
11053 else
11054 ac_cv_search_sqrt=no
11055 fi
11056 rm conftest.$ac_ext
11057 LIBS=$ac_func_search_save_LIBS
11058 fi
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
11060 $as_echo "$ac_cv_search_sqrt" >&6; }
11061 ac_res=$ac_cv_search_sqrt
11062 if test "$ac_res" != no; then :
11063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11064
11065 fi
11066
11067 XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
11068 XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
11069
11070 $as_echo "#define XRENDER 1" >>confdefs.h
11071
11072
11073 $as_echo "#define XFREE86_FT2 1" >>confdefs.h
11074
11075 fi
11076
11077
11078 # Check whether --with-xkb was given.
11079 if test "${with_xkb+set}" = set; then :
11080 withval=$with_xkb; use_xkb="$withval"
11081 else
11082 use_xkb="try"
11083 fi
11084
11085 if test x$use_xkb != xno ; then
11086
11087 pkg_failed=no
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
11089 $as_echo_n "checking for XKB... " >&6; }
11090
11091 if test -n "$XKB_CFLAGS"; then
11092 pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
11093 elif test -n "$PKG_CONFIG"; then
11094 if test -n "$PKG_CONFIG" && \
11095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11096 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11097 ac_status=$?
11098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11099 test $ac_status = 0; }; then
11100 pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
11101 else
11102 pkg_failed=yes
11103 fi
11104 else
11105 pkg_failed=untried
11106 fi
11107 if test -n "$XKB_LIBS"; then
11108 pkg_cv_XKB_LIBS="$XKB_LIBS"
11109 elif test -n "$PKG_CONFIG"; then
11110 if test -n "$PKG_CONFIG" && \
11111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
11112 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
11113 ac_status=$?
11114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115 test $ac_status = 0; }; then
11116 pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
11117 else
11118 pkg_failed=yes
11119 fi
11120 else
11121 pkg_failed=untried
11122 fi
11123
11124
11125
11126 if test $pkg_failed = yes; then
11127
11128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11129 _pkg_short_errors_supported=yes
11130 else
11131 _pkg_short_errors_supported=no
11132 fi
11133 if test $_pkg_short_errors_supported = yes; then
11134 XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile" 2>&1`
11135 else
11136 XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile" 2>&1`
11137 fi
11138 # Put the nasty error message in config.log where it belongs
11139 echo "$XKB_PKG_ERRORS" >&5
11140
11141 as_fn_error $? "Package requirements (xkbfile) were not met:
11142
11143 $XKB_PKG_ERRORS
11144
11145 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11146 installed software in a non-standard prefix.
11147
11148 Alternatively, you may set the environment variables XKB_CFLAGS
11149 and XKB_LIBS to avoid the need to call pkg-config.
11150 See the pkg-config man page for more details.
11151 " "$LINENO" 5
11152 elif test $pkg_failed = untried; then
11153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11155 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11156 is in your PATH or set the PKG_CONFIG environment variable to the full
11157 path to pkg-config.
11158
11159 Alternatively, you may set the environment variables XKB_CFLAGS
11160 and XKB_LIBS to avoid the need to call pkg-config.
11161 See the pkg-config man page for more details.
11162
11163 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11164 See \`config.log' for more details" "$LINENO" 5; }
11165 else
11166 XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
11167 XKB_LIBS=$pkg_cv_XKB_LIBS
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; }
11170 :
11171 fi
11172 XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
11173 XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
11174
11175 $as_echo "#define XKB 1" >>confdefs.h
11176
11177 fi
11178
11179
11180
11181 pkg_failed=no
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11183 $as_echo_n "checking for APPDEFS... " >&6; }
11184
11185 if test -n "$APPDEFS_CFLAGS"; then
11186 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11187 elif test -n "$PKG_CONFIG"; then
11188 if test -n "$PKG_CONFIG" && \
11189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11190 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11191 ac_status=$?
11192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193 test $ac_status = 0; }; then
11194 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11195 else
11196 pkg_failed=yes
11197 fi
11198 else
11199 pkg_failed=untried
11200 fi
11201 if test -n "$APPDEFS_LIBS"; then
11202 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11203 elif test -n "$PKG_CONFIG"; then
11204 if test -n "$PKG_CONFIG" && \
11205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11206 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11207 ac_status=$?
11208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11209 test $ac_status = 0; }; then
11210 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11211 else
11212 pkg_failed=yes
11213 fi
11214 else
11215 pkg_failed=untried
11216 fi
11217
11218
11219
11220 if test $pkg_failed = yes; then
11221
11222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11223 _pkg_short_errors_supported=yes
11224 else
11225 _pkg_short_errors_supported=no
11226 fi
11227 if test $_pkg_short_errors_supported = yes; then
11228 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
11229 else
11230 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
11231 fi
11232 # Put the nasty error message in config.log where it belongs
11233 echo "$APPDEFS_PKG_ERRORS" >&5
11234
11235 as_fn_error $? "Package requirements (xt) were not met:
11236
11237 $APPDEFS_PKG_ERRORS
11238
11239 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11240 installed software in a non-standard prefix.
11241
11242 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11243 and APPDEFS_LIBS to avoid the need to call pkg-config.
11244 See the pkg-config man page for more details.
11245 " "$LINENO" 5
11246 elif test $pkg_failed = untried; then
11247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11249 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11250 is in your PATH or set the PKG_CONFIG environment variable to the full
11251 path to pkg-config.
11252
11253 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11254 and APPDEFS_LIBS to avoid the need to call pkg-config.
11255 See the pkg-config man page for more details.
11256
11257 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11258 See \`config.log' for more details" "$LINENO" 5; }
11259 else
11260 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11261 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263 $as_echo "yes" >&6; }
11264 :
11265 fi
11266 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11267
11268 # Check whether --with-appdefaultdir was given.
11269 if test "${with_appdefaultdir+set}" = set; then :
11270 withval=$with_appdefaultdir; appdefaultdir="$withval"
11271 else
11272 appdefaultdir="${xt_appdefaultdir}"
11273 fi
11274
11275
11276
11277 ac_config_files="$ac_config_files Makefile man/Makefile"
11278
11279 cat >confcache <<\_ACEOF
11280 # This file is a shell script that caches the results of configure
11281 # tests run on this system so they can be shared between configure
11282 # scripts and configure runs, see configure's option --config-cache.
11283 # It is not useful on other systems. If it contains results you don't
11284 # want to keep, you may remove or edit it.
11285 #
11286 # config.status only pays attention to the cache file if you give it
11287 # the --recheck option to rerun configure.
11288 #
11289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11291 # following values.
11292
11293 _ACEOF
11294
11295 # The following way of writing the cache mishandles newlines in values,
11296 # but we know of no workaround that is simple, portable, and efficient.
11297 # So, we kill variables containing newlines.
11298 # Ultrix sh set writes to stderr and can't be redirected directly,
11299 # and sets the high bit in the cache file unless we assign to the vars.
11300 (
11301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11302 eval ac_val=\$$ac_var
11303 case $ac_val in #(
11304 *${as_nl}*)
11305 case $ac_var in #(
11306 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11308 esac
11309 case $ac_var in #(
11310 _ | IFS | as_nl) ;; #(
11311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11312 *) { eval $ac_var=; unset $ac_var;} ;;
11313 esac ;;
11314 esac
11315 done
11316
11317 (set) 2>&1 |
11318 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11319 *${as_nl}ac_space=\ *)
11320 # `set' does not quote correctly, so add quotes: double-quote
11321 # substitution turns \\\\ into \\, and sed turns \\ into \.
11322 sed -n \
11323 "s/'/'\\\\''/g;
11324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11325 ;; #(
11326 *)
11327 # `set' quotes correctly as required by POSIX, so do not add quotes.
11328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11329 ;;
11330 esac |
11331 sort
11332 ) |
11333 sed '
11334 /^ac_cv_env_/b end
11335 t clear
11336 :clear
11337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11338 t end
11339 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11340 :end' >>confcache
11341 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11342 if test -w "$cache_file"; then
11343 if test "x$cache_file" != "x/dev/null"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11345 $as_echo "$as_me: updating cache $cache_file" >&6;}
11346 if test ! -f "$cache_file" || test -h "$cache_file"; then
11347 cat confcache >"$cache_file"
11348 else
11349 case $cache_file in #(
11350 */* | ?:*)
11351 mv -f confcache "$cache_file"$$ &&
11352 mv -f "$cache_file"$$ "$cache_file" ;; #(
11353 *)
11354 mv -f confcache "$cache_file" ;;
11355 esac
11356 fi
11357 fi
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11360 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11361 fi
11362 fi
11363 rm -f confcache
11364
11365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11366 # Let make expand exec_prefix.
11367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11368
11369 DEFS=-DHAVE_CONFIG_H
11370
11371 ac_libobjs=
11372 ac_ltlibobjs=
11373 U=
11374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11375 # 1. Remove the extension, and $U if already installed.
11376 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11377 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11378 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11379 # will be set to the directory where LIBOBJS objects are built.
11380 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11381 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11382 done
11383 LIBOBJS=$ac_libobjs
11384
11385 LTLIBOBJS=$ac_ltlibobjs
11386
11387
11388 if test -n "$EXEEXT"; then
11389 am__EXEEXT_TRUE=
11390 am__EXEEXT_FALSE='#'
11391 else
11392 am__EXEEXT_TRUE='#'
11393 am__EXEEXT_FALSE=
11394 fi
11395
11396 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11397 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11399 fi
11400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11401 as_fn_error $? "conditional \"AMDEP\" was never defined.
11402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11403 fi
11404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11405 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11407 fi
11408
11409 : "${CONFIG_STATUS=./config.status}"
11410 ac_write_fail=0
11411 ac_clean_files_save=$ac_clean_files
11412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11415 as_write_fail=0
11416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11417 #! $SHELL
11418 # Generated by $as_me.
11419 # Run this file to recreate the current configuration.
11420 # Compiler output produced by configure, useful for debugging
11421 # configure, is in config.log if it exists.
11422
11423 debug=false
11424 ac_cs_recheck=false
11425 ac_cs_silent=false
11426
11427 SHELL=\${CONFIG_SHELL-$SHELL}
11428 export SHELL
11429 _ASEOF
11430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11431 ## -------------------- ##
11432 ## M4sh Initialization. ##
11433 ## -------------------- ##
11434
11435 # Be more Bourne compatible
11436 DUALCASE=1; export DUALCASE # for MKS sh
11437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11438 emulate sh
11439 NULLCMD=:
11440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11441 # is contrary to our usage. Disable this feature.
11442 alias -g '${1+"$@"}'='"$@"'
11443 setopt NO_GLOB_SUBST
11444 else
11445 case `(set -o) 2>/dev/null` in #(
11446 *posix*) :
11447 set -o posix ;; #(
11448 *) :
11449 ;;
11450 esac
11451 fi
11452
11453
11454 as_nl='
11455 '
11456 export as_nl
11457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11461 # Prefer a ksh shell builtin over an external printf program on Solaris,
11462 # but without wasting forks for bash or zsh.
11463 if test -z "$BASH_VERSION$ZSH_VERSION" \
11464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11465 as_echo='print -r --'
11466 as_echo_n='print -rn --'
11467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11468 as_echo='printf %s\n'
11469 as_echo_n='printf %s'
11470 else
11471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11473 as_echo_n='/usr/ucb/echo -n'
11474 else
11475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11476 as_echo_n_body='eval
11477 arg=$1;
11478 case $arg in #(
11479 *"$as_nl"*)
11480 expr "X$arg" : "X\\(.*\\)$as_nl";
11481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11482 esac;
11483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11484 '
11485 export as_echo_n_body
11486 as_echo_n='sh -c $as_echo_n_body as_echo'
11487 fi
11488 export as_echo_body
11489 as_echo='sh -c $as_echo_body as_echo'
11490 fi
11491
11492 # The user is always right.
11493 if test "${PATH_SEPARATOR+set}" != set; then
11494 PATH_SEPARATOR=:
11495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11497 PATH_SEPARATOR=';'
11498 }
11499 fi
11500
11501
11502 # IFS
11503 # We need space, tab and new line, in precisely that order. Quoting is
11504 # there to prevent editors from complaining about space-tab.
11505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11506 # splitting by setting IFS to empty value.)
11507 IFS=" "" $as_nl"
11508
11509 # Find who we are. Look in the path if we contain no directory separator.
11510 as_myself=
11511 case $0 in #((
11512 *[\\/]* ) as_myself=$0 ;;
11513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11519 done
11520 IFS=$as_save_IFS
11521
11522 ;;
11523 esac
11524 # We did not find ourselves, most probably we were run as `sh COMMAND'
11525 # in which case we are not to be found in the path.
11526 if test "x$as_myself" = x; then
11527 as_myself=$0
11528 fi
11529 if test ! -f "$as_myself"; then
11530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11531 exit 1
11532 fi
11533
11534 # Unset variables that we do not need and which cause bugs (e.g. in
11535 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11536 # suppresses any "Segmentation fault" message there. '((' could
11537 # trigger a bug in pdksh 5.2.14.
11538 for as_var in BASH_ENV ENV MAIL MAILPATH
11539 do eval test x\${$as_var+set} = xset \
11540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11541 done
11542 PS1='$ '
11543 PS2='> '
11544 PS4='+ '
11545
11546 # NLS nuisances.
11547 LC_ALL=C
11548 export LC_ALL
11549 LANGUAGE=C
11550 export LANGUAGE
11551
11552 # CDPATH.
11553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11554
11555
11556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11557 # ----------------------------------------
11558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11560 # script with STATUS, using 1 if that was 0.
11561 as_fn_error ()
11562 {
11563 as_status=$1; test $as_status -eq 0 && as_status=1
11564 if test "$4"; then
11565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11567 fi
11568 $as_echo "$as_me: error: $2" >&2
11569 as_fn_exit $as_status
11570 } # as_fn_error
11571
11572
11573 # as_fn_set_status STATUS
11574 # -----------------------
11575 # Set $? to STATUS, without forking.
11576 as_fn_set_status ()
11577 {
11578 return $1
11579 } # as_fn_set_status
11580
11581 # as_fn_exit STATUS
11582 # -----------------
11583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11584 as_fn_exit ()
11585 {
11586 set +e
11587 as_fn_set_status $1
11588 exit $1
11589 } # as_fn_exit
11590
11591 # as_fn_unset VAR
11592 # ---------------
11593 # Portably unset VAR.
11594 as_fn_unset ()
11595 {
11596 { eval $1=; unset $1;}
11597 }
11598 as_unset=as_fn_unset
11599 # as_fn_append VAR VALUE
11600 # ----------------------
11601 # Append the text in VALUE to the end of the definition contained in VAR. Take
11602 # advantage of any shell optimizations that allow amortized linear growth over
11603 # repeated appends, instead of the typical quadratic growth present in naive
11604 # implementations.
11605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11606 eval 'as_fn_append ()
11607 {
11608 eval $1+=\$2
11609 }'
11610 else
11611 as_fn_append ()
11612 {
11613 eval $1=\$$1\$2
11614 }
11615 fi # as_fn_append
11616
11617 # as_fn_arith ARG...
11618 # ------------------
11619 # Perform arithmetic evaluation on the ARGs, and store the result in the
11620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11621 # must be portable across $(()) and expr.
11622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11623 eval 'as_fn_arith ()
11624 {
11625 as_val=$(( $* ))
11626 }'
11627 else
11628 as_fn_arith ()
11629 {
11630 as_val=`expr "$@" || test $? -eq 1`
11631 }
11632 fi # as_fn_arith
11633
11634
11635 if expr a : '\(a\)' >/dev/null 2>&1 &&
11636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11637 as_expr=expr
11638 else
11639 as_expr=false
11640 fi
11641
11642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11643 as_basename=basename
11644 else
11645 as_basename=false
11646 fi
11647
11648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11649 as_dirname=dirname
11650 else
11651 as_dirname=false
11652 fi
11653
11654 as_me=`$as_basename -- "$0" ||
11655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11656 X"$0" : 'X\(//\)$' \| \
11657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11658 $as_echo X/"$0" |
11659 sed '/^.*\/\([^/][^/]*\)\/*$/{
11660 s//\1/
11661 q
11662 }
11663 /^X\/\(\/\/\)$/{
11664 s//\1/
11665 q
11666 }
11667 /^X\/\(\/\).*/{
11668 s//\1/
11669 q
11670 }
11671 s/.*/./; q'`
11672
11673 # Avoid depending upon Character Ranges.
11674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11677 as_cr_digits='0123456789'
11678 as_cr_alnum=$as_cr_Letters$as_cr_digits
11679
11680 ECHO_C= ECHO_N= ECHO_T=
11681 case `echo -n x` in #(((((
11682 -n*)
11683 case `echo 'xy\c'` in
11684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11685 xy) ECHO_C='\c';;
11686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11687 ECHO_T=' ';;
11688 esac;;
11689 *)
11690 ECHO_N='-n';;
11691 esac
11692
11693 rm -f conf$$ conf$$.exe conf$$.file
11694 if test -d conf$$.dir; then
11695 rm -f conf$$.dir/conf$$.file
11696 else
11697 rm -f conf$$.dir
11698 mkdir conf$$.dir 2>/dev/null
11699 fi
11700 if (echo >conf$$.file) 2>/dev/null; then
11701 if ln -s conf$$.file conf$$ 2>/dev/null; then
11702 as_ln_s='ln -s'
11703 # ... but there are two gotchas:
11704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11706 # In both cases, we have to default to `cp -p'.
11707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11708 as_ln_s='cp -p'
11709 elif ln conf$$.file conf$$ 2>/dev/null; then
11710 as_ln_s=ln
11711 else
11712 as_ln_s='cp -p'
11713 fi
11714 else
11715 as_ln_s='cp -p'
11716 fi
11717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11718 rmdir conf$$.dir 2>/dev/null
11719
11720
11721 # as_fn_mkdir_p
11722 # -------------
11723 # Create "$as_dir" as a directory, including parents if necessary.
11724 as_fn_mkdir_p ()
11725 {
11726
11727 case $as_dir in #(
11728 -*) as_dir=./$as_dir;;
11729 esac
11730 test -d "$as_dir" || eval $as_mkdir_p || {
11731 as_dirs=
11732 while :; do
11733 case $as_dir in #(
11734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11735 *) as_qdir=$as_dir;;
11736 esac
11737 as_dirs="'$as_qdir' $as_dirs"
11738 as_dir=`$as_dirname -- "$as_dir" ||
11739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11740 X"$as_dir" : 'X\(//\)[^/]' \| \
11741 X"$as_dir" : 'X\(//\)$' \| \
11742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11743 $as_echo X"$as_dir" |
11744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11745 s//\1/
11746 q
11747 }
11748 /^X\(\/\/\)[^/].*/{
11749 s//\1/
11750 q
11751 }
11752 /^X\(\/\/\)$/{
11753 s//\1/
11754 q
11755 }
11756 /^X\(\/\).*/{
11757 s//\1/
11758 q
11759 }
11760 s/.*/./; q'`
11761 test -d "$as_dir" && break
11762 done
11763 test -z "$as_dirs" || eval "mkdir $as_dirs"
11764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11765
11766
11767 } # as_fn_mkdir_p
11768 if mkdir -p . 2>/dev/null; then
11769 as_mkdir_p='mkdir -p "$as_dir"'
11770 else
11771 test -d ./-p && rmdir ./-p
11772 as_mkdir_p=false
11773 fi
11774
11775 if test -x / >/dev/null 2>&1; then
11776 as_test_x='test -x'
11777 else
11778 if ls -dL / >/dev/null 2>&1; then
11779 as_ls_L_option=L
11780 else
11781 as_ls_L_option=
11782 fi
11783 as_test_x='
11784 eval sh -c '\''
11785 if test -d "$1"; then
11786 test -d "$1/.";
11787 else
11788 case $1 in #(
11789 -*)set "./$1";;
11790 esac;
11791 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11792 ???[sx]*):;;*)false;;esac;fi
11793 '\'' sh
11794 '
11795 fi
11796 as_executable_p=$as_test_x
11797
11798 # Sed expression to map a string onto a valid CPP name.
11799 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11800
11801 # Sed expression to map a string onto a valid variable name.
11802 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11803
11804
11805 exec 6>&1
11806 ## ----------------------------------- ##
11807 ## Main body of $CONFIG_STATUS script. ##
11808 ## ----------------------------------- ##
11809 _ASEOF
11810 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11811
11812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11813 # Save the log message, to keep $0 and so on meaningful, and to
11814 # report actual input values of CONFIG_FILES etc. instead of their
11815 # values after options handling.
11816 ac_log="
11817 This file was extended by xclock $as_me 1.0.6, which was
11818 generated by GNU Autoconf 2.68. Invocation command line was
11819
11820 CONFIG_FILES = $CONFIG_FILES
11821 CONFIG_HEADERS = $CONFIG_HEADERS
11822 CONFIG_LINKS = $CONFIG_LINKS
11823 CONFIG_COMMANDS = $CONFIG_COMMANDS
11824 $ $0 $@
11825
11826 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11827 "
11828
11829 _ACEOF
11830
11831 case $ac_config_files in *"
11832 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11833 esac
11834
11835 case $ac_config_headers in *"
11836 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11837 esac
11838
11839
11840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841 # Files that config.status was made for.
11842 config_files="$ac_config_files"
11843 config_headers="$ac_config_headers"
11844 config_commands="$ac_config_commands"
11845
11846 _ACEOF
11847
11848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11849 ac_cs_usage="\
11850 \`$as_me' instantiates files and other configuration actions
11851 from templates according to the current configuration. Unless the files
11852 and actions are specified as TAGs, all are instantiated by default.
11853
11854 Usage: $0 [OPTION]... [TAG]...
11855
11856 -h, --help print this help, then exit
11857 -V, --version print version number and configuration settings, then exit
11858 --config print configuration, then exit
11859 -q, --quiet, --silent
11860 do not print progress messages
11861 -d, --debug don't remove temporary files
11862 --recheck update $as_me by reconfiguring in the same conditions
11863 --file=FILE[:TEMPLATE]
11864 instantiate the configuration file FILE
11865 --header=FILE[:TEMPLATE]
11866 instantiate the configuration header FILE
11867
11868 Configuration files:
11869 $config_files
11870
11871 Configuration headers:
11872 $config_headers
11873
11874 Configuration commands:
11875 $config_commands
11876
11877 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11878
11879 _ACEOF
11880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11881 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11882 ac_cs_version="\\
11883 xclock config.status 1.0.6
11884 configured by $0, generated by GNU Autoconf 2.68,
11885 with options \\"\$ac_cs_config\\"
11886
11887 Copyright (C) 2010 Free Software Foundation, Inc.
11888 This config.status script is free software; the Free Software Foundation
11889 gives unlimited permission to copy, distribute and modify it."
11890
11891 ac_pwd='$ac_pwd'
11892 srcdir='$srcdir'
11893 INSTALL='$INSTALL'
11894 MKDIR_P='$MKDIR_P'
11895 AWK='$AWK'
11896 test -n "\$AWK" || AWK=awk
11897 _ACEOF
11898
11899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900 # The default lists apply if the user does not specify any file.
11901 ac_need_defaults=:
11902 while test $# != 0
11903 do
11904 case $1 in
11905 --*=?*)
11906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11908 ac_shift=:
11909 ;;
11910 --*=)
11911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11912 ac_optarg=
11913 ac_shift=:
11914 ;;
11915 *)
11916 ac_option=$1
11917 ac_optarg=$2
11918 ac_shift=shift
11919 ;;
11920 esac
11921
11922 case $ac_option in
11923 # Handling of the options.
11924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11925 ac_cs_recheck=: ;;
11926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11927 $as_echo "$ac_cs_version"; exit ;;
11928 --config | --confi | --conf | --con | --co | --c )
11929 $as_echo "$ac_cs_config"; exit ;;
11930 --debug | --debu | --deb | --de | --d | -d )
11931 debug=: ;;
11932 --file | --fil | --fi | --f )
11933 $ac_shift
11934 case $ac_optarg in
11935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11936 '') as_fn_error $? "missing file argument" ;;
11937 esac
11938 as_fn_append CONFIG_FILES " '$ac_optarg'"
11939 ac_need_defaults=false;;
11940 --header | --heade | --head | --hea )
11941 $ac_shift
11942 case $ac_optarg in
11943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11944 esac
11945 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11946 ac_need_defaults=false;;
11947 --he | --h)
11948 # Conflict between --help and --header
11949 as_fn_error $? "ambiguous option: \`$1'
11950 Try \`$0 --help' for more information.";;
11951 --help | --hel | -h )
11952 $as_echo "$ac_cs_usage"; exit ;;
11953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11954 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11955 ac_cs_silent=: ;;
11956
11957 # This is an error.
11958 -*) as_fn_error $? "unrecognized option: \`$1'
11959 Try \`$0 --help' for more information." ;;
11960
11961 *) as_fn_append ac_config_targets " $1"
11962 ac_need_defaults=false ;;
11963
11964 esac
11965 shift
11966 done
11967
11968 ac_configure_extra_args=
11969
11970 if $ac_cs_silent; then
11971 exec 6>/dev/null
11972 ac_configure_extra_args="$ac_configure_extra_args --silent"
11973 fi
11974
11975 _ACEOF
11976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11977 if \$ac_cs_recheck; then
11978 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11979 shift
11980 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11981 CONFIG_SHELL='$SHELL'
11982 export CONFIG_SHELL
11983 exec "\$@"
11984 fi
11985
11986 _ACEOF
11987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988 exec 5>>config.log
11989 {
11990 echo
11991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11992 ## Running $as_me. ##
11993 _ASBOX
11994 $as_echo "$ac_log"
11995 } >&5
11996
11997 _ACEOF
11998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11999 #
12000 # INIT-COMMANDS
12001 #
12002 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12003
12004 _ACEOF
12005
12006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007
12008 # Handling of arguments.
12009 for ac_config_target in $ac_config_targets
12010 do
12011 case $ac_config_target in
12012 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12013 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12015 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12016
12017 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12018 esac
12019 done
12020
12021
12022 # If the user did not use the arguments to specify the items to instantiate,
12023 # then the envvar interface is used. Set only those that are not.
12024 # We use the long form for the default assignment because of an extremely
12025 # bizarre bug on SunOS 4.1.3.
12026 if $ac_need_defaults; then
12027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12030 fi
12031
12032 # Have a temporary directory for convenience. Make it in the build tree
12033 # simply because there is no reason against having it here, and in addition,
12034 # creating and moving files from /tmp can sometimes cause problems.
12035 # Hook for its removal unless debugging.
12036 # Note that there is a small window in which the directory will not be cleaned:
12037 # after its creation but before its name has been assigned to `$tmp'.
12038 $debug ||
12039 {
12040 tmp= ac_tmp=
12041 trap 'exit_status=$?
12042 : "${ac_tmp:=$tmp}"
12043 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12044 ' 0
12045 trap 'as_fn_exit 1' 1 2 13 15
12046 }
12047 # Create a (secure) tmp directory for tmp files.
12048
12049 {
12050 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12051 test -d "$tmp"
12052 } ||
12053 {
12054 tmp=./conf$$-$RANDOM
12055 (umask 077 && mkdir "$tmp")
12056 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12057 ac_tmp=$tmp
12058
12059 # Set up the scripts for CONFIG_FILES section.
12060 # No need to generate them if there are no CONFIG_FILES.
12061 # This happens for instance with `./config.status config.h'.
12062 if test -n "$CONFIG_FILES"; then
12063
12064
12065 ac_cr=`echo X | tr X '\015'`
12066 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12067 # But we know of no other shell where ac_cr would be empty at this
12068 # point, so we can use a bashism as a fallback.
12069 if test "x$ac_cr" = x; then
12070 eval ac_cr=\$\'\\r\'
12071 fi
12072 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12073 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12074 ac_cs_awk_cr='\\r'
12075 else
12076 ac_cs_awk_cr=$ac_cr
12077 fi
12078
12079 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12080 _ACEOF
12081
12082
12083 {
12084 echo "cat >conf$$subs.awk <<_ACEOF" &&
12085 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12086 echo "_ACEOF"
12087 } >conf$$subs.sh ||
12088 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12089 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12090 ac_delim='%!_!# '
12091 for ac_last_try in false false false false false :; do
12092 . ./conf$$subs.sh ||
12093 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12094
12095 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12096 if test $ac_delim_n = $ac_delim_num; then
12097 break
12098 elif $ac_last_try; then
12099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12100 else
12101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12102 fi
12103 done
12104 rm -f conf$$subs.sh
12105
12106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12108 _ACEOF
12109 sed -n '
12110 h
12111 s/^/S["/; s/!.*/"]=/
12112 p
12113 g
12114 s/^[^!]*!//
12115 :repl
12116 t repl
12117 s/'"$ac_delim"'$//
12118 t delim
12119 :nl
12120 h
12121 s/\(.\{148\}\)..*/\1/
12122 t more1
12123 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12124 p
12125 n
12126 b repl
12127 :more1
12128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12129 p
12130 g
12131 s/.\{148\}//
12132 t nl
12133 :delim
12134 h
12135 s/\(.\{148\}\)..*/\1/
12136 t more2
12137 s/["\\]/\\&/g; s/^/"/; s/$/"/
12138 p
12139 b
12140 :more2
12141 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12142 p
12143 g
12144 s/.\{148\}//
12145 t delim
12146 ' <conf$$subs.awk | sed '
12147 /^[^""]/{
12148 N
12149 s/\n//
12150 }
12151 ' >>$CONFIG_STATUS || ac_write_fail=1
12152 rm -f conf$$subs.awk
12153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12154 _ACAWK
12155 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12156 for (key in S) S_is_set[key] = 1
12157 FS = ""
12158
12159 }
12160 {
12161 line = $ 0
12162 nfields = split(line, field, "@")
12163 substed = 0
12164 len = length(field[1])
12165 for (i = 2; i < nfields; i++) {
12166 key = field[i]
12167 keylen = length(key)
12168 if (S_is_set[key]) {
12169 value = S[key]
12170 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12171 len += length(value) + length(field[++i])
12172 substed = 1
12173 } else
12174 len += 1 + keylen
12175 }
12176
12177 print line
12178 }
12179
12180 _ACAWK
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12184 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12185 else
12186 cat
12187 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12188 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12189 _ACEOF
12190
12191 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12192 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12193 # trailing colons and then remove the whole line if VPATH becomes empty
12194 # (actually we leave an empty line to preserve line numbers).
12195 if test "x$srcdir" = x.; then
12196 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12197 h
12198 s///
12199 s/^/:/
12200 s/[ ]*$/:/
12201 s/:\$(srcdir):/:/g
12202 s/:\${srcdir}:/:/g
12203 s/:@srcdir@:/:/g
12204 s/^:*//
12205 s/:*$//
12206 x
12207 s/\(=[ ]*\).*/\1/
12208 G
12209 s/\n//
12210 s/^[^=]*=[ ]*$//
12211 }'
12212 fi
12213
12214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12215 fi # test -n "$CONFIG_FILES"
12216
12217 # Set up the scripts for CONFIG_HEADERS section.
12218 # No need to generate them if there are no CONFIG_HEADERS.
12219 # This happens for instance with `./config.status Makefile'.
12220 if test -n "$CONFIG_HEADERS"; then
12221 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12222 BEGIN {
12223 _ACEOF
12224
12225 # Transform confdefs.h into an awk script `defines.awk', embedded as
12226 # here-document in config.status, that substitutes the proper values into
12227 # config.h.in to produce config.h.
12228
12229 # Create a delimiter string that does not exist in confdefs.h, to ease
12230 # handling of long lines.
12231 ac_delim='%!_!# '
12232 for ac_last_try in false false :; do
12233 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12234 if test -z "$ac_tt"; then
12235 break
12236 elif $ac_last_try; then
12237 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12238 else
12239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12240 fi
12241 done
12242
12243 # For the awk script, D is an array of macro values keyed by name,
12244 # likewise P contains macro parameters if any. Preserve backslash
12245 # newline sequences.
12246
12247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12248 sed -n '
12249 s/.\{148\}/&'"$ac_delim"'/g
12250 t rset
12251 :rset
12252 s/^[ ]*#[ ]*define[ ][ ]*/ /
12253 t def
12254 d
12255 :def
12256 s/\\$//
12257 t bsnl
12258 s/["\\]/\\&/g
12259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12260 D["\1"]=" \3"/p
12261 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12262 d
12263 :bsnl
12264 s/["\\]/\\&/g
12265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12266 D["\1"]=" \3\\\\\\n"\\/p
12267 t cont
12268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12269 t cont
12270 d
12271 :cont
12272 n
12273 s/.\{148\}/&'"$ac_delim"'/g
12274 t clear
12275 :clear
12276 s/\\$//
12277 t bsnlc
12278 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12279 d
12280 :bsnlc
12281 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12282 b cont
12283 ' <confdefs.h | sed '
12284 s/'"$ac_delim"'/"\\\
12285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12286
12287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288 for (key in D) D_is_set[key] = 1
12289 FS = ""
12290 }
12291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12292 line = \$ 0
12293 split(line, arg, " ")
12294 if (arg[1] == "#") {
12295 defundef = arg[2]
12296 mac1 = arg[3]
12297 } else {
12298 defundef = substr(arg[1], 2)
12299 mac1 = arg[2]
12300 }
12301 split(mac1, mac2, "(") #)
12302 macro = mac2[1]
12303 prefix = substr(line, 1, index(line, defundef) - 1)
12304 if (D_is_set[macro]) {
12305 # Preserve the white space surrounding the "#".
12306 print prefix "define", macro P[macro] D[macro]
12307 next
12308 } else {
12309 # Replace #undef with comments. This is necessary, for example,
12310 # in the case of _POSIX_SOURCE, which is predefined and required
12311 # on some systems where configure will not decide to define it.
12312 if (defundef == "undef") {
12313 print "/*", prefix defundef, macro, "*/"
12314 next
12315 }
12316 }
12317 }
12318 { print }
12319 _ACAWK
12320 _ACEOF
12321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12322 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12323 fi # test -n "$CONFIG_HEADERS"
12324
12325
12326 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12327 shift
12328 for ac_tag
12329 do
12330 case $ac_tag in
12331 :[FHLC]) ac_mode=$ac_tag; continue;;
12332 esac
12333 case $ac_mode$ac_tag in
12334 :[FHL]*:*);;
12335 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12336 :[FH]-) ac_tag=-:-;;
12337 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12338 esac
12339 ac_save_IFS=$IFS
12340 IFS=:
12341 set x $ac_tag
12342 IFS=$ac_save_IFS
12343 shift
12344 ac_file=$1
12345 shift
12346
12347 case $ac_mode in
12348 :L) ac_source=$1;;
12349 :[FH])
12350 ac_file_inputs=
12351 for ac_f
12352 do
12353 case $ac_f in
12354 -) ac_f="$ac_tmp/stdin";;
12355 *) # Look for the file first in the build tree, then in the source tree
12356 # (if the path is not absolute). The absolute path cannot be DOS-style,
12357 # because $ac_f cannot contain `:'.
12358 test -f "$ac_f" ||
12359 case $ac_f in
12360 [\\/$]*) false;;
12361 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12362 esac ||
12363 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12364 esac
12365 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12366 as_fn_append ac_file_inputs " '$ac_f'"
12367 done
12368
12369 # Let's still pretend it is `configure' which instantiates (i.e., don't
12370 # use $as_me), people would be surprised to read:
12371 # /* config.h. Generated by config.status. */
12372 configure_input='Generated from '`
12373 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12374 `' by configure.'
12375 if test x"$ac_file" != x-; then
12376 configure_input="$ac_file. $configure_input"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12378 $as_echo "$as_me: creating $ac_file" >&6;}
12379 fi
12380 # Neutralize special characters interpreted by sed in replacement strings.
12381 case $configure_input in #(
12382 *\&* | *\|* | *\\* )
12383 ac_sed_conf_input=`$as_echo "$configure_input" |
12384 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12385 *) ac_sed_conf_input=$configure_input;;
12386 esac
12387
12388 case $ac_tag in
12389 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12391 esac
12392 ;;
12393 esac
12394
12395 ac_dir=`$as_dirname -- "$ac_file" ||
12396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12397 X"$ac_file" : 'X\(//\)[^/]' \| \
12398 X"$ac_file" : 'X\(//\)$' \| \
12399 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12400 $as_echo X"$ac_file" |
12401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12402 s//\1/
12403 q
12404 }
12405 /^X\(\/\/\)[^/].*/{
12406 s//\1/
12407 q
12408 }
12409 /^X\(\/\/\)$/{
12410 s//\1/
12411 q
12412 }
12413 /^X\(\/\).*/{
12414 s//\1/
12415 q
12416 }
12417 s/.*/./; q'`
12418 as_dir="$ac_dir"; as_fn_mkdir_p
12419 ac_builddir=.
12420
12421 case "$ac_dir" in
12422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12423 *)
12424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12425 # A ".." for each directory in $ac_dir_suffix.
12426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12427 case $ac_top_builddir_sub in
12428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12430 esac ;;
12431 esac
12432 ac_abs_top_builddir=$ac_pwd
12433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12434 # for backward compatibility:
12435 ac_top_builddir=$ac_top_build_prefix
12436
12437 case $srcdir in
12438 .) # We are building in place.
12439 ac_srcdir=.
12440 ac_top_srcdir=$ac_top_builddir_sub
12441 ac_abs_top_srcdir=$ac_pwd ;;
12442 [\\/]* | ?:[\\/]* ) # Absolute name.
12443 ac_srcdir=$srcdir$ac_dir_suffix;
12444 ac_top_srcdir=$srcdir
12445 ac_abs_top_srcdir=$srcdir ;;
12446 *) # Relative name.
12447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12448 ac_top_srcdir=$ac_top_build_prefix$srcdir
12449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12450 esac
12451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12452
12453
12454 case $ac_mode in
12455 :F)
12456 #
12457 # CONFIG_FILE
12458 #
12459
12460 case $INSTALL in
12461 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12462 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12463 esac
12464 ac_MKDIR_P=$MKDIR_P
12465 case $MKDIR_P in
12466 [\\/$]* | ?:[\\/]* ) ;;
12467 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12468 esac
12469 _ACEOF
12470
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472 # If the template does not know about datarootdir, expand it.
12473 # FIXME: This hack should be removed a few years after 2.60.
12474 ac_datarootdir_hack=; ac_datarootdir_seen=
12475 ac_sed_dataroot='
12476 /datarootdir/ {
12477 p
12478 q
12479 }
12480 /@datadir@/p
12481 /@docdir@/p
12482 /@infodir@/p
12483 /@localedir@/p
12484 /@mandir@/p'
12485 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12486 *datarootdir*) ac_datarootdir_seen=yes;;
12487 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12489 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12490 _ACEOF
12491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492 ac_datarootdir_hack='
12493 s&@datadir@&$datadir&g
12494 s&@docdir@&$docdir&g
12495 s&@infodir@&$infodir&g
12496 s&@localedir@&$localedir&g
12497 s&@mandir@&$mandir&g
12498 s&\\\${datarootdir}&$datarootdir&g' ;;
12499 esac
12500 _ACEOF
12501
12502 # Neutralize VPATH when `$srcdir' = `.'.
12503 # Shell code in configure.ac might set extrasub.
12504 # FIXME: do we really want to maintain this feature?
12505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12506 ac_sed_extra="$ac_vpsub
12507 $extrasub
12508 _ACEOF
12509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12510 :t
12511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12512 s|@configure_input@|$ac_sed_conf_input|;t t
12513 s&@top_builddir@&$ac_top_builddir_sub&;t t
12514 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12515 s&@srcdir@&$ac_srcdir&;t t
12516 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12517 s&@top_srcdir@&$ac_top_srcdir&;t t
12518 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12519 s&@builddir@&$ac_builddir&;t t
12520 s&@abs_builddir@&$ac_abs_builddir&;t t
12521 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12522 s&@INSTALL@&$ac_INSTALL&;t t
12523 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12524 $ac_datarootdir_hack
12525 "
12526 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12527 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12528
12529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12530 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12531 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12532 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12534 which seems to be undefined. Please make sure it is defined" >&5
12535 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12536 which seems to be undefined. Please make sure it is defined" >&2;}
12537
12538 rm -f "$ac_tmp/stdin"
12539 case $ac_file in
12540 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12541 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12542 esac \
12543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12544 ;;
12545 :H)
12546 #
12547 # CONFIG_HEADER
12548 #
12549 if test x"$ac_file" != x-; then
12550 {
12551 $as_echo "/* $configure_input */" \
12552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12553 } >"$ac_tmp/config.h" \
12554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12555 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12557 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12558 else
12559 rm -f "$ac_file"
12560 mv "$ac_tmp/config.h" "$ac_file" \
12561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12562 fi
12563 else
12564 $as_echo "/* $configure_input */" \
12565 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12566 || as_fn_error $? "could not create -" "$LINENO" 5
12567 fi
12568 # Compute "$ac_file"'s index in $config_headers.
12569 _am_arg="$ac_file"
12570 _am_stamp_count=1
12571 for _am_header in $config_headers :; do
12572 case $_am_header in
12573 $_am_arg | $_am_arg:* )
12574 break ;;
12575 * )
12576 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12577 esac
12578 done
12579 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12580 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581 X"$_am_arg" : 'X\(//\)[^/]' \| \
12582 X"$_am_arg" : 'X\(//\)$' \| \
12583 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12584 $as_echo X"$_am_arg" |
12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12586 s//\1/
12587 q
12588 }
12589 /^X\(\/\/\)[^/].*/{
12590 s//\1/
12591 q
12592 }
12593 /^X\(\/\/\)$/{
12594 s//\1/
12595 q
12596 }
12597 /^X\(\/\).*/{
12598 s//\1/
12599 q
12600 }
12601 s/.*/./; q'`/stamp-h$_am_stamp_count
12602 ;;
12603
12604 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12605 $as_echo "$as_me: executing $ac_file commands" >&6;}
12606 ;;
12607 esac
12608
12609
12610 case $ac_file$ac_mode in
12611 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12612 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12613 # are listed without --file. Let's play safe and only enable the eval
12614 # if we detect the quoting.
12615 case $CONFIG_FILES in
12616 *\'*) eval set x "$CONFIG_FILES" ;;
12617 *) set x $CONFIG_FILES ;;
12618 esac
12619 shift
12620 for mf
12621 do
12622 # Strip MF so we end up with the name of the file.
12623 mf=`echo "$mf" | sed -e 's/:.*$//'`
12624 # Check whether this is an Automake generated Makefile or not.
12625 # We used to match only the files named `Makefile.in', but
12626 # some people rename them; so instead we look at the file content.
12627 # Grep'ing the first line is not enough: some people post-process
12628 # each Makefile.in and add a new line on top of each file to say so.
12629 # Grep'ing the whole file is not good either: AIX grep has a line
12630 # limit of 2048, but all sed's we know have understand at least 4000.
12631 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12632 dirpart=`$as_dirname -- "$mf" ||
12633 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12634 X"$mf" : 'X\(//\)[^/]' \| \
12635 X"$mf" : 'X\(//\)$' \| \
12636 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12637 $as_echo X"$mf" |
12638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12639 s//\1/
12640 q
12641 }
12642 /^X\(\/\/\)[^/].*/{
12643 s//\1/
12644 q
12645 }
12646 /^X\(\/\/\)$/{
12647 s//\1/
12648 q
12649 }
12650 /^X\(\/\).*/{
12651 s//\1/
12652 q
12653 }
12654 s/.*/./; q'`
12655 else
12656 continue
12657 fi
12658 # Extract the definition of DEPDIR, am__include, and am__quote
12659 # from the Makefile without running `make'.
12660 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12661 test -z "$DEPDIR" && continue
12662 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12663 test -z "am__include" && continue
12664 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12665 # When using ansi2knr, U may be empty or an underscore; expand it
12666 U=`sed -n 's/^U = //p' < "$mf"`
12667 # Find all dependency output files, they are included files with
12668 # $(DEPDIR) in their names. We invoke sed twice because it is the
12669 # simplest approach to changing $(DEPDIR) to its actual value in the
12670 # expansion.
12671 for file in `sed -n "
12672 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12673 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12674 # Make sure the directory exists.
12675 test -f "$dirpart/$file" && continue
12676 fdir=`$as_dirname -- "$file" ||
12677 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678 X"$file" : 'X\(//\)[^/]' \| \
12679 X"$file" : 'X\(//\)$' \| \
12680 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12681 $as_echo X"$file" |
12682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683 s//\1/
12684 q
12685 }
12686 /^X\(\/\/\)[^/].*/{
12687 s//\1/
12688 q
12689 }
12690 /^X\(\/\/\)$/{
12691 s//\1/
12692 q
12693 }
12694 /^X\(\/\).*/{
12695 s//\1/
12696 q
12697 }
12698 s/.*/./; q'`
12699 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12700 # echo "creating $dirpart/$file"
12701 echo '# dummy' > "$dirpart/$file"
12702 done
12703 done
12704 }
12705 ;;
12706
12707 esac
12708 done # for ac_tag
12709
12710
12711 as_fn_exit 0
12712 _ACEOF
12713 ac_clean_files=$ac_clean_files_save
12714
12715 test $ac_write_fail = 0 ||
12716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12717
12718
12719 # configure is writing to config.log, and then calls config.status.
12720 # config.status does its own redirection, appending to config.log.
12721 # Unfortunately, on DOS this fails, as config.log is still kept open
12722 # by configure, so config.status won't be able to write to it; its
12723 # output is simply discarded. So we exec the FD to /dev/null,
12724 # effectively closing config.log, so it can be properly (re)opened and
12725 # appended to by config.status. When coming back to configure, we
12726 # need to make the FD available again.
12727 if test "$no_create" != yes; then
12728 ac_cs_success=:
12729 ac_config_status_args=
12730 test "$silent" = yes &&
12731 ac_config_status_args="$ac_config_status_args --quiet"
12732 exec 5>/dev/null
12733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12734 exec 5>>config.log
12735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12736 # would make configure fail if this is the last instruction.
12737 $ac_cs_success || as_fn_exit 1
12738 fi
12739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12742 fi
12743
12744