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 rgb 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='rgb'
563 PACKAGE_TARNAME='rgb'
564 PACKAGE_VERSION='1.0.6'
565 PACKAGE_STRING='rgb 1.0.6'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='am__EXEEXT_FALSE
607 am__EXEEXT_TRUE
608 LTLIBOBJS
609 LIBOBJS
610 RGB_DB_FALSE
611 RGB_DB_TRUE
612 RGB_DB_FILES
613 RGB_DB_TYPE
614 XORG_LIBS
615 XORG_CFLAGS
616 db_dir
617 db_file
618 RGB_LIBS
619 RGB_CFLAGS
620 MAN_SUBSTS
621 XORG_MAN_PAGE
622 ADMIN_MAN_DIR
623 DRIVER_MAN_DIR
624 MISC_MAN_DIR
625 FILE_MAN_DIR
626 LIB_MAN_DIR
627 APP_MAN_DIR
628 ADMIN_MAN_SUFFIX
629 DRIVER_MAN_SUFFIX
630 MISC_MAN_SUFFIX
631 FILE_MAN_SUFFIX
632 LIB_MAN_SUFFIX
633 APP_MAN_SUFFIX
634 SED
635 host_os
636 host_vendor
637 host_cpu
638 host
639 build_os
640 build_vendor
641 build_cpu
642 build
643 INSTALL_CMD
644 PKG_CONFIG
645 CHANGELOG_CMD
646 STRICT_CFLAGS
647 CWARNFLAGS
648 BASE_CFLAGS
649 AM_BACKSLASH
650 AM_DEFAULT_VERBOSITY
651 AM_DEFAULT_V
652 AM_V
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 am__nodep
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
668 AWK
669 mkdir_p
670 MKDIR_P
671 INSTALL_STRIP_PROGRAM
672 STRIP
673 install_sh
674 MAKEINFO
675 AUTOHEADER
676 AUTOMAKE
677 AUTOCONF
678 ACLOCAL
679 VERSION
680 PACKAGE
681 CYGPATH_W
682 am__isrc
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 EGREP
687 GREP
688 CPP
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
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_dependency_tracking
738 enable_silent_rules
739 enable_selective_werror
740 enable_strict_compilation
741 with_rgb_db_dir
742 with_rgb_db_type
743 '
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP
753 PKG_CONFIG
754 RGB_CFLAGS
755 RGB_LIBS
756 XORG_CFLAGS
757 XORG_LIBS'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *=) ac_optarg= ;;
822 *) ac_optarg=yes ;;
823 esac
824
825 # Accept the important Cygnus configure options, so we can diagnose typos.
826
827 case $ac_dashdash$ac_option in
828 --)
829 ac_dashdash=yes ;;
830
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 bindir=$ac_optarg ;;
835
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
840
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
847
848 --config-cache | -C)
849 cache_file=config.cache ;;
850
851 -datadir | --datadir | --datadi | --datad)
852 ac_prev=datadir ;;
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
855
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
862
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
871 *"
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=no ;;
878
879 -docdir | --docdir | --docdi | --doc | --do)
880 ac_prev=docdir ;;
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 docdir=$ac_optarg ;;
883
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 ac_prev=dvidir ;;
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 dvidir=$ac_optarg ;;
888
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=\$ac_optarg ;;
904
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
913
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
916 with_gas=yes ;;
917
918 -help | --help | --hel | --he | -h)
919 ac_init_help=long ;;
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
924
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
929
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 ac_prev=htmldir ;;
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 | --ht=*)
934 htmldir=$ac_optarg ;;
935
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
942
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 ac_prev=infodir ;;
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
947
948 -libdir | --libdir | --libdi | --libd)
949 ac_prev=libdir ;;
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 libdir=$ac_optarg ;;
952
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
959
960 -localedir | --localedir | --localedi | --localed | --locale)
961 ac_prev=localedir ;;
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
964
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
971
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 ac_prev=mandir ;;
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 mandir=$ac_optarg ;;
976
977 -nfp | --nfp | --nf)
978 # Obsolete; use --without-fp.
979 with_fp=no ;;
980
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
983 no_create=yes ;;
984
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 no_recursion=yes ;;
988
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
997
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 ac_prev=prefix ;;
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1002
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1009
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1016
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1033
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 ac_prev=pdfdir ;;
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1038
1039 -psdir | --psdir | --psdi | --psd | --ps)
1040 ac_prev=psdir ;;
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 psdir=$ac_optarg ;;
1043
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 silent=yes ;;
1047
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 ac_prev=sbindir ;;
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 | --sbi=* | --sb=*)
1052 sbindir=$ac_optarg ;;
1053
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1057 | --sha | --sh)
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 | --sha=* | --sh=*)
1063 sharedstatedir=$ac_optarg ;;
1064
1065 -site | --site | --sit)
1066 ac_prev=site ;;
1067 -site=* | --site=* | --sit=*)
1068 site=$ac_optarg ;;
1069
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 ac_prev=srcdir ;;
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1074
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1081
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1086
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 verbose=yes ;;
1089
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1092
1093 -with-* | --with-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=\$ac_optarg ;;
1108
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=no ;;
1124
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1128
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1135
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1142
1143 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1145 ;;
1146
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153 esac
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1156
1157 *)
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 ;;
1164
1165 esac
1166 done
1167
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error $? "missing argument to $ac_option"
1171 fi
1172
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1175 no) ;;
1176 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 esac
1179 fi
1180
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1186 do
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1189 case $ac_val in
1190 */ )
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1193 esac
1194 # Be sure to have absolute directory names.
1195 case $ac_val in
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 esac
1199 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used" >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1216 cross_compiling=yes
1217 fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error $? "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error $? "pwd does not report name of working directory"
1232
1233
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)[^/].*/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\).*/{
1257 s//\1/
1258 q
1259 }
1260 s/.*/./; q'`
1261 srcdir=$ac_confdir
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 srcdir=..
1264 fi
1265 else
1266 ac_srcdir_defaulted=no
1267 fi
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271 fi
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 ac_abs_confdir=`(
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275 pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1299 cat <<_ACEOF
1300 \`configure' configures rgb 1.0.6 to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking ...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/rgb]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1353 _ACEOF
1354
1355 cat <<\_ACEOF
1356
1357 Program names:
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361
1362 System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of rgb 1.0.6:";;
1371 esac
1372 cat <<\_ACEOF
1373
1374 Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-dependency-tracking
1379 do not reject slow dependency extractors
1380 --disable-dependency-tracking
1381 speeds up one-time build
1382 --enable-silent-rules less verbose build output (undo: "make V=1")
1383 --disable-silent-rules verbose build output (undo: "make V=0")
1384 --disable-selective-werror
1385 Turn off selective compiler errors. (default:
1386 enabled)
1387 --enable-strict-compilation
1388 Enable all warnings from compiler and make them
1389 errors (default: disabled)
1390
1391 Optional Packages:
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1394 --with-rgb-db-dir=<path>
1395 rgb database location (default is
1396 ${datadir}/X11/rgb)
1397 --with-rgb-db-type=(text|dbm|ndbm)
1398 rgb database type (default is text)
1399
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1408 CPP C preprocessor
1409 PKG_CONFIG path to pkg-config utility
1410 RGB_CFLAGS C compiler flags for RGB, overriding pkg-config
1411 RGB_LIBS linker flags for RGB, overriding pkg-config
1412 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1413 XORG_LIBS linker flags for XORG, overriding pkg-config
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
1429 ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480 cat <<\_ACEOF
1481 rgb configure 1.0.6
1482 generated by GNU Autoconf 2.68
1483
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488 exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527 fi
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_try_cpp LINENO
1534 # ----------------------
1535 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_cpp ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_cpp conftest.$ac_ext"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } > conftest.i && {
1555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 }; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564 fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568 } # ac_fn_c_try_cpp
1569
1570 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571 # -------------------------------------------------------
1572 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573 # the include files in INCLUDES and setting the cache variable VAR
1574 # accordingly.
1575 ac_fn_c_check_header_mongrel ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if eval \${$3+:} false; then :
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580 $as_echo_n "checking for $2... " >&6; }
1581 if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1583 fi
1584 eval ac_res=\$$3
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1587 else
1588 # Is the header compilable?
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590 $as_echo_n "checking $2 usability... " >&6; }
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1593 $4
1594 #include <$2>
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"; then :
1597 ac_header_compiler=yes
1598 else
1599 ac_header_compiler=no
1600 fi
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603 $as_echo "$ac_header_compiler" >&6; }
1604
1605 # Is the header present?
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607 $as_echo_n "checking $2 presence... " >&6; }
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_cpp "$LINENO"; then :
1613 ac_header_preproc=yes
1614 else
1615 ac_header_preproc=no
1616 fi
1617 rm -f conftest.err conftest.i conftest.$ac_ext
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619 $as_echo "$ac_header_preproc" >&6; }
1620
1621 # So? What about this header?
1622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1623 yes:no: )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628 ;;
1629 no:yes:* )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1633 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1637 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 ( $as_echo "## ---------------------------------------------------------------------- ##
1641 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1642 ## ---------------------------------------------------------------------- ##"
1643 ) | sed "s/^/$as_me: WARNING: /" >&2
1644 ;;
1645 esac
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 eval "$3=\$ac_header_compiler"
1652 fi
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659 } # ac_fn_c_check_header_mongrel
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696 fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1735 # ---------------------------------------------
1736 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1737 # accordingly.
1738 ac_fn_c_check_decl ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 as_decl_name=`echo $2|sed 's/ *(.*//'`
1742 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1744 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 int
1752 main ()
1753 {
1754 #ifndef $as_decl_name
1755 #ifdef __cplusplus
1756 (void) $as_decl_use;
1757 #else
1758 (void) $as_decl_name;
1759 #endif
1760 #endif
1761
1762 ;
1763 return 0;
1764 }
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_decl
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 $as_test_x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1895
1896 It was created by rgb $as_me 1.0.6, which was
1897 generated by GNU Autoconf 2.68. Invocation command line was
1898
1899 $ $0 $@
1900
1901 _ACEOF
1902 exec 5>>config.log
1903 {
1904 cat <<_ASUNAME
1905 ## --------- ##
1906 ## Platform. ##
1907 ## --------- ##
1908
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1917
1918 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1919 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1922 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1923 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1924 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1925
1926 _ASUNAME
1927
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 $as_echo "PATH: $as_dir"
1934 done
1935 IFS=$as_save_IFS
1936
1937 } >&5
1938
1939 cat >&5 <<_ACEOF
1940
1941
1942 ## ----------- ##
1943 ## Core tests. ##
1944 ## ----------- ##
1945
1946 _ACEOF
1947
1948
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_configure_args=
1955 ac_configure_args0=
1956 ac_configure_args1=
1957 ac_must_keep_next=false
1958 for ac_pass in 1 2
1959 do
1960 for ac_arg
1961 do
1962 case $ac_arg in
1963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965 | -silent | --silent | --silen | --sile | --sil)
1966 continue ;;
1967 *\'*)
1968 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 esac
1970 case $ac_pass in
1971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972 2)
1973 as_fn_append ac_configure_args1 " '$ac_arg'"
1974 if test $ac_must_keep_next = true; then
1975 ac_must_keep_next=false # Got value, back to normal.
1976 else
1977 case $ac_arg in
1978 *=* | --config-cache | -C | -disable-* | --disable-* \
1979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981 | -with-* | --with-* | -without-* | --without-* | --x)
1982 case "$ac_configure_args0 " in
1983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984 esac
1985 ;;
1986 -* ) ac_must_keep_next=true ;;
1987 esac
1988 fi
1989 as_fn_append ac_configure_args " '$ac_arg'"
1990 ;;
1991 esac
1992 done
1993 done
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1996
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log. We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003 # Save into config.log some information that might help in debugging.
2004 {
2005 echo
2006
2007 $as_echo "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2012 (
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2035 *)
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ;;
2038 esac |
2039 sort
2040 )
2041 echo
2042
2043 $as_echo "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2046 echo
2047 for ac_var in $ac_subst_vars
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056
2057 if test -n "$ac_subst_files"; then
2058 $as_echo "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2061 echo
2062 for ac_var in $ac_subst_files
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071 fi
2072
2073 if test -s confdefs.h; then
2074 $as_echo "## ----------- ##
2075 ## confdefs.h. ##
2076 ## ----------- ##"
2077 echo
2078 cat confdefs.h
2079 echo
2080 fi
2081 test "$ac_signal" != 0 &&
2082 $as_echo "$as_me: caught signal $ac_signal"
2083 $as_echo "$as_me: exit $exit_status"
2084 } >&5
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 exit $exit_status
2088 ' 0
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 done
2092 ac_signal=0
2093
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2096
2097 $as_echo "/* confdefs.h */" > confdefs.h
2098
2099 # Predefined preprocessor variables.
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_NAME "$PACKAGE_NAME"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_STRING "$PACKAGE_STRING"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_URL "$PACKAGE_URL"
2123 _ACEOF
2124
2125
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2128 ac_site_file1=NONE
2129 ac_site_file2=NONE
2130 if test -n "$CONFIG_SITE"; then
2131 # We do not want a PATH search for config.site.
2132 case $CONFIG_SITE in #((
2133 -*) ac_site_file1=./$CONFIG_SITE;;
2134 */*) ac_site_file1=$CONFIG_SITE;;
2135 *) ac_site_file1=./$CONFIG_SITE;;
2136 esac
2137 elif test "x$prefix" != xNONE; then
2138 ac_site_file1=$prefix/share/config.site
2139 ac_site_file2=$prefix/etc/config.site
2140 else
2141 ac_site_file1=$ac_default_prefix/share/config.site
2142 ac_site_file2=$ac_default_prefix/etc/config.site
2143 fi
2144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145 do
2146 test "x$ac_site_file" = xNONE && continue
2147 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150 sed 's/^/| /' "$ac_site_file" >&5
2151 . "$ac_site_file" \
2152 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5; }
2156 fi
2157 done
2158
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special files
2161 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165 case $cache_file in
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2168 esac
2169 fi
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 >$cache_file
2174 fi
2175
2176 # Check that the precious variables saved in the cache have kept the same
2177 # value.
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2185 set,)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,set)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2193 ,);;
2194 *)
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2203 else
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2207 fi
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2212 fi;;
2213 esac
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2216 case $ac_new_val in
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2219 esac
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223 esac
2224 fi
2225 done
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232 fi
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2236
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244
2245 ac_config_headers="$ac_config_headers config.h"
2246
2247 # expand $ac_aux_dir to an absolute path
2248 am_aux_dir=`cd $ac_aux_dir && pwd`
2249
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255 if test -n "$ac_tool_prefix"; then
2256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2259 $as_echo_n "checking for $ac_word... " >&6; }
2260 if ${ac_cv_prog_CC+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2276 fi
2277 done
2278 done
2279 IFS=$as_save_IFS
2280
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2286 $as_echo "$CC" >&6; }
2287 else
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2289 $as_echo "no" >&6; }
2290 fi
2291
2292
2293 fi
2294 if test -z "$ac_cv_prog_CC"; then
2295 ac_ct_CC=$CC
2296 # Extract the first word of "gcc", so it can be a program name with args.
2297 set dummy gcc; ac_word=$2
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2299 $as_echo_n "checking for $ac_word... " >&6; }
2300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test -n "$ac_ct_CC"; then
2304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313 ac_cv_prog_ac_ct_CC="gcc"
2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2316 fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322 fi
2323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2324 if test -n "$ac_ct_CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2326 $as_echo "$ac_ct_CC" >&6; }
2327 else
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2330 fi
2331
2332 if test "x$ac_ct_CC" = x; then
2333 CC=""
2334 else
2335 case $cross_compiling:$ac_tool_warned in
2336 yes:)
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2339 ac_tool_warned=yes ;;
2340 esac
2341 CC=$ac_ct_CC
2342 fi
2343 else
2344 CC="$ac_cv_prog_CC"
2345 fi
2346
2347 if test -z "$CC"; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}cc; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_CC+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_CC="${ac_tool_prefix}cc"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379 $as_echo "$CC" >&6; }
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385
2386 fi
2387 fi
2388 if test -z "$CC"; then
2389 # Extract the first word of "cc", so it can be a program name with args.
2390 set dummy cc; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_CC+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2398 else
2399 ac_prog_rejected=no
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2408 ac_prog_rejected=yes
2409 continue
2410 fi
2411 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
2420 # We found a bogon in the path, so make sure we never use it.
2421 set dummy $ac_cv_prog_CC
2422 shift
2423 if test $# != 0; then
2424 # We chose a different compiler from the bogus one.
2425 # However, it has the same basename, so the bogon will be chosen
2426 # first if we set CC to just the basename; use the full file name.
2427 shift
2428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2429 fi
2430 fi
2431 fi
2432 fi
2433 CC=$ac_cv_prog_CC
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2441
2442
2443 fi
2444 if test -z "$CC"; then
2445 if test -n "$ac_tool_prefix"; then
2446 for ac_prog in cl.exe
2447 do
2448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if ${ac_cv_prog_CC+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2468 fi
2469 done
2470 done
2471 IFS=$as_save_IFS
2472
2473 fi
2474 fi
2475 CC=$ac_cv_prog_CC
2476 if test -n "$CC"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478 $as_echo "$CC" >&6; }
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 $as_echo "no" >&6; }
2482 fi
2483
2484
2485 test -n "$CC" && break
2486 done
2487 fi
2488 if test -z "$CC"; then
2489 ac_ct_CC=$CC
2490 for ac_prog in cl.exe
2491 do
2492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$ac_ct_CC"; then
2500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_CC="$ac_prog"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2522 $as_echo "$ac_ct_CC" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529 test -n "$ac_ct_CC" && break
2530 done
2531
2532 if test "x$ac_ct_CC" = x; then
2533 CC=""
2534 else
2535 case $cross_compiling:$ac_tool_warned in
2536 yes:)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539 ac_tool_warned=yes ;;
2540 esac
2541 CC=$ac_ct_CC
2542 fi
2543 fi
2544
2545 fi
2546
2547
2548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 as_fn_error $? "no acceptable C compiler found in \$PATH
2551 See \`config.log' for more details" "$LINENO" 5; }
2552
2553 # Provide some information about the compiler.
2554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2555 set X $ac_compile
2556 ac_compiler=$2
2557 for ac_option in --version -v -V -qversion; do
2558 { { ac_try="$ac_compiler $ac_option >&5"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 sed '10a\
2569 ... rest of stderr output deleted ...
2570 10q' conftest.err >conftest.er1
2571 cat conftest.er1 >&5
2572 fi
2573 rm -f conftest.er1 conftest.err
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }
2576 done
2577
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580
2581 int
2582 main ()
2583 {
2584
2585 ;
2586 return 0;
2587 }
2588 _ACEOF
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2593 # of exeext.
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2595 $as_echo_n "checking whether the C compiler works... " >&6; }
2596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597
2598 # The possible output files:
2599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2600
2601 ac_rmfiles=
2602 for ac_file in $ac_files
2603 do
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2607 esac
2608 done
2609 rm -f $ac_rmfiles
2610
2611 if { { ac_try="$ac_link_default"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_link_default") 2>&5
2619 ac_status=$?
2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621 test $ac_status = 0; }; then :
2622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2625 # so that the user can short-circuit this test for compilers unknown to
2626 # Autoconf.
2627 for ac_file in $ac_files ''
2628 do
2629 test -f "$ac_file" || continue
2630 case $ac_file in
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2632 ;;
2633 [ab].out )
2634 # We found the default executable, but exeext='' is most
2635 # certainly right.
2636 break;;
2637 *.* )
2638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2639 then :; else
2640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 fi
2642 # We set ac_cv_exeext here because the later test for it is not
2643 # safe: cross compilers may not add the suffix if given an `-o'
2644 # argument, so we may need to know it at that point already.
2645 # Even if this section looks crufty: it has the advantage of
2646 # actually working.
2647 break;;
2648 * )
2649 break;;
2650 esac
2651 done
2652 test "$ac_cv_exeext" = no && ac_cv_exeext=
2653
2654 else
2655 ac_file=''
2656 fi
2657 if test -z "$ac_file"; then :
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 as_fn_error 77 "C compiler cannot create executables
2666 See \`config.log' for more details" "$LINENO" 5; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672 $as_echo_n "checking for C compiler default output file name... " >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674 $as_echo "$ac_file" >&6; }
2675 ac_exeext=$ac_cv_exeext
2676
2677 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2678 ac_clean_files=$ac_clean_files_save
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { { ac_try="$ac_link"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_link") 2>&5
2689 ac_status=$?
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }; then :
2692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2695 # `rm'.
2696 for ac_file in conftest.exe conftest conftest.*; do
2697 test -f "$ac_file" || continue
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 break;;
2702 * ) break;;
2703 esac
2704 done
2705 else
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details" "$LINENO" 5; }
2710 fi
2711 rm -f conftest conftest$ac_cv_exeext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2713 $as_echo "$ac_cv_exeext" >&6; }
2714
2715 rm -f conftest.$ac_ext
2716 EXEEXT=$ac_cv_exeext
2717 ac_exeext=$EXEEXT
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 #include <stdio.h>
2721 int
2722 main ()
2723 {
2724 FILE *f = fopen ("conftest.out", "w");
2725 return ferror (f) || fclose (f) != 0;
2726
2727 ;
2728 return 0;
2729 }
2730 _ACEOF
2731 ac_clean_files="$ac_clean_files conftest.out"
2732 # Check that the compiler produces executables we can run. If not, either
2733 # the compiler is broken, or we cross compile.
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2735 $as_echo_n "checking whether we are cross compiling... " >&6; }
2736 if test "$cross_compiling" != yes; then
2737 { { ac_try="$ac_link"
2738 case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741 esac
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2745 ac_status=$?
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }
2748 if { ac_try='./conftest$ac_cv_exeext'
2749 { { case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_try") 2>&5
2756 ac_status=$?
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }; }; then
2759 cross_compiling=no
2760 else
2761 if test "$cross_compiling" = maybe; then
2762 cross_compiling=yes
2763 else
2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "cannot run C compiled programs.
2767 If you meant to cross compile, use \`--host'.
2768 See \`config.log' for more details" "$LINENO" 5; }
2769 fi
2770 fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2773 $as_echo "$cross_compiling" >&6; }
2774
2775 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2776 ac_clean_files=$ac_clean_files_save
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2778 $as_echo_n "checking for suffix of object files... " >&6; }
2779 if ${ac_cv_objext+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784
2785 int
2786 main ()
2787 {
2788
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.o conftest.obj
2794 if { { ac_try="$ac_compile"
2795 case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_compile") 2>&5
2802 ac_status=$?
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 for ac_file in conftest.o conftest.obj conftest.*; do
2806 test -f "$ac_file" || continue;
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2810 break;;
2811 esac
2812 done
2813 else
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "cannot compute suffix of object files: cannot compile
2820 See \`config.log' for more details" "$LINENO" 5; }
2821 fi
2822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2825 $as_echo "$ac_cv_objext" >&6; }
2826 OBJEXT=$ac_cv_objext
2827 ac_objext=$OBJEXT
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2830 if ${ac_cv_c_compiler_gnu+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2835
2836 int
2837 main ()
2838 {
2839 #ifndef __GNUC__
2840 choke me
2841 #endif
2842
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_c_try_compile "$LINENO"; then :
2848 ac_compiler_gnu=yes
2849 else
2850 ac_compiler_gnu=no
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2858 if test $ac_compiler_gnu = yes; then
2859 GCC=yes
2860 else
2861 GCC=
2862 fi
2863 ac_test_CFLAGS=${CFLAGS+set}
2864 ac_save_CFLAGS=$CFLAGS
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2867 if ${ac_cv_prog_cc_g+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 ac_save_c_werror_flag=$ac_c_werror_flag
2871 ac_c_werror_flag=yes
2872 ac_cv_prog_cc_g=no
2873 CFLAGS="-g"
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2876
2877 int
2878 main ()
2879 {
2880
2881 ;
2882 return 0;
2883 }
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_cv_prog_cc_g=yes
2887 else
2888 CFLAGS=""
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2891
2892 int
2893 main ()
2894 {
2895
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901
2902 else
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2904 CFLAGS="-g"
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2907
2908 int
2909 main ()
2910 {
2911
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 if ac_fn_c_try_compile "$LINENO"; then :
2917 ac_cv_prog_cc_g=yes
2918 fi
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 ac_c_werror_flag=$ac_save_c_werror_flag
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2927 $as_echo "$ac_cv_prog_cc_g" >&6; }
2928 if test "$ac_test_CFLAGS" = set; then
2929 CFLAGS=$ac_save_CFLAGS
2930 elif test $ac_cv_prog_cc_g = yes; then
2931 if test "$GCC" = yes; then
2932 CFLAGS="-g -O2"
2933 else
2934 CFLAGS="-g"
2935 fi
2936 else
2937 if test "$GCC" = yes; then
2938 CFLAGS="-O2"
2939 else
2940 CFLAGS=
2941 fi
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2945 if ${ac_cv_prog_cc_c89+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 ac_cv_prog_cc_c89=no
2949 ac_save_CC=$CC
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2952 #include <stdarg.h>
2953 #include <stdio.h>
2954 #include <sys/types.h>
2955 #include <sys/stat.h>
2956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2957 struct buf { int x; };
2958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2959 static char *e (p, i)
2960 char **p;
2961 int i;
2962 {
2963 return p[i];
2964 }
2965 static char *f (char * (*g) (char **, int), char **p, ...)
2966 {
2967 char *s;
2968 va_list v;
2969 va_start (v,p);
2970 s = g (p, va_arg (v,int));
2971 va_end (v);
2972 return s;
2973 }
2974
2975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2976 function prototypes and stuff, but not '\xHH' hex character constants.
2977 These don't provoke an error unfortunately, instead are silently treated
2978 as 'x'. The following induces an error, until -std is added to get
2979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2980 array size at least. It's necessary to write '\x00'==0 to get something
2981 that's true only with -std. */
2982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2983
2984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2985 inside strings and character constants. */
2986 #define FOO(x) 'x'
2987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2988
2989 int test (int i, double x);
2990 struct s1 {int (*f) (int a);};
2991 struct s2 {int (*f) (double a);};
2992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2993 int argc;
2994 char **argv;
2995 int
2996 main ()
2997 {
2998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 ;
3000 return 0;
3001 }
3002 _ACEOF
3003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 do
3006 CC="$ac_save_CC $ac_arg"
3007 if ac_fn_c_try_compile "$LINENO"; then :
3008 ac_cv_prog_cc_c89=$ac_arg
3009 fi
3010 rm -f core conftest.err conftest.$ac_objext
3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 done
3013 rm -f conftest.$ac_ext
3014 CC=$ac_save_CC
3015
3016 fi
3017 # AC_CACHE_VAL
3018 case "x$ac_cv_prog_cc_c89" in
3019 x)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3021 $as_echo "none needed" >&6; } ;;
3022 xno)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3024 $as_echo "unsupported" >&6; } ;;
3025 *)
3026 CC="$CC $ac_cv_prog_cc_c89"
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3029 esac
3030 if test "x$ac_cv_prog_cc_c89" != xno; then :
3031
3032 fi
3033
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3046 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3047 if ${am_cv_prog_cc_c_o+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 # Make sure it works both with $CC and with simple cc.
3062 # Following AC_PROG_CC_C_O, we do the test twice because some
3063 # compilers refuse to overwrite an existing .o file with -o,
3064 # though they will create one.
3065 am_cv_prog_cc_c_o=yes
3066 for am_i in 1 2; do
3067 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3068 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } \
3072 && test -f conftest2.$ac_objext; then
3073 : OK
3074 else
3075 am_cv_prog_cc_c_o=no
3076 break
3077 fi
3078 done
3079 rm -f core conftest*
3080 unset am_i
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3083 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3084 if test "$am_cv_prog_cc_c_o" != yes; then
3085 # Losing compiler, so override with the script.
3086 # FIXME: It is wrong to rewrite CC.
3087 # But if we don't then we get into trouble of one sort or another.
3088 # A longer-term fix would be to have automake use am__CC in this case,
3089 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3090 CC="$am_aux_dir/compile $CC"
3091 fi
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097
3098
3099
3100 ac_ext=c
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3106 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3107 # On Suns, sometimes $CPP names a directory.
3108 if test -n "$CPP" && test -d "$CPP"; then
3109 CPP=
3110 fi
3111 if test -z "$CPP"; then
3112 if ${ac_cv_prog_CPP+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 # Double quotes because CPP needs to be expanded
3116 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3117 do
3118 ac_preproc_ok=false
3119 for ac_c_preproc_warn_flag in '' yes
3120 do
3121 # Use a header file that comes with gcc, so configuring glibc
3122 # with a fresh cross-compiler works.
3123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3124 # <limits.h> exists even on freestanding compilers.
3125 # On the NeXT, cc -E runs the code through the compiler's parser,
3126 # not just through cpp. "Syntax error" is here to catch this case.
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3129 #ifdef __STDC__
3130 # include <limits.h>
3131 #else
3132 # include <assert.h>
3133 #endif
3134 Syntax error
3135 _ACEOF
3136 if ac_fn_c_try_cpp "$LINENO"; then :
3137
3138 else
3139 # Broken: fails on valid input.
3140 continue
3141 fi
3142 rm -f conftest.err conftest.i conftest.$ac_ext
3143
3144 # OK, works on sane cases. Now check whether nonexistent headers
3145 # can be detected and how.
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3148 #include <ac_nonexistent.h>
3149 _ACEOF
3150 if ac_fn_c_try_cpp "$LINENO"; then :
3151 # Broken: success on invalid input.
3152 continue
3153 else
3154 # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158 rm -f conftest.err conftest.i conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.i conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then :
3164 break
3165 fi
3166
3167 done
3168 ac_cv_prog_CPP=$CPP
3169
3170 fi
3171 CPP=$ac_cv_prog_CPP
3172 else
3173 ac_cv_prog_CPP=$CPP
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3176 $as_echo "$CPP" >&6; }
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3179 do
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188 #ifdef __STDC__
3189 # include <limits.h>
3190 #else
3191 # include <assert.h>
3192 #endif
3193 Syntax error
3194 _ACEOF
3195 if ac_fn_c_try_cpp "$LINENO"; then :
3196
3197 else
3198 # Broken: fails on valid input.
3199 continue
3200 fi
3201 rm -f conftest.err conftest.i conftest.$ac_ext
3202
3203 # OK, works on sane cases. Now check whether nonexistent headers
3204 # can be detected and how.
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207 #include <ac_nonexistent.h>
3208 _ACEOF
3209 if ac_fn_c_try_cpp "$LINENO"; then :
3210 # Broken: success on invalid input.
3211 continue
3212 else
3213 # Passes both tests.
3214 ac_preproc_ok=:
3215 break
3216 fi
3217 rm -f conftest.err conftest.i conftest.$ac_ext
3218
3219 done
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.i conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then :
3223
3224 else
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details" "$LINENO" 5; }
3229 fi
3230
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
3237
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3240 if ${ac_cv_path_GREP+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -z "$GREP"; then
3244 ac_path_GREP_found=false
3245 # Loop through the user's path and test for each of PROGNAME-LIST
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_prog in grep ggrep; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3254 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3255 # Check for GNU ac_path_GREP and select it if it is found.
3256 # Check for GNU $ac_path_GREP
3257 case `"$ac_path_GREP" --version 2>&1` in
3258 *GNU*)
3259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3260 *)
3261 ac_count=0
3262 $as_echo_n 0123456789 >"conftest.in"
3263 while :
3264 do
3265 cat "conftest.in" "conftest.in" >"conftest.tmp"
3266 mv "conftest.tmp" "conftest.in"
3267 cp "conftest.in" "conftest.nl"
3268 $as_echo 'GREP' >> "conftest.nl"
3269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3271 as_fn_arith $ac_count + 1 && ac_count=$as_val
3272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3273 # Best one so far, save it but keep looking for a better one
3274 ac_cv_path_GREP="$ac_path_GREP"
3275 ac_path_GREP_max=$ac_count
3276 fi
3277 # 10*(2^10) chars as input seems more than enough
3278 test $ac_count -gt 10 && break
3279 done
3280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3281 esac
3282
3283 $ac_path_GREP_found && break 3
3284 done
3285 done
3286 done
3287 IFS=$as_save_IFS
3288 if test -z "$ac_cv_path_GREP"; then
3289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3290 fi
3291 else
3292 ac_cv_path_GREP=$GREP
3293 fi
3294
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3297 $as_echo "$ac_cv_path_GREP" >&6; }
3298 GREP="$ac_cv_path_GREP"
3299
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3302 $as_echo_n "checking for egrep... " >&6; }
3303 if ${ac_cv_path_EGREP+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3307 then ac_cv_path_EGREP="$GREP -E"
3308 else
3309 if test -z "$EGREP"; then
3310 ac_path_EGREP_found=false
3311 # Loop through the user's path and test for each of PROGNAME-LIST
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_prog in egrep; do
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3320 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3321 # Check for GNU ac_path_EGREP and select it if it is found.
3322 # Check for GNU $ac_path_EGREP
3323 case `"$ac_path_EGREP" --version 2>&1` in
3324 *GNU*)
3325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3326 *)
3327 ac_count=0
3328 $as_echo_n 0123456789 >"conftest.in"
3329 while :
3330 do
3331 cat "conftest.in" "conftest.in" >"conftest.tmp"
3332 mv "conftest.tmp" "conftest.in"
3333 cp "conftest.in" "conftest.nl"
3334 $as_echo 'EGREP' >> "conftest.nl"
3335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3337 as_fn_arith $ac_count + 1 && ac_count=$as_val
3338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3339 # Best one so far, save it but keep looking for a better one
3340 ac_cv_path_EGREP="$ac_path_EGREP"
3341 ac_path_EGREP_max=$ac_count
3342 fi
3343 # 10*(2^10) chars as input seems more than enough
3344 test $ac_count -gt 10 && break
3345 done
3346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3347 esac
3348
3349 $ac_path_EGREP_found && break 3
3350 done
3351 done
3352 done
3353 IFS=$as_save_IFS
3354 if test -z "$ac_cv_path_EGREP"; then
3355 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3356 fi
3357 else
3358 ac_cv_path_EGREP=$EGREP
3359 fi
3360
3361 fi
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3364 $as_echo "$ac_cv_path_EGREP" >&6; }
3365 EGREP="$ac_cv_path_EGREP"
3366
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3369 $as_echo_n "checking for ANSI C header files... " >&6; }
3370 if ${ac_cv_header_stdc+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <stdlib.h>
3376 #include <stdarg.h>
3377 #include <string.h>
3378 #include <float.h>
3379
3380 int
3381 main ()
3382 {
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_header_stdc=yes
3390 else
3391 ac_cv_header_stdc=no
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394
3395 if test $ac_cv_header_stdc = yes; then
3396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399 #include <string.h>
3400
3401 _ACEOF
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 $EGREP "memchr" >/dev/null 2>&1; then :
3404
3405 else
3406 ac_cv_header_stdc=no
3407 fi
3408 rm -f conftest*
3409
3410 fi
3411
3412 if test $ac_cv_header_stdc = yes; then
3413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416 #include <stdlib.h>
3417
3418 _ACEOF
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 $EGREP "free" >/dev/null 2>&1; then :
3421
3422 else
3423 ac_cv_header_stdc=no
3424 fi
3425 rm -f conftest*
3426
3427 fi
3428
3429 if test $ac_cv_header_stdc = yes; then
3430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3431 if test "$cross_compiling" = yes; then :
3432 :
3433 else
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436 #include <ctype.h>
3437 #include <stdlib.h>
3438 #if ((' ' & 0x0FF) == 0x020)
3439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3441 #else
3442 # define ISLOWER(c) \
3443 (('a' <= (c) && (c) <= 'i') \
3444 || ('j' <= (c) && (c) <= 'r') \
3445 || ('s' <= (c) && (c) <= 'z'))
3446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3447 #endif
3448
3449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3450 int
3451 main ()
3452 {
3453 int i;
3454 for (i = 0; i < 256; i++)
3455 if (XOR (islower (i), ISLOWER (i))
3456 || toupper (i) != TOUPPER (i))
3457 return 2;
3458 return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_run "$LINENO"; then :
3462
3463 else
3464 ac_cv_header_stdc=no
3465 fi
3466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3467 conftest.$ac_objext conftest.beam conftest.$ac_ext
3468 fi
3469
3470 fi
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3473 $as_echo "$ac_cv_header_stdc" >&6; }
3474 if test $ac_cv_header_stdc = yes; then
3475
3476 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3477
3478 fi
3479
3480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3482 inttypes.h stdint.h unistd.h
3483 do :
3484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3485 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3486 "
3487 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3488 cat >>confdefs.h <<_ACEOF
3489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3490 _ACEOF
3491
3492 fi
3493
3494 done
3495
3496
3497
3498 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3499 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3500 MINIX=yes
3501 else
3502 MINIX=
3503 fi
3504
3505
3506 if test "$MINIX" = yes; then
3507
3508 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3509
3510
3511 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3512
3513
3514 $as_echo "#define _MINIX 1" >>confdefs.h
3515
3516 fi
3517
3518
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3520 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3521 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526
3527 # define __EXTENSIONS__ 1
3528 $ac_includes_default
3529 int
3530 main ()
3531 {
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_safe_to_define___extensions__=yes
3539 else
3540 ac_cv_safe_to_define___extensions__=no
3541 fi
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3545 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3546 test $ac_cv_safe_to_define___extensions__ = yes &&
3547 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3548
3549 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3550
3551 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3552
3553 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3554
3555 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3556
3557
3558
3559 # Initialize Automake
3560 am__api_version='1.14'
3561
3562 ac_aux_dir=
3563 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3564 if test -f "$ac_dir/install-sh"; then
3565 ac_aux_dir=$ac_dir
3566 ac_install_sh="$ac_aux_dir/install-sh -c"
3567 break
3568 elif test -f "$ac_dir/install.sh"; then
3569 ac_aux_dir=$ac_dir
3570 ac_install_sh="$ac_aux_dir/install.sh -c"
3571 break
3572 elif test -f "$ac_dir/shtool"; then
3573 ac_aux_dir=$ac_dir
3574 ac_install_sh="$ac_aux_dir/shtool install -c"
3575 break
3576 fi
3577 done
3578 if test -z "$ac_aux_dir"; then
3579 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3580 fi
3581
3582 # These three variables are undocumented and unsupported,
3583 # and are intended to be withdrawn in a future Autoconf release.
3584 # They can cause serious problems if a builder's source tree is in a directory
3585 # whose full name contains unusual characters.
3586 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3587 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3588 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3589
3590
3591 # Find a good install program. We prefer a C program (faster),
3592 # so one script is as good as another. But avoid the broken or
3593 # incompatible versions:
3594 # SysV /etc/install, /usr/sbin/install
3595 # SunOS /usr/etc/install
3596 # IRIX /sbin/install
3597 # AIX /bin/install
3598 # AmigaOS /C/install, which installs bootblocks on floppy discs
3599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3602 # OS/2's system install, which has a completely different semantic
3603 # ./install, which can be erroneously created by make from ./install.sh.
3604 # Reject install programs that cannot install multiple files.
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3606 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3607 if test -z "$INSTALL"; then
3608 if ${ac_cv_path_install+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 # Account for people who put trailing slashes in PATH elements.
3617 case $as_dir/ in #((
3618 ./ | .// | /[cC]/* | \
3619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3621 /usr/ucb/* ) ;;
3622 *)
3623 # OSF1 and SCO ODT 3.0 have their own names for install.
3624 # Don't use installbsd from OSF since it installs stuff as root
3625 # by default.
3626 for ac_prog in ginstall scoinst install; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3629 if test $ac_prog = install &&
3630 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3631 # AIX install. It has an incompatible calling convention.
3632 :
3633 elif test $ac_prog = install &&
3634 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3635 # program-specific install script used by HP pwplus--don't use.
3636 :
3637 else
3638 rm -rf conftest.one conftest.two conftest.dir
3639 echo one > conftest.one
3640 echo two > conftest.two
3641 mkdir conftest.dir
3642 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3643 test -s conftest.one && test -s conftest.two &&
3644 test -s conftest.dir/conftest.one &&
3645 test -s conftest.dir/conftest.two
3646 then
3647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648 break 3
3649 fi
3650 fi
3651 fi
3652 done
3653 done
3654 ;;
3655 esac
3656
3657 done
3658 IFS=$as_save_IFS
3659
3660 rm -rf conftest.one conftest.two conftest.dir
3661
3662 fi
3663 if test "${ac_cv_path_install+set}" = set; then
3664 INSTALL=$ac_cv_path_install
3665 else
3666 # As a last resort, use the slow shell script. Don't cache a
3667 # value for INSTALL within a source directory, because that will
3668 # break other packages using the cache if that directory is
3669 # removed, or if the value is a relative name.
3670 INSTALL=$ac_install_sh
3671 fi
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3674 $as_echo "$INSTALL" >&6; }
3675
3676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3677 # It thinks the first close brace ends the variable substitution.
3678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3679
3680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3681
3682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3685 $as_echo_n "checking whether build environment is sane... " >&6; }
3686 # Reject unsafe characters in $srcdir or the absolute working directory
3687 # name. Accept space and tab only in the latter.
3688 am_lf='
3689 '
3690 case `pwd` in
3691 *[\\\"\#\$\&\'\`$am_lf]*)
3692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3693 esac
3694 case $srcdir in
3695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3696 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3697 esac
3698
3699 # Do 'set' in a subshell so we don't clobber the current shell's
3700 # arguments. Must try -L first in case configure is actually a
3701 # symlink; some systems play weird games with the mod time of symlinks
3702 # (eg FreeBSD returns the mod time of the symlink's containing
3703 # directory).
3704 if (
3705 am_has_slept=no
3706 for am_try in 1 2; do
3707 echo "timestamp, slept: $am_has_slept" > conftest.file
3708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3709 if test "$*" = "X"; then
3710 # -L didn't work.
3711 set X `ls -t "$srcdir/configure" conftest.file`
3712 fi
3713 if test "$*" != "X $srcdir/configure conftest.file" \
3714 && test "$*" != "X conftest.file $srcdir/configure"; then
3715
3716 # If neither matched, then we have a broken ls. This can happen
3717 # if, for instance, CONFIG_SHELL is bash and it inherits a
3718 # broken ls alias from the environment. This has actually
3719 # happened. Such a system could not be considered "sane".
3720 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3721 alias in your environment" "$LINENO" 5
3722 fi
3723 if test "$2" = conftest.file || test $am_try -eq 2; then
3724 break
3725 fi
3726 # Just in case.
3727 sleep 1
3728 am_has_slept=yes
3729 done
3730 test "$2" = conftest.file
3731 )
3732 then
3733 # Ok.
3734 :
3735 else
3736 as_fn_error $? "newly created file is older than distributed files!
3737 Check your system clock" "$LINENO" 5
3738 fi
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 $as_echo "yes" >&6; }
3741 # If we didn't sleep, we still need to ensure time stamps of config.status and
3742 # generated files are strictly newer.
3743 am_sleep_pid=
3744 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3745 ( sleep 1 ) &
3746 am_sleep_pid=$!
3747 fi
3748
3749 rm -f conftest.file
3750
3751 test "$program_prefix" != NONE &&
3752 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3753 # Use a double $ so make ignores it.
3754 test "$program_suffix" != NONE &&
3755 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3756 # Double any \ or $.
3757 # By default was `s,x,x', remove it if useless.
3758 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3759 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3760
3761 if test x"${MISSING+set}" != xset; then
3762 case $am_aux_dir in
3763 *\ * | *\ *)
3764 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3765 *)
3766 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3767 esac
3768 fi
3769 # Use eval to expand $SHELL
3770 if eval "$MISSING --is-lightweight"; then
3771 am_missing_run="$MISSING "
3772 else
3773 am_missing_run=
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3775 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3776 fi
3777
3778 if test x"${install_sh}" != xset; then
3779 case $am_aux_dir in
3780 *\ * | *\ *)
3781 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3782 *)
3783 install_sh="\${SHELL} $am_aux_dir/install-sh"
3784 esac
3785 fi
3786
3787 # Installed binaries are usually stripped using 'strip' when the user
3788 # run "make install-strip". However 'strip' might not be the right
3789 # tool to use in cross-compilation environments, therefore Automake
3790 # will honor the 'STRIP' environment variable to overrule this program.
3791 if test "$cross_compiling" != no; then
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}strip; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_STRIP+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$STRIP"; then
3801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 STRIP=$ac_cv_prog_STRIP
3821 if test -n "$STRIP"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3823 $as_echo "$STRIP" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830 fi
3831 if test -z "$ac_cv_prog_STRIP"; then
3832 ac_ct_STRIP=$STRIP
3833 # Extract the first word of "strip", so it can be a program name with args.
3834 set dummy strip; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$ac_ct_STRIP"; then
3841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_ac_ct_STRIP="strip"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3861 if test -n "$ac_ct_STRIP"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3863 $as_echo "$ac_ct_STRIP" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869 if test "x$ac_ct_STRIP" = x; then
3870 STRIP=":"
3871 else
3872 case $cross_compiling:$ac_tool_warned in
3873 yes:)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3876 ac_tool_warned=yes ;;
3877 esac
3878 STRIP=$ac_ct_STRIP
3879 fi
3880 else
3881 STRIP="$ac_cv_prog_STRIP"
3882 fi
3883
3884 fi
3885 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3886
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3888 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3889 if test -z "$MKDIR_P"; then
3890 if ${ac_cv_path_mkdir+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3895 do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_prog in mkdir gmkdir; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3901 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3902 'mkdir (GNU coreutils) '* | \
3903 'mkdir (coreutils) '* | \
3904 'mkdir (fileutils) '4.1*)
3905 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3906 break 3;;
3907 esac
3908 done
3909 done
3910 done
3911 IFS=$as_save_IFS
3912
3913 fi
3914
3915 test -d ./--version && rmdir ./--version
3916 if test "${ac_cv_path_mkdir+set}" = set; then
3917 MKDIR_P="$ac_cv_path_mkdir -p"
3918 else
3919 # As a last resort, use the slow shell script. Don't cache a
3920 # value for MKDIR_P within a source directory, because that will
3921 # break other packages using the cache if that directory is
3922 # removed, or if the value is a relative name.
3923 MKDIR_P="$ac_install_sh -d"
3924 fi
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3927 $as_echo "$MKDIR_P" >&6; }
3928
3929 for ac_prog in gawk mawk nawk awk
3930 do
3931 # Extract the first word of "$ac_prog", so it can be a program name with args.
3932 set dummy $ac_prog; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_prog_AWK+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$AWK"; then
3939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_AWK="$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 AWK=$ac_cv_prog_AWK
3959 if test -n "$AWK"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3961 $as_echo "$AWK" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967
3968 test -n "$AWK" && break
3969 done
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3973 set x ${MAKE-make}
3974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3975 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 cat >conftest.make <<\_ACEOF
3979 SHELL = /bin/sh
3980 all:
3981 @echo '@@@%%%=$(MAKE)=@@@%%%'
3982 _ACEOF
3983 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3985 *@@@%%%=?*=@@@%%%*)
3986 eval ac_cv_prog_make_${ac_make}_set=yes;;
3987 *)
3988 eval ac_cv_prog_make_${ac_make}_set=no;;
3989 esac
3990 rm -f conftest.make
3991 fi
3992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994 $as_echo "yes" >&6; }
3995 SET_MAKE=
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
3999 SET_MAKE="MAKE=${MAKE-make}"
4000 fi
4001
4002 rm -rf .tst 2>/dev/null
4003 mkdir .tst 2>/dev/null
4004 if test -d .tst; then
4005 am__leading_dot=.
4006 else
4007 am__leading_dot=_
4008 fi
4009 rmdir .tst 2>/dev/null
4010
4011 DEPDIR="${am__leading_dot}deps"
4012
4013 ac_config_commands="$ac_config_commands depfiles"
4014
4015
4016 am_make=${MAKE-make}
4017 cat > confinc << 'END'
4018 am__doit:
4019 @echo this is the am__doit target
4020 .PHONY: am__doit
4021 END
4022 # If we don't find an include directive, just comment out the code.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4025 am__include="#"
4026 am__quote=
4027 _am_result=none
4028 # First try GNU make style include.
4029 echo "include confinc" > confmf
4030 # Ignore all kinds of additional output from 'make'.
4031 case `$am_make -s -f confmf 2> /dev/null` in #(
4032 *the\ am__doit\ target*)
4033 am__include=include
4034 am__quote=
4035 _am_result=GNU
4036 ;;
4037 esac
4038 # Now try BSD make style include.
4039 if test "$am__include" = "#"; then
4040 echo '.include "confinc"' > confmf
4041 case `$am_make -s -f confmf 2> /dev/null` in #(
4042 *the\ am__doit\ target*)
4043 am__include=.include
4044 am__quote="\""
4045 _am_result=BSD
4046 ;;
4047 esac
4048 fi
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4052 $as_echo "$_am_result" >&6; }
4053 rm -f confinc confmf
4054
4055 # Check whether --enable-dependency-tracking was given.
4056 if test "${enable_dependency_tracking+set}" = set; then :
4057 enableval=$enable_dependency_tracking;
4058 fi
4059
4060 if test "x$enable_dependency_tracking" != xno; then
4061 am_depcomp="$ac_aux_dir/depcomp"
4062 AMDEPBACKSLASH='\'
4063 am__nodep='_no'
4064 fi
4065 if test "x$enable_dependency_tracking" != xno; then
4066 AMDEP_TRUE=
4067 AMDEP_FALSE='#'
4068 else
4069 AMDEP_TRUE='#'
4070 AMDEP_FALSE=
4071 fi
4072
4073
4074 # Check whether --enable-silent-rules was given.
4075 if test "${enable_silent_rules+set}" = set; then :
4076 enableval=$enable_silent_rules;
4077 fi
4078
4079 case $enable_silent_rules in # (((
4080 yes) AM_DEFAULT_VERBOSITY=0;;
4081 no) AM_DEFAULT_VERBOSITY=1;;
4082 *) AM_DEFAULT_VERBOSITY=1;;
4083 esac
4084 am_make=${MAKE-make}
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4086 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4087 if ${am_cv_make_support_nested_variables+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if $as_echo 'TRUE=$(BAR$(V))
4091 BAR0=false
4092 BAR1=true
4093 V=1
4094 am__doit:
4095 @$(TRUE)
4096 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4097 am_cv_make_support_nested_variables=yes
4098 else
4099 am_cv_make_support_nested_variables=no
4100 fi
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4103 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4104 if test $am_cv_make_support_nested_variables = yes; then
4105 AM_V='$(V)'
4106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4107 else
4108 AM_V=$AM_DEFAULT_VERBOSITY
4109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4110 fi
4111 AM_BACKSLASH='\'
4112
4113 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4114 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4115 # is not polluted with repeated "-I."
4116 am__isrc=' -I$(srcdir)'
4117 # test to see if srcdir already configured
4118 if test -f $srcdir/config.status; then
4119 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4120 fi
4121 fi
4122
4123 # test whether we have cygpath
4124 if test -z "$CYGPATH_W"; then
4125 if (cygpath --version) >/dev/null 2>/dev/null; then
4126 CYGPATH_W='cygpath -w'
4127 else
4128 CYGPATH_W=echo
4129 fi
4130 fi
4131
4132
4133 # Define the identity of the package.
4134 PACKAGE='rgb'
4135 VERSION='1.0.6'
4136
4137
4138 cat >>confdefs.h <<_ACEOF
4139 #define PACKAGE "$PACKAGE"
4140 _ACEOF
4141
4142
4143 cat >>confdefs.h <<_ACEOF
4144 #define VERSION "$VERSION"
4145 _ACEOF
4146
4147 # Some tools Automake needs.
4148
4149 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4150
4151
4152 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4153
4154
4155 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4156
4157
4158 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4159
4160
4161 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4162
4163 # For better backward compatibility. To be removed once Automake 1.9.x
4164 # dies out for good. For more background, see:
4165 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4166 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4167 mkdir_p='$(MKDIR_P)'
4168
4169 # We need awk for the "check" target. The system "awk" is bad on
4170 # some platforms.
4171 # Always define AMTAR for backward compatibility. Yes, it's still used
4172 # in the wild :-( We should find a proper way to deprecate it ...
4173 AMTAR='$${TAR-tar}'
4174
4175
4176 # We'll loop over all known methods to create a tar archive until one works.
4177 _am_tools='gnutar pax cpio none'
4178
4179 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4180
4181
4182
4183
4184
4185 depcc="$CC" am_compiler_list=
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188 $as_echo_n "checking dependency style of $depcc... " >&6; }
4189 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named 'D' -- because '-MD' means "put the output
4197 # in D".
4198 rm -rf conftest.dir
4199 mkdir conftest.dir
4200 # Copy depcomp to subdir because otherwise we won't find it if we're
4201 # using a relative directory.
4202 cp "$am_depcomp" conftest.dir
4203 cd conftest.dir
4204 # We will build objects and dependencies in a subdirectory because
4205 # it helps to detect inapplicable dependency modes. For instance
4206 # both Tru64's cc and ICC support -MD to output dependencies as a
4207 # side effect of compilation, but ICC will put the dependencies in
4208 # the current directory while Tru64 will put them in the object
4209 # directory.
4210 mkdir sub
4211
4212 am_cv_CC_dependencies_compiler_type=none
4213 if test "$am_compiler_list" = ""; then
4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215 fi
4216 am__universal=false
4217 case " $depcc " in #(
4218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4219 esac
4220
4221 for depmode in $am_compiler_list; do
4222 # Setup a source with many dependencies, because some compilers
4223 # like to wrap large dependency lists on column 80 (with \), and
4224 # we should not choose a depcomp mode which is confused by this.
4225 #
4226 # We need to recreate these files for each test, as the compiler may
4227 # overwrite some of them when testing with obscure command lines.
4228 # This happens at least with the AIX C compiler.
4229 : > sub/conftest.c
4230 for i in 1 2 3 4 5 6; do
4231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4232 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4233 # Solaris 10 /bin/sh.
4234 echo '/* dummy */' > sub/conftst$i.h
4235 done
4236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4237
4238 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4239 # mode. It turns out that the SunPro C++ compiler does not properly
4240 # handle '-M -o', and we need to detect this. Also, some Intel
4241 # versions had trouble with output in subdirs.
4242 am__obj=sub/conftest.${OBJEXT-o}
4243 am__minus_obj="-o $am__obj"
4244 case $depmode in
4245 gcc)
4246 # This depmode causes a compiler race in universal mode.
4247 test "$am__universal" = false || continue
4248 ;;
4249 nosideeffect)
4250 # After this tag, mechanisms are not by side-effect, so they'll
4251 # only be used when explicitly requested.
4252 if test "x$enable_dependency_tracking" = xyes; then
4253 continue
4254 else
4255 break
4256 fi
4257 ;;
4258 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4259 # This compiler won't grok '-c -o', but also, the minuso test has
4260 # not run yet. These depmodes are late enough in the game, and
4261 # so weak that their functioning should not be impacted.
4262 am__obj=conftest.${OBJEXT-o}
4263 am__minus_obj=
4264 ;;
4265 none) break ;;
4266 esac
4267 if depmode=$depmode \
4268 source=sub/conftest.c object=$am__obj \
4269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4271 >/dev/null 2>conftest.err &&
4272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4276 # icc doesn't choke on unknown options, it will just issue warnings
4277 # or remarks (even with -Werror). So we grep stderr for any message
4278 # that says an option was ignored or not supported.
4279 # When given -MP, icc 7.0 and 7.1 complain thusly:
4280 # icc: Command line warning: ignoring option '-M'; no argument required
4281 # The diagnosis changed in icc 8.0:
4282 # icc: Command line remark: option '-MP' not supported
4283 if (grep 'ignoring option' conftest.err ||
4284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4285 am_cv_CC_dependencies_compiler_type=$depmode
4286 break
4287 fi
4288 fi
4289 done
4290
4291 cd ..
4292 rm -rf conftest.dir
4293 else
4294 am_cv_CC_dependencies_compiler_type=none
4295 fi
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4299 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4300 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4301
4302 if
4303 test "x$enable_dependency_tracking" != xno \
4304 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4305 am__fastdepCC_TRUE=
4306 am__fastdepCC_FALSE='#'
4307 else
4308 am__fastdepCC_TRUE='#'
4309 am__fastdepCC_FALSE=
4310 fi
4311
4312
4313
4314 # POSIX will say in a future version that running "rm -f" with no argument
4315 # is OK; and we want to be able to make that assumption in our Makefile
4316 # recipes. So use an aggressive probe to check that the usage we want is
4317 # actually supported "in the wild" to an acceptable degree.
4318 # See automake bug#10828.
4319 # To make any issue more visible, cause the running configure to be aborted
4320 # by default if the 'rm' program in use doesn't match our expectations; the
4321 # user can still override this though.
4322 if rm -f && rm -fr && rm -rf; then : OK; else
4323 cat >&2 <<'END'
4324 Oops!
4325
4326 Your 'rm' program seems unable to run without file operands specified
4327 on the command line, even when the '-f' option is present. This is contrary
4328 to the behaviour of most rm programs out there, and not conforming with
4329 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4330
4331 Please tell bug-automake@gnu.org about your system, including the value
4332 of your $PATH and any error possibly output before this message. This
4333 can help us improve future automake versions.
4334
4335 END
4336 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4337 echo 'Configuration will proceed anyway, since you have set the' >&2
4338 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4339 echo >&2
4340 else
4341 cat >&2 <<'END'
4342 Aborting the configuration process, to ensure you take notice of the issue.
4343
4344 You can download and install GNU coreutils to get an 'rm' implementation
4345 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4346
4347 If you want to complete the configuration process using your problematic
4348 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4349 to "yes", and re-run configure.
4350
4351 END
4352 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4353 fi
4354 fi
4355
4356 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4369 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4370 if ${ac_cv_prog_cc_c99+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 ac_cv_prog_cc_c99=no
4374 ac_save_CC=$CC
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #include <stdarg.h>
4378 #include <stdbool.h>
4379 #include <stdlib.h>
4380 #include <wchar.h>
4381 #include <stdio.h>
4382
4383 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4384 #define debug(...) fprintf (stderr, __VA_ARGS__)
4385 #define showlist(...) puts (#__VA_ARGS__)
4386 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4387 static void
4388 test_varargs_macros (void)
4389 {
4390 int x = 1234;
4391 int y = 5678;
4392 debug ("Flag");
4393 debug ("X = %d\n", x);
4394 showlist (The first, second, and third items.);
4395 report (x>y, "x is %d but y is %d", x, y);
4396 }
4397
4398 // Check long long types.
4399 #define BIG64 18446744073709551615ull
4400 #define BIG32 4294967295ul
4401 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4402 #if !BIG_OK
4403 your preprocessor is broken;
4404 #endif
4405 #if BIG_OK
4406 #else
4407 your preprocessor is broken;
4408 #endif
4409 static long long int bignum = -9223372036854775807LL;
4410 static unsigned long long int ubignum = BIG64;
4411
4412 struct incomplete_array
4413 {
4414 int datasize;
4415 double data[];
4416 };
4417
4418 struct named_init {
4419 int number;
4420 const wchar_t *name;
4421 double average;
4422 };
4423
4424 typedef const char *ccp;
4425
4426 static inline int
4427 test_restrict (ccp restrict text)
4428 {
4429 // See if C++-style comments work.
4430 // Iterate through items via the restricted pointer.
4431 // Also check for declarations in for loops.
4432 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4433 continue;
4434 return 0;
4435 }
4436
4437 // Check varargs and va_copy.
4438 static void
4439 test_varargs (const char *format, ...)
4440 {
4441 va_list args;
4442 va_start (args, format);
4443 va_list args_copy;
4444 va_copy (args_copy, args);
4445
4446 const char *str;
4447 int number;
4448 float fnumber;
4449
4450 while (*format)
4451 {
4452 switch (*format++)
4453 {
4454 case 's': // string
4455 str = va_arg (args_copy, const char *);
4456 break;
4457 case 'd': // int
4458 number = va_arg (args_copy, int);
4459 break;
4460 case 'f': // float
4461 fnumber = va_arg (args_copy, double);
4462 break;
4463 default:
4464 break;
4465 }
4466 }
4467 va_end (args_copy);
4468 va_end (args);
4469 }
4470
4471 int
4472 main ()
4473 {
4474
4475 // Check bool.
4476 _Bool success = false;
4477
4478 // Check restrict.
4479 if (test_restrict ("String literal") == 0)
4480 success = true;
4481 char *restrict newvar = "Another string";
4482
4483 // Check varargs.
4484 test_varargs ("s, d' f .", "string", 65, 34.234);
4485 test_varargs_macros ();
4486
4487 // Check flexible array members.
4488 struct incomplete_array *ia =
4489 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4490 ia->datasize = 10;
4491 for (int i = 0; i < ia->datasize; ++i)
4492 ia->data[i] = i * 1.234;
4493
4494 // Check named initializers.
4495 struct named_init ni = {
4496 .number = 34,
4497 .name = L"Test wide string",
4498 .average = 543.34343,
4499 };
4500
4501 ni.number = 58;
4502
4503 int dynamic_array[ni.number];
4504 dynamic_array[ni.number - 1] = 543;
4505
4506 // work around unused variable warnings
4507 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4508 || dynamic_array[ni.number - 1] != 543);
4509
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4515 do
4516 CC="$ac_save_CC $ac_arg"
4517 if ac_fn_c_try_compile "$LINENO"; then :
4518 ac_cv_prog_cc_c99=$ac_arg
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext
4521 test "x$ac_cv_prog_cc_c99" != "xno" && break
4522 done
4523 rm -f conftest.$ac_ext
4524 CC=$ac_save_CC
4525
4526 fi
4527 # AC_CACHE_VAL
4528 case "x$ac_cv_prog_cc_c99" in
4529 x)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4531 $as_echo "none needed" >&6; } ;;
4532 xno)
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4534 $as_echo "unsupported" >&6; } ;;
4535 *)
4536 CC="$CC $ac_cv_prog_cc_c99"
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4538 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4539 esac
4540 if test "x$ac_cv_prog_cc_c99" != xno; then :
4541
4542 fi
4543
4544
4545
4546
4547
4548
4549 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4550 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4551 CLANGCC="yes"
4552 else
4553 CLANGCC="no"
4554 fi
4555
4556 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4557 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4558 INTELCC="yes"
4559 else
4560 INTELCC="no"
4561 fi
4562
4563 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4564 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4565 SUNCC="yes"
4566 else
4567 SUNCC="no"
4568 fi
4569
4570
4571
4572
4573 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4574 if test -n "$ac_tool_prefix"; then
4575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 case $PKG_CONFIG in
4583 [\\/]* | ?:[\\/]*)
4584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4585 ;;
4586 *)
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 ;;
4603 esac
4604 fi
4605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4606 if test -n "$PKG_CONFIG"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4608 $as_echo "$PKG_CONFIG" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614
4615 fi
4616 if test -z "$ac_cv_path_PKG_CONFIG"; then
4617 ac_pt_PKG_CONFIG=$PKG_CONFIG
4618 # Extract the first word of "pkg-config", so it can be a program name with args.
4619 set dummy pkg-config; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 case $ac_pt_PKG_CONFIG in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4628 ;;
4629 *)
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 ;;
4646 esac
4647 fi
4648 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4649 if test -n "$ac_pt_PKG_CONFIG"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4651 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657 if test "x$ac_pt_PKG_CONFIG" = x; then
4658 PKG_CONFIG=""
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 PKG_CONFIG=$ac_pt_PKG_CONFIG
4667 fi
4668 else
4669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4670 fi
4671
4672 fi
4673 if test -n "$PKG_CONFIG"; then
4674 _pkg_min_version=0.9.0
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4676 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4677 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4679 $as_echo "yes" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 PKG_CONFIG=""
4684 fi
4685
4686 fi
4687 # Make sure we can run config.sub.
4688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4692 $as_echo_n "checking build system type... " >&6; }
4693 if ${ac_cv_build+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 ac_build_alias=$build_alias
4697 test "x$ac_build_alias" = x &&
4698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4699 test "x$ac_build_alias" = x &&
4700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4703
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4706 $as_echo "$ac_cv_build" >&6; }
4707 case $ac_cv_build in
4708 *-*-*) ;;
4709 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4710 esac
4711 build=$ac_cv_build
4712 ac_save_IFS=$IFS; IFS='-'
4713 set x $ac_cv_build
4714 shift
4715 build_cpu=$1
4716 build_vendor=$2
4717 shift; shift
4718 # Remember, the first character of IFS is used to create $*,
4719 # except with old shells:
4720 build_os=$*
4721 IFS=$ac_save_IFS
4722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4726 $as_echo_n "checking host system type... " >&6; }
4727 if ${ac_cv_host+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test "x$host_alias" = x; then
4731 ac_cv_host=$ac_cv_build
4732 else
4733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4735 fi
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4739 $as_echo "$ac_cv_host" >&6; }
4740 case $ac_cv_host in
4741 *-*-*) ;;
4742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4743 esac
4744 host=$ac_cv_host
4745 ac_save_IFS=$IFS; IFS='-'
4746 set x $ac_cv_host
4747 shift
4748 host_cpu=$1
4749 host_vendor=$2
4750 shift; shift
4751 # Remember, the first character of IFS is used to create $*,
4752 # except with old shells:
4753 host_os=$*
4754 IFS=$ac_save_IFS
4755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4759 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4760 if ${ac_cv_path_SED+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4764 for ac_i in 1 2 3 4 5 6 7; do
4765 ac_script="$ac_script$as_nl$ac_script"
4766 done
4767 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4768 { ac_script=; unset ac_script;}
4769 if test -z "$SED"; then
4770 ac_path_SED_found=false
4771 # Loop through the user's path and test for each of PROGNAME-LIST
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_prog in sed gsed; do
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4780 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4781 # Check for GNU ac_path_SED and select it if it is found.
4782 # Check for GNU $ac_path_SED
4783 case `"$ac_path_SED" --version 2>&1` in
4784 *GNU*)
4785 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4786 *)
4787 ac_count=0
4788 $as_echo_n 0123456789 >"conftest.in"
4789 while :
4790 do
4791 cat "conftest.in" "conftest.in" >"conftest.tmp"
4792 mv "conftest.tmp" "conftest.in"
4793 cp "conftest.in" "conftest.nl"
4794 $as_echo '' >> "conftest.nl"
4795 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797 as_fn_arith $ac_count + 1 && ac_count=$as_val
4798 if test $ac_count -gt ${ac_path_SED_max-0}; then
4799 # Best one so far, save it but keep looking for a better one
4800 ac_cv_path_SED="$ac_path_SED"
4801 ac_path_SED_max=$ac_count
4802 fi
4803 # 10*(2^10) chars as input seems more than enough
4804 test $ac_count -gt 10 && break
4805 done
4806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807 esac
4808
4809 $ac_path_SED_found && break 3
4810 done
4811 done
4812 done
4813 IFS=$as_save_IFS
4814 if test -z "$ac_cv_path_SED"; then
4815 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4816 fi
4817 else
4818 ac_cv_path_SED=$SED
4819 fi
4820
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4823 $as_echo "$ac_cv_path_SED" >&6; }
4824 SED="$ac_cv_path_SED"
4825 rm -f conftest.sed
4826
4827
4828
4829
4830
4831
4832 # Check whether --enable-selective-werror was given.
4833 if test "${enable_selective_werror+set}" = set; then :
4834 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4835 else
4836 SELECTIVE_WERROR=yes
4837 fi
4838
4839
4840
4841
4842
4843 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4844 if test "x$SUNCC" = "xyes"; then
4845 BASE_CFLAGS="-v"
4846 else
4847 BASE_CFLAGS=""
4848 fi
4849
4850 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 xorg_testset_save_CFLAGS="$CFLAGS"
4865
4866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 int i;
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 xorg_cv_cc_flag_unknown_warning_option=yes
4879 else
4880 xorg_cv_cc_flag_unknown_warning_option=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4888 fi
4889
4890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4893 fi
4894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 xorg_cv_cc_flag_unused_command_line_argument=yes
4906 else
4907 xorg_cv_cc_flag_unused_command_line_argument=no
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4914 CFLAGS="$xorg_testset_save_CFLAGS"
4915 fi
4916
4917 found="no"
4918
4919 if test $found = "no" ; then
4920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 fi
4923
4924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4926 fi
4927
4928 CFLAGS="$CFLAGS -Wall"
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4931 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4932 cacheid=xorg_cv_cc_flag__Wall
4933 if eval \${$cacheid+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 int i;
4939 int
4940 main ()
4941 {
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 if ac_fn_c_try_link "$LINENO"; then :
4948 eval $cacheid=yes
4949 else
4950 eval $cacheid=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext \
4953 conftest$ac_exeext conftest.$ac_ext
4954 fi
4955
4956
4957 CFLAGS="$xorg_testset_save_CFLAGS"
4958
4959 eval supported=\$$cacheid
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4961 $as_echo "$supported" >&6; }
4962 if test "$supported" = "yes" ; then
4963 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4964 found="yes"
4965 fi
4966 fi
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 xorg_testset_save_CFLAGS="$CFLAGS"
4983
4984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4987 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4988 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 xorg_cv_cc_flag_unknown_warning_option=yes
4997 else
4998 xorg_cv_cc_flag_unknown_warning_option=no
4999 fi
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5003 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5006 fi
5007
5008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5011 fi
5012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5014 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5015 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 int i;
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 xorg_cv_cc_flag_unused_command_line_argument=yes
5024 else
5025 xorg_cv_cc_flag_unused_command_line_argument=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5030 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5032 CFLAGS="$xorg_testset_save_CFLAGS"
5033 fi
5034
5035 found="no"
5036
5037 if test $found = "no" ; then
5038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040 fi
5041
5042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5044 fi
5045
5046 CFLAGS="$CFLAGS -Wpointer-arith"
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5049 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5050 cacheid=xorg_cv_cc_flag__Wpointer_arith
5051 if eval \${$cacheid+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 int i;
5057 int
5058 main ()
5059 {
5060
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_link "$LINENO"; then :
5066 eval $cacheid=yes
5067 else
5068 eval $cacheid=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5072 fi
5073
5074
5075 CFLAGS="$xorg_testset_save_CFLAGS"
5076
5077 eval supported=\$$cacheid
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5079 $as_echo "$supported" >&6; }
5080 if test "$supported" = "yes" ; then
5081 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5082 found="yes"
5083 fi
5084 fi
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 xorg_testset_save_CFLAGS="$CFLAGS"
5101
5102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 int i;
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 xorg_cv_cc_flag_unknown_warning_option=yes
5115 else
5116 xorg_cv_cc_flag_unknown_warning_option=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5123 CFLAGS="$xorg_testset_save_CFLAGS"
5124 fi
5125
5126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129 fi
5130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 int i;
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 xorg_cv_cc_flag_unused_command_line_argument=yes
5142 else
5143 xorg_cv_cc_flag_unused_command_line_argument=no
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5150 CFLAGS="$xorg_testset_save_CFLAGS"
5151 fi
5152
5153 found="no"
5154
5155 if test $found = "no" ; then
5156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 fi
5159
5160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5162 fi
5163
5164 CFLAGS="$CFLAGS -Wmissing-declarations"
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5167 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5168 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5169 if eval \${$cacheid+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 int i;
5175 int
5176 main ()
5177 {
5178
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 if ac_fn_c_try_link "$LINENO"; then :
5184 eval $cacheid=yes
5185 else
5186 eval $cacheid=no
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5190 fi
5191
5192
5193 CFLAGS="$xorg_testset_save_CFLAGS"
5194
5195 eval supported=\$$cacheid
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5197 $as_echo "$supported" >&6; }
5198 if test "$supported" = "yes" ; then
5199 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5200 found="yes"
5201 fi
5202 fi
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 xorg_testset_save_CFLAGS="$CFLAGS"
5219
5220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5223 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 int i;
5230 _ACEOF
5231 if ac_fn_c_try_compile "$LINENO"; then :
5232 xorg_cv_cc_flag_unknown_warning_option=yes
5233 else
5234 xorg_cv_cc_flag_unknown_warning_option=no
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5239 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5241 CFLAGS="$xorg_testset_save_CFLAGS"
5242 fi
5243
5244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247 fi
5248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5250 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 int i;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 xorg_cv_cc_flag_unused_command_line_argument=yes
5260 else
5261 xorg_cv_cc_flag_unused_command_line_argument=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5266 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5268 CFLAGS="$xorg_testset_save_CFLAGS"
5269 fi
5270
5271 found="no"
5272
5273 if test $found = "no" ; then
5274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276 fi
5277
5278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5280 fi
5281
5282 CFLAGS="$CFLAGS -Wformat=2"
5283
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5285 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5286 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5287 if eval \${$cacheid+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 int i;
5293 int
5294 main ()
5295 {
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_link "$LINENO"; then :
5302 eval $cacheid=yes
5303 else
5304 eval $cacheid=no
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext \
5307 conftest$ac_exeext conftest.$ac_ext
5308 fi
5309
5310
5311 CFLAGS="$xorg_testset_save_CFLAGS"
5312
5313 eval supported=\$$cacheid
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5315 $as_echo "$supported" >&6; }
5316 if test "$supported" = "yes" ; then
5317 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5318 found="yes"
5319 fi
5320 fi
5321
5322 if test $found = "no" ; then
5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326
5327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329 fi
5330
5331 CFLAGS="$CFLAGS -Wformat"
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5334 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5335 cacheid=xorg_cv_cc_flag__Wformat
5336 if eval \${$cacheid+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 int i;
5342 int
5343 main ()
5344 {
5345
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 if ac_fn_c_try_link "$LINENO"; then :
5351 eval $cacheid=yes
5352 else
5353 eval $cacheid=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 fi
5358
5359
5360 CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362 eval supported=\$$cacheid
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364 $as_echo "$supported" >&6; }
5365 if test "$supported" = "yes" ; then
5366 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5367 found="yes"
5368 fi
5369 fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 xorg_testset_save_CFLAGS="$CFLAGS"
5388
5389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5392 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5393 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 int i;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 xorg_cv_cc_flag_unknown_warning_option=yes
5402 else
5403 xorg_cv_cc_flag_unknown_warning_option=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410 CFLAGS="$xorg_testset_save_CFLAGS"
5411 fi
5412
5413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416 fi
5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 xorg_cv_cc_flag_unused_command_line_argument=yes
5429 else
5430 xorg_cv_cc_flag_unused_command_line_argument=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 found="no"
5441
5442 if test $found = "no" ; then
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 fi
5446
5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449 fi
5450
5451 CFLAGS="$CFLAGS -Wstrict-prototypes"
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5454 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5455 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5456 if eval \${$cacheid+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 int
5463 main ()
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_link "$LINENO"; then :
5471 eval $cacheid=yes
5472 else
5473 eval $cacheid=no
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext \
5476 conftest$ac_exeext conftest.$ac_ext
5477 fi
5478
5479
5480 CFLAGS="$xorg_testset_save_CFLAGS"
5481
5482 eval supported=\$$cacheid
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5484 $as_echo "$supported" >&6; }
5485 if test "$supported" = "yes" ; then
5486 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5487 found="yes"
5488 fi
5489 fi
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 xorg_testset_save_CFLAGS="$CFLAGS"
5506
5507 if test "x$xorg_testset_cc_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_cc_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_cc_unused_command_line_argument" = "x" ; then
5532 if test "x$xorg_testset_cc_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_cc_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_cc_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564
5565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 fi
5568
5569 CFLAGS="$CFLAGS -Wmissing-prototypes"
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5572 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5573 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5574 if eval \${$cacheid+:} 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 $cacheid=yes
5590 else
5591 eval $cacheid=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=\$$cacheid
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 -Wmissing-prototypes"
5605 found="yes"
5606 fi
5607 fi
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623 xorg_testset_save_CFLAGS="$CFLAGS"
5624
5625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5629 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 int i;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 xorg_cv_cc_flag_unknown_warning_option=yes
5638 else
5639 xorg_cv_cc_flag_unknown_warning_option=no
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5644 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5646 CFLAGS="$xorg_testset_save_CFLAGS"
5647 fi
5648
5649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5652 fi
5653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5655 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5656 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 xorg_cv_cc_flag_unused_command_line_argument=yes
5665 else
5666 xorg_cv_cc_flag_unused_command_line_argument=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 found="no"
5677
5678 if test $found = "no" ; then
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 fi
5682
5683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685 fi
5686
5687 CFLAGS="$CFLAGS -Wnested-externs"
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5690 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5691 cacheid=xorg_cv_cc_flag__Wnested_externs
5692 if eval \${$cacheid+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 int i;
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_link "$LINENO"; then :
5707 eval $cacheid=yes
5708 else
5709 eval $cacheid=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713 fi
5714
5715
5716 CFLAGS="$xorg_testset_save_CFLAGS"
5717
5718 eval supported=\$$cacheid
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5720 $as_echo "$supported" >&6; }
5721 if test "$supported" = "yes" ; then
5722 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5723 found="yes"
5724 fi
5725 fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 xorg_testset_save_CFLAGS="$CFLAGS"
5742
5743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5746 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5747 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 int i;
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755 xorg_cv_cc_flag_unknown_warning_option=yes
5756 else
5757 xorg_cv_cc_flag_unknown_warning_option=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765 fi
5766
5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770 fi
5771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 xorg_cv_cc_flag_unused_command_line_argument=yes
5783 else
5784 xorg_cv_cc_flag_unused_command_line_argument=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5789 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5791 CFLAGS="$xorg_testset_save_CFLAGS"
5792 fi
5793
5794 found="no"
5795
5796 if test $found = "no" ; then
5797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799 fi
5800
5801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803 fi
5804
5805 CFLAGS="$CFLAGS -Wbad-function-cast"
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5808 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5809 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5810 if eval \${$cacheid+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 int
5817 main ()
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_link "$LINENO"; then :
5825 eval $cacheid=yes
5826 else
5827 eval $cacheid=no
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5831 fi
5832
5833
5834 CFLAGS="$xorg_testset_save_CFLAGS"
5835
5836 eval supported=\$$cacheid
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5838 $as_echo "$supported" >&6; }
5839 if test "$supported" = "yes" ; then
5840 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5841 found="yes"
5842 fi
5843 fi
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 xorg_testset_save_CFLAGS="$CFLAGS"
5860
5861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 xorg_cv_cc_flag_unknown_warning_option=yes
5874 else
5875 xorg_cv_cc_flag_unknown_warning_option=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883 fi
5884
5885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 int i;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 xorg_cv_cc_flag_unused_command_line_argument=yes
5901 else
5902 xorg_cv_cc_flag_unused_command_line_argument=no
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5909 CFLAGS="$xorg_testset_save_CFLAGS"
5910 fi
5911
5912 found="no"
5913
5914 if test $found = "no" ; then
5915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5917 fi
5918
5919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921 fi
5922
5923 CFLAGS="$CFLAGS -Wold-style-definition"
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5926 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5927 cacheid=xorg_cv_cc_flag__Wold_style_definition
5928 if eval \${$cacheid+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 int i;
5934 int
5935 main ()
5936 {
5937
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 eval $cacheid=yes
5944 else
5945 eval $cacheid=no
5946 fi
5947 rm -f core conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
5949 fi
5950
5951
5952 CFLAGS="$xorg_testset_save_CFLAGS"
5953
5954 eval supported=\$$cacheid
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5956 $as_echo "$supported" >&6; }
5957 if test "$supported" = "yes" ; then
5958 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5959 found="yes"
5960 fi
5961 fi
5962
5963 if test $found = "no" ; then
5964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966 fi
5967
5968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5970 fi
5971
5972 CFLAGS="$CFLAGS -fd"
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5975 $as_echo_n "checking if $CC supports -fd... " >&6; }
5976 cacheid=xorg_cv_cc_flag__fd
5977 if eval \${$cacheid+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 int i;
5983 int
5984 main ()
5985 {
5986
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_link "$LINENO"; then :
5992 eval $cacheid=yes
5993 else
5994 eval $cacheid=no
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext \
5997 conftest$ac_exeext conftest.$ac_ext
5998 fi
5999
6000
6001 CFLAGS="$xorg_testset_save_CFLAGS"
6002
6003 eval supported=\$$cacheid
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6005 $as_echo "$supported" >&6; }
6006 if test "$supported" = "yes" ; then
6007 BASE_CFLAGS="$BASE_CFLAGS -fd"
6008 found="yes"
6009 fi
6010 fi
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 xorg_testset_save_CFLAGS="$CFLAGS"
6027
6028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6031 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6032 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 int i;
6038 _ACEOF
6039 if ac_fn_c_try_compile "$LINENO"; then :
6040 xorg_cv_cc_flag_unknown_warning_option=yes
6041 else
6042 xorg_cv_cc_flag_unknown_warning_option=no
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6047 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6049 CFLAGS="$xorg_testset_save_CFLAGS"
6050 fi
6051
6052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6055 fi
6056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6058 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6059 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 int i;
6065 _ACEOF
6066 if ac_fn_c_try_compile "$LINENO"; then :
6067 xorg_cv_cc_flag_unused_command_line_argument=yes
6068 else
6069 xorg_cv_cc_flag_unused_command_line_argument=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6074 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6076 CFLAGS="$xorg_testset_save_CFLAGS"
6077 fi
6078
6079 found="no"
6080
6081 if test $found = "no" ; then
6082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 fi
6085
6086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088 fi
6089
6090 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6093 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6094 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6095 if eval \${$cacheid+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 int i;
6101 int
6102 main ()
6103 {
6104
6105 ;
6106 return 0;
6107 }
6108 _ACEOF
6109 if ac_fn_c_try_link "$LINENO"; then :
6110 eval $cacheid=yes
6111 else
6112 eval $cacheid=no
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext \
6115 conftest$ac_exeext conftest.$ac_ext
6116 fi
6117
6118
6119 CFLAGS="$xorg_testset_save_CFLAGS"
6120
6121 eval supported=\$$cacheid
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6123 $as_echo "$supported" >&6; }
6124 if test "$supported" = "yes" ; then
6125 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6126 found="yes"
6127 fi
6128 fi
6129
6130
6131
6132
6133
6134 # This chunk adds additional warnings that could catch undesired effects.
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148 xorg_testset_save_CFLAGS="$CFLAGS"
6149
6150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6153 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6154 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 int i;
6160 _ACEOF
6161 if ac_fn_c_try_compile "$LINENO"; then :
6162 xorg_cv_cc_flag_unknown_warning_option=yes
6163 else
6164 xorg_cv_cc_flag_unknown_warning_option=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6169 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6172 fi
6173
6174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6177 fi
6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6180 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6181 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 _ACEOF
6188 if ac_fn_c_try_compile "$LINENO"; then :
6189 xorg_cv_cc_flag_unused_command_line_argument=yes
6190 else
6191 xorg_cv_cc_flag_unused_command_line_argument=no
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6196 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6198 CFLAGS="$xorg_testset_save_CFLAGS"
6199 fi
6200
6201 found="no"
6202
6203 if test $found = "no" ; then
6204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206 fi
6207
6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210 fi
6211
6212 CFLAGS="$CFLAGS -Wunused"
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6215 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6216 cacheid=xorg_cv_cc_flag__Wunused
6217 if eval \${$cacheid+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 int i;
6223 int
6224 main ()
6225 {
6226
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 if ac_fn_c_try_link "$LINENO"; then :
6232 eval $cacheid=yes
6233 else
6234 eval $cacheid=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6238 fi
6239
6240
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242
6243 eval supported=\$$cacheid
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6245 $as_echo "$supported" >&6; }
6246 if test "$supported" = "yes" ; then
6247 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6248 found="yes"
6249 fi
6250 fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 xorg_testset_save_CFLAGS="$CFLAGS"
6267
6268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6271 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6272 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 int i;
6278 _ACEOF
6279 if ac_fn_c_try_compile "$LINENO"; then :
6280 xorg_cv_cc_flag_unknown_warning_option=yes
6281 else
6282 xorg_cv_cc_flag_unknown_warning_option=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6287 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290 fi
6291
6292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295 fi
6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6298 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6299 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 _ACEOF
6306 if ac_fn_c_try_compile "$LINENO"; then :
6307 xorg_cv_cc_flag_unused_command_line_argument=yes
6308 else
6309 xorg_cv_cc_flag_unused_command_line_argument=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6314 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6316 CFLAGS="$xorg_testset_save_CFLAGS"
6317 fi
6318
6319 found="no"
6320
6321 if test $found = "no" ; then
6322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324 fi
6325
6326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328 fi
6329
6330 CFLAGS="$CFLAGS -Wuninitialized"
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6333 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6334 cacheid=xorg_cv_cc_flag__Wuninitialized
6335 if eval \${$cacheid+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 int i;
6341 int
6342 main ()
6343 {
6344
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_c_try_link "$LINENO"; then :
6350 eval $cacheid=yes
6351 else
6352 eval $cacheid=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356 fi
6357
6358
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360
6361 eval supported=\$$cacheid
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6363 $as_echo "$supported" >&6; }
6364 if test "$supported" = "yes" ; then
6365 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6366 found="yes"
6367 fi
6368 fi
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384 xorg_testset_save_CFLAGS="$CFLAGS"
6385
6386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6389 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6390 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 int i;
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 xorg_cv_cc_flag_unknown_warning_option=yes
6399 else
6400 xorg_cv_cc_flag_unknown_warning_option=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6405 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6408 fi
6409
6410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413 fi
6414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6416 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6417 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 int i;
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 xorg_cv_cc_flag_unused_command_line_argument=yes
6426 else
6427 xorg_cv_cc_flag_unused_command_line_argument=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 fi
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6432 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435 fi
6436
6437 found="no"
6438
6439 if test $found = "no" ; then
6440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442 fi
6443
6444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446 fi
6447
6448 CFLAGS="$CFLAGS -Wshadow"
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6451 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6452 cacheid=xorg_cv_cc_flag__Wshadow
6453 if eval \${$cacheid+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 int i;
6459 int
6460 main ()
6461 {
6462
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_c_try_link "$LINENO"; then :
6468 eval $cacheid=yes
6469 else
6470 eval $cacheid=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 fi
6475
6476
6477 CFLAGS="$xorg_testset_save_CFLAGS"
6478
6479 eval supported=\$$cacheid
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6481 $as_echo "$supported" >&6; }
6482 if test "$supported" = "yes" ; then
6483 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6484 found="yes"
6485 fi
6486 fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 xorg_testset_save_CFLAGS="$CFLAGS"
6503
6504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6507 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6508 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 int i;
6514 _ACEOF
6515 if ac_fn_c_try_compile "$LINENO"; then :
6516 xorg_cv_cc_flag_unknown_warning_option=yes
6517 else
6518 xorg_cv_cc_flag_unknown_warning_option=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6523 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6526 fi
6527
6528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6531 fi
6532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6534 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6535 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 xorg_cv_cc_flag_unused_command_line_argument=yes
6544 else
6545 xorg_cv_cc_flag_unused_command_line_argument=no
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6550 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6552 CFLAGS="$xorg_testset_save_CFLAGS"
6553 fi
6554
6555 found="no"
6556
6557 if test $found = "no" ; then
6558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560 fi
6561
6562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564 fi
6565
6566 CFLAGS="$CFLAGS -Wmissing-noreturn"
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6569 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6570 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6571 if eval \${$cacheid+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576 int i;
6577 int
6578 main ()
6579 {
6580
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_link "$LINENO"; then :
6586 eval $cacheid=yes
6587 else
6588 eval $cacheid=no
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 fi
6593
6594
6595 CFLAGS="$xorg_testset_save_CFLAGS"
6596
6597 eval supported=\$$cacheid
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6599 $as_echo "$supported" >&6; }
6600 if test "$supported" = "yes" ; then
6601 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6602 found="yes"
6603 fi
6604 fi
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620 xorg_testset_save_CFLAGS="$CFLAGS"
6621
6622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6625 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6626 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 int i;
6632 _ACEOF
6633 if ac_fn_c_try_compile "$LINENO"; then :
6634 xorg_cv_cc_flag_unknown_warning_option=yes
6635 else
6636 xorg_cv_cc_flag_unknown_warning_option=no
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6641 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6644 fi
6645
6646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649 fi
6650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6652 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6653 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658 int i;
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 xorg_cv_cc_flag_unused_command_line_argument=yes
6662 else
6663 xorg_cv_cc_flag_unused_command_line_argument=no
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6668 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6671 fi
6672
6673 found="no"
6674
6675 if test $found = "no" ; then
6676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678 fi
6679
6680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6682 fi
6683
6684 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6685
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6687 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6688 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6689 if eval \${$cacheid+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 int i;
6695 int
6696 main ()
6697 {
6698
6699 ;
6700 return 0;
6701 }
6702 _ACEOF
6703 if ac_fn_c_try_link "$LINENO"; then :
6704 eval $cacheid=yes
6705 else
6706 eval $cacheid=no
6707 fi
6708 rm -f core conftest.err conftest.$ac_objext \
6709 conftest$ac_exeext conftest.$ac_ext
6710 fi
6711
6712
6713 CFLAGS="$xorg_testset_save_CFLAGS"
6714
6715 eval supported=\$$cacheid
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6717 $as_echo "$supported" >&6; }
6718 if test "$supported" = "yes" ; then
6719 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6720 found="yes"
6721 fi
6722 fi
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738 xorg_testset_save_CFLAGS="$CFLAGS"
6739
6740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 xorg_cv_cc_flag_unknown_warning_option=yes
6753 else
6754 xorg_cv_cc_flag_unknown_warning_option=no
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6762 fi
6763
6764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767 fi
6768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 int i;
6777 _ACEOF
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 xorg_cv_cc_flag_unused_command_line_argument=yes
6780 else
6781 xorg_cv_cc_flag_unused_command_line_argument=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6788 CFLAGS="$xorg_testset_save_CFLAGS"
6789 fi
6790
6791 found="no"
6792
6793 if test $found = "no" ; then
6794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796 fi
6797
6798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6800 fi
6801
6802 CFLAGS="$CFLAGS -Wredundant-decls"
6803
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6805 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6806 cacheid=xorg_cv_cc_flag__Wredundant_decls
6807 if eval \${$cacheid+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int i;
6813 int
6814 main ()
6815 {
6816
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"; then :
6822 eval $cacheid=yes
6823 else
6824 eval $cacheid=no
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828 fi
6829
6830
6831 CFLAGS="$xorg_testset_save_CFLAGS"
6832
6833 eval supported=\$$cacheid
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6835 $as_echo "$supported" >&6; }
6836 if test "$supported" = "yes" ; then
6837 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6838 found="yes"
6839 fi
6840 fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856 xorg_testset_save_CFLAGS="$CFLAGS"
6857
6858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int i;
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 xorg_cv_cc_flag_unknown_warning_option=yes
6871 else
6872 xorg_cv_cc_flag_unknown_warning_option=no
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6879 CFLAGS="$xorg_testset_save_CFLAGS"
6880 fi
6881
6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6885 fi
6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int i;
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 xorg_cv_cc_flag_unused_command_line_argument=yes
6898 else
6899 xorg_cv_cc_flag_unused_command_line_argument=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6906 CFLAGS="$xorg_testset_save_CFLAGS"
6907 fi
6908
6909 found="no"
6910
6911 if test $found = "no" ; then
6912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914 fi
6915
6916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918 fi
6919
6920 CFLAGS="$CFLAGS -Wlogical-op"
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6923 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6924 cacheid=xorg_cv_cc_flag__Wlogical_op
6925 if eval \${$cacheid+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 int i;
6931 int
6932 main ()
6933 {
6934
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_link "$LINENO"; then :
6940 eval $cacheid=yes
6941 else
6942 eval $cacheid=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6946 fi
6947
6948
6949 CFLAGS="$xorg_testset_save_CFLAGS"
6950
6951 eval supported=\$$cacheid
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953 $as_echo "$supported" >&6; }
6954 if test "$supported" = "yes" ; then
6955 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6956 found="yes"
6957 fi
6958 fi
6959
6960
6961
6962 # These are currently disabled because they are noisy. They will be enabled
6963 # in the future once the codebase is sufficiently modernized to silence
6964 # them. For now, I don't want them to drown out the other warnings.
6965 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6966 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6967 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6968
6969 # Turn some warnings into errors, so we don't accidently get successful builds
6970 # when there are problems that should be fixed.
6971
6972 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986 xorg_testset_save_CFLAGS="$CFLAGS"
6987
6988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 xorg_cv_cc_flag_unknown_warning_option=yes
7001 else
7002 xorg_cv_cc_flag_unknown_warning_option=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7009 CFLAGS="$xorg_testset_save_CFLAGS"
7010 fi
7011
7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015 fi
7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 int i;
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 xorg_cv_cc_flag_unused_command_line_argument=yes
7028 else
7029 xorg_cv_cc_flag_unused_command_line_argument=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036 CFLAGS="$xorg_testset_save_CFLAGS"
7037 fi
7038
7039 found="no"
7040
7041 if test $found = "no" ; then
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 fi
7045
7046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048 fi
7049
7050 CFLAGS="$CFLAGS -Werror=implicit"
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7053 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7054 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7055 if eval \${$cacheid+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 int i;
7061 int
7062 main ()
7063 {
7064
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_link "$LINENO"; then :
7070 eval $cacheid=yes
7071 else
7072 eval $cacheid=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7076 fi
7077
7078
7079 CFLAGS="$xorg_testset_save_CFLAGS"
7080
7081 eval supported=\$$cacheid
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7083 $as_echo "$supported" >&6; }
7084 if test "$supported" = "yes" ; then
7085 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7086 found="yes"
7087 fi
7088 fi
7089
7090 if test $found = "no" ; then
7091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7093 fi
7094
7095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7097 fi
7098
7099 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7102 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7103 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7104 if eval \${$cacheid+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 int i;
7110 int
7111 main ()
7112 {
7113
7114 ;
7115 return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_c_try_link "$LINENO"; then :
7119 eval $cacheid=yes
7120 else
7121 eval $cacheid=no
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7125 fi
7126
7127
7128 CFLAGS="$xorg_testset_save_CFLAGS"
7129
7130 eval supported=\$$cacheid
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7132 $as_echo "$supported" >&6; }
7133 if test "$supported" = "yes" ; then
7134 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7135 found="yes"
7136 fi
7137 fi
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153 xorg_testset_save_CFLAGS="$CFLAGS"
7154
7155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 int i;
7165 _ACEOF
7166 if ac_fn_c_try_compile "$LINENO"; then :
7167 xorg_cv_cc_flag_unknown_warning_option=yes
7168 else
7169 xorg_cv_cc_flag_unknown_warning_option=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7177 fi
7178
7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182 fi
7183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 xorg_cv_cc_flag_unused_command_line_argument=yes
7195 else
7196 xorg_cv_cc_flag_unused_command_line_argument=no
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204 fi
7205
7206 found="no"
7207
7208 if test $found = "no" ; then
7209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211 fi
7212
7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7215 fi
7216
7217 CFLAGS="$CFLAGS -Werror=nonnull"
7218
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7220 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7221 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7222 if eval \${$cacheid+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 int i;
7228 int
7229 main ()
7230 {
7231
7232 ;
7233 return 0;
7234 }
7235 _ACEOF
7236 if ac_fn_c_try_link "$LINENO"; then :
7237 eval $cacheid=yes
7238 else
7239 eval $cacheid=no
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext \
7242 conftest$ac_exeext conftest.$ac_ext
7243 fi
7244
7245
7246 CFLAGS="$xorg_testset_save_CFLAGS"
7247
7248 eval supported=\$$cacheid
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7250 $as_echo "$supported" >&6; }
7251 if test "$supported" = "yes" ; then
7252 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7253 found="yes"
7254 fi
7255 fi
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271 xorg_testset_save_CFLAGS="$CFLAGS"
7272
7273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 int i;
7283 _ACEOF
7284 if ac_fn_c_try_compile "$LINENO"; then :
7285 xorg_cv_cc_flag_unknown_warning_option=yes
7286 else
7287 xorg_cv_cc_flag_unknown_warning_option=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7295 fi
7296
7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 fi
7301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 int i;
7310 _ACEOF
7311 if ac_fn_c_try_compile "$LINENO"; then :
7312 xorg_cv_cc_flag_unused_command_line_argument=yes
7313 else
7314 xorg_cv_cc_flag_unused_command_line_argument=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322 fi
7323
7324 found="no"
7325
7326 if test $found = "no" ; then
7327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329 fi
7330
7331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7333 fi
7334
7335 CFLAGS="$CFLAGS -Werror=init-self"
7336
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7338 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7339 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7340 if eval \${$cacheid+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 int i;
7346 int
7347 main ()
7348 {
7349
7350 ;
7351 return 0;
7352 }
7353 _ACEOF
7354 if ac_fn_c_try_link "$LINENO"; then :
7355 eval $cacheid=yes
7356 else
7357 eval $cacheid=no
7358 fi
7359 rm -f core conftest.err conftest.$ac_objext \
7360 conftest$ac_exeext conftest.$ac_ext
7361 fi
7362
7363
7364 CFLAGS="$xorg_testset_save_CFLAGS"
7365
7366 eval supported=\$$cacheid
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7368 $as_echo "$supported" >&6; }
7369 if test "$supported" = "yes" ; then
7370 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7371 found="yes"
7372 fi
7373 fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389 xorg_testset_save_CFLAGS="$CFLAGS"
7390
7391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 int i;
7401 _ACEOF
7402 if ac_fn_c_try_compile "$LINENO"; then :
7403 xorg_cv_cc_flag_unknown_warning_option=yes
7404 else
7405 xorg_cv_cc_flag_unknown_warning_option=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7413 fi
7414
7415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418 fi
7419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 int i;
7428 _ACEOF
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 xorg_cv_cc_flag_unused_command_line_argument=yes
7431 else
7432 xorg_cv_cc_flag_unused_command_line_argument=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440 fi
7441
7442 found="no"
7443
7444 if test $found = "no" ; then
7445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447 fi
7448
7449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7451 fi
7452
7453 CFLAGS="$CFLAGS -Werror=main"
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7456 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7457 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7458 if eval \${$cacheid+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int i;
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_link "$LINENO"; then :
7473 eval $cacheid=yes
7474 else
7475 eval $cacheid=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 fi
7480
7481
7482 CFLAGS="$xorg_testset_save_CFLAGS"
7483
7484 eval supported=\$$cacheid
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7486 $as_echo "$supported" >&6; }
7487 if test "$supported" = "yes" ; then
7488 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7489 found="yes"
7490 fi
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 xorg_testset_save_CFLAGS="$CFLAGS"
7508
7509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 xorg_cv_cc_flag_unknown_warning_option=yes
7522 else
7523 xorg_cv_cc_flag_unknown_warning_option=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7530 CFLAGS="$xorg_testset_save_CFLAGS"
7531 fi
7532
7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536 fi
7537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 int i;
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 xorg_cv_cc_flag_unused_command_line_argument=yes
7549 else
7550 xorg_cv_cc_flag_unused_command_line_argument=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7557 CFLAGS="$xorg_testset_save_CFLAGS"
7558 fi
7559
7560 found="no"
7561
7562 if test $found = "no" ; then
7563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565 fi
7566
7567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569 fi
7570
7571 CFLAGS="$CFLAGS -Werror=missing-braces"
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7574 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7575 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7576 if eval \${$cacheid+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int i;
7582 int
7583 main ()
7584 {
7585
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"; then :
7591 eval $cacheid=yes
7592 else
7593 eval $cacheid=no
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7597 fi
7598
7599
7600 CFLAGS="$xorg_testset_save_CFLAGS"
7601
7602 eval supported=\$$cacheid
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7604 $as_echo "$supported" >&6; }
7605 if test "$supported" = "yes" ; then
7606 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7607 found="yes"
7608 fi
7609 fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 xorg_testset_save_CFLAGS="$CFLAGS"
7626
7627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7630 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7631 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 _ACEOF
7638 if ac_fn_c_try_compile "$LINENO"; then :
7639 xorg_cv_cc_flag_unknown_warning_option=yes
7640 else
7641 xorg_cv_cc_flag_unknown_warning_option=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7646 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7649 fi
7650
7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654 fi
7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7657 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7658 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 int i;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 xorg_cv_cc_flag_unused_command_line_argument=yes
7667 else
7668 xorg_cv_cc_flag_unused_command_line_argument=no
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7673 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7676 fi
7677
7678 found="no"
7679
7680 if test $found = "no" ; then
7681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683 fi
7684
7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687 fi
7688
7689 CFLAGS="$CFLAGS -Werror=sequence-point"
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7692 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7693 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7694 if eval \${$cacheid+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 int i;
7700 int
7701 main ()
7702 {
7703
7704 ;
7705 return 0;
7706 }
7707 _ACEOF
7708 if ac_fn_c_try_link "$LINENO"; then :
7709 eval $cacheid=yes
7710 else
7711 eval $cacheid=no
7712 fi
7713 rm -f core conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 fi
7716
7717
7718 CFLAGS="$xorg_testset_save_CFLAGS"
7719
7720 eval supported=\$$cacheid
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7722 $as_echo "$supported" >&6; }
7723 if test "$supported" = "yes" ; then
7724 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7725 found="yes"
7726 fi
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743 xorg_testset_save_CFLAGS="$CFLAGS"
7744
7745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7749 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 int i;
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757 xorg_cv_cc_flag_unknown_warning_option=yes
7758 else
7759 xorg_cv_cc_flag_unknown_warning_option=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772 fi
7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 xorg_cv_cc_flag_unused_command_line_argument=yes
7785 else
7786 xorg_cv_cc_flag_unused_command_line_argument=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7791 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794 fi
7795
7796 found="no"
7797
7798 if test $found = "no" ; then
7799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 fi
7802
7803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805 fi
7806
7807 CFLAGS="$CFLAGS -Werror=return-type"
7808
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7810 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7811 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7812 if eval \${$cacheid+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 int i;
7818 int
7819 main ()
7820 {
7821
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_link "$LINENO"; then :
7827 eval $cacheid=yes
7828 else
7829 eval $cacheid=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833 fi
7834
7835
7836 CFLAGS="$xorg_testset_save_CFLAGS"
7837
7838 eval supported=\$$cacheid
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7840 $as_echo "$supported" >&6; }
7841 if test "$supported" = "yes" ; then
7842 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7843 found="yes"
7844 fi
7845 fi
7846
7847 if test $found = "no" ; then
7848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850 fi
7851
7852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854 fi
7855
7856 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7859 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7860 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7861 if eval \${$cacheid+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 int i;
7867 int
7868 main ()
7869 {
7870
7871 ;
7872 return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 eval $cacheid=yes
7877 else
7878 eval $cacheid=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 fi
7883
7884
7885 CFLAGS="$xorg_testset_save_CFLAGS"
7886
7887 eval supported=\$$cacheid
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7889 $as_echo "$supported" >&6; }
7890 if test "$supported" = "yes" ; then
7891 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7892 found="yes"
7893 fi
7894 fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910 xorg_testset_save_CFLAGS="$CFLAGS"
7911
7912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 int i;
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"; then :
7924 xorg_cv_cc_flag_unknown_warning_option=yes
7925 else
7926 xorg_cv_cc_flag_unknown_warning_option=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7934 fi
7935
7936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939 fi
7940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 int i;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 xorg_cv_cc_flag_unused_command_line_argument=yes
7952 else
7953 xorg_cv_cc_flag_unused_command_line_argument=no
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7960 CFLAGS="$xorg_testset_save_CFLAGS"
7961 fi
7962
7963 found="no"
7964
7965 if test $found = "no" ; then
7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7968 fi
7969
7970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7972 fi
7973
7974 CFLAGS="$CFLAGS -Werror=trigraphs"
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7977 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7978 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7979 if eval \${$cacheid+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 int i;
7985 int
7986 main ()
7987 {
7988
7989 ;
7990 return 0;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then :
7994 eval $cacheid=yes
7995 else
7996 eval $cacheid=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000 fi
8001
8002
8003 CFLAGS="$xorg_testset_save_CFLAGS"
8004
8005 eval supported=\$$cacheid
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8007 $as_echo "$supported" >&6; }
8008 if test "$supported" = "yes" ; then
8009 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8010 found="yes"
8011 fi
8012 fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 xorg_testset_save_CFLAGS="$CFLAGS"
8029
8030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8033 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8034 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 int i;
8040 _ACEOF
8041 if ac_fn_c_try_compile "$LINENO"; then :
8042 xorg_cv_cc_flag_unknown_warning_option=yes
8043 else
8044 xorg_cv_cc_flag_unknown_warning_option=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8049 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8052 fi
8053
8054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057 fi
8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8060 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8061 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 int i;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 xorg_cv_cc_flag_unused_command_line_argument=yes
8070 else
8071 xorg_cv_cc_flag_unused_command_line_argument=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8076 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8078 CFLAGS="$xorg_testset_save_CFLAGS"
8079 fi
8080
8081 found="no"
8082
8083 if test $found = "no" ; then
8084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8086 fi
8087
8088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8090 fi
8091
8092 CFLAGS="$CFLAGS -Werror=array-bounds"
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8095 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8096 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8097 if eval \${$cacheid+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 int i;
8103 int
8104 main ()
8105 {
8106
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 eval $cacheid=yes
8113 else
8114 eval $cacheid=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 fi
8119
8120
8121 CFLAGS="$xorg_testset_save_CFLAGS"
8122
8123 eval supported=\$$cacheid
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8125 $as_echo "$supported" >&6; }
8126 if test "$supported" = "yes" ; then
8127 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8128 found="yes"
8129 fi
8130 fi
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 xorg_testset_save_CFLAGS="$CFLAGS"
8147
8148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8151 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8152 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int i;
8158 _ACEOF
8159 if ac_fn_c_try_compile "$LINENO"; then :
8160 xorg_cv_cc_flag_unknown_warning_option=yes
8161 else
8162 xorg_cv_cc_flag_unknown_warning_option=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8167 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8169 CFLAGS="$xorg_testset_save_CFLAGS"
8170 fi
8171
8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8175 fi
8176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8178 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8179 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 int i;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 xorg_cv_cc_flag_unused_command_line_argument=yes
8188 else
8189 xorg_cv_cc_flag_unused_command_line_argument=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197 fi
8198
8199 found="no"
8200
8201 if test $found = "no" ; then
8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204 fi
8205
8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208 fi
8209
8210 CFLAGS="$CFLAGS -Werror=write-strings"
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8213 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8214 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8215 if eval \${$cacheid+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int i;
8221 int
8222 main ()
8223 {
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"; then :
8230 eval $cacheid=yes
8231 else
8232 eval $cacheid=no
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext \
8235 conftest$ac_exeext conftest.$ac_ext
8236 fi
8237
8238
8239 CFLAGS="$xorg_testset_save_CFLAGS"
8240
8241 eval supported=\$$cacheid
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8243 $as_echo "$supported" >&6; }
8244 if test "$supported" = "yes" ; then
8245 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8246 found="yes"
8247 fi
8248 fi
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264 xorg_testset_save_CFLAGS="$CFLAGS"
8265
8266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8269 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8270 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 int i;
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 xorg_cv_cc_flag_unknown_warning_option=yes
8279 else
8280 xorg_cv_cc_flag_unknown_warning_option=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8285 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8287 CFLAGS="$xorg_testset_save_CFLAGS"
8288 fi
8289
8290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293 fi
8294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8296 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8297 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 int i;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 xorg_cv_cc_flag_unused_command_line_argument=yes
8306 else
8307 xorg_cv_cc_flag_unused_command_line_argument=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 fi
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8312 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315 fi
8316
8317 found="no"
8318
8319 if test $found = "no" ; then
8320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322 fi
8323
8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326 fi
8327
8328 CFLAGS="$CFLAGS -Werror=address"
8329
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8331 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8332 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8333 if eval \${$cacheid+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 int
8340 main ()
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"; then :
8348 eval $cacheid=yes
8349 else
8350 eval $cacheid=no
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 fi
8355
8356
8357 CFLAGS="$xorg_testset_save_CFLAGS"
8358
8359 eval supported=\$$cacheid
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8361 $as_echo "$supported" >&6; }
8362 if test "$supported" = "yes" ; then
8363 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8364 found="yes"
8365 fi
8366 fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382 xorg_testset_save_CFLAGS="$CFLAGS"
8383
8384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8387 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8388 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 xorg_cv_cc_flag_unknown_warning_option=yes
8397 else
8398 xorg_cv_cc_flag_unknown_warning_option=no
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8403 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8405 CFLAGS="$xorg_testset_save_CFLAGS"
8406 fi
8407
8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411 fi
8412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8414 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8415 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 int i;
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 xorg_cv_cc_flag_unused_command_line_argument=yes
8424 else
8425 xorg_cv_cc_flag_unused_command_line_argument=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8430 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433 fi
8434
8435 found="no"
8436
8437 if test $found = "no" ; then
8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440 fi
8441
8442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444 fi
8445
8446 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8447
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8449 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8450 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8451 if eval \${$cacheid+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 int i;
8457 int
8458 main ()
8459 {
8460
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"; then :
8466 eval $cacheid=yes
8467 else
8468 eval $cacheid=no
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 fi
8473
8474
8475 CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477 eval supported=\$$cacheid
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479 $as_echo "$supported" >&6; }
8480 if test "$supported" = "yes" ; then
8481 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8482 found="yes"
8483 fi
8484 fi
8485
8486 if test $found = "no" ; then
8487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8489 fi
8490
8491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8493 fi
8494
8495 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8498 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8499 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8500 if eval \${$cacheid+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 int i;
8506 int
8507 main ()
8508 {
8509
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_link "$LINENO"; then :
8515 eval $cacheid=yes
8516 else
8517 eval $cacheid=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521 fi
8522
8523
8524 CFLAGS="$xorg_testset_save_CFLAGS"
8525
8526 eval supported=\$$cacheid
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8528 $as_echo "$supported" >&6; }
8529 if test "$supported" = "yes" ; then
8530 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8531 found="yes"
8532 fi
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549 xorg_testset_save_CFLAGS="$CFLAGS"
8550
8551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8554 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8555 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 int i;
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 xorg_cv_cc_flag_unknown_warning_option=yes
8564 else
8565 xorg_cv_cc_flag_unknown_warning_option=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8570 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573 fi
8574
8575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578 fi
8579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8581 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8582 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 int i;
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 xorg_cv_cc_flag_unused_command_line_argument=yes
8591 else
8592 xorg_cv_cc_flag_unused_command_line_argument=no
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8597 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8599 CFLAGS="$xorg_testset_save_CFLAGS"
8600 fi
8601
8602 found="no"
8603
8604 if test $found = "no" ; then
8605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607 fi
8608
8609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8611 fi
8612
8613 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8616 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8617 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8618 if eval \${$cacheid+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 int i;
8624 int
8625 main ()
8626 {
8627
8628 ;
8629 return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 eval $cacheid=yes
8634 else
8635 eval $cacheid=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 fi
8640
8641
8642 CFLAGS="$xorg_testset_save_CFLAGS"
8643
8644 eval supported=\$$cacheid
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8646 $as_echo "$supported" >&6; }
8647 if test "$supported" = "yes" ; then
8648 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8649 found="yes"
8650 fi
8651 fi
8652
8653 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8654 else
8655 { $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
8656 $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;}
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670 xorg_testset_save_CFLAGS="$CFLAGS"
8671
8672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 int i;
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 xorg_cv_cc_flag_unknown_warning_option=yes
8685 else
8686 xorg_cv_cc_flag_unknown_warning_option=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8694 fi
8695
8696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699 fi
8700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 int i;
8709 _ACEOF
8710 if ac_fn_c_try_compile "$LINENO"; then :
8711 xorg_cv_cc_flag_unused_command_line_argument=yes
8712 else
8713 xorg_cv_cc_flag_unused_command_line_argument=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8721 fi
8722
8723 found="no"
8724
8725 if test $found = "no" ; then
8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 fi
8729
8730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8732 fi
8733
8734 CFLAGS="$CFLAGS -Wimplicit"
8735
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8737 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8738 cacheid=xorg_cv_cc_flag__Wimplicit
8739 if eval \${$cacheid+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 int i;
8745 int
8746 main ()
8747 {
8748
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 eval $cacheid=yes
8755 else
8756 eval $cacheid=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 fi
8761
8762
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765 eval supported=\$$cacheid
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767 $as_echo "$supported" >&6; }
8768 if test "$supported" = "yes" ; then
8769 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8770 found="yes"
8771 fi
8772 fi
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788 xorg_testset_save_CFLAGS="$CFLAGS"
8789
8790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8793 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8794 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 int i;
8800 _ACEOF
8801 if ac_fn_c_try_compile "$LINENO"; then :
8802 xorg_cv_cc_flag_unknown_warning_option=yes
8803 else
8804 xorg_cv_cc_flag_unknown_warning_option=no
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8809 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8812 fi
8813
8814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817 fi
8818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8820 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8821 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 int i;
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 xorg_cv_cc_flag_unused_command_line_argument=yes
8830 else
8831 xorg_cv_cc_flag_unused_command_line_argument=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8836 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839 fi
8840
8841 found="no"
8842
8843 if test $found = "no" ; then
8844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846 fi
8847
8848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850 fi
8851
8852 CFLAGS="$CFLAGS -Wnonnull"
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8855 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8856 cacheid=xorg_cv_cc_flag__Wnonnull
8857 if eval \${$cacheid+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 int i;
8863 int
8864 main ()
8865 {
8866
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 eval $cacheid=yes
8873 else
8874 eval $cacheid=no
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 fi
8879
8880
8881 CFLAGS="$xorg_testset_save_CFLAGS"
8882
8883 eval supported=\$$cacheid
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8885 $as_echo "$supported" >&6; }
8886 if test "$supported" = "yes" ; then
8887 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8888 found="yes"
8889 fi
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906 xorg_testset_save_CFLAGS="$CFLAGS"
8907
8908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8911 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8912 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 int i;
8918 _ACEOF
8919 if ac_fn_c_try_compile "$LINENO"; then :
8920 xorg_cv_cc_flag_unknown_warning_option=yes
8921 else
8922 xorg_cv_cc_flag_unknown_warning_option=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8930 fi
8931
8932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935 fi
8936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 int i;
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 xorg_cv_cc_flag_unused_command_line_argument=yes
8948 else
8949 xorg_cv_cc_flag_unused_command_line_argument=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8954 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8956 CFLAGS="$xorg_testset_save_CFLAGS"
8957 fi
8958
8959 found="no"
8960
8961 if test $found = "no" ; then
8962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964 fi
8965
8966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8968 fi
8969
8970 CFLAGS="$CFLAGS -Winit-self"
8971
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8973 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8974 cacheid=xorg_cv_cc_flag__Winit_self
8975 if eval \${$cacheid+:} 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 int
8982 main ()
8983 {
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_c_try_link "$LINENO"; then :
8990 eval $cacheid=yes
8991 else
8992 eval $cacheid=no
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 fi
8997
8998
8999 CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001 eval supported=\$$cacheid
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9003 $as_echo "$supported" >&6; }
9004 if test "$supported" = "yes" ; then
9005 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9006 found="yes"
9007 fi
9008 fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024 xorg_testset_save_CFLAGS="$CFLAGS"
9025
9026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9029 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9030 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 _ACEOF
9037 if ac_fn_c_try_compile "$LINENO"; then :
9038 xorg_cv_cc_flag_unknown_warning_option=yes
9039 else
9040 xorg_cv_cc_flag_unknown_warning_option=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9045 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9048 fi
9049
9050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053 fi
9054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9056 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9057 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 int i;
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 xorg_cv_cc_flag_unused_command_line_argument=yes
9066 else
9067 xorg_cv_cc_flag_unused_command_line_argument=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9072 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9074 CFLAGS="$xorg_testset_save_CFLAGS"
9075 fi
9076
9077 found="no"
9078
9079 if test $found = "no" ; then
9080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9082 fi
9083
9084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9086 fi
9087
9088 CFLAGS="$CFLAGS -Wmain"
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9091 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9092 cacheid=xorg_cv_cc_flag__Wmain
9093 if eval \${$cacheid+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 int i;
9099 int
9100 main ()
9101 {
9102
9103 ;
9104 return 0;
9105 }
9106 _ACEOF
9107 if ac_fn_c_try_link "$LINENO"; then :
9108 eval $cacheid=yes
9109 else
9110 eval $cacheid=no
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext conftest.$ac_ext
9114 fi
9115
9116
9117 CFLAGS="$xorg_testset_save_CFLAGS"
9118
9119 eval supported=\$$cacheid
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9121 $as_echo "$supported" >&6; }
9122 if test "$supported" = "yes" ; then
9123 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9124 found="yes"
9125 fi
9126 fi
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 xorg_testset_save_CFLAGS="$CFLAGS"
9143
9144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9147 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9148 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
9155 if ac_fn_c_try_compile "$LINENO"; then :
9156 xorg_cv_cc_flag_unknown_warning_option=yes
9157 else
9158 xorg_cv_cc_flag_unknown_warning_option=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9163 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9165 CFLAGS="$xorg_testset_save_CFLAGS"
9166 fi
9167
9168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9171 fi
9172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9174 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9175 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int i;
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"; then :
9183 xorg_cv_cc_flag_unused_command_line_argument=yes
9184 else
9185 xorg_cv_cc_flag_unused_command_line_argument=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9190 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9192 CFLAGS="$xorg_testset_save_CFLAGS"
9193 fi
9194
9195 found="no"
9196
9197 if test $found = "no" ; then
9198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200 fi
9201
9202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9204 fi
9205
9206 CFLAGS="$CFLAGS -Wmissing-braces"
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9209 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9210 cacheid=xorg_cv_cc_flag__Wmissing_braces
9211 if eval \${$cacheid+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 int i;
9217 int
9218 main ()
9219 {
9220
9221 ;
9222 return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 eval $cacheid=yes
9227 else
9228 eval $cacheid=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 fi
9233
9234
9235 CFLAGS="$xorg_testset_save_CFLAGS"
9236
9237 eval supported=\$$cacheid
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9239 $as_echo "$supported" >&6; }
9240 if test "$supported" = "yes" ; then
9241 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9242 found="yes"
9243 fi
9244 fi
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260 xorg_testset_save_CFLAGS="$CFLAGS"
9261
9262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9265 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9266 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 int i;
9272 _ACEOF
9273 if ac_fn_c_try_compile "$LINENO"; then :
9274 xorg_cv_cc_flag_unknown_warning_option=yes
9275 else
9276 xorg_cv_cc_flag_unknown_warning_option=no
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9281 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9283 CFLAGS="$xorg_testset_save_CFLAGS"
9284 fi
9285
9286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289 fi
9290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9292 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9293 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 int i;
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301 xorg_cv_cc_flag_unused_command_line_argument=yes
9302 else
9303 xorg_cv_cc_flag_unused_command_line_argument=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9308 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311 fi
9312
9313 found="no"
9314
9315 if test $found = "no" ; then
9316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322 fi
9323
9324 CFLAGS="$CFLAGS -Wsequence-point"
9325
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9327 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9328 cacheid=xorg_cv_cc_flag__Wsequence_point
9329 if eval \${$cacheid+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 int i;
9335 int
9336 main ()
9337 {
9338
9339 ;
9340 return 0;
9341 }
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"; then :
9344 eval $cacheid=yes
9345 else
9346 eval $cacheid=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9350 fi
9351
9352
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354
9355 eval supported=\$$cacheid
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9357 $as_echo "$supported" >&6; }
9358 if test "$supported" = "yes" ; then
9359 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9360 found="yes"
9361 fi
9362 fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378 xorg_testset_save_CFLAGS="$CFLAGS"
9379
9380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9383 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9384 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 _ACEOF
9391 if ac_fn_c_try_compile "$LINENO"; then :
9392 xorg_cv_cc_flag_unknown_warning_option=yes
9393 else
9394 xorg_cv_cc_flag_unknown_warning_option=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9399 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9401 CFLAGS="$xorg_testset_save_CFLAGS"
9402 fi
9403
9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9407 fi
9408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9410 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9411 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 int i;
9417 _ACEOF
9418 if ac_fn_c_try_compile "$LINENO"; then :
9419 xorg_cv_cc_flag_unused_command_line_argument=yes
9420 else
9421 xorg_cv_cc_flag_unused_command_line_argument=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 fi
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9426 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9428 CFLAGS="$xorg_testset_save_CFLAGS"
9429 fi
9430
9431 found="no"
9432
9433 if test $found = "no" ; then
9434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9436 fi
9437
9438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9440 fi
9441
9442 CFLAGS="$CFLAGS -Wreturn-type"
9443
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9445 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9446 cacheid=xorg_cv_cc_flag__Wreturn_type
9447 if eval \${$cacheid+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int i;
9453 int
9454 main ()
9455 {
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462 eval $cacheid=yes
9463 else
9464 eval $cacheid=no
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 fi
9469
9470
9471 CFLAGS="$xorg_testset_save_CFLAGS"
9472
9473 eval supported=\$$cacheid
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9475 $as_echo "$supported" >&6; }
9476 if test "$supported" = "yes" ; then
9477 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9478 found="yes"
9479 fi
9480 fi
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496 xorg_testset_save_CFLAGS="$CFLAGS"
9497
9498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 int i;
9508 _ACEOF
9509 if ac_fn_c_try_compile "$LINENO"; then :
9510 xorg_cv_cc_flag_unknown_warning_option=yes
9511 else
9512 xorg_cv_cc_flag_unknown_warning_option=no
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515 fi
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9519 CFLAGS="$xorg_testset_save_CFLAGS"
9520 fi
9521
9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9525 fi
9526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"; then :
9537 xorg_cv_cc_flag_unused_command_line_argument=yes
9538 else
9539 xorg_cv_cc_flag_unused_command_line_argument=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9546 CFLAGS="$xorg_testset_save_CFLAGS"
9547 fi
9548
9549 found="no"
9550
9551 if test $found = "no" ; then
9552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9554 fi
9555
9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9558 fi
9559
9560 CFLAGS="$CFLAGS -Wtrigraphs"
9561
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9563 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9564 cacheid=xorg_cv_cc_flag__Wtrigraphs
9565 if eval \${$cacheid+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 int i;
9571 int
9572 main ()
9573 {
9574
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 eval $cacheid=yes
9581 else
9582 eval $cacheid=no
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 fi
9587
9588
9589 CFLAGS="$xorg_testset_save_CFLAGS"
9590
9591 eval supported=\$$cacheid
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9593 $as_echo "$supported" >&6; }
9594 if test "$supported" = "yes" ; then
9595 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9596 found="yes"
9597 fi
9598 fi
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614 xorg_testset_save_CFLAGS="$CFLAGS"
9615
9616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9619 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9620 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9625 int i;
9626 _ACEOF
9627 if ac_fn_c_try_compile "$LINENO"; then :
9628 xorg_cv_cc_flag_unknown_warning_option=yes
9629 else
9630 xorg_cv_cc_flag_unknown_warning_option=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9635 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638 fi
9639
9640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643 fi
9644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9646 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9647 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 int i;
9653 _ACEOF
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 xorg_cv_cc_flag_unused_command_line_argument=yes
9656 else
9657 xorg_cv_cc_flag_unused_command_line_argument=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664 CFLAGS="$xorg_testset_save_CFLAGS"
9665 fi
9666
9667 found="no"
9668
9669 if test $found = "no" ; then
9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676 fi
9677
9678 CFLAGS="$CFLAGS -Warray-bounds"
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9681 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9682 cacheid=xorg_cv_cc_flag__Warray_bounds
9683 if eval \${$cacheid+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 int i;
9689 int
9690 main ()
9691 {
9692
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698 eval $cacheid=yes
9699 else
9700 eval $cacheid=no
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 fi
9705
9706
9707 CFLAGS="$xorg_testset_save_CFLAGS"
9708
9709 eval supported=\$$cacheid
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9711 $as_echo "$supported" >&6; }
9712 if test "$supported" = "yes" ; then
9713 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9714 found="yes"
9715 fi
9716 fi
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732 xorg_testset_save_CFLAGS="$CFLAGS"
9733
9734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 int i;
9744 _ACEOF
9745 if ac_fn_c_try_compile "$LINENO"; then :
9746 xorg_cv_cc_flag_unknown_warning_option=yes
9747 else
9748 xorg_cv_cc_flag_unknown_warning_option=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9756 fi
9757
9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761 fi
9762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int i;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 xorg_cv_cc_flag_unused_command_line_argument=yes
9774 else
9775 xorg_cv_cc_flag_unused_command_line_argument=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783 fi
9784
9785 found="no"
9786
9787 if test $found = "no" ; then
9788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790 fi
9791
9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9794 fi
9795
9796 CFLAGS="$CFLAGS -Wwrite-strings"
9797
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9799 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9800 cacheid=xorg_cv_cc_flag__Wwrite_strings
9801 if eval \${$cacheid+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 int i;
9807 int
9808 main ()
9809 {
9810
9811 ;
9812 return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_link "$LINENO"; then :
9816 eval $cacheid=yes
9817 else
9818 eval $cacheid=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 fi
9823
9824
9825 CFLAGS="$xorg_testset_save_CFLAGS"
9826
9827 eval supported=\$$cacheid
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9829 $as_echo "$supported" >&6; }
9830 if test "$supported" = "yes" ; then
9831 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9832 found="yes"
9833 fi
9834 fi
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850 xorg_testset_save_CFLAGS="$CFLAGS"
9851
9852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int i;
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 xorg_cv_cc_flag_unknown_warning_option=yes
9865 else
9866 xorg_cv_cc_flag_unknown_warning_option=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9874 fi
9875
9876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879 fi
9880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 xorg_cv_cc_flag_unused_command_line_argument=yes
9892 else
9893 xorg_cv_cc_flag_unused_command_line_argument=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 found="no"
9904
9905 if test $found = "no" ; then
9906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908 fi
9909
9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9912 fi
9913
9914 CFLAGS="$CFLAGS -Waddress"
9915
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9917 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9918 cacheid=xorg_cv_cc_flag__Waddress
9919 if eval \${$cacheid+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 int i;
9925 int
9926 main ()
9927 {
9928
9929 ;
9930 return 0;
9931 }
9932 _ACEOF
9933 if ac_fn_c_try_link "$LINENO"; then :
9934 eval $cacheid=yes
9935 else
9936 eval $cacheid=no
9937 fi
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 fi
9941
9942
9943 CFLAGS="$xorg_testset_save_CFLAGS"
9944
9945 eval supported=\$$cacheid
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9947 $as_echo "$supported" >&6; }
9948 if test "$supported" = "yes" ; then
9949 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9950 found="yes"
9951 fi
9952 fi
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968 xorg_testset_save_CFLAGS="$CFLAGS"
9969
9970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9979 int i;
9980 _ACEOF
9981 if ac_fn_c_try_compile "$LINENO"; then :
9982 xorg_cv_cc_flag_unknown_warning_option=yes
9983 else
9984 xorg_cv_cc_flag_unknown_warning_option=no
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9991 CFLAGS="$xorg_testset_save_CFLAGS"
9992 fi
9993
9994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997 fi
9998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10006 int i;
10007 _ACEOF
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 xorg_cv_cc_flag_unused_command_line_argument=yes
10010 else
10011 xorg_cv_cc_flag_unused_command_line_argument=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10018 CFLAGS="$xorg_testset_save_CFLAGS"
10019 fi
10020
10021 found="no"
10022
10023 if test $found = "no" ; then
10024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026 fi
10027
10028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10030 fi
10031
10032 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10033
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10035 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10036 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10037 if eval \${$cacheid+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 int i;
10043 int
10044 main ()
10045 {
10046
10047 ;
10048 return 0;
10049 }
10050 _ACEOF
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 eval $cacheid=yes
10053 else
10054 eval $cacheid=no
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 fi
10059
10060
10061 CFLAGS="$xorg_testset_save_CFLAGS"
10062
10063 eval supported=\$$cacheid
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10065 $as_echo "$supported" >&6; }
10066 if test "$supported" = "yes" ; then
10067 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10068 found="yes"
10069 fi
10070 fi
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086 xorg_testset_save_CFLAGS="$CFLAGS"
10087
10088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 int i;
10098 _ACEOF
10099 if ac_fn_c_try_compile "$LINENO"; then :
10100 xorg_cv_cc_flag_unknown_warning_option=yes
10101 else
10102 xorg_cv_cc_flag_unknown_warning_option=no
10103 fi
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10109 CFLAGS="$xorg_testset_save_CFLAGS"
10110 fi
10111
10112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115 fi
10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 int i;
10125 _ACEOF
10126 if ac_fn_c_try_compile "$LINENO"; then :
10127 xorg_cv_cc_flag_unused_command_line_argument=yes
10128 else
10129 xorg_cv_cc_flag_unused_command_line_argument=no
10130 fi
10131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132 fi
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10136 CFLAGS="$xorg_testset_save_CFLAGS"
10137 fi
10138
10139 found="no"
10140
10141 if test $found = "no" ; then
10142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10144 fi
10145
10146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148 fi
10149
10150 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10153 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10154 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10155 if eval \${$cacheid+:} false; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 int i;
10161 int
10162 main ()
10163 {
10164
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 eval $cacheid=yes
10171 else
10172 eval $cacheid=no
10173 fi
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 fi
10177
10178
10179 CFLAGS="$xorg_testset_save_CFLAGS"
10180
10181 eval supported=\$$cacheid
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10183 $as_echo "$supported" >&6; }
10184 if test "$supported" = "yes" ; then
10185 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10186 found="yes"
10187 fi
10188 fi
10189
10190
10191 fi
10192
10193
10194
10195
10196
10197
10198
10199 CWARNFLAGS="$BASE_CFLAGS"
10200 if test "x$GCC" = xyes ; then
10201 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10202 fi
10203
10204
10205
10206
10207
10208
10209
10210
10211 # Check whether --enable-strict-compilation was given.
10212 if test "${enable_strict_compilation+set}" = set; then :
10213 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10214 else
10215 STRICT_COMPILE=no
10216 fi
10217
10218
10219
10220
10221
10222
10223 STRICT_CFLAGS=""
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237 xorg_testset_save_CFLAGS="$CFLAGS"
10238
10239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10242 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10243 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248 int i;
10249 _ACEOF
10250 if ac_fn_c_try_compile "$LINENO"; then :
10251 xorg_cv_cc_flag_unknown_warning_option=yes
10252 else
10253 xorg_cv_cc_flag_unknown_warning_option=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10258 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10260 CFLAGS="$xorg_testset_save_CFLAGS"
10261 fi
10262
10263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266 fi
10267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10270 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 int i;
10276 _ACEOF
10277 if ac_fn_c_try_compile "$LINENO"; then :
10278 xorg_cv_cc_flag_unused_command_line_argument=yes
10279 else
10280 xorg_cv_cc_flag_unused_command_line_argument=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283 fi
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10285 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10287 CFLAGS="$xorg_testset_save_CFLAGS"
10288 fi
10289
10290 found="no"
10291
10292 if test $found = "no" ; then
10293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295 fi
10296
10297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10299 fi
10300
10301 CFLAGS="$CFLAGS -pedantic"
10302
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10304 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10305 cacheid=xorg_cv_cc_flag__pedantic
10306 if eval \${$cacheid+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 int i;
10312 int
10313 main ()
10314 {
10315
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 eval $cacheid=yes
10322 else
10323 eval $cacheid=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 fi
10328
10329
10330 CFLAGS="$xorg_testset_save_CFLAGS"
10331
10332 eval supported=\$$cacheid
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10334 $as_echo "$supported" >&6; }
10335 if test "$supported" = "yes" ; then
10336 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10337 found="yes"
10338 fi
10339 fi
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355 xorg_testset_save_CFLAGS="$CFLAGS"
10356
10357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10360 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10361 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int i;
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369 xorg_cv_cc_flag_unknown_warning_option=yes
10370 else
10371 xorg_cv_cc_flag_unknown_warning_option=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10376 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10378 CFLAGS="$xorg_testset_save_CFLAGS"
10379 fi
10380
10381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384 fi
10385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10387 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10388 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 int i;
10394 _ACEOF
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396 xorg_cv_cc_flag_unused_command_line_argument=yes
10397 else
10398 xorg_cv_cc_flag_unused_command_line_argument=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 fi
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10403 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10405 CFLAGS="$xorg_testset_save_CFLAGS"
10406 fi
10407
10408 found="no"
10409
10410 if test $found = "no" ; then
10411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10413 fi
10414
10415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10417 fi
10418
10419 CFLAGS="$CFLAGS -Werror"
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10422 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10423 cacheid=xorg_cv_cc_flag__Werror
10424 if eval \${$cacheid+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429 int i;
10430 int
10431 main ()
10432 {
10433
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 eval $cacheid=yes
10440 else
10441 eval $cacheid=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 fi
10446
10447
10448 CFLAGS="$xorg_testset_save_CFLAGS"
10449
10450 eval supported=\$$cacheid
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10452 $as_echo "$supported" >&6; }
10453 if test "$supported" = "yes" ; then
10454 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10455 found="yes"
10456 fi
10457 fi
10458
10459 if test $found = "no" ; then
10460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462 fi
10463
10464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466 fi
10467
10468 CFLAGS="$CFLAGS -errwarn"
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10471 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10472 cacheid=xorg_cv_cc_flag__errwarn
10473 if eval \${$cacheid+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478 int i;
10479 int
10480 main ()
10481 {
10482
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 if ac_fn_c_try_link "$LINENO"; then :
10488 eval $cacheid=yes
10489 else
10490 eval $cacheid=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 fi
10495
10496
10497 CFLAGS="$xorg_testset_save_CFLAGS"
10498
10499 eval supported=\$$cacheid
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10501 $as_echo "$supported" >&6; }
10502 if test "$supported" = "yes" ; then
10503 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10504 found="yes"
10505 fi
10506 fi
10507
10508
10509
10510 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10511 # activate it with -Werror, so we add it here explicitly.
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525 xorg_testset_save_CFLAGS="$CFLAGS"
10526
10527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10530 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10531 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536 int i;
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"; then :
10539 xorg_cv_cc_flag_unknown_warning_option=yes
10540 else
10541 xorg_cv_cc_flag_unknown_warning_option=no
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10546 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10548 CFLAGS="$xorg_testset_save_CFLAGS"
10549 fi
10550
10551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10554 fi
10555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10557 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10558 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 int i;
10564 _ACEOF
10565 if ac_fn_c_try_compile "$LINENO"; then :
10566 xorg_cv_cc_flag_unused_command_line_argument=yes
10567 else
10568 xorg_cv_cc_flag_unused_command_line_argument=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10573 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10575 CFLAGS="$xorg_testset_save_CFLAGS"
10576 fi
10577
10578 found="no"
10579
10580 if test $found = "no" ; then
10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583 fi
10584
10585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10587 fi
10588
10589 CFLAGS="$CFLAGS -Werror=attributes"
10590
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10592 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10593 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10594 if eval \${$cacheid+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 int i;
10600 int
10601 main ()
10602 {
10603
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 eval $cacheid=yes
10610 else
10611 eval $cacheid=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 fi
10616
10617
10618 CFLAGS="$xorg_testset_save_CFLAGS"
10619
10620 eval supported=\$$cacheid
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10622 $as_echo "$supported" >&6; }
10623 if test "$supported" = "yes" ; then
10624 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10625 found="yes"
10626 fi
10627 fi
10628
10629
10630
10631 if test "x$STRICT_COMPILE" = "xyes"; then
10632 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10633 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10634 fi
10635
10636
10637
10638
10639
10640
10641 cat >>confdefs.h <<_ACEOF
10642 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10643 _ACEOF
10644
10645 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10646 if test "x$PVM" = "x"; then
10647 PVM="0"
10648 fi
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define PACKAGE_VERSION_MINOR $PVM
10652 _ACEOF
10653
10654 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10655 if test "x$PVP" = "x"; then
10656 PVP="0"
10657 fi
10658
10659 cat >>confdefs.h <<_ACEOF
10660 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10661 _ACEOF
10662
10663
10664
10665 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10666 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10667 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10668 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10669
10670
10671
10672
10673 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10674 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10675 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10676 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10677 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10678
10679
10680
10681
10682
10683
10684 if test x$APP_MAN_SUFFIX = x ; then
10685 APP_MAN_SUFFIX=1
10686 fi
10687 if test x$APP_MAN_DIR = x ; then
10688 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10689 fi
10690
10691 if test x$LIB_MAN_SUFFIX = x ; then
10692 LIB_MAN_SUFFIX=3
10693 fi
10694 if test x$LIB_MAN_DIR = x ; then
10695 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10696 fi
10697
10698 if test x$FILE_MAN_SUFFIX = x ; then
10699 case $host_os in
10700 solaris*) FILE_MAN_SUFFIX=4 ;;
10701 *) FILE_MAN_SUFFIX=5 ;;
10702 esac
10703 fi
10704 if test x$FILE_MAN_DIR = x ; then
10705 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10706 fi
10707
10708 if test x$MISC_MAN_SUFFIX = x ; then
10709 case $host_os in
10710 solaris*) MISC_MAN_SUFFIX=5 ;;
10711 *) MISC_MAN_SUFFIX=7 ;;
10712 esac
10713 fi
10714 if test x$MISC_MAN_DIR = x ; then
10715 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10716 fi
10717
10718 if test x$DRIVER_MAN_SUFFIX = x ; then
10719 case $host_os in
10720 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10721 *) DRIVER_MAN_SUFFIX=4 ;;
10722 esac
10723 fi
10724 if test x$DRIVER_MAN_DIR = x ; then
10725 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10726 fi
10727
10728 if test x$ADMIN_MAN_SUFFIX = x ; then
10729 case $host_os in
10730 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10731 *) ADMIN_MAN_SUFFIX=8 ;;
10732 esac
10733 fi
10734 if test x$ADMIN_MAN_DIR = x ; then
10735 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10736 fi
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752 XORG_MAN_PAGE="X Version 11"
10753
10754 MAN_SUBSTS="\
10755 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10756 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10757 -e 's|__xservername__|Xorg|g' \
10758 -e 's|__xconfigfile__|xorg.conf|g' \
10759 -e 's|__projectroot__|\$(prefix)|g' \
10760 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10761 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10762 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10763 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10764 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10765 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10766 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10767
10768
10769
10770 # Check whether --enable-silent-rules was given.
10771 if test "${enable_silent_rules+set}" = set; then :
10772 enableval=$enable_silent_rules;
10773 fi
10774
10775 case $enable_silent_rules in # (((
10776 yes) AM_DEFAULT_VERBOSITY=0;;
10777 no) AM_DEFAULT_VERBOSITY=1;;
10778 *) AM_DEFAULT_VERBOSITY=0;;
10779 esac
10780 am_make=${MAKE-make}
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10782 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10783 if ${am_cv_make_support_nested_variables+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 if $as_echo 'TRUE=$(BAR$(V))
10787 BAR0=false
10788 BAR1=true
10789 V=1
10790 am__doit:
10791 @$(TRUE)
10792 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10793 am_cv_make_support_nested_variables=yes
10794 else
10795 am_cv_make_support_nested_variables=no
10796 fi
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10799 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10800 if test $am_cv_make_support_nested_variables = yes; then
10801 AM_V='$(V)'
10802 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10803 else
10804 AM_V=$AM_DEFAULT_VERBOSITY
10805 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10806 fi
10807 AM_BACKSLASH='\'
10808
10809
10810
10811 for ac_func in asprintf
10812 do :
10813 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
10814 if test "x$ac_cv_func_asprintf" = xyes; then :
10815 cat >>confdefs.h <<_ACEOF
10816 #define HAVE_ASPRINTF 1
10817 _ACEOF
10818
10819 fi
10820 done
10821
10822
10823
10824 pkg_failed=no
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5
10826 $as_echo_n "checking for RGB... " >&6; }
10827
10828 if test -n "$RGB_CFLAGS"; then
10829 pkg_cv_RGB_CFLAGS="$RGB_CFLAGS"
10830 elif test -n "$PKG_CONFIG"; then
10831 if test -n "$PKG_CONFIG" && \
10832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10833 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10834 ac_status=$?
10835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836 test $ac_status = 0; }; then
10837 pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10838 else
10839 pkg_failed=yes
10840 fi
10841 else
10842 pkg_failed=untried
10843 fi
10844 if test -n "$RGB_LIBS"; then
10845 pkg_cv_RGB_LIBS="$RGB_LIBS"
10846 elif test -n "$PKG_CONFIG"; then
10847 if test -n "$PKG_CONFIG" && \
10848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10849 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10850 ac_status=$?
10851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10852 test $ac_status = 0; }; then
10853 pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10854 else
10855 pkg_failed=yes
10856 fi
10857 else
10858 pkg_failed=untried
10859 fi
10860
10861
10862
10863 if test $pkg_failed = yes; then
10864
10865 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10866 _pkg_short_errors_supported=yes
10867 else
10868 _pkg_short_errors_supported=no
10869 fi
10870 if test $_pkg_short_errors_supported = yes; then
10871 RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10872 else
10873 RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10874 fi
10875 # Put the nasty error message in config.log where it belongs
10876 echo "$RGB_PKG_ERRORS" >&5
10877
10878 as_fn_error $? "Package requirements (xproto) were not met:
10879
10880 $RGB_PKG_ERRORS
10881
10882 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10883 installed software in a non-standard prefix.
10884
10885 Alternatively, you may set the environment variables RGB_CFLAGS
10886 and RGB_LIBS to avoid the need to call pkg-config.
10887 See the pkg-config man page for more details.
10888 " "$LINENO" 5
10889 elif test $pkg_failed = untried; then
10890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10892 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10893 is in your PATH or set the PKG_CONFIG environment variable to the full
10894 path to pkg-config.
10895
10896 Alternatively, you may set the environment variables RGB_CFLAGS
10897 and RGB_LIBS to avoid the need to call pkg-config.
10898 See the pkg-config man page for more details.
10899
10900 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10901 See \`config.log' for more details" "$LINENO" 5; }
10902 else
10903 RGB_CFLAGS=$pkg_cv_RGB_CFLAGS
10904 RGB_LIBS=$pkg_cv_RGB_LIBS
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906 $as_echo "yes" >&6; }
10907 :
10908 fi
10909
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5
10911 $as_echo_n "checking for rgb database location... " >&6; }
10912
10913 # Check whether --with-rgb-db-dir was given.
10914 if test "${with_rgb_db_dir+set}" = set; then :
10915 withval=$with_rgb_db_dir; db_path=$withval
10916 else
10917 db_path=${datadir}/X11/rgb
10918 fi
10919
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5
10921 $as_echo "$db_path" >&6; }
10922 db_file=`basename $db_path`
10923 db_dir=`dirname $db_path`
10924
10925
10926
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5
10928 $as_echo_n "checking for rgb database format... " >&6; }
10929
10930 # Check whether --with-rgb-db-type was given.
10931 if test "${with_rgb_db_type+set}" = set; then :
10932 withval=$with_rgb_db_type; db_type=$withval
10933 else
10934 db_type="text"
10935 fi
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5
10938 $as_echo "$db_type" >&6; }
10939
10940 RGB_DB_TYPE=$db_type
10941
10942 case $db_type in
10943 text)
10944 RGB_DB_FILES=""
10945
10946 $as_echo "#define USE_RGB_TXT 1" >>confdefs.h
10947
10948 ;;
10949 dbm)
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5
10951 $as_echo_n "checking for library containing dbminit... " >&6; }
10952 if ${ac_cv_search_dbminit+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 ac_func_search_save_LIBS=$LIBS
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dbminit ();
10966 int
10967 main ()
10968 {
10969 return dbminit ();
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 for ac_lib in '' db dbm nsl; do
10975 if test -z "$ac_lib"; then
10976 ac_res="none required"
10977 else
10978 ac_res=-l$ac_lib
10979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10980 fi
10981 if ac_fn_c_try_link "$LINENO"; then :
10982 ac_cv_search_dbminit=$ac_res
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext
10986 if ${ac_cv_search_dbminit+:} false; then :
10987 break
10988 fi
10989 done
10990 if ${ac_cv_search_dbminit+:} false; then :
10991
10992 else
10993 ac_cv_search_dbminit=no
10994 fi
10995 rm conftest.$ac_ext
10996 LIBS=$ac_func_search_save_LIBS
10997 fi
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5
10999 $as_echo "$ac_cv_search_dbminit" >&6; }
11000 ac_res=$ac_cv_search_dbminit
11001 if test "$ac_res" != no; then :
11002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11003
11004 else
11005 as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5
11006 fi
11007
11008 ac_fn_c_check_header_mongrel "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
11009 if test "x$ac_cv_header_dbm_h" = xyes; then :
11010 DBM_HEADER='<dbm.h>'
11011 else
11012 ac_fn_c_check_header_mongrel "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default"
11013 if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes; then :
11014 DBM_HEADER='<rpcsvc/dbm.h>'
11015 else
11016 as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5
11017 fi
11018
11019
11020 fi
11021
11022
11023
11024 pkg_failed=no
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11026 $as_echo_n "checking for XORG... " >&6; }
11027
11028 if test -n "$XORG_CFLAGS"; then
11029 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11030 elif test -n "$PKG_CONFIG"; then
11031 if test -n "$PKG_CONFIG" && \
11032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11033 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11034 ac_status=$?
11035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11036 test $ac_status = 0; }; then
11037 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
11038 else
11039 pkg_failed=yes
11040 fi
11041 else
11042 pkg_failed=untried
11043 fi
11044 if test -n "$XORG_LIBS"; then
11045 pkg_cv_XORG_LIBS="$XORG_LIBS"
11046 elif test -n "$PKG_CONFIG"; then
11047 if test -n "$PKG_CONFIG" && \
11048 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11049 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11050 ac_status=$?
11051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052 test $ac_status = 0; }; then
11053 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
11054 else
11055 pkg_failed=yes
11056 fi
11057 else
11058 pkg_failed=untried
11059 fi
11060
11061
11062
11063 if test $pkg_failed = yes; then
11064
11065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11066 _pkg_short_errors_supported=yes
11067 else
11068 _pkg_short_errors_supported=no
11069 fi
11070 if test $_pkg_short_errors_supported = yes; then
11071 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
11072 else
11073 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
11074 fi
11075 # Put the nasty error message in config.log where it belongs
11076 echo "$XORG_PKG_ERRORS" >&5
11077
11078 as_fn_error $? "Package requirements (xorg-server) were not met:
11079
11080 $XORG_PKG_ERRORS
11081
11082 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11083 installed software in a non-standard prefix.
11084
11085 Alternatively, you may set the environment variables XORG_CFLAGS
11086 and XORG_LIBS to avoid the need to call pkg-config.
11087 See the pkg-config man page for more details.
11088 " "$LINENO" 5
11089 elif test $pkg_failed = untried; then
11090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11092 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11093 is in your PATH or set the PKG_CONFIG environment variable to the full
11094 path to pkg-config.
11095
11096 Alternatively, you may set the environment variables XORG_CFLAGS
11097 and XORG_LIBS to avoid the need to call pkg-config.
11098 See the pkg-config man page for more details.
11099
11100 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11101 See \`config.log' for more details" "$LINENO" 5; }
11102 else
11103 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11104 XORG_LIBS=$pkg_cv_XORG_LIBS
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; }
11107 :
11108 fi
11109 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
11110 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
11111 ;;
11112 ndbm)
11113 # Find a dbm or ndbm implementation
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
11115 $as_echo_n "checking for library containing dbm_open... " >&6; }
11116 if ${ac_cv_search_dbm_open+:} false; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 ac_func_search_save_LIBS=$LIBS
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char dbm_open ();
11130 int
11131 main ()
11132 {
11133 return dbm_open ();
11134 ;
11135 return 0;
11136 }
11137 _ACEOF
11138 for ac_lib in '' db ndbm dbm; do
11139 if test -z "$ac_lib"; then
11140 ac_res="none required"
11141 else
11142 ac_res=-l$ac_lib
11143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11144 fi
11145 if ac_fn_c_try_link "$LINENO"; then :
11146 ac_cv_search_dbm_open=$ac_res
11147 fi
11148 rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext
11150 if ${ac_cv_search_dbm_open+:} false; then :
11151 break
11152 fi
11153 done
11154 if ${ac_cv_search_dbm_open+:} false; then :
11155
11156 else
11157 ac_cv_search_dbm_open=no
11158 fi
11159 rm conftest.$ac_ext
11160 LIBS=$ac_func_search_save_LIBS
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
11163 $as_echo "$ac_cv_search_dbm_open" >&6; }
11164 ac_res=$ac_cv_search_dbm_open
11165 if test "$ac_res" != no; then :
11166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11167
11168 $as_echo "#define NDBM 1" >>confdefs.h
11169
11170 else
11171 as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5
11172 fi
11173
11174 DBM_HEADER='<ndbm.h>'
11175
11176 pkg_failed=no
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11178 $as_echo_n "checking for XORG... " >&6; }
11179
11180 if test -n "$XORG_CFLAGS"; then
11181 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11182 elif test -n "$PKG_CONFIG"; then
11183 if test -n "$PKG_CONFIG" && \
11184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11185 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11186 ac_status=$?
11187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11188 test $ac_status = 0; }; then
11189 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
11190 else
11191 pkg_failed=yes
11192 fi
11193 else
11194 pkg_failed=untried
11195 fi
11196 if test -n "$XORG_LIBS"; then
11197 pkg_cv_XORG_LIBS="$XORG_LIBS"
11198 elif test -n "$PKG_CONFIG"; then
11199 if test -n "$PKG_CONFIG" && \
11200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
11201 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
11202 ac_status=$?
11203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204 test $ac_status = 0; }; then
11205 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
11206 else
11207 pkg_failed=yes
11208 fi
11209 else
11210 pkg_failed=untried
11211 fi
11212
11213
11214
11215 if test $pkg_failed = yes; then
11216
11217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11218 _pkg_short_errors_supported=yes
11219 else
11220 _pkg_short_errors_supported=no
11221 fi
11222 if test $_pkg_short_errors_supported = yes; then
11223 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
11224 else
11225 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
11226 fi
11227 # Put the nasty error message in config.log where it belongs
11228 echo "$XORG_PKG_ERRORS" >&5
11229
11230 as_fn_error $? "Package requirements (xorg-server) were not met:
11231
11232 $XORG_PKG_ERRORS
11233
11234 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11235 installed software in a non-standard prefix.
11236
11237 Alternatively, you may set the environment variables XORG_CFLAGS
11238 and XORG_LIBS to avoid the need to call pkg-config.
11239 See the pkg-config man page for more details.
11240 " "$LINENO" 5
11241 elif test $pkg_failed = untried; then
11242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11244 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11245 is in your PATH or set the PKG_CONFIG environment variable to the full
11246 path to pkg-config.
11247
11248 Alternatively, you may set the environment variables XORG_CFLAGS
11249 and XORG_LIBS to avoid the need to call pkg-config.
11250 See the pkg-config man page for more details.
11251
11252 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11253 See \`config.log' for more details" "$LINENO" 5; }
11254 else
11255 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11256 XORG_LIBS=$pkg_cv_XORG_LIBS
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258 $as_echo "yes" >&6; }
11259 :
11260 fi
11261 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
11262 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
11263 ;;
11264 esac
11265 if test x$DBM_HEADER != x ; then
11266
11267 cat >>confdefs.h <<_ACEOF
11268 #define DBM_HEADER $DBM_HEADER
11269 _ACEOF
11270
11271 fi
11272
11273
11274 if test x$db_type != xtext; then
11275 RGB_DB_TRUE=
11276 RGB_DB_FALSE='#'
11277 else
11278 RGB_DB_TRUE='#'
11279 RGB_DB_FALSE=
11280 fi
11281
11282
11283 ac_config_files="$ac_config_files Makefile man/Makefile"
11284
11285
11286 cat >confcache <<\_ACEOF
11287 # This file is a shell script that caches the results of configure
11288 # tests run on this system so they can be shared between configure
11289 # scripts and configure runs, see configure's option --config-cache.
11290 # It is not useful on other systems. If it contains results you don't
11291 # want to keep, you may remove or edit it.
11292 #
11293 # config.status only pays attention to the cache file if you give it
11294 # the --recheck option to rerun configure.
11295 #
11296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11298 # following values.
11299
11300 _ACEOF
11301
11302 # The following way of writing the cache mishandles newlines in values,
11303 # but we know of no workaround that is simple, portable, and efficient.
11304 # So, we kill variables containing newlines.
11305 # Ultrix sh set writes to stderr and can't be redirected directly,
11306 # and sets the high bit in the cache file unless we assign to the vars.
11307 (
11308 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11309 eval ac_val=\$$ac_var
11310 case $ac_val in #(
11311 *${as_nl}*)
11312 case $ac_var in #(
11313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11315 esac
11316 case $ac_var in #(
11317 _ | IFS | as_nl) ;; #(
11318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11319 *) { eval $ac_var=; unset $ac_var;} ;;
11320 esac ;;
11321 esac
11322 done
11323
11324 (set) 2>&1 |
11325 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11326 *${as_nl}ac_space=\ *)
11327 # `set' does not quote correctly, so add quotes: double-quote
11328 # substitution turns \\\\ into \\, and sed turns \\ into \.
11329 sed -n \
11330 "s/'/'\\\\''/g;
11331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11332 ;; #(
11333 *)
11334 # `set' quotes correctly as required by POSIX, so do not add quotes.
11335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11336 ;;
11337 esac |
11338 sort
11339 ) |
11340 sed '
11341 /^ac_cv_env_/b end
11342 t clear
11343 :clear
11344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11345 t end
11346 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11347 :end' >>confcache
11348 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11349 if test -w "$cache_file"; then
11350 if test "x$cache_file" != "x/dev/null"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11352 $as_echo "$as_me: updating cache $cache_file" >&6;}
11353 if test ! -f "$cache_file" || test -h "$cache_file"; then
11354 cat confcache >"$cache_file"
11355 else
11356 case $cache_file in #(
11357 */* | ?:*)
11358 mv -f confcache "$cache_file"$$ &&
11359 mv -f "$cache_file"$$ "$cache_file" ;; #(
11360 *)
11361 mv -f confcache "$cache_file" ;;
11362 esac
11363 fi
11364 fi
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11367 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11368 fi
11369 fi
11370 rm -f confcache
11371
11372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11373 # Let make expand exec_prefix.
11374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11375
11376 DEFS=-DHAVE_CONFIG_H
11377
11378 ac_libobjs=
11379 ac_ltlibobjs=
11380 U=
11381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11382 # 1. Remove the extension, and $U if already installed.
11383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11386 # will be set to the directory where LIBOBJS objects are built.
11387 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11388 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11389 done
11390 LIBOBJS=$ac_libobjs
11391
11392 LTLIBOBJS=$ac_ltlibobjs
11393
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11396 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11397 if test -n "$am_sleep_pid"; then
11398 # Hide warnings about reused PIDs.
11399 wait $am_sleep_pid 2>/dev/null
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11402 $as_echo "done" >&6; }
11403 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11404 as_fn_error $? "conditional \"AMDEP\" was never defined.
11405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11406 fi
11407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11408 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11410 fi
11411 if test -n "$EXEEXT"; then
11412 am__EXEEXT_TRUE=
11413 am__EXEEXT_FALSE='#'
11414 else
11415 am__EXEEXT_TRUE='#'
11416 am__EXEEXT_FALSE=
11417 fi
11418
11419 if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then
11420 as_fn_error $? "conditional \"RGB_DB\" was never defined.
11421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11422 fi
11423
11424 : "${CONFIG_STATUS=./config.status}"
11425 ac_write_fail=0
11426 ac_clean_files_save=$ac_clean_files
11427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11429 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11430 as_write_fail=0
11431 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11432 #! $SHELL
11433 # Generated by $as_me.
11434 # Run this file to recreate the current configuration.
11435 # Compiler output produced by configure, useful for debugging
11436 # configure, is in config.log if it exists.
11437
11438 debug=false
11439 ac_cs_recheck=false
11440 ac_cs_silent=false
11441
11442 SHELL=\${CONFIG_SHELL-$SHELL}
11443 export SHELL
11444 _ASEOF
11445 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11446 ## -------------------- ##
11447 ## M4sh Initialization. ##
11448 ## -------------------- ##
11449
11450 # Be more Bourne compatible
11451 DUALCASE=1; export DUALCASE # for MKS sh
11452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11453 emulate sh
11454 NULLCMD=:
11455 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11456 # is contrary to our usage. Disable this feature.
11457 alias -g '${1+"$@"}'='"$@"'
11458 setopt NO_GLOB_SUBST
11459 else
11460 case `(set -o) 2>/dev/null` in #(
11461 *posix*) :
11462 set -o posix ;; #(
11463 *) :
11464 ;;
11465 esac
11466 fi
11467
11468
11469 as_nl='
11470 '
11471 export as_nl
11472 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11473 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11476 # Prefer a ksh shell builtin over an external printf program on Solaris,
11477 # but without wasting forks for bash or zsh.
11478 if test -z "$BASH_VERSION$ZSH_VERSION" \
11479 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11480 as_echo='print -r --'
11481 as_echo_n='print -rn --'
11482 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11483 as_echo='printf %s\n'
11484 as_echo_n='printf %s'
11485 else
11486 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11487 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11488 as_echo_n='/usr/ucb/echo -n'
11489 else
11490 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11491 as_echo_n_body='eval
11492 arg=$1;
11493 case $arg in #(
11494 *"$as_nl"*)
11495 expr "X$arg" : "X\\(.*\\)$as_nl";
11496 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11497 esac;
11498 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11499 '
11500 export as_echo_n_body
11501 as_echo_n='sh -c $as_echo_n_body as_echo'
11502 fi
11503 export as_echo_body
11504 as_echo='sh -c $as_echo_body as_echo'
11505 fi
11506
11507 # The user is always right.
11508 if test "${PATH_SEPARATOR+set}" != set; then
11509 PATH_SEPARATOR=:
11510 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11511 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11512 PATH_SEPARATOR=';'
11513 }
11514 fi
11515
11516
11517 # IFS
11518 # We need space, tab and new line, in precisely that order. Quoting is
11519 # there to prevent editors from complaining about space-tab.
11520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11521 # splitting by setting IFS to empty value.)
11522 IFS=" "" $as_nl"
11523
11524 # Find who we are. Look in the path if we contain no directory separator.
11525 as_myself=
11526 case $0 in #((
11527 *[\\/]* ) as_myself=$0 ;;
11528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11530 do
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
11533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11534 done
11535 IFS=$as_save_IFS
11536
11537 ;;
11538 esac
11539 # We did not find ourselves, most probably we were run as `sh COMMAND'
11540 # in which case we are not to be found in the path.
11541 if test "x$as_myself" = x; then
11542 as_myself=$0
11543 fi
11544 if test ! -f "$as_myself"; then
11545 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11546 exit 1
11547 fi
11548
11549 # Unset variables that we do not need and which cause bugs (e.g. in
11550 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11551 # suppresses any "Segmentation fault" message there. '((' could
11552 # trigger a bug in pdksh 5.2.14.
11553 for as_var in BASH_ENV ENV MAIL MAILPATH
11554 do eval test x\${$as_var+set} = xset \
11555 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11556 done
11557 PS1='$ '
11558 PS2='> '
11559 PS4='+ '
11560
11561 # NLS nuisances.
11562 LC_ALL=C
11563 export LC_ALL
11564 LANGUAGE=C
11565 export LANGUAGE
11566
11567 # CDPATH.
11568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11569
11570
11571 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11572 # ----------------------------------------
11573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11575 # script with STATUS, using 1 if that was 0.
11576 as_fn_error ()
11577 {
11578 as_status=$1; test $as_status -eq 0 && as_status=1
11579 if test "$4"; then
11580 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11581 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11582 fi
11583 $as_echo "$as_me: error: $2" >&2
11584 as_fn_exit $as_status
11585 } # as_fn_error
11586
11587
11588 # as_fn_set_status STATUS
11589 # -----------------------
11590 # Set $? to STATUS, without forking.
11591 as_fn_set_status ()
11592 {
11593 return $1
11594 } # as_fn_set_status
11595
11596 # as_fn_exit STATUS
11597 # -----------------
11598 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11599 as_fn_exit ()
11600 {
11601 set +e
11602 as_fn_set_status $1
11603 exit $1
11604 } # as_fn_exit
11605
11606 # as_fn_unset VAR
11607 # ---------------
11608 # Portably unset VAR.
11609 as_fn_unset ()
11610 {
11611 { eval $1=; unset $1;}
11612 }
11613 as_unset=as_fn_unset
11614 # as_fn_append VAR VALUE
11615 # ----------------------
11616 # Append the text in VALUE to the end of the definition contained in VAR. Take
11617 # advantage of any shell optimizations that allow amortized linear growth over
11618 # repeated appends, instead of the typical quadratic growth present in naive
11619 # implementations.
11620 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11621 eval 'as_fn_append ()
11622 {
11623 eval $1+=\$2
11624 }'
11625 else
11626 as_fn_append ()
11627 {
11628 eval $1=\$$1\$2
11629 }
11630 fi # as_fn_append
11631
11632 # as_fn_arith ARG...
11633 # ------------------
11634 # Perform arithmetic evaluation on the ARGs, and store the result in the
11635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11636 # must be portable across $(()) and expr.
11637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11638 eval 'as_fn_arith ()
11639 {
11640 as_val=$(( $* ))
11641 }'
11642 else
11643 as_fn_arith ()
11644 {
11645 as_val=`expr "$@" || test $? -eq 1`
11646 }
11647 fi # as_fn_arith
11648
11649
11650 if expr a : '\(a\)' >/dev/null 2>&1 &&
11651 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11652 as_expr=expr
11653 else
11654 as_expr=false
11655 fi
11656
11657 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11658 as_basename=basename
11659 else
11660 as_basename=false
11661 fi
11662
11663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11664 as_dirname=dirname
11665 else
11666 as_dirname=false
11667 fi
11668
11669 as_me=`$as_basename -- "$0" ||
11670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11671 X"$0" : 'X\(//\)$' \| \
11672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11673 $as_echo X/"$0" |
11674 sed '/^.*\/\([^/][^/]*\)\/*$/{
11675 s//\1/
11676 q
11677 }
11678 /^X\/\(\/\/\)$/{
11679 s//\1/
11680 q
11681 }
11682 /^X\/\(\/\).*/{
11683 s//\1/
11684 q
11685 }
11686 s/.*/./; q'`
11687
11688 # Avoid depending upon Character Ranges.
11689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11692 as_cr_digits='0123456789'
11693 as_cr_alnum=$as_cr_Letters$as_cr_digits
11694
11695 ECHO_C= ECHO_N= ECHO_T=
11696 case `echo -n x` in #(((((
11697 -n*)
11698 case `echo 'xy\c'` in
11699 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11700 xy) ECHO_C='\c';;
11701 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11702 ECHO_T=' ';;
11703 esac;;
11704 *)
11705 ECHO_N='-n';;
11706 esac
11707
11708 rm -f conf$$ conf$$.exe conf$$.file
11709 if test -d conf$$.dir; then
11710 rm -f conf$$.dir/conf$$.file
11711 else
11712 rm -f conf$$.dir
11713 mkdir conf$$.dir 2>/dev/null
11714 fi
11715 if (echo >conf$$.file) 2>/dev/null; then
11716 if ln -s conf$$.file conf$$ 2>/dev/null; then
11717 as_ln_s='ln -s'
11718 # ... but there are two gotchas:
11719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11721 # In both cases, we have to default to `cp -p'.
11722 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11723 as_ln_s='cp -p'
11724 elif ln conf$$.file conf$$ 2>/dev/null; then
11725 as_ln_s=ln
11726 else
11727 as_ln_s='cp -p'
11728 fi
11729 else
11730 as_ln_s='cp -p'
11731 fi
11732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11733 rmdir conf$$.dir 2>/dev/null
11734
11735
11736 # as_fn_mkdir_p
11737 # -------------
11738 # Create "$as_dir" as a directory, including parents if necessary.
11739 as_fn_mkdir_p ()
11740 {
11741
11742 case $as_dir in #(
11743 -*) as_dir=./$as_dir;;
11744 esac
11745 test -d "$as_dir" || eval $as_mkdir_p || {
11746 as_dirs=
11747 while :; do
11748 case $as_dir in #(
11749 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11750 *) as_qdir=$as_dir;;
11751 esac
11752 as_dirs="'$as_qdir' $as_dirs"
11753 as_dir=`$as_dirname -- "$as_dir" ||
11754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11755 X"$as_dir" : 'X\(//\)[^/]' \| \
11756 X"$as_dir" : 'X\(//\)$' \| \
11757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11758 $as_echo X"$as_dir" |
11759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11760 s//\1/
11761 q
11762 }
11763 /^X\(\/\/\)[^/].*/{
11764 s//\1/
11765 q
11766 }
11767 /^X\(\/\/\)$/{
11768 s//\1/
11769 q
11770 }
11771 /^X\(\/\).*/{
11772 s//\1/
11773 q
11774 }
11775 s/.*/./; q'`
11776 test -d "$as_dir" && break
11777 done
11778 test -z "$as_dirs" || eval "mkdir $as_dirs"
11779 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11780
11781
11782 } # as_fn_mkdir_p
11783 if mkdir -p . 2>/dev/null; then
11784 as_mkdir_p='mkdir -p "$as_dir"'
11785 else
11786 test -d ./-p && rmdir ./-p
11787 as_mkdir_p=false
11788 fi
11789
11790 if test -x / >/dev/null 2>&1; then
11791 as_test_x='test -x'
11792 else
11793 if ls -dL / >/dev/null 2>&1; then
11794 as_ls_L_option=L
11795 else
11796 as_ls_L_option=
11797 fi
11798 as_test_x='
11799 eval sh -c '\''
11800 if test -d "$1"; then
11801 test -d "$1/.";
11802 else
11803 case $1 in #(
11804 -*)set "./$1";;
11805 esac;
11806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11807 ???[sx]*):;;*)false;;esac;fi
11808 '\'' sh
11809 '
11810 fi
11811 as_executable_p=$as_test_x
11812
11813 # Sed expression to map a string onto a valid CPP name.
11814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11815
11816 # Sed expression to map a string onto a valid variable name.
11817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11818
11819
11820 exec 6>&1
11821 ## ----------------------------------- ##
11822 ## Main body of $CONFIG_STATUS script. ##
11823 ## ----------------------------------- ##
11824 _ASEOF
11825 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11826
11827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11828 # Save the log message, to keep $0 and so on meaningful, and to
11829 # report actual input values of CONFIG_FILES etc. instead of their
11830 # values after options handling.
11831 ac_log="
11832 This file was extended by rgb $as_me 1.0.6, which was
11833 generated by GNU Autoconf 2.68. Invocation command line was
11834
11835 CONFIG_FILES = $CONFIG_FILES
11836 CONFIG_HEADERS = $CONFIG_HEADERS
11837 CONFIG_LINKS = $CONFIG_LINKS
11838 CONFIG_COMMANDS = $CONFIG_COMMANDS
11839 $ $0 $@
11840
11841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11842 "
11843
11844 _ACEOF
11845
11846 case $ac_config_files in *"
11847 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11848 esac
11849
11850 case $ac_config_headers in *"
11851 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11852 esac
11853
11854
11855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11856 # Files that config.status was made for.
11857 config_files="$ac_config_files"
11858 config_headers="$ac_config_headers"
11859 config_commands="$ac_config_commands"
11860
11861 _ACEOF
11862
11863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11864 ac_cs_usage="\
11865 \`$as_me' instantiates files and other configuration actions
11866 from templates according to the current configuration. Unless the files
11867 and actions are specified as TAGs, all are instantiated by default.
11868
11869 Usage: $0 [OPTION]... [TAG]...
11870
11871 -h, --help print this help, then exit
11872 -V, --version print version number and configuration settings, then exit
11873 --config print configuration, then exit
11874 -q, --quiet, --silent
11875 do not print progress messages
11876 -d, --debug don't remove temporary files
11877 --recheck update $as_me by reconfiguring in the same conditions
11878 --file=FILE[:TEMPLATE]
11879 instantiate the configuration file FILE
11880 --header=FILE[:TEMPLATE]
11881 instantiate the configuration header FILE
11882
11883 Configuration files:
11884 $config_files
11885
11886 Configuration headers:
11887 $config_headers
11888
11889 Configuration commands:
11890 $config_commands
11891
11892 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11893
11894 _ACEOF
11895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11896 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11897 ac_cs_version="\\
11898 rgb config.status 1.0.6
11899 configured by $0, generated by GNU Autoconf 2.68,
11900 with options \\"\$ac_cs_config\\"
11901
11902 Copyright (C) 2010 Free Software Foundation, Inc.
11903 This config.status script is free software; the Free Software Foundation
11904 gives unlimited permission to copy, distribute and modify it."
11905
11906 ac_pwd='$ac_pwd'
11907 srcdir='$srcdir'
11908 INSTALL='$INSTALL'
11909 MKDIR_P='$MKDIR_P'
11910 AWK='$AWK'
11911 test -n "\$AWK" || AWK=awk
11912 _ACEOF
11913
11914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11915 # The default lists apply if the user does not specify any file.
11916 ac_need_defaults=:
11917 while test $# != 0
11918 do
11919 case $1 in
11920 --*=?*)
11921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11923 ac_shift=:
11924 ;;
11925 --*=)
11926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11927 ac_optarg=
11928 ac_shift=:
11929 ;;
11930 *)
11931 ac_option=$1
11932 ac_optarg=$2
11933 ac_shift=shift
11934 ;;
11935 esac
11936
11937 case $ac_option in
11938 # Handling of the options.
11939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11940 ac_cs_recheck=: ;;
11941 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11942 $as_echo "$ac_cs_version"; exit ;;
11943 --config | --confi | --conf | --con | --co | --c )
11944 $as_echo "$ac_cs_config"; exit ;;
11945 --debug | --debu | --deb | --de | --d | -d )
11946 debug=: ;;
11947 --file | --fil | --fi | --f )
11948 $ac_shift
11949 case $ac_optarg in
11950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11951 '') as_fn_error $? "missing file argument" ;;
11952 esac
11953 as_fn_append CONFIG_FILES " '$ac_optarg'"
11954 ac_need_defaults=false;;
11955 --header | --heade | --head | --hea )
11956 $ac_shift
11957 case $ac_optarg in
11958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11959 esac
11960 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11961 ac_need_defaults=false;;
11962 --he | --h)
11963 # Conflict between --help and --header
11964 as_fn_error $? "ambiguous option: \`$1'
11965 Try \`$0 --help' for more information.";;
11966 --help | --hel | -h )
11967 $as_echo "$ac_cs_usage"; exit ;;
11968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11969 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11970 ac_cs_silent=: ;;
11971
11972 # This is an error.
11973 -*) as_fn_error $? "unrecognized option: \`$1'
11974 Try \`$0 --help' for more information." ;;
11975
11976 *) as_fn_append ac_config_targets " $1"
11977 ac_need_defaults=false ;;
11978
11979 esac
11980 shift
11981 done
11982
11983 ac_configure_extra_args=
11984
11985 if $ac_cs_silent; then
11986 exec 6>/dev/null
11987 ac_configure_extra_args="$ac_configure_extra_args --silent"
11988 fi
11989
11990 _ACEOF
11991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11992 if \$ac_cs_recheck; then
11993 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11994 shift
11995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11996 CONFIG_SHELL='$SHELL'
11997 export CONFIG_SHELL
11998 exec "\$@"
11999 fi
12000
12001 _ACEOF
12002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003 exec 5>>config.log
12004 {
12005 echo
12006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12007 ## Running $as_me. ##
12008 _ASBOX
12009 $as_echo "$ac_log"
12010 } >&5
12011
12012 _ACEOF
12013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12014 #
12015 # INIT-COMMANDS
12016 #
12017 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12018
12019 _ACEOF
12020
12021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022
12023 # Handling of arguments.
12024 for ac_config_target in $ac_config_targets
12025 do
12026 case $ac_config_target in
12027 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12028 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12030 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12031
12032 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12033 esac
12034 done
12035
12036
12037 # If the user did not use the arguments to specify the items to instantiate,
12038 # then the envvar interface is used. Set only those that are not.
12039 # We use the long form for the default assignment because of an extremely
12040 # bizarre bug on SunOS 4.1.3.
12041 if $ac_need_defaults; then
12042 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12043 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12044 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12045 fi
12046
12047 # Have a temporary directory for convenience. Make it in the build tree
12048 # simply because there is no reason against having it here, and in addition,
12049 # creating and moving files from /tmp can sometimes cause problems.
12050 # Hook for its removal unless debugging.
12051 # Note that there is a small window in which the directory will not be cleaned:
12052 # after its creation but before its name has been assigned to `$tmp'.
12053 $debug ||
12054 {
12055 tmp= ac_tmp=
12056 trap 'exit_status=$?
12057 : "${ac_tmp:=$tmp}"
12058 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12059 ' 0
12060 trap 'as_fn_exit 1' 1 2 13 15
12061 }
12062 # Create a (secure) tmp directory for tmp files.
12063
12064 {
12065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12066 test -d "$tmp"
12067 } ||
12068 {
12069 tmp=./conf$$-$RANDOM
12070 (umask 077 && mkdir "$tmp")
12071 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12072 ac_tmp=$tmp
12073
12074 # Set up the scripts for CONFIG_FILES section.
12075 # No need to generate them if there are no CONFIG_FILES.
12076 # This happens for instance with `./config.status config.h'.
12077 if test -n "$CONFIG_FILES"; then
12078
12079
12080 ac_cr=`echo X | tr X '\015'`
12081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12082 # But we know of no other shell where ac_cr would be empty at this
12083 # point, so we can use a bashism as a fallback.
12084 if test "x$ac_cr" = x; then
12085 eval ac_cr=\$\'\\r\'
12086 fi
12087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12089 ac_cs_awk_cr='\\r'
12090 else
12091 ac_cs_awk_cr=$ac_cr
12092 fi
12093
12094 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12095 _ACEOF
12096
12097
12098 {
12099 echo "cat >conf$$subs.awk <<_ACEOF" &&
12100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12101 echo "_ACEOF"
12102 } >conf$$subs.sh ||
12103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12105 ac_delim='%!_!# '
12106 for ac_last_try in false false false false false :; do
12107 . ./conf$$subs.sh ||
12108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12109
12110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12111 if test $ac_delim_n = $ac_delim_num; then
12112 break
12113 elif $ac_last_try; then
12114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12115 else
12116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12117 fi
12118 done
12119 rm -f conf$$subs.sh
12120
12121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12122 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12123 _ACEOF
12124 sed -n '
12125 h
12126 s/^/S["/; s/!.*/"]=/
12127 p
12128 g
12129 s/^[^!]*!//
12130 :repl
12131 t repl
12132 s/'"$ac_delim"'$//
12133 t delim
12134 :nl
12135 h
12136 s/\(.\{148\}\)..*/\1/
12137 t more1
12138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12139 p
12140 n
12141 b repl
12142 :more1
12143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12144 p
12145 g
12146 s/.\{148\}//
12147 t nl
12148 :delim
12149 h
12150 s/\(.\{148\}\)..*/\1/
12151 t more2
12152 s/["\\]/\\&/g; s/^/"/; s/$/"/
12153 p
12154 b
12155 :more2
12156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12157 p
12158 g
12159 s/.\{148\}//
12160 t delim
12161 ' <conf$$subs.awk | sed '
12162 /^[^""]/{
12163 N
12164 s/\n//
12165 }
12166 ' >>$CONFIG_STATUS || ac_write_fail=1
12167 rm -f conf$$subs.awk
12168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12169 _ACAWK
12170 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12171 for (key in S) S_is_set[key] = 1
12172 FS = ""
12173
12174 }
12175 {
12176 line = $ 0
12177 nfields = split(line, field, "@")
12178 substed = 0
12179 len = length(field[1])
12180 for (i = 2; i < nfields; i++) {
12181 key = field[i]
12182 keylen = length(key)
12183 if (S_is_set[key]) {
12184 value = S[key]
12185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12186 len += length(value) + length(field[++i])
12187 substed = 1
12188 } else
12189 len += 1 + keylen
12190 }
12191
12192 print line
12193 }
12194
12195 _ACAWK
12196 _ACEOF
12197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12200 else
12201 cat
12202 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12203 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12204 _ACEOF
12205
12206 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12207 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12208 # trailing colons and then remove the whole line if VPATH becomes empty
12209 # (actually we leave an empty line to preserve line numbers).
12210 if test "x$srcdir" = x.; then
12211 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12212 h
12213 s///
12214 s/^/:/
12215 s/[ ]*$/:/
12216 s/:\$(srcdir):/:/g
12217 s/:\${srcdir}:/:/g
12218 s/:@srcdir@:/:/g
12219 s/^:*//
12220 s/:*$//
12221 x
12222 s/\(=[ ]*\).*/\1/
12223 G
12224 s/\n//
12225 s/^[^=]*=[ ]*$//
12226 }'
12227 fi
12228
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230 fi # test -n "$CONFIG_FILES"
12231
12232 # Set up the scripts for CONFIG_HEADERS section.
12233 # No need to generate them if there are no CONFIG_HEADERS.
12234 # This happens for instance with `./config.status Makefile'.
12235 if test -n "$CONFIG_HEADERS"; then
12236 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12237 BEGIN {
12238 _ACEOF
12239
12240 # Transform confdefs.h into an awk script `defines.awk', embedded as
12241 # here-document in config.status, that substitutes the proper values into
12242 # config.h.in to produce config.h.
12243
12244 # Create a delimiter string that does not exist in confdefs.h, to ease
12245 # handling of long lines.
12246 ac_delim='%!_!# '
12247 for ac_last_try in false false :; do
12248 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12249 if test -z "$ac_tt"; then
12250 break
12251 elif $ac_last_try; then
12252 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12253 else
12254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12255 fi
12256 done
12257
12258 # For the awk script, D is an array of macro values keyed by name,
12259 # likewise P contains macro parameters if any. Preserve backslash
12260 # newline sequences.
12261
12262 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12263 sed -n '
12264 s/.\{148\}/&'"$ac_delim"'/g
12265 t rset
12266 :rset
12267 s/^[ ]*#[ ]*define[ ][ ]*/ /
12268 t def
12269 d
12270 :def
12271 s/\\$//
12272 t bsnl
12273 s/["\\]/\\&/g
12274 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12275 D["\1"]=" \3"/p
12276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12277 d
12278 :bsnl
12279 s/["\\]/\\&/g
12280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12281 D["\1"]=" \3\\\\\\n"\\/p
12282 t cont
12283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12284 t cont
12285 d
12286 :cont
12287 n
12288 s/.\{148\}/&'"$ac_delim"'/g
12289 t clear
12290 :clear
12291 s/\\$//
12292 t bsnlc
12293 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12294 d
12295 :bsnlc
12296 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12297 b cont
12298 ' <confdefs.h | sed '
12299 s/'"$ac_delim"'/"\\\
12300 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12301
12302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12303 for (key in D) D_is_set[key] = 1
12304 FS = ""
12305 }
12306 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12307 line = \$ 0
12308 split(line, arg, " ")
12309 if (arg[1] == "#") {
12310 defundef = arg[2]
12311 mac1 = arg[3]
12312 } else {
12313 defundef = substr(arg[1], 2)
12314 mac1 = arg[2]
12315 }
12316 split(mac1, mac2, "(") #)
12317 macro = mac2[1]
12318 prefix = substr(line, 1, index(line, defundef) - 1)
12319 if (D_is_set[macro]) {
12320 # Preserve the white space surrounding the "#".
12321 print prefix "define", macro P[macro] D[macro]
12322 next
12323 } else {
12324 # Replace #undef with comments. This is necessary, for example,
12325 # in the case of _POSIX_SOURCE, which is predefined and required
12326 # on some systems where configure will not decide to define it.
12327 if (defundef == "undef") {
12328 print "/*", prefix defundef, macro, "*/"
12329 next
12330 }
12331 }
12332 }
12333 { print }
12334 _ACAWK
12335 _ACEOF
12336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12338 fi # test -n "$CONFIG_HEADERS"
12339
12340
12341 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12342 shift
12343 for ac_tag
12344 do
12345 case $ac_tag in
12346 :[FHLC]) ac_mode=$ac_tag; continue;;
12347 esac
12348 case $ac_mode$ac_tag in
12349 :[FHL]*:*);;
12350 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12351 :[FH]-) ac_tag=-:-;;
12352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12353 esac
12354 ac_save_IFS=$IFS
12355 IFS=:
12356 set x $ac_tag
12357 IFS=$ac_save_IFS
12358 shift
12359 ac_file=$1
12360 shift
12361
12362 case $ac_mode in
12363 :L) ac_source=$1;;
12364 :[FH])
12365 ac_file_inputs=
12366 for ac_f
12367 do
12368 case $ac_f in
12369 -) ac_f="$ac_tmp/stdin";;
12370 *) # Look for the file first in the build tree, then in the source tree
12371 # (if the path is not absolute). The absolute path cannot be DOS-style,
12372 # because $ac_f cannot contain `:'.
12373 test -f "$ac_f" ||
12374 case $ac_f in
12375 [\\/$]*) false;;
12376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12377 esac ||
12378 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12379 esac
12380 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12381 as_fn_append ac_file_inputs " '$ac_f'"
12382 done
12383
12384 # Let's still pretend it is `configure' which instantiates (i.e., don't
12385 # use $as_me), people would be surprised to read:
12386 # /* config.h. Generated by config.status. */
12387 configure_input='Generated from '`
12388 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12389 `' by configure.'
12390 if test x"$ac_file" != x-; then
12391 configure_input="$ac_file. $configure_input"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12393 $as_echo "$as_me: creating $ac_file" >&6;}
12394 fi
12395 # Neutralize special characters interpreted by sed in replacement strings.
12396 case $configure_input in #(
12397 *\&* | *\|* | *\\* )
12398 ac_sed_conf_input=`$as_echo "$configure_input" |
12399 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12400 *) ac_sed_conf_input=$configure_input;;
12401 esac
12402
12403 case $ac_tag in
12404 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12406 esac
12407 ;;
12408 esac
12409
12410 ac_dir=`$as_dirname -- "$ac_file" ||
12411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12412 X"$ac_file" : 'X\(//\)[^/]' \| \
12413 X"$ac_file" : 'X\(//\)$' \| \
12414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12415 $as_echo X"$ac_file" |
12416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12417 s//\1/
12418 q
12419 }
12420 /^X\(\/\/\)[^/].*/{
12421 s//\1/
12422 q
12423 }
12424 /^X\(\/\/\)$/{
12425 s//\1/
12426 q
12427 }
12428 /^X\(\/\).*/{
12429 s//\1/
12430 q
12431 }
12432 s/.*/./; q'`
12433 as_dir="$ac_dir"; as_fn_mkdir_p
12434 ac_builddir=.
12435
12436 case "$ac_dir" in
12437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12438 *)
12439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12440 # A ".." for each directory in $ac_dir_suffix.
12441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12442 case $ac_top_builddir_sub in
12443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12445 esac ;;
12446 esac
12447 ac_abs_top_builddir=$ac_pwd
12448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12449 # for backward compatibility:
12450 ac_top_builddir=$ac_top_build_prefix
12451
12452 case $srcdir in
12453 .) # We are building in place.
12454 ac_srcdir=.
12455 ac_top_srcdir=$ac_top_builddir_sub
12456 ac_abs_top_srcdir=$ac_pwd ;;
12457 [\\/]* | ?:[\\/]* ) # Absolute name.
12458 ac_srcdir=$srcdir$ac_dir_suffix;
12459 ac_top_srcdir=$srcdir
12460 ac_abs_top_srcdir=$srcdir ;;
12461 *) # Relative name.
12462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12463 ac_top_srcdir=$ac_top_build_prefix$srcdir
12464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12465 esac
12466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12467
12468
12469 case $ac_mode in
12470 :F)
12471 #
12472 # CONFIG_FILE
12473 #
12474
12475 case $INSTALL in
12476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12478 esac
12479 ac_MKDIR_P=$MKDIR_P
12480 case $MKDIR_P in
12481 [\\/$]* | ?:[\\/]* ) ;;
12482 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12483 esac
12484 _ACEOF
12485
12486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487 # If the template does not know about datarootdir, expand it.
12488 # FIXME: This hack should be removed a few years after 2.60.
12489 ac_datarootdir_hack=; ac_datarootdir_seen=
12490 ac_sed_dataroot='
12491 /datarootdir/ {
12492 p
12493 q
12494 }
12495 /@datadir@/p
12496 /@docdir@/p
12497 /@infodir@/p
12498 /@localedir@/p
12499 /@mandir@/p'
12500 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12501 *datarootdir*) ac_datarootdir_seen=yes;;
12502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12504 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12505 _ACEOF
12506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507 ac_datarootdir_hack='
12508 s&@datadir@&$datadir&g
12509 s&@docdir@&$docdir&g
12510 s&@infodir@&$infodir&g
12511 s&@localedir@&$localedir&g
12512 s&@mandir@&$mandir&g
12513 s&\\\${datarootdir}&$datarootdir&g' ;;
12514 esac
12515 _ACEOF
12516
12517 # Neutralize VPATH when `$srcdir' = `.'.
12518 # Shell code in configure.ac might set extrasub.
12519 # FIXME: do we really want to maintain this feature?
12520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521 ac_sed_extra="$ac_vpsub
12522 $extrasub
12523 _ACEOF
12524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525 :t
12526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12527 s|@configure_input@|$ac_sed_conf_input|;t t
12528 s&@top_builddir@&$ac_top_builddir_sub&;t t
12529 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12530 s&@srcdir@&$ac_srcdir&;t t
12531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12532 s&@top_srcdir@&$ac_top_srcdir&;t t
12533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12534 s&@builddir@&$ac_builddir&;t t
12535 s&@abs_builddir@&$ac_abs_builddir&;t t
12536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12537 s&@INSTALL@&$ac_INSTALL&;t t
12538 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12539 $ac_datarootdir_hack
12540 "
12541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12542 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12543
12544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12545 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12547 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12549 which seems to be undefined. Please make sure it is defined" >&5
12550 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12551 which seems to be undefined. Please make sure it is defined" >&2;}
12552
12553 rm -f "$ac_tmp/stdin"
12554 case $ac_file in
12555 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12556 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12557 esac \
12558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12559 ;;
12560 :H)
12561 #
12562 # CONFIG_HEADER
12563 #
12564 if test x"$ac_file" != x-; then
12565 {
12566 $as_echo "/* $configure_input */" \
12567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12568 } >"$ac_tmp/config.h" \
12569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12570 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12572 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12573 else
12574 rm -f "$ac_file"
12575 mv "$ac_tmp/config.h" "$ac_file" \
12576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12577 fi
12578 else
12579 $as_echo "/* $configure_input */" \
12580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12581 || as_fn_error $? "could not create -" "$LINENO" 5
12582 fi
12583 # Compute "$ac_file"'s index in $config_headers.
12584 _am_arg="$ac_file"
12585 _am_stamp_count=1
12586 for _am_header in $config_headers :; do
12587 case $_am_header in
12588 $_am_arg | $_am_arg:* )
12589 break ;;
12590 * )
12591 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12592 esac
12593 done
12594 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12595 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12596 X"$_am_arg" : 'X\(//\)[^/]' \| \
12597 X"$_am_arg" : 'X\(//\)$' \| \
12598 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12599 $as_echo X"$_am_arg" |
12600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12601 s//\1/
12602 q
12603 }
12604 /^X\(\/\/\)[^/].*/{
12605 s//\1/
12606 q
12607 }
12608 /^X\(\/\/\)$/{
12609 s//\1/
12610 q
12611 }
12612 /^X\(\/\).*/{
12613 s//\1/
12614 q
12615 }
12616 s/.*/./; q'`/stamp-h$_am_stamp_count
12617 ;;
12618
12619 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12620 $as_echo "$as_me: executing $ac_file commands" >&6;}
12621 ;;
12622 esac
12623
12624
12625 case $ac_file$ac_mode in
12626 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12627 # Older Autoconf quotes --file arguments for eval, but not when files
12628 # are listed without --file. Let's play safe and only enable the eval
12629 # if we detect the quoting.
12630 case $CONFIG_FILES in
12631 *\'*) eval set x "$CONFIG_FILES" ;;
12632 *) set x $CONFIG_FILES ;;
12633 esac
12634 shift
12635 for mf
12636 do
12637 # Strip MF so we end up with the name of the file.
12638 mf=`echo "$mf" | sed -e 's/:.*$//'`
12639 # Check whether this is an Automake generated Makefile or not.
12640 # We used to match only the files named 'Makefile.in', but
12641 # some people rename them; so instead we look at the file content.
12642 # Grep'ing the first line is not enough: some people post-process
12643 # each Makefile.in and add a new line on top of each file to say so.
12644 # Grep'ing the whole file is not good either: AIX grep has a line
12645 # limit of 2048, but all sed's we know have understand at least 4000.
12646 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12647 dirpart=`$as_dirname -- "$mf" ||
12648 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12649 X"$mf" : 'X\(//\)[^/]' \| \
12650 X"$mf" : 'X\(//\)$' \| \
12651 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12652 $as_echo X"$mf" |
12653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12654 s//\1/
12655 q
12656 }
12657 /^X\(\/\/\)[^/].*/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\/\)$/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\).*/{
12666 s//\1/
12667 q
12668 }
12669 s/.*/./; q'`
12670 else
12671 continue
12672 fi
12673 # Extract the definition of DEPDIR, am__include, and am__quote
12674 # from the Makefile without running 'make'.
12675 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12676 test -z "$DEPDIR" && continue
12677 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12678 test -z "$am__include" && continue
12679 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12680 # Find all dependency output files, they are included files with
12681 # $(DEPDIR) in their names. We invoke sed twice because it is the
12682 # simplest approach to changing $(DEPDIR) to its actual value in the
12683 # expansion.
12684 for file in `sed -n "
12685 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12686 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12687 # Make sure the directory exists.
12688 test -f "$dirpart/$file" && continue
12689 fdir=`$as_dirname -- "$file" ||
12690 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12691 X"$file" : 'X\(//\)[^/]' \| \
12692 X"$file" : 'X\(//\)$' \| \
12693 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12694 $as_echo X"$file" |
12695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12696 s//\1/
12697 q
12698 }
12699 /^X\(\/\/\)[^/].*/{
12700 s//\1/
12701 q
12702 }
12703 /^X\(\/\/\)$/{
12704 s//\1/
12705 q
12706 }
12707 /^X\(\/\).*/{
12708 s//\1/
12709 q
12710 }
12711 s/.*/./; q'`
12712 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12713 # echo "creating $dirpart/$file"
12714 echo '# dummy' > "$dirpart/$file"
12715 done
12716 done
12717 }
12718 ;;
12719
12720 esac
12721 done # for ac_tag
12722
12723
12724 as_fn_exit 0
12725 _ACEOF
12726 ac_clean_files=$ac_clean_files_save
12727
12728 test $ac_write_fail = 0 ||
12729 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12730
12731
12732 # configure is writing to config.log, and then calls config.status.
12733 # config.status does its own redirection, appending to config.log.
12734 # Unfortunately, on DOS this fails, as config.log is still kept open
12735 # by configure, so config.status won't be able to write to it; its
12736 # output is simply discarded. So we exec the FD to /dev/null,
12737 # effectively closing config.log, so it can be properly (re)opened and
12738 # appended to by config.status. When coming back to configure, we
12739 # need to make the FD available again.
12740 if test "$no_create" != yes; then
12741 ac_cs_success=:
12742 ac_config_status_args=
12743 test "$silent" = yes &&
12744 ac_config_status_args="$ac_config_status_args --quiet"
12745 exec 5>/dev/null
12746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12747 exec 5>>config.log
12748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12749 # would make configure fail if this is the last instruction.
12750 $ac_cs_success || as_fn_exit 1
12751 fi
12752 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12754 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12755 fi
12756
12757