configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xinit 1.4.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xinit'
583 PACKAGE_TARNAME='xinit'
584 PACKAGE_VERSION='1.4.0'
585 PACKAGE_STRING='xinit 1.4.0'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 XINITDIR
631 XINIT
632 XAUTH
633 XSERVER
634 XTERM
635 XCLOCK
636 TWM
637 XMODMAP
638 XRDB
639 XCONFIGFILEMAN
640 XCONFIGFILE
641 XSERVERNAME
642 SHELL_CMD
643 STARTX_COOKIE_FLAGS
644 OPENSSL
645 MCOOKIE
646 XINIT_LIBS
647 XINIT_CFLAGS
648 LAUNCHAGENT_XSERVER_FALSE
649 LAUNCHAGENT_XSERVER_TRUE
650 TIGER_LAUNCHD_FALSE
651 TIGER_LAUNCHD_TRUE
652 LAUNCHD_FALSE
653 LAUNCHD_TRUE
654 launchagentxserver
655 bundleidprefix
656 launchdaemonsdir
657 launchagentsdir
658 LAUNCHD
659 TRADITIONALCPPFLAGS
660 RAWCPPFLAGS
661 RAWCPP
662 MAN_SUBSTS
663 XORG_MAN_PAGE
664 ADMIN_MAN_DIR
665 DRIVER_MAN_DIR
666 MISC_MAN_DIR
667 FILE_MAN_DIR
668 LIB_MAN_DIR
669 APP_MAN_DIR
670 ADMIN_MAN_SUFFIX
671 DRIVER_MAN_SUFFIX
672 MISC_MAN_SUFFIX
673 FILE_MAN_SUFFIX
674 LIB_MAN_SUFFIX
675 APP_MAN_SUFFIX
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 INSTALL_CMD
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 CHANGELOG_CMD
690 STRICT_CFLAGS
691 CWARNFLAGS
692 BASE_CFLAGS
693 EGREP
694 GREP
695 CPP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 AM_DEFAULT_V
716 AM_V
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_silent_rules
782 enable_dependency_tracking
783 enable_selective_werror
784 enable_strict_compilation
785 with_xrdb
786 with_xmodmap
787 with_twm
788 with_xclock
789 with_xterm
790 with_xserver
791 with_xauth
792 with_xinit
793 with_xinitdir
794 with_launchd
795 with_launchagents_dir
796 with_launchagent_xserver
797 with_launchdaemons_dir
798 with_launchd_id_prefix
799 with_bundle_id_prefix
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CPP
810 PKG_CONFIG
811 PKG_CONFIG_PATH
812 PKG_CONFIG_LIBDIR
813 XINIT_CFLAGS
814 XINIT_LIBS'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *=) ac_optarg= ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
945
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=\$ac_optarg ;;
961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
981
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
986
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1016
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1090
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1165
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1199
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1202 ;;
1203
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1213
1214 *)
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 ;;
1221
1222 esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1243 do
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1272 fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\).*/{
1312 s//\1/
1313 q
1314 }
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1319 fi
1320 else
1321 ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures xinit 1.4.0 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of xinit 1.4.0:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --disable-selective-werror
1440 Turn off selective compiler errors. (default:
1441 enabled)
1442 --enable-strict-compilation
1443 Enable all warnings from compiler and make them
1444 errors (default: disabled)
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-xrdb=XRDB Path to xrdb
1450 --with-xmodmap=XMODMAP Path to xmodmap
1451 --with-twm=TWM Path to twm
1452 --with-xclock=XCLOCK Path to xclock
1453 --with-xterm=XTERM Path to xterm
1454 --with-xserver=XSERVER Path to default X server
1455 --with-xauth=XAUTH Path to xauth
1456 --with-xinit=XINIT Path to xinit
1457 --with-xinitdir=XINITDIR
1458 Path to xinitdir
1459 --with-launchd Build with support for Apple's launchd (default:
1460 auto)
1461 --with-launchagents-dir=PATH
1462 Path to launchd's LaunchAgents directory (default:
1463 /Library/LaunchAgents)
1464 --with-launchagent-xserver=PATH
1465 Path to the X server which the LaunchAgent should
1466 start (if not provided, let startx decide)"
1467 --with-launchdaemons-dir=PATH
1468 Path to launchd's LaunchDaemonss directory (default:
1469 /Library/LaunchDaemons)
1470 --with-launchd-id-prefix=PATH
1471 Deprecated: Use --with-bundle-id-prefix.
1472 --with-bundle-id-prefix=PATH
1473 Prefix to use for bundle identifiers (default:
1474 org.x)
1475
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485 PKG_CONFIG path to pkg-config utility
1486 PKG_CONFIG_PATH
1487 directories to add to pkg-config's search path
1488 PKG_CONFIG_LIBDIR
1489 path overriding pkg-config's built-in search path
1490 XINIT_CFLAGS
1491 C compiler flags for XINIT, overriding pkg-config
1492 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 xinit configure 1.4.0
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1613 # ---------------------------------------------
1614 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1615 # accordingly.
1616 ac_fn_c_check_decl ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 as_decl_name=`echo $2|sed 's/ *(.*//'`
1620 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1622 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1628 $4
1629 int
1630 main ()
1631 {
1632 #ifndef $as_decl_name
1633 #ifdef __cplusplus
1634 (void) $as_decl_use;
1635 #else
1636 (void) $as_decl_name;
1637 #endif
1638 #endif
1639
1640 ;
1641 return 0;
1642 }
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646 else
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_c_check_decl
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } > conftest.i && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803 fi
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_link
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1883
1884 It was created by xinit $as_me 1.4.0, which was
1885 generated by GNU Autoconf 2.69. Invocation command line was
1886
1887 $ $0 $@
1888
1889 _ACEOF
1890 exec 5>>config.log
1891 {
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1896
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913
1914 _ASUNAME
1915
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1924
1925 } >&5
1926
1927 cat >&5 <<_ACEOF
1928
1929
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1933
1934 _ACEOF
1935
1936
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1947 do
1948 for ac_arg
1949 do
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 2)
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1973 ;;
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1976 fi
1977 as_fn_append ac_configure_args " '$ac_arg'"
1978 ;;
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1984
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1992 {
1993 echo
1994
1995 $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
2000 (
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2013 esac ;;
2014 esac
2015 done
2016 (set) 2>&1 |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2019 sed -n \
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
2023 *)
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ;;
2026 esac |
2027 sort
2028 )
2029 echo
2030
2031 $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044
2045 if test -n "$ac_subst_files"; then
2046 $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 $as_echo "## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##"
2065 echo
2066 cat confdefs.h
2067 echo
2068 fi
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2072 } >&5
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 exit $exit_status
2076 ' 0
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2081
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2084
2085 $as_echo "/* confdefs.h */" > confdefs.h
2086
2087 # Predefined preprocessor variables.
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2111 _ACEOF
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 ac_site_file1=NONE
2117 ac_site_file2=NONE
2118 if test -n "$CONFIG_SITE"; then
2119 # We do not want a PATH search for config.site.
2120 case $CONFIG_SITE in #((
2121 -*) ac_site_file1=./$CONFIG_SITE;;
2122 */*) ac_site_file1=$CONFIG_SITE;;
2123 *) ac_site_file1=./$CONFIG_SITE;;
2124 esac
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file" \
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2144 fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2173 set,)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,set)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211 esac
2212 fi
2213 done
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233 ac_config_headers="$ac_config_headers config.h"
2234
2235
2236 # Initialize Automake
2237 am__api_version='1.15'
2238
2239 ac_aux_dir=
2240 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2241 if test -f "$ac_dir/install-sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install-sh -c"
2244 break
2245 elif test -f "$ac_dir/install.sh"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install.sh -c"
2248 break
2249 elif test -f "$ac_dir/shtool"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/shtool install -c"
2252 break
2253 fi
2254 done
2255 if test -z "$ac_aux_dir"; then
2256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257 fi
2258
2259 # These three variables are undocumented and unsupported,
2260 # and are intended to be withdrawn in a future Autoconf release.
2261 # They can cause serious problems if a builder's source tree is in a directory
2262 # whose full name contains unusual characters.
2263 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2264 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2265 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266
2267
2268 # Find a good install program. We prefer a C program (faster),
2269 # so one script is as good as another. But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2274 # AIX /bin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298 /usr/ucb/* ) ;;
2299 *)
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2302 # by default.
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2309 :
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2313 :
2314 else
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2318 mkdir conftest.dir
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2323 then
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325 break 3
2326 fi
2327 fi
2328 fi
2329 done
2330 done
2331 ;;
2332 esac
2333
2334 done
2335 IFS=$as_save_IFS
2336
2337 rm -rf conftest.one conftest.two conftest.dir
2338
2339 fi
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2342 else
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2348 fi
2349 fi
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2352
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2363 # Reject unsafe characters in $srcdir or the absolute working directory
2364 # name. Accept space and tab only in the latter.
2365 am_lf='
2366 '
2367 case `pwd` in
2368 *[\\\"\#\$\&\'\`$am_lf]*)
2369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2370 esac
2371 case $srcdir in
2372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2374 esac
2375
2376 # Do 'set' in a subshell so we don't clobber the current shell's
2377 # arguments. Must try -L first in case configure is actually a
2378 # symlink; some systems play weird games with the mod time of symlinks
2379 # (eg FreeBSD returns the mod time of the symlink's containing
2380 # directory).
2381 if (
2382 am_has_slept=no
2383 for am_try in 1 2; do
2384 echo "timestamp, slept: $am_has_slept" > conftest.file
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2387 # -L didn't work.
2388 set X `ls -t "$srcdir/configure" conftest.file`
2389 fi
2390 if test "$*" != "X $srcdir/configure conftest.file" \
2391 && test "$*" != "X conftest.file $srcdir/configure"; then
2392
2393 # If neither matched, then we have a broken ls. This can happen
2394 # if, for instance, CONFIG_SHELL is bash and it inherits a
2395 # broken ls alias from the environment. This has actually
2396 # happened. Such a system could not be considered "sane".
2397 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2398 alias in your environment" "$LINENO" 5
2399 fi
2400 if test "$2" = conftest.file || test $am_try -eq 2; then
2401 break
2402 fi
2403 # Just in case.
2404 sleep 1
2405 am_has_slept=yes
2406 done
2407 test "$2" = conftest.file
2408 )
2409 then
2410 # Ok.
2411 :
2412 else
2413 as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 # If we didn't sleep, we still need to ensure time stamps of config.status and
2419 # generated files are strictly newer.
2420 am_sleep_pid=
2421 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2422 ( sleep 1 ) &
2423 am_sleep_pid=$!
2424 fi
2425
2426 rm -f conftest.file
2427
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437
2438 # Expand $ac_aux_dir to an absolute path.
2439 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2440
2441 if test x"${MISSING+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2445 *)
2446 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 esac
2448 fi
2449 # Use eval to expand $SHELL
2450 if eval "$MISSING --is-lightweight"; then
2451 am_missing_run="$MISSING "
2452 else
2453 am_missing_run=
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2455 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2456 fi
2457
2458 if test x"${install_sh+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2462 *)
2463 install_sh="\${SHELL} $am_aux_dir/install-sh"
2464 esac
2465 fi
2466
2467 # Installed binaries are usually stripped using 'strip' when the user
2468 # run "make install-strip". However 'strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the 'STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$STRIP"; then
2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_STRIP"; then
2512 ac_ct_STRIP=$STRIP
2513 # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$ac_ct_STRIP"; then
2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_STRIP="strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549 if test "x$ac_ct_STRIP" = x; then
2550 STRIP=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 STRIP=$ac_ct_STRIP
2559 fi
2560 else
2561 STRIP="$ac_cv_prog_STRIP"
2562 fi
2563
2564 fi
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569 if test -z "$MKDIR_P"; then
2570 if ${ac_cv_path_mkdir+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_prog in mkdir gmkdir; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582 'mkdir (GNU coreutils) '* | \
2583 'mkdir (coreutils) '* | \
2584 'mkdir (fileutils) '4.1*)
2585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 break 3;;
2587 esac
2588 done
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594
2595 test -d ./--version && rmdir ./--version
2596 if test "${ac_cv_path_mkdir+set}" = set; then
2597 MKDIR_P="$ac_cv_path_mkdir -p"
2598 else
2599 # As a last resort, use the slow shell script. Don't cache a
2600 # value for MKDIR_P within a source directory, because that will
2601 # break other packages using the cache if that directory is
2602 # removed, or if the value is a relative name.
2603 MKDIR_P="$ac_install_sh -d"
2604 fi
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2607 $as_echo "$MKDIR_P" >&6; }
2608
2609 for ac_prog in gawk mawk nawk awk
2610 do
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_AWK+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641 $as_echo "$AWK" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 test -n "$AWK" && break
2649 done
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653 set x ${MAKE-make}
2654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat >conftest.make <<\_ACEOF
2659 SHELL = /bin/sh
2660 all:
2661 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 _ACEOF
2663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 *@@@%%%=?*=@@@%%%*)
2666 eval ac_cv_prog_make_${ac_make}_set=yes;;
2667 *)
2668 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 esac
2670 rm -f conftest.make
2671 fi
2672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 SET_MAKE=
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 SET_MAKE="MAKE=${MAKE-make}"
2680 fi
2681
2682 rm -rf .tst 2>/dev/null
2683 mkdir .tst 2>/dev/null
2684 if test -d .tst; then
2685 am__leading_dot=.
2686 else
2687 am__leading_dot=_
2688 fi
2689 rmdir .tst 2>/dev/null
2690
2691 # Check whether --enable-silent-rules was given.
2692 if test "${enable_silent_rules+set}" = set; then :
2693 enableval=$enable_silent_rules;
2694 fi
2695
2696 case $enable_silent_rules in # (((
2697 yes) AM_DEFAULT_VERBOSITY=0;;
2698 no) AM_DEFAULT_VERBOSITY=1;;
2699 *) AM_DEFAULT_VERBOSITY=1;;
2700 esac
2701 am_make=${MAKE-make}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2703 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2704 if ${am_cv_make_support_nested_variables+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if $as_echo 'TRUE=$(BAR$(V))
2708 BAR0=false
2709 BAR1=true
2710 V=1
2711 am__doit:
2712 @$(TRUE)
2713 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2714 am_cv_make_support_nested_variables=yes
2715 else
2716 am_cv_make_support_nested_variables=no
2717 fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2720 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2721 if test $am_cv_make_support_nested_variables = yes; then
2722 AM_V='$(V)'
2723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2724 else
2725 AM_V=$AM_DEFAULT_VERBOSITY
2726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2727 fi
2728 AM_BACKSLASH='\'
2729
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732 # is not polluted with repeated "-I."
2733 am__isrc=' -I$(srcdir)'
2734 # test to see if srcdir already configured
2735 if test -f $srcdir/config.status; then
2736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2737 fi
2738 fi
2739
2740 # test whether we have cygpath
2741 if test -z "$CYGPATH_W"; then
2742 if (cygpath --version) >/dev/null 2>/dev/null; then
2743 CYGPATH_W='cygpath -w'
2744 else
2745 CYGPATH_W=echo
2746 fi
2747 fi
2748
2749
2750 # Define the identity of the package.
2751 PACKAGE='xinit'
2752 VERSION='1.4.0'
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE "$PACKAGE"
2757 _ACEOF
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define VERSION "$VERSION"
2762 _ACEOF
2763
2764 # Some tools Automake needs.
2765
2766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780 # For better backward compatibility. To be removed once Automake 1.9.x
2781 # dies out for good. For more background, see:
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2784 mkdir_p='$(MKDIR_P)'
2785
2786 # We need awk for the "check" target (and possibly the TAP driver). The
2787 # system "awk" is bad on some platforms.
2788 # Always define AMTAR for backward compatibility. Yes, it's still used
2789 # in the wild :-( We should find a proper way to deprecate it ...
2790 AMTAR='$${TAR-tar}'
2791
2792
2793 # We'll loop over all known methods to create a tar archive until one works.
2794 _am_tools='gnutar pax cpio none'
2795
2796 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2797
2798
2799
2800
2801
2802
2803 # POSIX will say in a future version that running "rm -f" with no argument
2804 # is OK; and we want to be able to make that assumption in our Makefile
2805 # recipes. So use an aggressive probe to check that the usage we want is
2806 # actually supported "in the wild" to an acceptable degree.
2807 # See automake bug#10828.
2808 # To make any issue more visible, cause the running configure to be aborted
2809 # by default if the 'rm' program in use doesn't match our expectations; the
2810 # user can still override this though.
2811 if rm -f && rm -fr && rm -rf; then : OK; else
2812 cat >&2 <<'END'
2813 Oops!
2814
2815 Your 'rm' program seems unable to run without file operands specified
2816 on the command line, even when the '-f' option is present. This is contrary
2817 to the behaviour of most rm programs out there, and not conforming with
2818 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2819
2820 Please tell bug-automake@gnu.org about your system, including the value
2821 of your $PATH and any error possibly output before this message. This
2822 can help us improve future automake versions.
2823
2824 END
2825 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2826 echo 'Configuration will proceed anyway, since you have set the' >&2
2827 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2828 echo >&2
2829 else
2830 cat >&2 <<'END'
2831 Aborting the configuration process, to ensure you take notice of the issue.
2832
2833 You can download and install GNU coreutils to get an 'rm' implementation
2834 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2835
2836 If you want to complete the configuration process using your problematic
2837 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2838 to "yes", and re-run configure.
2839
2840 END
2841 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2842 fi
2843 fi
2844
2845
2846 # Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858 DEPDIR="${am__leading_dot}deps"
2859
2860 ac_config_commands="$ac_config_commands depfiles"
2861
2862
2863 am_make=${MAKE-make}
2864 cat > confinc << 'END'
2865 am__doit:
2866 @echo this is the am__doit target
2867 .PHONY: am__doit
2868 END
2869 # If we don't find an include directive, just comment out the code.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2872 am__include="#"
2873 am__quote=
2874 _am_result=none
2875 # First try GNU make style include.
2876 echo "include confinc" > confmf
2877 # Ignore all kinds of additional output from 'make'.
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target*)
2880 am__include=include
2881 am__quote=
2882 _am_result=GNU
2883 ;;
2884 esac
2885 # Now try BSD make style include.
2886 if test "$am__include" = "#"; then
2887 echo '.include "confinc"' > confmf
2888 case `$am_make -s -f confmf 2> /dev/null` in #(
2889 *the\ am__doit\ target*)
2890 am__include=.include
2891 am__quote="\""
2892 _am_result=BSD
2893 ;;
2894 esac
2895 fi
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899 $as_echo "$_am_result" >&6; }
2900 rm -f confinc confmf
2901
2902 # Check whether --enable-dependency-tracking was given.
2903 if test "${enable_dependency_tracking+set}" = set; then :
2904 enableval=$enable_dependency_tracking;
2905 fi
2906
2907 if test "x$enable_dependency_tracking" != xno; then
2908 am_depcomp="$ac_aux_dir/depcomp"
2909 AMDEPBACKSLASH='\'
2910 am__nodep='_no'
2911 fi
2912 if test "x$enable_dependency_tracking" != xno; then
2913 AMDEP_TRUE=
2914 AMDEP_FALSE='#'
2915 else
2916 AMDEP_TRUE='#'
2917 AMDEP_FALSE=
2918 fi
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966 ac_ct_CC=$CC
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 else
3015 CC="$ac_cv_prog_CC"
3016 fi
3017
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 fi
3059 if test -z "$CC"; then
3060 # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 ac_prog_rejected=no
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079 ac_prog_rejected=yes
3080 continue
3081 fi
3082 ac_cv_prog_CC="cc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 if test $ac_prog_rejected = yes; then
3091 # We found a bogon in the path, so make sure we never use it.
3092 set dummy $ac_cv_prog_CC
3093 shift
3094 if test $# != 0; then
3095 # We chose a different compiler from the bogus one.
3096 # However, it has the same basename, so the bogon will be chosen
3097 # first if we set CC to just the basename; use the full file name.
3098 shift
3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 fi
3101 fi
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in cl.exe
3118 do
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 test -n "$CC" && break
3157 done
3158 fi
3159 if test -z "$CC"; then
3160 ac_ct_CC=$CC
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$ac_ct_CC" && break
3201 done
3202
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details" "$LINENO" 5; }
3223
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226 set X $ac_compile
3227 ac_compiler=$2
3228 for ac_option in --version -v -V -qversion; do
3229 { { ac_try="$ac_compiler $ac_option >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237 ac_status=$?
3238 if test -s conftest.err; then
3239 sed '10a\
3240 ... rest of stderr output deleted ...
3241 10q' conftest.err >conftest.er1
3242 cat conftest.er1 >&5
3243 fi
3244 rm -f conftest.er1 conftest.err
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }
3247 done
3248
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3264 # of exeext.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3274 do
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 esac
3279 done
3280 rm -f $ac_rmfiles
3281
3282 if { { ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link_default") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3297 # Autoconf.
3298 for ac_file in $ac_files ''
3299 do
3300 test -f "$ac_file" || continue
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303 ;;
3304 [ab].out )
3305 # We found the default executable, but exeext='' is most
3306 # certainly right.
3307 break;;
3308 *.* )
3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310 then :; else
3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 fi
3313 # We set ac_cv_exeext here because the later test for it is not
3314 # safe: cross compilers may not add the suffix if given an `-o'
3315 # argument, so we may need to know it at that point already.
3316 # Even if this section looks crufty: it has the advantage of
3317 # actually working.
3318 break;;
3319 * )
3320 break;;
3321 esac
3322 done
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325 else
3326 ac_file=''
3327 fi
3328 if test -z "$ac_file"; then :
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error 77 "C compiler cannot create executables
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343 $as_echo_n "checking for C compiler default output file name... " >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345 $as_echo "$ac_file" >&6; }
3346 ac_exeext=$ac_cv_exeext
3347
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351 $as_echo_n "checking for suffix of executables... " >&6; }
3352 if { { ac_try="$ac_link"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 break;;
3373 * ) break;;
3374 esac
3375 done
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details" "$LINENO" 5; }
3381 fi
3382 rm -f conftest conftest$ac_cv_exeext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391 #include <stdio.h>
3392 int
3393 main ()
3394 {
3395 FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 ac_clean_files="$ac_clean_files conftest.out"
3403 # Check that the compiler produces executables we can run. If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 if test "$cross_compiling" != yes; then
3408 { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 if { ac_try='./conftest$ac_cv_exeext'
3420 { { case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_try") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; }; then
3430 cross_compiling=no
3431 else
3432 if test "$cross_compiling" = maybe; then
3433 cross_compiling=yes
3434 else
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot run C compiled programs.
3438 If you meant to cross compile, use \`--host'.
3439 See \`config.log' for more details" "$LINENO" 5; }
3440 fi
3441 fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444 $as_echo "$cross_compiling" >&6; }
3445
3446 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449 $as_echo_n "checking for suffix of object files... " >&6; }
3450 if ${ac_cv_objext+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.o conftest.obj
3465 if { { ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compile") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481 break;;
3482 esac
3483 done
3484 else
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496 $as_echo "$ac_cv_objext" >&6; }
3497 OBJEXT=$ac_cv_objext
3498 ac_objext=$OBJEXT
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501 if ${ac_cv_c_compiler_gnu+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_compiler_gnu=yes
3520 else
3521 ac_compiler_gnu=no
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529 if test $ac_compiler_gnu = yes; then
3530 GCC=yes
3531 else
3532 GCC=
3533 fi
3534 ac_test_CFLAGS=${CFLAGS+set}
3535 ac_save_CFLAGS=$CFLAGS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538 if ${ac_cv_prog_cc_g+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_save_c_werror_flag=$ac_c_werror_flag
3542 ac_c_werror_flag=yes
3543 ac_cv_prog_cc_g=no
3544 CFLAGS="-g"
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_g=yes
3558 else
3559 CFLAGS=""
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572
3573 else
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3575 CFLAGS="-g"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_g=yes
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598 $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O2"
3604 else
3605 CFLAGS="-g"
3606 fi
3607 else
3608 if test "$GCC" = yes; then
3609 CFLAGS="-O2"
3610 else
3611 CFLAGS=
3612 fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616 if ${ac_cv_prog_cc_c89+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_cv_prog_cc_c89=no
3620 ac_save_CC=$CC
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <stdarg.h>
3624 #include <stdio.h>
3625 struct stat;
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3632 {
3633 return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689 x)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695 *)
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3716 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3717 if ${am_cv_prog_cc_c_o+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 # Make sure it works both with $CC and with simple cc.
3732 # Following AC_PROG_CC_C_O, we do the test twice because some
3733 # compilers refuse to overwrite an existing .o file with -o,
3734 # though they will create one.
3735 am_cv_prog_cc_c_o=yes
3736 for am_i in 1 2; do
3737 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3738 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } \
3742 && test -f conftest2.$ac_objext; then
3743 : OK
3744 else
3745 am_cv_prog_cc_c_o=no
3746 break
3747 fi
3748 done
3749 rm -f core conftest*
3750 unset am_i
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3753 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3754 if test "$am_cv_prog_cc_c_o" != yes; then
3755 # Losing compiler, so override with the script.
3756 # FIXME: It is wrong to rewrite CC.
3757 # But if we don't then we get into trouble of one sort or another.
3758 # A longer-term fix would be to have automake use am__CC in this case,
3759 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3760 CC="$am_aux_dir/compile $CC"
3761 fi
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
3769 depcc="$CC" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named 'D' -- because '-MD' means "put the output
3781 # in D".
3782 rm -rf conftest.dir
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817 # Solaris 10 /bin/sh.
3818 echo '/* dummy */' > sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle '-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs.
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # After this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested.
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843 # This compiler won't grok '-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894 fi
3895
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3898 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3899 if ${ac_cv_prog_cc_c99+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 ac_cv_prog_cc_c99=no
3903 ac_save_CC=$CC
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdarg.h>
3907 #include <stdbool.h>
3908 #include <stdlib.h>
3909 #include <wchar.h>
3910 #include <stdio.h>
3911
3912 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3913 #define debug(...) fprintf (stderr, __VA_ARGS__)
3914 #define showlist(...) puts (#__VA_ARGS__)
3915 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3916 static void
3917 test_varargs_macros (void)
3918 {
3919 int x = 1234;
3920 int y = 5678;
3921 debug ("Flag");
3922 debug ("X = %d\n", x);
3923 showlist (The first, second, and third items.);
3924 report (x>y, "x is %d but y is %d", x, y);
3925 }
3926
3927 // Check long long types.
3928 #define BIG64 18446744073709551615ull
3929 #define BIG32 4294967295ul
3930 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3931 #if !BIG_OK
3932 your preprocessor is broken;
3933 #endif
3934 #if BIG_OK
3935 #else
3936 your preprocessor is broken;
3937 #endif
3938 static long long int bignum = -9223372036854775807LL;
3939 static unsigned long long int ubignum = BIG64;
3940
3941 struct incomplete_array
3942 {
3943 int datasize;
3944 double data[];
3945 };
3946
3947 struct named_init {
3948 int number;
3949 const wchar_t *name;
3950 double average;
3951 };
3952
3953 typedef const char *ccp;
3954
3955 static inline int
3956 test_restrict (ccp restrict text)
3957 {
3958 // See if C++-style comments work.
3959 // Iterate through items via the restricted pointer.
3960 // Also check for declarations in for loops.
3961 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3962 continue;
3963 return 0;
3964 }
3965
3966 // Check varargs and va_copy.
3967 static void
3968 test_varargs (const char *format, ...)
3969 {
3970 va_list args;
3971 va_start (args, format);
3972 va_list args_copy;
3973 va_copy (args_copy, args);
3974
3975 const char *str;
3976 int number;
3977 float fnumber;
3978
3979 while (*format)
3980 {
3981 switch (*format++)
3982 {
3983 case 's': // string
3984 str = va_arg (args_copy, const char *);
3985 break;
3986 case 'd': // int
3987 number = va_arg (args_copy, int);
3988 break;
3989 case 'f': // float
3990 fnumber = va_arg (args_copy, double);
3991 break;
3992 default:
3993 break;
3994 }
3995 }
3996 va_end (args_copy);
3997 va_end (args);
3998 }
3999
4000 int
4001 main ()
4002 {
4003
4004 // Check bool.
4005 _Bool success = false;
4006
4007 // Check restrict.
4008 if (test_restrict ("String literal") == 0)
4009 success = true;
4010 char *restrict newvar = "Another string";
4011
4012 // Check varargs.
4013 test_varargs ("s, d' f .", "string", 65, 34.234);
4014 test_varargs_macros ();
4015
4016 // Check flexible array members.
4017 struct incomplete_array *ia =
4018 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4019 ia->datasize = 10;
4020 for (int i = 0; i < ia->datasize; ++i)
4021 ia->data[i] = i * 1.234;
4022
4023 // Check named initializers.
4024 struct named_init ni = {
4025 .number = 34,
4026 .name = L"Test wide string",
4027 .average = 543.34343,
4028 };
4029
4030 ni.number = 58;
4031
4032 int dynamic_array[ni.number];
4033 dynamic_array[ni.number - 1] = 543;
4034
4035 // work around unused variable warnings
4036 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4037 || dynamic_array[ni.number - 1] != 543);
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4044 do
4045 CC="$ac_save_CC $ac_arg"
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_c99=$ac_arg
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c99" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c99" in
4058 x)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061 xno)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064 *)
4065 CC="$CC $ac_cv_prog_cc_c99"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4068 esac
4069 if test "x$ac_cv_prog_cc_c99" != xno; then :
4070
4071 fi
4072
4073
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4081 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4082 # On Suns, sometimes $CPP names a directory.
4083 if test -n "$CPP" && test -d "$CPP"; then
4084 CPP=
4085 fi
4086 if test -z "$CPP"; then
4087 if ${ac_cv_prog_CPP+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 # Double quotes because CPP needs to be expanded
4091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4092 do
4093 ac_preproc_ok=false
4094 for ac_c_preproc_warn_flag in '' yes
4095 do
4096 # Use a header file that comes with gcc, so configuring glibc
4097 # with a fresh cross-compiler works.
4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099 # <limits.h> exists even on freestanding compilers.
4100 # On the NeXT, cc -E runs the code through the compiler's parser,
4101 # not just through cpp. "Syntax error" is here to catch this case.
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #ifdef __STDC__
4105 # include <limits.h>
4106 #else
4107 # include <assert.h>
4108 #endif
4109 Syntax error
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112
4113 else
4114 # Broken: fails on valid input.
4115 continue
4116 fi
4117 rm -f conftest.err conftest.i conftest.$ac_ext
4118
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <ac_nonexistent.h>
4124 _ACEOF
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4126 # Broken: success on invalid input.
4127 continue
4128 else
4129 # Passes both tests.
4130 ac_preproc_ok=:
4131 break
4132 fi
4133 rm -f conftest.err conftest.i conftest.$ac_ext
4134
4135 done
4136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137 rm -f conftest.i conftest.err conftest.$ac_ext
4138 if $ac_preproc_ok; then :
4139 break
4140 fi
4141
4142 done
4143 ac_cv_prog_CPP=$CPP
4144
4145 fi
4146 CPP=$ac_cv_prog_CPP
4147 else
4148 ac_cv_prog_CPP=$CPP
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4151 $as_echo "$CPP" >&6; }
4152 ac_preproc_ok=false
4153 for ac_c_preproc_warn_flag in '' yes
4154 do
4155 # Use a header file that comes with gcc, so configuring glibc
4156 # with a fresh cross-compiler works.
4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158 # <limits.h> exists even on freestanding compilers.
4159 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 # not just through cpp. "Syntax error" is here to catch this case.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #ifdef __STDC__
4164 # include <limits.h>
4165 #else
4166 # include <assert.h>
4167 #endif
4168 Syntax error
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171
4172 else
4173 # Broken: fails on valid input.
4174 continue
4175 fi
4176 rm -f conftest.err conftest.i conftest.$ac_ext
4177
4178 # OK, works on sane cases. Now check whether nonexistent headers
4179 # can be detected and how.
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <ac_nonexistent.h>
4183 _ACEOF
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185 # Broken: success on invalid input.
4186 continue
4187 else
4188 # Passes both tests.
4189 ac_preproc_ok=:
4190 break
4191 fi
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194 done
4195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196 rm -f conftest.i conftest.err conftest.$ac_ext
4197 if $ac_preproc_ok; then :
4198
4199 else
4200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4202 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4203 See \`config.log' for more details" "$LINENO" 5; }
4204 fi
4205
4206 ac_ext=c
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4214 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215 if ${ac_cv_path_GREP+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -z "$GREP"; then
4219 ac_path_GREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in grep ggrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229 as_fn_executable_p "$ac_path_GREP" || continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP="$ac_path_GREP"
4250 ac_path_GREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_GREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_GREP"; then
4264 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_GREP=$GREP
4268 fi
4269
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4272 $as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP="$ac_cv_path_GREP"
4274
4275
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277 $as_echo_n "checking for egrep... " >&6; }
4278 if ${ac_cv_path_EGREP+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282 then ac_cv_path_EGREP="$GREP -E"
4283 else
4284 if test -z "$EGREP"; then
4285 ac_path_EGREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in egrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295 as_fn_executable_p "$ac_path_EGREP" || continue
4296 # Check for GNU ac_path_EGREP and select it if it is found.
4297 # Check for GNU $ac_path_EGREP
4298 case `"$ac_path_EGREP" --version 2>&1` in
4299 *GNU*)
4300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4301 *)
4302 ac_count=0
4303 $as_echo_n 0123456789 >"conftest.in"
4304 while :
4305 do
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'EGREP' >> "conftest.nl"
4310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 as_fn_arith $ac_count + 1 && ac_count=$as_val
4313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_EGREP="$ac_path_EGREP"
4316 ac_path_EGREP_max=$ac_count
4317 fi
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4320 done
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4323
4324 $ac_path_EGREP_found && break 3
4325 done
4326 done
4327 done
4328 IFS=$as_save_IFS
4329 if test -z "$ac_cv_path_EGREP"; then
4330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 fi
4332 else
4333 ac_cv_path_EGREP=$EGREP
4334 fi
4335
4336 fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339 $as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4344 $as_echo_n "checking for ANSI C header files... " >&6; }
4345 if ${ac_cv_header_stdc+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdlib.h>
4351 #include <stdarg.h>
4352 #include <string.h>
4353 #include <float.h>
4354
4355 int
4356 main ()
4357 {
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_header_stdc=yes
4365 else
4366 ac_cv_header_stdc=no
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369
4370 if test $ac_cv_header_stdc = yes; then
4371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <string.h>
4375
4376 _ACEOF
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 $EGREP "memchr" >/dev/null 2>&1; then :
4379
4380 else
4381 ac_cv_header_stdc=no
4382 fi
4383 rm -f conftest*
4384
4385 fi
4386
4387 if test $ac_cv_header_stdc = yes; then
4388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <stdlib.h>
4392
4393 _ACEOF
4394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4395 $EGREP "free" >/dev/null 2>&1; then :
4396
4397 else
4398 ac_cv_header_stdc=no
4399 fi
4400 rm -f conftest*
4401
4402 fi
4403
4404 if test $ac_cv_header_stdc = yes; then
4405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4406 if test "$cross_compiling" = yes; then :
4407 :
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ctype.h>
4412 #include <stdlib.h>
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416 #else
4417 # define ISLOWER(c) \
4418 (('a' <= (c) && (c) <= 'i') \
4419 || ('j' <= (c) && (c) <= 'r') \
4420 || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422 #endif
4423
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425 int
4426 main ()
4427 {
4428 int i;
4429 for (i = 0; i < 256; i++)
4430 if (XOR (islower (i), ISLOWER (i))
4431 || toupper (i) != TOUPPER (i))
4432 return 2;
4433 return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_c_try_run "$LINENO"; then :
4437
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4442 conftest.$ac_objext conftest.beam conftest.$ac_ext
4443 fi
4444
4445 fi
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4448 $as_echo "$ac_cv_header_stdc" >&6; }
4449 if test $ac_cv_header_stdc = yes; then
4450
4451 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4452
4453 fi
4454
4455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4457 inttypes.h stdint.h unistd.h
4458 do :
4459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4461 "
4462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4463 cat >>confdefs.h <<_ACEOF
4464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 _ACEOF
4466
4467 fi
4468
4469 done
4470
4471
4472
4473
4474
4475
4476 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4477 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4478 CLANGCC="yes"
4479 else
4480 CLANGCC="no"
4481 fi
4482
4483 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4484 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4485 INTELCC="yes"
4486 else
4487 INTELCC="no"
4488 fi
4489
4490 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4491 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4492 SUNCC="yes"
4493 else
4494 SUNCC="no"
4495 fi
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4506 if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4508 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 case $PKG_CONFIG in
4515 [\\/]* | ?:[\\/]*)
4516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4517 ;;
4518 *)
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 ;;
4535 esac
4536 fi
4537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4538 if test -n "$PKG_CONFIG"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4540 $as_echo "$PKG_CONFIG" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546
4547 fi
4548 if test -z "$ac_cv_path_PKG_CONFIG"; then
4549 ac_pt_PKG_CONFIG=$PKG_CONFIG
4550 # Extract the first word of "pkg-config", so it can be a program name with args.
4551 set dummy pkg-config; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 case $ac_pt_PKG_CONFIG in
4558 [\\/]* | ?:[\\/]*)
4559 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4560 ;;
4561 *)
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 ;;
4578 esac
4579 fi
4580 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4581 if test -n "$ac_pt_PKG_CONFIG"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4583 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589 if test "x$ac_pt_PKG_CONFIG" = x; then
4590 PKG_CONFIG=""
4591 else
4592 case $cross_compiling:$ac_tool_warned in
4593 yes:)
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4597 esac
4598 PKG_CONFIG=$ac_pt_PKG_CONFIG
4599 fi
4600 else
4601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4602 fi
4603
4604 fi
4605 if test -n "$PKG_CONFIG"; then
4606 _pkg_min_version=0.9.0
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4608 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4609 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 PKG_CONFIG=""
4616 fi
4617 fi
4618 # Make sure we can run config.sub.
4619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4623 $as_echo_n "checking build system type... " >&6; }
4624 if ${ac_cv_build+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 ac_build_alias=$build_alias
4628 test "x$ac_build_alias" = x &&
4629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4630 test "x$ac_build_alias" = x &&
4631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4637 $as_echo "$ac_cv_build" >&6; }
4638 case $ac_cv_build in
4639 *-*-*) ;;
4640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4641 esac
4642 build=$ac_cv_build
4643 ac_save_IFS=$IFS; IFS='-'
4644 set x $ac_cv_build
4645 shift
4646 build_cpu=$1
4647 build_vendor=$2
4648 shift; shift
4649 # Remember, the first character of IFS is used to create $*,
4650 # except with old shells:
4651 build_os=$*
4652 IFS=$ac_save_IFS
4653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4654
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4657 $as_echo_n "checking host system type... " >&6; }
4658 if ${ac_cv_host+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test "x$host_alias" = x; then
4662 ac_cv_host=$ac_cv_build
4663 else
4664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4666 fi
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4670 $as_echo "$ac_cv_host" >&6; }
4671 case $ac_cv_host in
4672 *-*-*) ;;
4673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4674 esac
4675 host=$ac_cv_host
4676 ac_save_IFS=$IFS; IFS='-'
4677 set x $ac_cv_host
4678 shift
4679 host_cpu=$1
4680 host_vendor=$2
4681 shift; shift
4682 # Remember, the first character of IFS is used to create $*,
4683 # except with old shells:
4684 host_os=$*
4685 IFS=$ac_save_IFS
4686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4690 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4691 if ${ac_cv_path_SED+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4695 for ac_i in 1 2 3 4 5 6 7; do
4696 ac_script="$ac_script$as_nl$ac_script"
4697 done
4698 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4699 { ac_script=; unset ac_script;}
4700 if test -z "$SED"; then
4701 ac_path_SED_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in sed gsed; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4711 as_fn_executable_p "$ac_path_SED" || continue
4712 # Check for GNU ac_path_SED and select it if it is found.
4713 # Check for GNU $ac_path_SED
4714 case `"$ac_path_SED" --version 2>&1` in
4715 *GNU*)
4716 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4717 *)
4718 ac_count=0
4719 $as_echo_n 0123456789 >"conftest.in"
4720 while :
4721 do
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo '' >> "conftest.nl"
4726 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_SED_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_SED="$ac_path_SED"
4732 ac_path_SED_max=$ac_count
4733 fi
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4736 done
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 esac
4739
4740 $ac_path_SED_found && break 3
4741 done
4742 done
4743 done
4744 IFS=$as_save_IFS
4745 if test -z "$ac_cv_path_SED"; then
4746 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4747 fi
4748 else
4749 ac_cv_path_SED=$SED
4750 fi
4751
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4754 $as_echo "$ac_cv_path_SED" >&6; }
4755 SED="$ac_cv_path_SED"
4756 rm -f conftest.sed
4757
4758
4759
4760
4761
4762
4763 # Check whether --enable-selective-werror was given.
4764 if test "${enable_selective_werror+set}" = set; then :
4765 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4766 else
4767 SELECTIVE_WERROR=yes
4768 fi
4769
4770
4771
4772
4773
4774 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4775 if test "x$SUNCC" = "xyes"; then
4776 BASE_CFLAGS="-v"
4777 else
4778 BASE_CFLAGS=""
4779 fi
4780
4781 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795 xorg_testset_save_CFLAGS="$CFLAGS"
4796
4797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806 int i;
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 xorg_cv_cc_flag_unknown_warning_option=yes
4810 else
4811 xorg_cv_cc_flag_unknown_warning_option=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4818 CFLAGS="$xorg_testset_save_CFLAGS"
4819 fi
4820
4821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4824 fi
4825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 int i;
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 xorg_cv_cc_flag_unused_command_line_argument=yes
4837 else
4838 xorg_cv_cc_flag_unused_command_line_argument=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4845 CFLAGS="$xorg_testset_save_CFLAGS"
4846 fi
4847
4848 found="no"
4849
4850 if test $found = "no" ; then
4851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4853 fi
4854
4855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4857 fi
4858
4859 CFLAGS="$CFLAGS -Wall"
4860
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4862 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4863 cacheid=xorg_cv_cc_flag__Wall
4864 if eval \${$cacheid+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 int i;
4870 int
4871 main ()
4872 {
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_link "$LINENO"; then :
4879 eval $cacheid=yes
4880 else
4881 eval $cacheid=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext \
4884 conftest$ac_exeext conftest.$ac_ext
4885 fi
4886
4887
4888 CFLAGS="$xorg_testset_save_CFLAGS"
4889
4890 eval supported=\$$cacheid
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4892 $as_echo "$supported" >&6; }
4893 if test "$supported" = "yes" ; then
4894 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4895 found="yes"
4896 fi
4897 fi
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913 xorg_testset_save_CFLAGS="$CFLAGS"
4914
4915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 int i;
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 xorg_cv_cc_flag_unknown_warning_option=yes
4928 else
4929 xorg_cv_cc_flag_unknown_warning_option=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4937 fi
4938
4939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4942 fi
4943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 int i;
4952 _ACEOF
4953 if ac_fn_c_try_compile "$LINENO"; then :
4954 xorg_cv_cc_flag_unused_command_line_argument=yes
4955 else
4956 xorg_cv_cc_flag_unused_command_line_argument=no
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4963 CFLAGS="$xorg_testset_save_CFLAGS"
4964 fi
4965
4966 found="no"
4967
4968 if test $found = "no" ; then
4969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971 fi
4972
4973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4975 fi
4976
4977 CFLAGS="$CFLAGS -Wpointer-arith"
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4980 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4981 cacheid=xorg_cv_cc_flag__Wpointer_arith
4982 if eval \${$cacheid+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 int i;
4988 int
4989 main ()
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_link "$LINENO"; then :
4997 eval $cacheid=yes
4998 else
4999 eval $cacheid=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext \
5002 conftest$ac_exeext conftest.$ac_ext
5003 fi
5004
5005
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007
5008 eval supported=\$$cacheid
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5010 $as_echo "$supported" >&6; }
5011 if test "$supported" = "yes" ; then
5012 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5013 found="yes"
5014 fi
5015 fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 xorg_testset_save_CFLAGS="$CFLAGS"
5032
5033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5036 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5037 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int i;
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 xorg_cv_cc_flag_unknown_warning_option=yes
5046 else
5047 xorg_cv_cc_flag_unknown_warning_option=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5052 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5054 CFLAGS="$xorg_testset_save_CFLAGS"
5055 fi
5056
5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5060 fi
5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5063 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5064 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 int i;
5070 _ACEOF
5071 if ac_fn_c_try_compile "$LINENO"; then :
5072 xorg_cv_cc_flag_unused_command_line_argument=yes
5073 else
5074 xorg_cv_cc_flag_unused_command_line_argument=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081 CFLAGS="$xorg_testset_save_CFLAGS"
5082 fi
5083
5084 found="no"
5085
5086 if test $found = "no" ; then
5087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089 fi
5090
5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093 fi
5094
5095 CFLAGS="$CFLAGS -Wmissing-declarations"
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5098 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5099 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5100 if eval \${$cacheid+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 int i;
5106 int
5107 main ()
5108 {
5109
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 if ac_fn_c_try_link "$LINENO"; then :
5115 eval $cacheid=yes
5116 else
5117 eval $cacheid=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
5121 fi
5122
5123
5124 CFLAGS="$xorg_testset_save_CFLAGS"
5125
5126 eval supported=\$$cacheid
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5128 $as_echo "$supported" >&6; }
5129 if test "$supported" = "yes" ; then
5130 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5131 found="yes"
5132 fi
5133 fi
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 xorg_testset_save_CFLAGS="$CFLAGS"
5150
5151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5154 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5155 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 int i;
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 xorg_cv_cc_flag_unknown_warning_option=yes
5164 else
5165 xorg_cv_cc_flag_unknown_warning_option=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5170 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5178 fi
5179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 int i;
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 xorg_cv_cc_flag_unused_command_line_argument=yes
5191 else
5192 xorg_cv_cc_flag_unused_command_line_argument=no
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5197 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5199 CFLAGS="$xorg_testset_save_CFLAGS"
5200 fi
5201
5202 found="no"
5203
5204 if test $found = "no" ; then
5205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207 fi
5208
5209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211 fi
5212
5213 CFLAGS="$CFLAGS -Wformat=2"
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5216 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5217 cacheid=xorg_cv_cc_flag__Wformat_2
5218 if eval \${$cacheid+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 int i;
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 eval $cacheid=yes
5234 else
5235 eval $cacheid=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 fi
5240
5241
5242 CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244 eval supported=\$$cacheid
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246 $as_echo "$supported" >&6; }
5247 if test "$supported" = "yes" ; then
5248 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5249 found="yes"
5250 fi
5251 fi
5252
5253 if test $found = "no" ; then
5254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256 fi
5257
5258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260 fi
5261
5262 CFLAGS="$CFLAGS -Wformat"
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5265 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5266 cacheid=xorg_cv_cc_flag__Wformat
5267 if eval \${$cacheid+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 int i;
5273 int
5274 main ()
5275 {
5276
5277 ;
5278 return 0;
5279 }
5280 _ACEOF
5281 if ac_fn_c_try_link "$LINENO"; then :
5282 eval $cacheid=yes
5283 else
5284 eval $cacheid=no
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 fi
5289
5290
5291 CFLAGS="$xorg_testset_save_CFLAGS"
5292
5293 eval supported=\$$cacheid
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5295 $as_echo "$supported" >&6; }
5296 if test "$supported" = "yes" ; then
5297 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5298 found="yes"
5299 fi
5300 fi
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 xorg_testset_save_CFLAGS="$CFLAGS"
5319
5320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 int i;
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 xorg_cv_cc_flag_unknown_warning_option=yes
5333 else
5334 xorg_cv_cc_flag_unknown_warning_option=no
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5342 fi
5343
5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5347 fi
5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 int i;
5357 _ACEOF
5358 if ac_fn_c_try_compile "$LINENO"; then :
5359 xorg_cv_cc_flag_unused_command_line_argument=yes
5360 else
5361 xorg_cv_cc_flag_unused_command_line_argument=no
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5368 CFLAGS="$xorg_testset_save_CFLAGS"
5369 fi
5370
5371 found="no"
5372
5373 if test $found = "no" ; then
5374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376 fi
5377
5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5380 fi
5381
5382 CFLAGS="$CFLAGS -Wstrict-prototypes"
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5385 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5386 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5387 if eval \${$cacheid+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 int i;
5393 int
5394 main ()
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_link "$LINENO"; then :
5402 eval $cacheid=yes
5403 else
5404 eval $cacheid=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 fi
5409
5410
5411 CFLAGS="$xorg_testset_save_CFLAGS"
5412
5413 eval supported=\$$cacheid
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5415 $as_echo "$supported" >&6; }
5416 if test "$supported" = "yes" ; then
5417 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5418 found="yes"
5419 fi
5420 fi
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 xorg_testset_save_CFLAGS="$CFLAGS"
5437
5438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 int i;
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 xorg_cv_cc_flag_unknown_warning_option=yes
5451 else
5452 xorg_cv_cc_flag_unknown_warning_option=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460 fi
5461
5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5465 fi
5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 int i;
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 xorg_cv_cc_flag_unused_command_line_argument=yes
5478 else
5479 xorg_cv_cc_flag_unused_command_line_argument=no
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5486 CFLAGS="$xorg_testset_save_CFLAGS"
5487 fi
5488
5489 found="no"
5490
5491 if test $found = "no" ; then
5492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5494 fi
5495
5496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5498 fi
5499
5500 CFLAGS="$CFLAGS -Wmissing-prototypes"
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5503 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5504 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5505 if eval \${$cacheid+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 int i;
5511 int
5512 main ()
5513 {
5514
5515 ;
5516 return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_link "$LINENO"; then :
5520 eval $cacheid=yes
5521 else
5522 eval $cacheid=no
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
5526 fi
5527
5528
5529 CFLAGS="$xorg_testset_save_CFLAGS"
5530
5531 eval supported=\$$cacheid
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5533 $as_echo "$supported" >&6; }
5534 if test "$supported" = "yes" ; then
5535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5536 found="yes"
5537 fi
5538 fi
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 xorg_testset_save_CFLAGS="$CFLAGS"
5555
5556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 int i;
5566 _ACEOF
5567 if ac_fn_c_try_compile "$LINENO"; then :
5568 xorg_cv_cc_flag_unknown_warning_option=yes
5569 else
5570 xorg_cv_cc_flag_unknown_warning_option=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5578 fi
5579
5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5583 fi
5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 int i;
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595 xorg_cv_cc_flag_unused_command_line_argument=yes
5596 else
5597 xorg_cv_cc_flag_unused_command_line_argument=no
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5605 fi
5606
5607 found="no"
5608
5609 if test $found = "no" ; then
5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612 fi
5613
5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5616 fi
5617
5618 CFLAGS="$CFLAGS -Wnested-externs"
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5621 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5622 cacheid=xorg_cv_cc_flag__Wnested_externs
5623 if eval \${$cacheid+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 int i;
5629 int
5630 main ()
5631 {
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_c_try_link "$LINENO"; then :
5638 eval $cacheid=yes
5639 else
5640 eval $cacheid=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 fi
5645
5646
5647 CFLAGS="$xorg_testset_save_CFLAGS"
5648
5649 eval supported=\$$cacheid
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5651 $as_echo "$supported" >&6; }
5652 if test "$supported" = "yes" ; then
5653 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5654 found="yes"
5655 fi
5656 fi
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672 xorg_testset_save_CFLAGS="$CFLAGS"
5673
5674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 int i;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 xorg_cv_cc_flag_unknown_warning_option=yes
5687 else
5688 xorg_cv_cc_flag_unknown_warning_option=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5696 fi
5697
5698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701 fi
5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 int i;
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 xorg_cv_cc_flag_unused_command_line_argument=yes
5714 else
5715 xorg_cv_cc_flag_unused_command_line_argument=no
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5722 CFLAGS="$xorg_testset_save_CFLAGS"
5723 fi
5724
5725 found="no"
5726
5727 if test $found = "no" ; then
5728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730 fi
5731
5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5734 fi
5735
5736 CFLAGS="$CFLAGS -Wbad-function-cast"
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5739 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5740 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5741 if eval \${$cacheid+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"; then :
5756 eval $cacheid=yes
5757 else
5758 eval $cacheid=no
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762 fi
5763
5764
5765 CFLAGS="$xorg_testset_save_CFLAGS"
5766
5767 eval supported=\$$cacheid
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5769 $as_echo "$supported" >&6; }
5770 if test "$supported" = "yes" ; then
5771 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5772 found="yes"
5773 fi
5774 fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 xorg_testset_save_CFLAGS="$CFLAGS"
5791
5792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5795 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5796 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 int i;
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 xorg_cv_cc_flag_unknown_warning_option=yes
5805 else
5806 xorg_cv_cc_flag_unknown_warning_option=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5811 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5814 fi
5815
5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5819 fi
5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5822 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5823 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 _ACEOF
5830 if ac_fn_c_try_compile "$LINENO"; then :
5831 xorg_cv_cc_flag_unused_command_line_argument=yes
5832 else
5833 xorg_cv_cc_flag_unused_command_line_argument=no
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5838 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5840 CFLAGS="$xorg_testset_save_CFLAGS"
5841 fi
5842
5843 found="no"
5844
5845 if test $found = "no" ; then
5846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5848 fi
5849
5850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5852 fi
5853
5854 CFLAGS="$CFLAGS -Wold-style-definition"
5855
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5857 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5858 cacheid=xorg_cv_cc_flag__Wold_style_definition
5859 if eval \${$cacheid+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 int i;
5865 int
5866 main ()
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_link "$LINENO"; then :
5874 eval $cacheid=yes
5875 else
5876 eval $cacheid=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5880 fi
5881
5882
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884
5885 eval supported=\$$cacheid
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5887 $as_echo "$supported" >&6; }
5888 if test "$supported" = "yes" ; then
5889 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5890 found="yes"
5891 fi
5892 fi
5893
5894 if test $found = "no" ; then
5895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897 fi
5898
5899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901 fi
5902
5903 CFLAGS="$CFLAGS -fd"
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5906 $as_echo_n "checking if $CC supports -fd... " >&6; }
5907 cacheid=xorg_cv_cc_flag__fd
5908 if eval \${$cacheid+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 int i;
5914 int
5915 main ()
5916 {
5917
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 eval $cacheid=yes
5924 else
5925 eval $cacheid=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5929 fi
5930
5931
5932 CFLAGS="$xorg_testset_save_CFLAGS"
5933
5934 eval supported=\$$cacheid
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5936 $as_echo "$supported" >&6; }
5937 if test "$supported" = "yes" ; then
5938 BASE_CFLAGS="$BASE_CFLAGS -fd"
5939 found="yes"
5940 fi
5941 fi
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 xorg_testset_save_CFLAGS="$CFLAGS"
5958
5959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5962 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5963 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 int i;
5969 _ACEOF
5970 if ac_fn_c_try_compile "$LINENO"; then :
5971 xorg_cv_cc_flag_unknown_warning_option=yes
5972 else
5973 xorg_cv_cc_flag_unknown_warning_option=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5978 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986 fi
5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5989 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5990 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 int i;
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 xorg_cv_cc_flag_unused_command_line_argument=yes
5999 else
6000 xorg_cv_cc_flag_unused_command_line_argument=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6005 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008 fi
6009
6010 found="no"
6011
6012 if test $found = "no" ; then
6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015 fi
6016
6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019 fi
6020
6021 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6024 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6025 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6026 if eval \${$cacheid+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 int i;
6032 int
6033 main ()
6034 {
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 eval $cacheid=yes
6042 else
6043 eval $cacheid=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext \
6046 conftest$ac_exeext conftest.$ac_ext
6047 fi
6048
6049
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051
6052 eval supported=\$$cacheid
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6054 $as_echo "$supported" >&6; }
6055 if test "$supported" = "yes" ; then
6056 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6057 found="yes"
6058 fi
6059 fi
6060
6061
6062
6063
6064
6065 # This chunk adds additional warnings that could catch undesired effects.
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 xorg_testset_save_CFLAGS="$CFLAGS"
6080
6081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 int i;
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 xorg_cv_cc_flag_unknown_warning_option=yes
6094 else
6095 xorg_cv_cc_flag_unknown_warning_option=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6102 CFLAGS="$xorg_testset_save_CFLAGS"
6103 fi
6104
6105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 fi
6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 int i;
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"; then :
6120 xorg_cv_cc_flag_unused_command_line_argument=yes
6121 else
6122 xorg_cv_cc_flag_unused_command_line_argument=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130 fi
6131
6132 found="no"
6133
6134 if test $found = "no" ; then
6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137 fi
6138
6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141 fi
6142
6143 CFLAGS="$CFLAGS -Wunused"
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6146 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6147 cacheid=xorg_cv_cc_flag__Wunused
6148 if eval \${$cacheid+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 int i;
6154 int
6155 main ()
6156 {
6157
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_link "$LINENO"; then :
6163 eval $cacheid=yes
6164 else
6165 eval $cacheid=no
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 fi
6170
6171
6172 CFLAGS="$xorg_testset_save_CFLAGS"
6173
6174 eval supported=\$$cacheid
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6176 $as_echo "$supported" >&6; }
6177 if test "$supported" = "yes" ; then
6178 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6179 found="yes"
6180 fi
6181 fi
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 xorg_testset_save_CFLAGS="$CFLAGS"
6198
6199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 int i;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 xorg_cv_cc_flag_unknown_warning_option=yes
6212 else
6213 xorg_cv_cc_flag_unknown_warning_option=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6221 fi
6222
6223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 fi
6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 int i;
6236 _ACEOF
6237 if ac_fn_c_try_compile "$LINENO"; then :
6238 xorg_cv_cc_flag_unused_command_line_argument=yes
6239 else
6240 xorg_cv_cc_flag_unused_command_line_argument=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6247 CFLAGS="$xorg_testset_save_CFLAGS"
6248 fi
6249
6250 found="no"
6251
6252 if test $found = "no" ; then
6253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255 fi
6256
6257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6259 fi
6260
6261 CFLAGS="$CFLAGS -Wuninitialized"
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6264 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6265 cacheid=xorg_cv_cc_flag__Wuninitialized
6266 if eval \${$cacheid+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 int i;
6272 int
6273 main ()
6274 {
6275
6276 ;
6277 return 0;
6278 }
6279 _ACEOF
6280 if ac_fn_c_try_link "$LINENO"; then :
6281 eval $cacheid=yes
6282 else
6283 eval $cacheid=no
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 fi
6288
6289
6290 CFLAGS="$xorg_testset_save_CFLAGS"
6291
6292 eval supported=\$$cacheid
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6294 $as_echo "$supported" >&6; }
6295 if test "$supported" = "yes" ; then
6296 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6297 found="yes"
6298 fi
6299 fi
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 xorg_testset_save_CFLAGS="$CFLAGS"
6316
6317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 int i;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329 xorg_cv_cc_flag_unknown_warning_option=yes
6330 else
6331 xorg_cv_cc_flag_unknown_warning_option=no
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6338 CFLAGS="$xorg_testset_save_CFLAGS"
6339 fi
6340
6341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344 fi
6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 int i;
6354 _ACEOF
6355 if ac_fn_c_try_compile "$LINENO"; then :
6356 xorg_cv_cc_flag_unused_command_line_argument=yes
6357 else
6358 xorg_cv_cc_flag_unused_command_line_argument=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366 fi
6367
6368 found="no"
6369
6370 if test $found = "no" ; then
6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373 fi
6374
6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377 fi
6378
6379 CFLAGS="$CFLAGS -Wshadow"
6380
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6382 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6383 cacheid=xorg_cv_cc_flag__Wshadow
6384 if eval \${$cacheid+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 int i;
6390 int
6391 main ()
6392 {
6393
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_c_try_link "$LINENO"; then :
6399 eval $cacheid=yes
6400 else
6401 eval $cacheid=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext \
6404 conftest$ac_exeext conftest.$ac_ext
6405 fi
6406
6407
6408 CFLAGS="$xorg_testset_save_CFLAGS"
6409
6410 eval supported=\$$cacheid
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6412 $as_echo "$supported" >&6; }
6413 if test "$supported" = "yes" ; then
6414 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6415 found="yes"
6416 fi
6417 fi
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 xorg_testset_save_CFLAGS="$CFLAGS"
6434
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447 xorg_cv_cc_flag_unknown_warning_option=yes
6448 else
6449 xorg_cv_cc_flag_unknown_warning_option=no
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6456 CFLAGS="$xorg_testset_save_CFLAGS"
6457 fi
6458
6459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 fi
6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 int i;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 xorg_cv_cc_flag_unused_command_line_argument=yes
6475 else
6476 xorg_cv_cc_flag_unused_command_line_argument=no
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484 fi
6485
6486 found="no"
6487
6488 if test $found = "no" ; then
6489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491 fi
6492
6493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495 fi
6496
6497 CFLAGS="$CFLAGS -Wmissing-noreturn"
6498
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6500 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6501 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6502 if eval \${$cacheid+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507 int i;
6508 int
6509 main ()
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_link "$LINENO"; then :
6517 eval $cacheid=yes
6518 else
6519 eval $cacheid=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 fi
6524
6525
6526 CFLAGS="$xorg_testset_save_CFLAGS"
6527
6528 eval supported=\$$cacheid
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6530 $as_echo "$supported" >&6; }
6531 if test "$supported" = "yes" ; then
6532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6533 found="yes"
6534 fi
6535 fi
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 xorg_testset_save_CFLAGS="$CFLAGS"
6552
6553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 int i;
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565 xorg_cv_cc_flag_unknown_warning_option=yes
6566 else
6567 xorg_cv_cc_flag_unknown_warning_option=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6574 CFLAGS="$xorg_testset_save_CFLAGS"
6575 fi
6576
6577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 fi
6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 int i;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 xorg_cv_cc_flag_unused_command_line_argument=yes
6593 else
6594 xorg_cv_cc_flag_unused_command_line_argument=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602 fi
6603
6604 found="no"
6605
6606 if test $found = "no" ; then
6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 fi
6610
6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613 fi
6614
6615 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6618 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6619 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6620 if eval \${$cacheid+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 int i;
6626 int
6627 main ()
6628 {
6629
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_link "$LINENO"; then :
6635 eval $cacheid=yes
6636 else
6637 eval $cacheid=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 fi
6642
6643
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645
6646 eval supported=\$$cacheid
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6648 $as_echo "$supported" >&6; }
6649 if test "$supported" = "yes" ; then
6650 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6651 found="yes"
6652 fi
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 xorg_testset_save_CFLAGS="$CFLAGS"
6670
6671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 int i;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 xorg_cv_cc_flag_unknown_warning_option=yes
6684 else
6685 xorg_cv_cc_flag_unknown_warning_option=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6693 fi
6694
6695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 fi
6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int i;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 xorg_cv_cc_flag_unused_command_line_argument=yes
6711 else
6712 xorg_cv_cc_flag_unused_command_line_argument=no
6713 fi
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720 fi
6721
6722 found="no"
6723
6724 if test $found = "no" ; then
6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727 fi
6728
6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731 fi
6732
6733 CFLAGS="$CFLAGS -Wredundant-decls"
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6736 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6737 cacheid=xorg_cv_cc_flag__Wredundant_decls
6738 if eval \${$cacheid+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 int i;
6744 int
6745 main ()
6746 {
6747
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753 eval $cacheid=yes
6754 else
6755 eval $cacheid=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 fi
6760
6761
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763
6764 eval supported=\$$cacheid
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6766 $as_echo "$supported" >&6; }
6767 if test "$supported" = "yes" ; then
6768 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6769 found="yes"
6770 fi
6771 fi
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787 xorg_testset_save_CFLAGS="$CFLAGS"
6788
6789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 xorg_cv_cc_flag_unknown_warning_option=yes
6802 else
6803 xorg_cv_cc_flag_unknown_warning_option=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6810 CFLAGS="$xorg_testset_save_CFLAGS"
6811 fi
6812
6813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816 fi
6817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 int i;
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 xorg_cv_cc_flag_unused_command_line_argument=yes
6829 else
6830 xorg_cv_cc_flag_unused_command_line_argument=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6837 CFLAGS="$xorg_testset_save_CFLAGS"
6838 fi
6839
6840 found="no"
6841
6842 if test $found = "no" ; then
6843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6845 fi
6846
6847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6849 fi
6850
6851 CFLAGS="$CFLAGS -Wlogical-op"
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6854 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6855 cacheid=xorg_cv_cc_flag__Wlogical_op
6856 if eval \${$cacheid+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 int i;
6862 int
6863 main ()
6864 {
6865
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_link "$LINENO"; then :
6871 eval $cacheid=yes
6872 else
6873 eval $cacheid=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext \
6876 conftest$ac_exeext conftest.$ac_ext
6877 fi
6878
6879
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881
6882 eval supported=\$$cacheid
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6884 $as_echo "$supported" >&6; }
6885 if test "$supported" = "yes" ; then
6886 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6887 found="yes"
6888 fi
6889 fi
6890
6891
6892
6893 # These are currently disabled because they are noisy. They will be enabled
6894 # in the future once the codebase is sufficiently modernized to silence
6895 # them. For now, I don't want them to drown out the other warnings.
6896 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6897 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6898 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6899
6900 # Turn some warnings into errors, so we don't accidently get successful builds
6901 # when there are problems that should be fixed.
6902
6903 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917 xorg_testset_save_CFLAGS="$CFLAGS"
6918
6919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 xorg_cv_cc_flag_unknown_warning_option=yes
6932 else
6933 xorg_cv_cc_flag_unknown_warning_option=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940 CFLAGS="$xorg_testset_save_CFLAGS"
6941 fi
6942
6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946 fi
6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 int i;
6956 _ACEOF
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 xorg_cv_cc_flag_unused_command_line_argument=yes
6959 else
6960 xorg_cv_cc_flag_unused_command_line_argument=no
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6967 CFLAGS="$xorg_testset_save_CFLAGS"
6968 fi
6969
6970 found="no"
6971
6972 if test $found = "no" ; then
6973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6975 fi
6976
6977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6979 fi
6980
6981 CFLAGS="$CFLAGS -Werror=implicit"
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6984 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6985 cacheid=xorg_cv_cc_flag__Werror_implicit
6986 if eval \${$cacheid+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 int i;
6992 int
6993 main ()
6994 {
6995
6996 ;
6997 return 0;
6998 }
6999 _ACEOF
7000 if ac_fn_c_try_link "$LINENO"; then :
7001 eval $cacheid=yes
7002 else
7003 eval $cacheid=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7007 fi
7008
7009
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011
7012 eval supported=\$$cacheid
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7014 $as_echo "$supported" >&6; }
7015 if test "$supported" = "yes" ; then
7016 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7017 found="yes"
7018 fi
7019 fi
7020
7021 if test $found = "no" ; then
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 fi
7029
7030 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7033 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7034 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7035 if eval \${$cacheid+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 int i;
7041 int
7042 main ()
7043 {
7044
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050 eval $cacheid=yes
7051 else
7052 eval $cacheid=no
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 fi
7057
7058
7059 CFLAGS="$xorg_testset_save_CFLAGS"
7060
7061 eval supported=\$$cacheid
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7063 $as_echo "$supported" >&6; }
7064 if test "$supported" = "yes" ; then
7065 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7066 found="yes"
7067 fi
7068 fi
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084 xorg_testset_save_CFLAGS="$CFLAGS"
7085
7086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 int i;
7096 _ACEOF
7097 if ac_fn_c_try_compile "$LINENO"; then :
7098 xorg_cv_cc_flag_unknown_warning_option=yes
7099 else
7100 xorg_cv_cc_flag_unknown_warning_option=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7107 CFLAGS="$xorg_testset_save_CFLAGS"
7108 fi
7109
7110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 fi
7114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 int i;
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 xorg_cv_cc_flag_unused_command_line_argument=yes
7126 else
7127 xorg_cv_cc_flag_unused_command_line_argument=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135 fi
7136
7137 found="no"
7138
7139 if test $found = "no" ; then
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 fi
7143
7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146 fi
7147
7148 CFLAGS="$CFLAGS -Werror=nonnull"
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7151 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7152 cacheid=xorg_cv_cc_flag__Werror_nonnull
7153 if eval \${$cacheid+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 int i;
7159 int
7160 main ()
7161 {
7162
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 eval $cacheid=yes
7169 else
7170 eval $cacheid=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 fi
7175
7176
7177 CFLAGS="$xorg_testset_save_CFLAGS"
7178
7179 eval supported=\$$cacheid
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7181 $as_echo "$supported" >&6; }
7182 if test "$supported" = "yes" ; then
7183 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7184 found="yes"
7185 fi
7186 fi
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 xorg_testset_save_CFLAGS="$CFLAGS"
7203
7204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 int i;
7214 _ACEOF
7215 if ac_fn_c_try_compile "$LINENO"; then :
7216 xorg_cv_cc_flag_unknown_warning_option=yes
7217 else
7218 xorg_cv_cc_flag_unknown_warning_option=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7225 CFLAGS="$xorg_testset_save_CFLAGS"
7226 fi
7227
7228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231 fi
7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 int i;
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 xorg_cv_cc_flag_unused_command_line_argument=yes
7244 else
7245 xorg_cv_cc_flag_unused_command_line_argument=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7252 CFLAGS="$xorg_testset_save_CFLAGS"
7253 fi
7254
7255 found="no"
7256
7257 if test $found = "no" ; then
7258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260 fi
7261
7262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264 fi
7265
7266 CFLAGS="$CFLAGS -Werror=init-self"
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7269 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7270 cacheid=xorg_cv_cc_flag__Werror_init_self
7271 if eval \${$cacheid+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 int i;
7277 int
7278 main ()
7279 {
7280
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_link "$LINENO"; then :
7286 eval $cacheid=yes
7287 else
7288 eval $cacheid=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 fi
7293
7294
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296
7297 eval supported=\$$cacheid
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7299 $as_echo "$supported" >&6; }
7300 if test "$supported" = "yes" ; then
7301 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7302 found="yes"
7303 fi
7304 fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 xorg_testset_save_CFLAGS="$CFLAGS"
7321
7322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 int i;
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 xorg_cv_cc_flag_unknown_warning_option=yes
7335 else
7336 xorg_cv_cc_flag_unknown_warning_option=no
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7343 CFLAGS="$xorg_testset_save_CFLAGS"
7344 fi
7345
7346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349 fi
7350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 int i;
7359 _ACEOF
7360 if ac_fn_c_try_compile "$LINENO"; then :
7361 xorg_cv_cc_flag_unused_command_line_argument=yes
7362 else
7363 xorg_cv_cc_flag_unused_command_line_argument=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7370 CFLAGS="$xorg_testset_save_CFLAGS"
7371 fi
7372
7373 found="no"
7374
7375 if test $found = "no" ; then
7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378 fi
7379
7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382 fi
7383
7384 CFLAGS="$CFLAGS -Werror=main"
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7387 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7388 cacheid=xorg_cv_cc_flag__Werror_main
7389 if eval \${$cacheid+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 int i;
7395 int
7396 main ()
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 eval $cacheid=yes
7405 else
7406 eval $cacheid=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 fi
7411
7412
7413 CFLAGS="$xorg_testset_save_CFLAGS"
7414
7415 eval supported=\$$cacheid
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7417 $as_echo "$supported" >&6; }
7418 if test "$supported" = "yes" ; then
7419 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7420 found="yes"
7421 fi
7422 fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 xorg_testset_save_CFLAGS="$CFLAGS"
7439
7440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 xorg_cv_cc_flag_unknown_warning_option=yes
7453 else
7454 xorg_cv_cc_flag_unknown_warning_option=no
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7461 CFLAGS="$xorg_testset_save_CFLAGS"
7462 fi
7463
7464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7467 fi
7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 xorg_cv_cc_flag_unused_command_line_argument=yes
7480 else
7481 xorg_cv_cc_flag_unused_command_line_argument=no
7482 fi
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489 fi
7490
7491 found="no"
7492
7493 if test $found = "no" ; then
7494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496 fi
7497
7498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500 fi
7501
7502 CFLAGS="$CFLAGS -Werror=missing-braces"
7503
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7505 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7506 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7507 if eval \${$cacheid+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 int i;
7513 int
7514 main ()
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522 eval $cacheid=yes
7523 else
7524 eval $cacheid=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 fi
7529
7530
7531 CFLAGS="$xorg_testset_save_CFLAGS"
7532
7533 eval supported=\$$cacheid
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7535 $as_echo "$supported" >&6; }
7536 if test "$supported" = "yes" ; then
7537 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7538 found="yes"
7539 fi
7540 fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 xorg_testset_save_CFLAGS="$CFLAGS"
7557
7558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 int i;
7568 _ACEOF
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 xorg_cv_cc_flag_unknown_warning_option=yes
7571 else
7572 xorg_cv_cc_flag_unknown_warning_option=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580 fi
7581
7582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 fi
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 int i;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 xorg_cv_cc_flag_unused_command_line_argument=yes
7598 else
7599 xorg_cv_cc_flag_unused_command_line_argument=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7607 fi
7608
7609 found="no"
7610
7611 if test $found = "no" ; then
7612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614 fi
7615
7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7618 fi
7619
7620 CFLAGS="$CFLAGS -Werror=sequence-point"
7621
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7623 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7624 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7625 if eval \${$cacheid+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 int i;
7631 int
7632 main ()
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 eval $cacheid=yes
7641 else
7642 eval $cacheid=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 fi
7647
7648
7649 CFLAGS="$xorg_testset_save_CFLAGS"
7650
7651 eval supported=\$$cacheid
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7653 $as_echo "$supported" >&6; }
7654 if test "$supported" = "yes" ; then
7655 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7656 found="yes"
7657 fi
7658 fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 xorg_testset_save_CFLAGS="$CFLAGS"
7675
7676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 int i;
7686 _ACEOF
7687 if ac_fn_c_try_compile "$LINENO"; then :
7688 xorg_cv_cc_flag_unknown_warning_option=yes
7689 else
7690 xorg_cv_cc_flag_unknown_warning_option=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698 fi
7699
7700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703 fi
7704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 int i;
7713 _ACEOF
7714 if ac_fn_c_try_compile "$LINENO"; then :
7715 xorg_cv_cc_flag_unused_command_line_argument=yes
7716 else
7717 xorg_cv_cc_flag_unused_command_line_argument=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725 fi
7726
7727 found="no"
7728
7729 if test $found = "no" ; then
7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7732 fi
7733
7734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736 fi
7737
7738 CFLAGS="$CFLAGS -Werror=return-type"
7739
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7741 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7742 cacheid=xorg_cv_cc_flag__Werror_return_type
7743 if eval \${$cacheid+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 int i;
7749 int
7750 main ()
7751 {
7752
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758 eval $cacheid=yes
7759 else
7760 eval $cacheid=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7764 fi
7765
7766
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768
7769 eval supported=\$$cacheid
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7771 $as_echo "$supported" >&6; }
7772 if test "$supported" = "yes" ; then
7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7774 found="yes"
7775 fi
7776 fi
7777
7778 if test $found = "no" ; then
7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781 fi
7782
7783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785 fi
7786
7787 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7790 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7791 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7792 if eval \${$cacheid+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 int i;
7798 int
7799 main ()
7800 {
7801
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"; then :
7807 eval $cacheid=yes
7808 else
7809 eval $cacheid=no
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813 fi
7814
7815
7816 CFLAGS="$xorg_testset_save_CFLAGS"
7817
7818 eval supported=\$$cacheid
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7820 $as_echo "$supported" >&6; }
7821 if test "$supported" = "yes" ; then
7822 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7823 found="yes"
7824 fi
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841 xorg_testset_save_CFLAGS="$CFLAGS"
7842
7843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 int i;
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 xorg_cv_cc_flag_unknown_warning_option=yes
7856 else
7857 xorg_cv_cc_flag_unknown_warning_option=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7864 CFLAGS="$xorg_testset_save_CFLAGS"
7865 fi
7866
7867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870 fi
7871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 int i;
7880 _ACEOF
7881 if ac_fn_c_try_compile "$LINENO"; then :
7882 xorg_cv_cc_flag_unused_command_line_argument=yes
7883 else
7884 xorg_cv_cc_flag_unused_command_line_argument=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892 fi
7893
7894 found="no"
7895
7896 if test $found = "no" ; then
7897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899 fi
7900
7901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903 fi
7904
7905 CFLAGS="$CFLAGS -Werror=trigraphs"
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7908 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7909 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7910 if eval \${$cacheid+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 int i;
7916 int
7917 main ()
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"; then :
7925 eval $cacheid=yes
7926 else
7927 eval $cacheid=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931 fi
7932
7933
7934 CFLAGS="$xorg_testset_save_CFLAGS"
7935
7936 eval supported=\$$cacheid
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7938 $as_echo "$supported" >&6; }
7939 if test "$supported" = "yes" ; then
7940 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7941 found="yes"
7942 fi
7943 fi
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959 xorg_testset_save_CFLAGS="$CFLAGS"
7960
7961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int i;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 xorg_cv_cc_flag_unknown_warning_option=yes
7974 else
7975 xorg_cv_cc_flag_unknown_warning_option=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7982 CFLAGS="$xorg_testset_save_CFLAGS"
7983 fi
7984
7985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 fi
7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 int i;
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 xorg_cv_cc_flag_unused_command_line_argument=yes
8001 else
8002 xorg_cv_cc_flag_unused_command_line_argument=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8009 CFLAGS="$xorg_testset_save_CFLAGS"
8010 fi
8011
8012 found="no"
8013
8014 if test $found = "no" ; then
8015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8017 fi
8018
8019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8021 fi
8022
8023 CFLAGS="$CFLAGS -Werror=array-bounds"
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8026 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8027 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8028 if eval \${$cacheid+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 int i;
8034 int
8035 main ()
8036 {
8037
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 if ac_fn_c_try_link "$LINENO"; then :
8043 eval $cacheid=yes
8044 else
8045 eval $cacheid=no
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext \
8048 conftest$ac_exeext conftest.$ac_ext
8049 fi
8050
8051
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053
8054 eval supported=\$$cacheid
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8056 $as_echo "$supported" >&6; }
8057 if test "$supported" = "yes" ; then
8058 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8059 found="yes"
8060 fi
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077 xorg_testset_save_CFLAGS="$CFLAGS"
8078
8079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 int i;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 xorg_cv_cc_flag_unknown_warning_option=yes
8092 else
8093 xorg_cv_cc_flag_unknown_warning_option=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8101 fi
8102
8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106 fi
8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 int i;
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 xorg_cv_cc_flag_unused_command_line_argument=yes
8119 else
8120 xorg_cv_cc_flag_unused_command_line_argument=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8127 CFLAGS="$xorg_testset_save_CFLAGS"
8128 fi
8129
8130 found="no"
8131
8132 if test $found = "no" ; then
8133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8135 fi
8136
8137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139 fi
8140
8141 CFLAGS="$CFLAGS -Werror=write-strings"
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8144 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8145 cacheid=xorg_cv_cc_flag__Werror_write_strings
8146 if eval \${$cacheid+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 int i;
8152 int
8153 main ()
8154 {
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_link "$LINENO"; then :
8161 eval $cacheid=yes
8162 else
8163 eval $cacheid=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167 fi
8168
8169
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171
8172 eval supported=\$$cacheid
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8174 $as_echo "$supported" >&6; }
8175 if test "$supported" = "yes" ; then
8176 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8177 found="yes"
8178 fi
8179 fi
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195 xorg_testset_save_CFLAGS="$CFLAGS"
8196
8197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8200 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8201 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 int i;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 xorg_cv_cc_flag_unknown_warning_option=yes
8210 else
8211 xorg_cv_cc_flag_unknown_warning_option=no
8212 fi
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8216 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8219 fi
8220
8221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224 fi
8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8227 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8228 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"; then :
8236 xorg_cv_cc_flag_unused_command_line_argument=yes
8237 else
8238 xorg_cv_cc_flag_unused_command_line_argument=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8243 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8245 CFLAGS="$xorg_testset_save_CFLAGS"
8246 fi
8247
8248 found="no"
8249
8250 if test $found = "no" ; then
8251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253 fi
8254
8255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257 fi
8258
8259 CFLAGS="$CFLAGS -Werror=address"
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8262 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8263 cacheid=xorg_cv_cc_flag__Werror_address
8264 if eval \${$cacheid+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8269 int i;
8270 int
8271 main ()
8272 {
8273
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_link "$LINENO"; then :
8279 eval $cacheid=yes
8280 else
8281 eval $cacheid=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8285 fi
8286
8287
8288 CFLAGS="$xorg_testset_save_CFLAGS"
8289
8290 eval supported=\$$cacheid
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8292 $as_echo "$supported" >&6; }
8293 if test "$supported" = "yes" ; then
8294 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8295 found="yes"
8296 fi
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313 xorg_testset_save_CFLAGS="$CFLAGS"
8314
8315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8318 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8319 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 int i;
8325 _ACEOF
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327 xorg_cv_cc_flag_unknown_warning_option=yes
8328 else
8329 xorg_cv_cc_flag_unknown_warning_option=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8334 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8336 CFLAGS="$xorg_testset_save_CFLAGS"
8337 fi
8338
8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342 fi
8343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8345 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8346 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int i;
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 xorg_cv_cc_flag_unused_command_line_argument=yes
8355 else
8356 xorg_cv_cc_flag_unused_command_line_argument=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8361 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8363 CFLAGS="$xorg_testset_save_CFLAGS"
8364 fi
8365
8366 found="no"
8367
8368 if test $found = "no" ; then
8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8371 fi
8372
8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375 fi
8376
8377 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8378
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8380 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8381 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8382 if eval \${$cacheid+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 int i;
8388 int
8389 main ()
8390 {
8391
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_link "$LINENO"; then :
8397 eval $cacheid=yes
8398 else
8399 eval $cacheid=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 fi
8404
8405
8406 CFLAGS="$xorg_testset_save_CFLAGS"
8407
8408 eval supported=\$$cacheid
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8410 $as_echo "$supported" >&6; }
8411 if test "$supported" = "yes" ; then
8412 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8413 found="yes"
8414 fi
8415 fi
8416
8417 if test $found = "no" ; then
8418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420 fi
8421
8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8424 fi
8425
8426 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8427
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8429 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8430 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8431 if eval \${$cacheid+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436 int i;
8437 int
8438 main ()
8439 {
8440
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_link "$LINENO"; then :
8446 eval $cacheid=yes
8447 else
8448 eval $cacheid=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 fi
8453
8454
8455 CFLAGS="$xorg_testset_save_CFLAGS"
8456
8457 eval supported=\$$cacheid
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8459 $as_echo "$supported" >&6; }
8460 if test "$supported" = "yes" ; then
8461 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8462 found="yes"
8463 fi
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480 xorg_testset_save_CFLAGS="$CFLAGS"
8481
8482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8485 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8486 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 int i;
8492 _ACEOF
8493 if ac_fn_c_try_compile "$LINENO"; then :
8494 xorg_cv_cc_flag_unknown_warning_option=yes
8495 else
8496 xorg_cv_cc_flag_unknown_warning_option=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504 fi
8505
8506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 fi
8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8518 int i;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 xorg_cv_cc_flag_unused_command_line_argument=yes
8522 else
8523 xorg_cv_cc_flag_unused_command_line_argument=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8528 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531 fi
8532
8533 found="no"
8534
8535 if test $found = "no" ; then
8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538 fi
8539
8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8542 fi
8543
8544 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8547 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8548 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8549 if eval \${$cacheid+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 int
8556 main ()
8557 {
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 eval $cacheid=yes
8565 else
8566 eval $cacheid=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 fi
8571
8572
8573 CFLAGS="$xorg_testset_save_CFLAGS"
8574
8575 eval supported=\$$cacheid
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8577 $as_echo "$supported" >&6; }
8578 if test "$supported" = "yes" ; then
8579 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8580 found="yes"
8581 fi
8582 fi
8583
8584 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8585 else
8586 { $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
8587 $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;}
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601 xorg_testset_save_CFLAGS="$CFLAGS"
8602
8603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 xorg_cv_cc_flag_unknown_warning_option=yes
8616 else
8617 xorg_cv_cc_flag_unknown_warning_option=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8624 CFLAGS="$xorg_testset_save_CFLAGS"
8625 fi
8626
8627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 fi
8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 int i;
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 else
8644 xorg_cv_cc_flag_unused_command_line_argument=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652 fi
8653
8654 found="no"
8655
8656 if test $found = "no" ; then
8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659 fi
8660
8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663 fi
8664
8665 CFLAGS="$CFLAGS -Wimplicit"
8666
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8668 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8669 cacheid=xorg_cv_cc_flag__Wimplicit
8670 if eval \${$cacheid+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 int i;
8676 int
8677 main ()
8678 {
8679
8680 ;
8681 return 0;
8682 }
8683 _ACEOF
8684 if ac_fn_c_try_link "$LINENO"; then :
8685 eval $cacheid=yes
8686 else
8687 eval $cacheid=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext \
8690 conftest$ac_exeext conftest.$ac_ext
8691 fi
8692
8693
8694 CFLAGS="$xorg_testset_save_CFLAGS"
8695
8696 eval supported=\$$cacheid
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8698 $as_echo "$supported" >&6; }
8699 if test "$supported" = "yes" ; then
8700 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8701 found="yes"
8702 fi
8703 fi
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 xorg_testset_save_CFLAGS="$CFLAGS"
8720
8721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 int i;
8731 _ACEOF
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 xorg_cv_cc_flag_unknown_warning_option=yes
8734 else
8735 xorg_cv_cc_flag_unknown_warning_option=no
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8742 CFLAGS="$xorg_testset_save_CFLAGS"
8743 fi
8744
8745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8748 fi
8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 int i;
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"; then :
8760 xorg_cv_cc_flag_unused_command_line_argument=yes
8761 else
8762 xorg_cv_cc_flag_unused_command_line_argument=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770 fi
8771
8772 found="no"
8773
8774 if test $found = "no" ; then
8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 fi
8778
8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781 fi
8782
8783 CFLAGS="$CFLAGS -Wnonnull"
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8786 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8787 cacheid=xorg_cv_cc_flag__Wnonnull
8788 if eval \${$cacheid+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 int i;
8794 int
8795 main ()
8796 {
8797
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_link "$LINENO"; then :
8803 eval $cacheid=yes
8804 else
8805 eval $cacheid=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 fi
8810
8811
8812 CFLAGS="$xorg_testset_save_CFLAGS"
8813
8814 eval supported=\$$cacheid
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8816 $as_echo "$supported" >&6; }
8817 if test "$supported" = "yes" ; then
8818 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8819 found="yes"
8820 fi
8821 fi
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 xorg_testset_save_CFLAGS="$CFLAGS"
8838
8839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 int i;
8849 _ACEOF
8850 if ac_fn_c_try_compile "$LINENO"; then :
8851 xorg_cv_cc_flag_unknown_warning_option=yes
8852 else
8853 xorg_cv_cc_flag_unknown_warning_option=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861 fi
8862
8863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866 fi
8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 int i;
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"; then :
8878 xorg_cv_cc_flag_unused_command_line_argument=yes
8879 else
8880 xorg_cv_cc_flag_unused_command_line_argument=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888 fi
8889
8890 found="no"
8891
8892 if test $found = "no" ; then
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 fi
8896
8897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899 fi
8900
8901 CFLAGS="$CFLAGS -Winit-self"
8902
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8904 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8905 cacheid=xorg_cv_cc_flag__Winit_self
8906 if eval \${$cacheid+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 int
8913 main ()
8914 {
8915
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_link "$LINENO"; then :
8921 eval $cacheid=yes
8922 else
8923 eval $cacheid=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 fi
8928
8929
8930 CFLAGS="$xorg_testset_save_CFLAGS"
8931
8932 eval supported=\$$cacheid
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8934 $as_echo "$supported" >&6; }
8935 if test "$supported" = "yes" ; then
8936 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8937 found="yes"
8938 fi
8939 fi
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955 xorg_testset_save_CFLAGS="$CFLAGS"
8956
8957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 int i;
8967 _ACEOF
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 xorg_cv_cc_flag_unknown_warning_option=yes
8970 else
8971 xorg_cv_cc_flag_unknown_warning_option=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8978 CFLAGS="$xorg_testset_save_CFLAGS"
8979 fi
8980
8981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 fi
8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 int i;
8994 _ACEOF
8995 if ac_fn_c_try_compile "$LINENO"; then :
8996 xorg_cv_cc_flag_unused_command_line_argument=yes
8997 else
8998 xorg_cv_cc_flag_unused_command_line_argument=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006 fi
9007
9008 found="no"
9009
9010 if test $found = "no" ; then
9011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013 fi
9014
9015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017 fi
9018
9019 CFLAGS="$CFLAGS -Wmain"
9020
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9022 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9023 cacheid=xorg_cv_cc_flag__Wmain
9024 if eval \${$cacheid+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 int i;
9030 int
9031 main ()
9032 {
9033
9034 ;
9035 return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"; then :
9039 eval $cacheid=yes
9040 else
9041 eval $cacheid=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 fi
9046
9047
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049
9050 eval supported=\$$cacheid
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9052 $as_echo "$supported" >&6; }
9053 if test "$supported" = "yes" ; then
9054 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9055 found="yes"
9056 fi
9057 fi
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073 xorg_testset_save_CFLAGS="$CFLAGS"
9074
9075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 int i;
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087 xorg_cv_cc_flag_unknown_warning_option=yes
9088 else
9089 xorg_cv_cc_flag_unknown_warning_option=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 fi
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096 CFLAGS="$xorg_testset_save_CFLAGS"
9097 fi
9098
9099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 fi
9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 int i;
9112 _ACEOF
9113 if ac_fn_c_try_compile "$LINENO"; then :
9114 xorg_cv_cc_flag_unused_command_line_argument=yes
9115 else
9116 xorg_cv_cc_flag_unused_command_line_argument=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124 fi
9125
9126 found="no"
9127
9128 if test $found = "no" ; then
9129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131 fi
9132
9133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9135 fi
9136
9137 CFLAGS="$CFLAGS -Wmissing-braces"
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9140 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9141 cacheid=xorg_cv_cc_flag__Wmissing_braces
9142 if eval \${$cacheid+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 int i;
9148 int
9149 main ()
9150 {
9151
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 if ac_fn_c_try_link "$LINENO"; then :
9157 eval $cacheid=yes
9158 else
9159 eval $cacheid=no
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 fi
9164
9165
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9167
9168 eval supported=\$$cacheid
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170 $as_echo "$supported" >&6; }
9171 if test "$supported" = "yes" ; then
9172 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9173 found="yes"
9174 fi
9175 fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 xorg_testset_save_CFLAGS="$CFLAGS"
9192
9193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 int i;
9203 _ACEOF
9204 if ac_fn_c_try_compile "$LINENO"; then :
9205 xorg_cv_cc_flag_unknown_warning_option=yes
9206 else
9207 xorg_cv_cc_flag_unknown_warning_option=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9214 CFLAGS="$xorg_testset_save_CFLAGS"
9215 fi
9216
9217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220 fi
9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"; then :
9232 xorg_cv_cc_flag_unused_command_line_argument=yes
9233 else
9234 xorg_cv_cc_flag_unused_command_line_argument=no
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242 fi
9243
9244 found="no"
9245
9246 if test $found = "no" ; then
9247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249 fi
9250
9251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253 fi
9254
9255 CFLAGS="$CFLAGS -Wsequence-point"
9256
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9258 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9259 cacheid=xorg_cv_cc_flag__Wsequence_point
9260 if eval \${$cacheid+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 int i;
9266 int
9267 main ()
9268 {
9269
9270 ;
9271 return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 eval $cacheid=yes
9276 else
9277 eval $cacheid=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 fi
9282
9283
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285
9286 eval supported=\$$cacheid
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9288 $as_echo "$supported" >&6; }
9289 if test "$supported" = "yes" ; then
9290 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9291 found="yes"
9292 fi
9293 fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309 xorg_testset_save_CFLAGS="$CFLAGS"
9310
9311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 int i;
9321 _ACEOF
9322 if ac_fn_c_try_compile "$LINENO"; then :
9323 xorg_cv_cc_flag_unknown_warning_option=yes
9324 else
9325 xorg_cv_cc_flag_unknown_warning_option=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9332 CFLAGS="$xorg_testset_save_CFLAGS"
9333 fi
9334
9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 fi
9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 _ACEOF
9349 if ac_fn_c_try_compile "$LINENO"; then :
9350 xorg_cv_cc_flag_unused_command_line_argument=yes
9351 else
9352 xorg_cv_cc_flag_unused_command_line_argument=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360 fi
9361
9362 found="no"
9363
9364 if test $found = "no" ; then
9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367 fi
9368
9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371 fi
9372
9373 CFLAGS="$CFLAGS -Wreturn-type"
9374
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9376 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9377 cacheid=xorg_cv_cc_flag__Wreturn_type
9378 if eval \${$cacheid+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383 int i;
9384 int
9385 main ()
9386 {
9387
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393 eval $cacheid=yes
9394 else
9395 eval $cacheid=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 fi
9400
9401
9402 CFLAGS="$xorg_testset_save_CFLAGS"
9403
9404 eval supported=\$$cacheid
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9406 $as_echo "$supported" >&6; }
9407 if test "$supported" = "yes" ; then
9408 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9409 found="yes"
9410 fi
9411 fi
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427 xorg_testset_save_CFLAGS="$CFLAGS"
9428
9429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 int i;
9439 _ACEOF
9440 if ac_fn_c_try_compile "$LINENO"; then :
9441 xorg_cv_cc_flag_unknown_warning_option=yes
9442 else
9443 xorg_cv_cc_flag_unknown_warning_option=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9450 CFLAGS="$xorg_testset_save_CFLAGS"
9451 fi
9452
9453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456 fi
9457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465 int i;
9466 _ACEOF
9467 if ac_fn_c_try_compile "$LINENO"; then :
9468 xorg_cv_cc_flag_unused_command_line_argument=yes
9469 else
9470 xorg_cv_cc_flag_unused_command_line_argument=no
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9477 CFLAGS="$xorg_testset_save_CFLAGS"
9478 fi
9479
9480 found="no"
9481
9482 if test $found = "no" ; then
9483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485 fi
9486
9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489 fi
9490
9491 CFLAGS="$CFLAGS -Wtrigraphs"
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9494 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9495 cacheid=xorg_cv_cc_flag__Wtrigraphs
9496 if eval \${$cacheid+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 int i;
9502 int
9503 main ()
9504 {
9505
9506 ;
9507 return 0;
9508 }
9509 _ACEOF
9510 if ac_fn_c_try_link "$LINENO"; then :
9511 eval $cacheid=yes
9512 else
9513 eval $cacheid=no
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 fi
9518
9519
9520 CFLAGS="$xorg_testset_save_CFLAGS"
9521
9522 eval supported=\$$cacheid
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9524 $as_echo "$supported" >&6; }
9525 if test "$supported" = "yes" ; then
9526 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9527 found="yes"
9528 fi
9529 fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545 xorg_testset_save_CFLAGS="$CFLAGS"
9546
9547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 int i;
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 xorg_cv_cc_flag_unknown_warning_option=yes
9560 else
9561 xorg_cv_cc_flag_unknown_warning_option=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9568 CFLAGS="$xorg_testset_save_CFLAGS"
9569 fi
9570
9571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574 fi
9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 int i;
9584 _ACEOF
9585 if ac_fn_c_try_compile "$LINENO"; then :
9586 xorg_cv_cc_flag_unused_command_line_argument=yes
9587 else
9588 xorg_cv_cc_flag_unused_command_line_argument=no
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9595 CFLAGS="$xorg_testset_save_CFLAGS"
9596 fi
9597
9598 found="no"
9599
9600 if test $found = "no" ; then
9601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 fi
9604
9605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 fi
9608
9609 CFLAGS="$CFLAGS -Warray-bounds"
9610
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9612 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9613 cacheid=xorg_cv_cc_flag__Warray_bounds
9614 if eval \${$cacheid+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int i;
9620 int
9621 main ()
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"; then :
9629 eval $cacheid=yes
9630 else
9631 eval $cacheid=no
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext conftest.$ac_ext
9635 fi
9636
9637
9638 CFLAGS="$xorg_testset_save_CFLAGS"
9639
9640 eval supported=\$$cacheid
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9642 $as_echo "$supported" >&6; }
9643 if test "$supported" = "yes" ; then
9644 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9645 found="yes"
9646 fi
9647 fi
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 xorg_testset_save_CFLAGS="$CFLAGS"
9664
9665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9668 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9669 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"; then :
9677 xorg_cv_cc_flag_unknown_warning_option=yes
9678 else
9679 xorg_cv_cc_flag_unknown_warning_option=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9684 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9686 CFLAGS="$xorg_testset_save_CFLAGS"
9687 fi
9688
9689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692 fi
9693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9696 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int i;
9702 _ACEOF
9703 if ac_fn_c_try_compile "$LINENO"; then :
9704 xorg_cv_cc_flag_unused_command_line_argument=yes
9705 else
9706 xorg_cv_cc_flag_unused_command_line_argument=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 fi
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9711 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9713 CFLAGS="$xorg_testset_save_CFLAGS"
9714 fi
9715
9716 found="no"
9717
9718 if test $found = "no" ; then
9719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9721 fi
9722
9723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725 fi
9726
9727 CFLAGS="$CFLAGS -Wwrite-strings"
9728
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9730 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9731 cacheid=xorg_cv_cc_flag__Wwrite_strings
9732 if eval \${$cacheid+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 int i;
9738 int
9739 main ()
9740 {
9741
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 eval $cacheid=yes
9748 else
9749 eval $cacheid=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 fi
9754
9755
9756 CFLAGS="$xorg_testset_save_CFLAGS"
9757
9758 eval supported=\$$cacheid
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9760 $as_echo "$supported" >&6; }
9761 if test "$supported" = "yes" ; then
9762 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9763 found="yes"
9764 fi
9765 fi
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781 xorg_testset_save_CFLAGS="$CFLAGS"
9782
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9786 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9787 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 xorg_cv_cc_flag_unknown_warning_option=yes
9796 else
9797 xorg_cv_cc_flag_unknown_warning_option=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9802 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805 fi
9806
9807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810 fi
9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9814 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 int i;
9820 _ACEOF
9821 if ac_fn_c_try_compile "$LINENO"; then :
9822 xorg_cv_cc_flag_unused_command_line_argument=yes
9823 else
9824 xorg_cv_cc_flag_unused_command_line_argument=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9829 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832 fi
9833
9834 found="no"
9835
9836 if test $found = "no" ; then
9837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9839 fi
9840
9841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9843 fi
9844
9845 CFLAGS="$CFLAGS -Waddress"
9846
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9848 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9849 cacheid=xorg_cv_cc_flag__Waddress
9850 if eval \${$cacheid+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 int i;
9856 int
9857 main ()
9858 {
9859
9860 ;
9861 return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865 eval $cacheid=yes
9866 else
9867 eval $cacheid=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 fi
9872
9873
9874 CFLAGS="$xorg_testset_save_CFLAGS"
9875
9876 eval supported=\$$cacheid
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9878 $as_echo "$supported" >&6; }
9879 if test "$supported" = "yes" ; then
9880 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9881 found="yes"
9882 fi
9883 fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 xorg_testset_save_CFLAGS="$CFLAGS"
9900
9901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9905 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"; then :
9913 xorg_cv_cc_flag_unknown_warning_option=yes
9914 else
9915 xorg_cv_cc_flag_unknown_warning_option=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9920 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9922 CFLAGS="$xorg_testset_save_CFLAGS"
9923 fi
9924
9925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9928 fi
9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9931 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9932 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 xorg_cv_cc_flag_unused_command_line_argument=yes
9941 else
9942 xorg_cv_cc_flag_unused_command_line_argument=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9947 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950 fi
9951
9952 found="no"
9953
9954 if test $found = "no" ; then
9955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957 fi
9958
9959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9961 fi
9962
9963 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9966 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9967 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9968 if eval \${$cacheid+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 int i;
9974 int
9975 main ()
9976 {
9977
9978 ;
9979 return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983 eval $cacheid=yes
9984 else
9985 eval $cacheid=no
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 fi
9990
9991
9992 CFLAGS="$xorg_testset_save_CFLAGS"
9993
9994 eval supported=\$$cacheid
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9996 $as_echo "$supported" >&6; }
9997 if test "$supported" = "yes" ; then
9998 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9999 found="yes"
10000 fi
10001 fi
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017 xorg_testset_save_CFLAGS="$CFLAGS"
10018
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10022 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10023 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int i;
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"; then :
10031 xorg_cv_cc_flag_unknown_warning_option=yes
10032 else
10033 xorg_cv_cc_flag_unknown_warning_option=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041 fi
10042
10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 fi
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 xorg_cv_cc_flag_unused_command_line_argument=yes
10059 else
10060 xorg_cv_cc_flag_unused_command_line_argument=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10065 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068 fi
10069
10070 found="no"
10071
10072 if test $found = "no" ; then
10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079 fi
10080
10081 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10082
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10084 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10085 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10086 if eval \${$cacheid+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 int
10093 main ()
10094 {
10095
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 eval $cacheid=yes
10102 else
10103 eval $cacheid=no
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 fi
10108
10109
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10111
10112 eval supported=\$$cacheid
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10114 $as_echo "$supported" >&6; }
10115 if test "$supported" = "yes" ; then
10116 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10117 found="yes"
10118 fi
10119 fi
10120
10121
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130 CWARNFLAGS="$BASE_CFLAGS"
10131 if test "x$GCC" = xyes ; then
10132 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10133 fi
10134
10135
10136
10137
10138
10139
10140
10141
10142 # Check whether --enable-strict-compilation was given.
10143 if test "${enable_strict_compilation+set}" = set; then :
10144 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10145 else
10146 STRICT_COMPILE=no
10147 fi
10148
10149
10150
10151
10152
10153
10154 STRICT_CFLAGS=""
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168 xorg_testset_save_CFLAGS="$CFLAGS"
10169
10170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10173 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10174 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 int i;
10180 _ACEOF
10181 if ac_fn_c_try_compile "$LINENO"; then :
10182 xorg_cv_cc_flag_unknown_warning_option=yes
10183 else
10184 xorg_cv_cc_flag_unknown_warning_option=no
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10189 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10191 CFLAGS="$xorg_testset_save_CFLAGS"
10192 fi
10193
10194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197 fi
10198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10200 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10201 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 int i;
10207 _ACEOF
10208 if ac_fn_c_try_compile "$LINENO"; then :
10209 xorg_cv_cc_flag_unused_command_line_argument=yes
10210 else
10211 xorg_cv_cc_flag_unused_command_line_argument=no
10212 fi
10213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10216 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10218 CFLAGS="$xorg_testset_save_CFLAGS"
10219 fi
10220
10221 found="no"
10222
10223 if test $found = "no" ; then
10224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226 fi
10227
10228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230 fi
10231
10232 CFLAGS="$CFLAGS -pedantic"
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10235 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10236 cacheid=xorg_cv_cc_flag__pedantic
10237 if eval \${$cacheid+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 int i;
10243 int
10244 main ()
10245 {
10246
10247 ;
10248 return 0;
10249 }
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 eval $cacheid=yes
10253 else
10254 eval $cacheid=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 fi
10259
10260
10261 CFLAGS="$xorg_testset_save_CFLAGS"
10262
10263 eval supported=\$$cacheid
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10265 $as_echo "$supported" >&6; }
10266 if test "$supported" = "yes" ; then
10267 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10268 found="yes"
10269 fi
10270 fi
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286 xorg_testset_save_CFLAGS="$CFLAGS"
10287
10288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10291 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10292 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 int i;
10298 _ACEOF
10299 if ac_fn_c_try_compile "$LINENO"; then :
10300 xorg_cv_cc_flag_unknown_warning_option=yes
10301 else
10302 xorg_cv_cc_flag_unknown_warning_option=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310 fi
10311
10312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 fi
10316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 int i;
10325 _ACEOF
10326 if ac_fn_c_try_compile "$LINENO"; then :
10327 xorg_cv_cc_flag_unused_command_line_argument=yes
10328 else
10329 xorg_cv_cc_flag_unused_command_line_argument=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337 fi
10338
10339 found="no"
10340
10341 if test $found = "no" ; then
10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344 fi
10345
10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348 fi
10349
10350 CFLAGS="$CFLAGS -Werror"
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10353 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10354 cacheid=xorg_cv_cc_flag__Werror
10355 if eval \${$cacheid+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360 int i;
10361 int
10362 main ()
10363 {
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 eval $cacheid=yes
10371 else
10372 eval $cacheid=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 fi
10377
10378
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380
10381 eval supported=\$$cacheid
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10383 $as_echo "$supported" >&6; }
10384 if test "$supported" = "yes" ; then
10385 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10386 found="yes"
10387 fi
10388 fi
10389
10390 if test $found = "no" ; then
10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393 fi
10394
10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397 fi
10398
10399 CFLAGS="$CFLAGS -errwarn"
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10402 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10403 cacheid=xorg_cv_cc_flag__errwarn
10404 if eval \${$cacheid+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409 int i;
10410 int
10411 main ()
10412 {
10413
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 if ac_fn_c_try_link "$LINENO"; then :
10419 eval $cacheid=yes
10420 else
10421 eval $cacheid=no
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 fi
10426
10427
10428 CFLAGS="$xorg_testset_save_CFLAGS"
10429
10430 eval supported=\$$cacheid
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10432 $as_echo "$supported" >&6; }
10433 if test "$supported" = "yes" ; then
10434 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10435 found="yes"
10436 fi
10437 fi
10438
10439
10440
10441 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10442 # activate it with -Werror, so we add it here explicitly.
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456 xorg_testset_save_CFLAGS="$CFLAGS"
10457
10458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10461 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 int i;
10468 _ACEOF
10469 if ac_fn_c_try_compile "$LINENO"; then :
10470 xorg_cv_cc_flag_unknown_warning_option=yes
10471 else
10472 xorg_cv_cc_flag_unknown_warning_option=no
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10477 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10479 CFLAGS="$xorg_testset_save_CFLAGS"
10480 fi
10481
10482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10485 fi
10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10488 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 int i;
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497 xorg_cv_cc_flag_unused_command_line_argument=yes
10498 else
10499 xorg_cv_cc_flag_unused_command_line_argument=no
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10504 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10506 CFLAGS="$xorg_testset_save_CFLAGS"
10507 fi
10508
10509 found="no"
10510
10511 if test $found = "no" ; then
10512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10514 fi
10515
10516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10518 fi
10519
10520 CFLAGS="$CFLAGS -Werror=attributes"
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10523 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10524 cacheid=xorg_cv_cc_flag__Werror_attributes
10525 if eval \${$cacheid+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int i;
10531 int
10532 main ()
10533 {
10534
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540 eval $cacheid=yes
10541 else
10542 eval $cacheid=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 fi
10547
10548
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551 eval supported=\$$cacheid
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553 $as_echo "$supported" >&6; }
10554 if test "$supported" = "yes" ; then
10555 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10556 found="yes"
10557 fi
10558 fi
10559
10560
10561
10562 if test "x$STRICT_COMPILE" = "xyes"; then
10563 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10564 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10565 fi
10566
10567
10568
10569
10570
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10574 _ACEOF
10575
10576 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10577 if test "x$PVM" = "x"; then
10578 PVM="0"
10579 fi
10580
10581 cat >>confdefs.h <<_ACEOF
10582 #define PACKAGE_VERSION_MINOR $PVM
10583 _ACEOF
10584
10585 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10586 if test "x$PVP" = "x"; then
10587 PVP="0"
10588 fi
10589
10590 cat >>confdefs.h <<_ACEOF
10591 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10592 _ACEOF
10593
10594
10595
10596 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10597 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10598 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10599 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10600
10601
10602
10603
10604 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10605 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10606 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10607 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10608 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10609
10610
10611
10612
10613
10614
10615 if test x$APP_MAN_SUFFIX = x ; then
10616 APP_MAN_SUFFIX=1
10617 fi
10618 if test x$APP_MAN_DIR = x ; then
10619 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10620 fi
10621
10622 if test x$LIB_MAN_SUFFIX = x ; then
10623 LIB_MAN_SUFFIX=3
10624 fi
10625 if test x$LIB_MAN_DIR = x ; then
10626 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10627 fi
10628
10629 if test x$FILE_MAN_SUFFIX = x ; then
10630 case $host_os in
10631 # Solaris 2.0 - 11 use SysV man page sections
10632 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10633 *) FILE_MAN_SUFFIX=5 ;;
10634 esac
10635 fi
10636 if test x$FILE_MAN_DIR = x ; then
10637 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10638 fi
10639
10640 if test x$MISC_MAN_SUFFIX = x ; then
10641 case $host_os in
10642 # Solaris 2.0 - 11 use SysV man page sections
10643 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10644 *) MISC_MAN_SUFFIX=7 ;;
10645 esac
10646 fi
10647 if test x$MISC_MAN_DIR = x ; then
10648 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10649 fi
10650
10651 if test x$DRIVER_MAN_SUFFIX = x ; then
10652 case $host_os in
10653 # Solaris 2.0 - 11 use SysV man page sections
10654 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10655 *) DRIVER_MAN_SUFFIX=4 ;;
10656 esac
10657 fi
10658 if test x$DRIVER_MAN_DIR = x ; then
10659 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10660 fi
10661
10662 if test x$ADMIN_MAN_SUFFIX = x ; then
10663 case $host_os in
10664 # Solaris 2.0 - 11 use SysV man page sections
10665 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10666 *) ADMIN_MAN_SUFFIX=8 ;;
10667 esac
10668 fi
10669 if test x$ADMIN_MAN_DIR = x ; then
10670 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10671 fi
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687 XORG_MAN_PAGE="X Version 11"
10688
10689 MAN_SUBSTS="\
10690 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10691 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10692 -e 's|__xservername__|Xorg|g' \
10693 -e 's|__xconfigfile__|xorg.conf|g' \
10694 -e 's|__projectroot__|\$(prefix)|g' \
10695 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10696 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10697 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10698 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10699 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10700 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10701 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10702
10703
10704
10705 # Check whether --enable-silent-rules was given.
10706 if test "${enable_silent_rules+set}" = set; then :
10707 enableval=$enable_silent_rules;
10708 fi
10709
10710 case $enable_silent_rules in # (((
10711 yes) AM_DEFAULT_VERBOSITY=0;;
10712 no) AM_DEFAULT_VERBOSITY=1;;
10713 *) AM_DEFAULT_VERBOSITY=0;;
10714 esac
10715 am_make=${MAKE-make}
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10717 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10718 if ${am_cv_make_support_nested_variables+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 if $as_echo 'TRUE=$(BAR$(V))
10722 BAR0=false
10723 BAR1=true
10724 V=1
10725 am__doit:
10726 @$(TRUE)
10727 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10728 am_cv_make_support_nested_variables=yes
10729 else
10730 am_cv_make_support_nested_variables=no
10731 fi
10732 fi
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10734 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10735 if test $am_cv_make_support_nested_variables = yes; then
10736 AM_V='$(V)'
10737 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10738 else
10739 AM_V=$AM_DEFAULT_VERBOSITY
10740 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10741 fi
10742 AM_BACKSLASH='\'
10743
10744
10745
10746
10747
10748 for ac_prog in cpp
10749 do
10750 # Extract the first word of "$ac_prog", so it can be a program name with args.
10751 set dummy $ac_prog; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_path_RAWCPP+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 case $RAWCPP in
10758 [\\/]* | ?:[\\/]*)
10759 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10760 ;;
10761 *)
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10764 for as_dir in $as_dummy
10765 do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10773 fi
10774 done
10775 done
10776 IFS=$as_save_IFS
10777
10778 ;;
10779 esac
10780 fi
10781 RAWCPP=$ac_cv_path_RAWCPP
10782 if test -n "$RAWCPP"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10784 $as_echo "$RAWCPP" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789
10790
10791 test -n "$RAWCPP" && break
10792 done
10793 test -n "$RAWCPP" || RAWCPP="${CPP}"
10794
10795
10796 # Check for flag to avoid builtin definitions - assumes unix is predefined,
10797 # which is not the best choice for supporting other OS'es, but covers most
10798 # of the ones we need for now.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10800 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 Does cpp redefine unix ?
10804 _ACEOF
10805 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10808 else
10809 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10810 RAWCPPFLAGS=-undef
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 $as_echo "yes" >&6; }
10813 # under Cygwin unix is still defined even with -undef
10814 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10815 RAWCPPFLAGS="-undef -ansi"
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10817 $as_echo "yes, with -ansi" >&6; }
10818 else
10819 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
10820 fi
10821 fi
10822 rm -f conftest.$ac_ext
10823
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10825 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 Does cpp preserve "whitespace"?
10829 _ACEOF
10830 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 else
10834 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
10835 TRADITIONALCPPFLAGS="-traditional"
10836 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10838 $as_echo "yes" >&6; }
10839 else
10840 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
10841 fi
10842 fi
10843 rm -f conftest.$ac_ext
10844
10845
10846
10847
10848
10849 # Build options
10850 DEFAULT_XRDB=xrdb
10851 DEFAULT_XMODMAP=xmodmap
10852 DEFAULT_TWM=twm
10853 DEFAULT_XCLOCK=xclock
10854 DEFAULT_XTERM=xterm
10855 # You always want to specify the full path to the X server
10856 DEFAULT_XSERVER=${bindir}/X
10857 DEFAULT_XAUTH=xauth
10858 DEFAULT_XINIT=xinit
10859 DEFAULT_XINITDIR=${sysconfdir}/X11/xinit
10860
10861
10862 # Check whether --with-xrdb was given.
10863 if test "${with_xrdb+set}" = set; then :
10864 withval=$with_xrdb; XRDB="$withval"
10865 else
10866 XRDB="$DEFAULT_XRDB"
10867 fi
10868
10869
10870
10871 # Check whether --with-xmodmap was given.
10872 if test "${with_xmodmap+set}" = set; then :
10873 withval=$with_xmodmap; XMODMAP="$withval"
10874 else
10875 XMODMAP="$DEFAULT_XMODMAP"
10876 fi
10877
10878
10879
10880 # Check whether --with-twm was given.
10881 if test "${with_twm+set}" = set; then :
10882 withval=$with_twm; TWM="$withval"
10883 else
10884 TWM="$DEFAULT_TWM"
10885 fi
10886
10887
10888
10889 # Check whether --with-xclock was given.
10890 if test "${with_xclock+set}" = set; then :
10891 withval=$with_xclock; XCLOCK="$withval"
10892 else
10893 XCLOCK="$DEFAULT_XCLOCK"
10894 fi
10895
10896
10897
10898 # Check whether --with-xterm was given.
10899 if test "${with_xterm+set}" = set; then :
10900 withval=$with_xterm; XTERM="$withval"
10901 else
10902 XTERM="$DEFAULT_XTERM"
10903 fi
10904
10905
10906
10907 # Check whether --with-xserver was given.
10908 if test "${with_xserver+set}" = set; then :
10909 withval=$with_xserver; XSERVER="$withval"
10910 else
10911 XSERVER="$DEFAULT_XSERVER"
10912 fi
10913
10914
10915
10916 # Check whether --with-xauth was given.
10917 if test "${with_xauth+set}" = set; then :
10918 withval=$with_xauth; XAUTH="$withval"
10919 else
10920 XAUTH="$DEFAULT_XAUTH"
10921 fi
10922
10923
10924
10925 # Check whether --with-xinit was given.
10926 if test "${with_xinit+set}" = set; then :
10927 withval=$with_xinit; XINIT="$withval"
10928 else
10929 XINIT="$DEFAULT_XINIT"
10930 fi
10931
10932
10933
10934 # Check whether --with-xinitdir was given.
10935 if test "${with_xinitdir+set}" = set; then :
10936 withval=$with_xinitdir; XINITDIR="$withval"
10937 else
10938 XINITDIR="$DEFAULT_XINITDIR"
10939 fi
10940
10941
10942
10943 # Check whether --with-launchd was given.
10944 if test "${with_launchd+set}" = set; then :
10945 withval=$with_launchd; LAUNCHD=$withval
10946 else
10947 LAUNCHD=auto
10948 fi
10949
10950
10951 # Check whether --with-launchagents-dir was given.
10952 if test "${with_launchagents_dir+set}" = set; then :
10953 withval=$with_launchagents_dir; launchagentsdir="${withval}"
10954 else
10955 launchagentsdir="/Library/LaunchAgents"
10956 fi
10957
10958
10959 # Check whether --with-launchagent-xserver was given.
10960 if test "${with_launchagent_xserver+set}" = set; then :
10961 withval=$with_launchagent_xserver; launchagentxserver="${withval}"
10962 else
10963 launchagentxserver="no"
10964 fi
10965
10966
10967 # Check whether --with-launchdaemons-dir was given.
10968 if test "${with_launchdaemons_dir+set}" = set; then :
10969 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
10970 else
10971 launchdaemonsdir="/Library/LaunchDaemons"
10972 fi
10973
10974
10975 # Check whether --with-launchd-id-prefix was given.
10976 if test "${with_launchd_id_prefix+set}" = set; then :
10977 withval=$with_launchd_id_prefix; bundleidprefix="${withval}"
10978 else
10979 bundleidprefix="org.x"
10980 fi
10981
10982
10983 # Check whether --with-bundle-id-prefix was given.
10984 if test "${with_bundle_id_prefix+set}" = set; then :
10985 withval=$with_bundle_id_prefix; bundleidprefix="${withval}"
10986 fi
10987
10988
10989 if test "x$LAUNCHD" = "xauto"; then
10990 unset LAUNCHD
10991 # Extract the first word of "launchd", so it can be a program name with args.
10992 set dummy launchd; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_prog_LAUNCHD+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 if test -n "$LAUNCHD"; then
10999 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH$PATH_SEPARATOR/sbin
11003 do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_prog_LAUNCHD="yes"
11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012 done
11013 done
11014 IFS=$as_save_IFS
11015
11016 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
11017 fi
11018 fi
11019 LAUNCHD=$ac_cv_prog_LAUNCHD
11020 if test -n "$LAUNCHD"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
11022 $as_echo "$LAUNCHD" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027
11028
11029 fi
11030
11031 TIGER_LAUNCHD=no
11032 if test "x$LAUNCHD" = "xyes" ; then
11033
11034 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
11035
11036 case $host_os in
11037 darwin8*)
11038 TIGER_LAUNCHD=yes
11039 ;;
11040 esac
11041 ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async"
11042 if test "x$ac_cv_func_dispatch_async" = xyes; then :
11043
11044 $as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h
11045
11046 fi
11047
11048 fi
11049
11050
11051 cat >>confdefs.h <<_ACEOF
11052 #define BUNDLE_ID_PREFIX "$bundleidprefix"
11053 _ACEOF
11054
11055
11056
11057
11058
11059 if test "x$LAUNCHD" = "xyes"; then
11060 LAUNCHD_TRUE=
11061 LAUNCHD_FALSE='#'
11062 else
11063 LAUNCHD_TRUE='#'
11064 LAUNCHD_FALSE=
11065 fi
11066
11067 if test "x$TIGER_LAUNCHD" = "xyes"; then
11068 TIGER_LAUNCHD_TRUE=
11069 TIGER_LAUNCHD_FALSE='#'
11070 else
11071 TIGER_LAUNCHD_TRUE='#'
11072 TIGER_LAUNCHD_FALSE=
11073 fi
11074
11075 if test "x$launchagentxserver" != "xno"; then
11076 LAUNCHAGENT_XSERVER_TRUE=
11077 LAUNCHAGENT_XSERVER_FALSE='#'
11078 else
11079 LAUNCHAGENT_XSERVER_TRUE='#'
11080 LAUNCHAGENT_XSERVER_FALSE=
11081 fi
11082
11083
11084 # Checks for pkg-config packages
11085
11086 pkg_failed=no
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
11088 $as_echo_n "checking for XINIT... " >&6; }
11089
11090 if test -n "$XINIT_CFLAGS"; then
11091 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11092 elif test -n "$PKG_CONFIG"; then
11093 if test -n "$PKG_CONFIG" && \
11094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11095 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11096 ac_status=$?
11097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098 test $ac_status = 0; }; then
11099 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11100 test "x$?" != "x0" && pkg_failed=yes
11101 else
11102 pkg_failed=yes
11103 fi
11104 else
11105 pkg_failed=untried
11106 fi
11107 if test -n "$XINIT_LIBS"; then
11108 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11109 elif test -n "$PKG_CONFIG"; then
11110 if test -n "$PKG_CONFIG" && \
11111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11112 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11113 ac_status=$?
11114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115 test $ac_status = 0; }; then
11116 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11117 test "x$?" != "x0" && pkg_failed=yes
11118 else
11119 pkg_failed=yes
11120 fi
11121 else
11122 pkg_failed=untried
11123 fi
11124
11125
11126
11127 if test $pkg_failed = yes; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130
11131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11132 _pkg_short_errors_supported=yes
11133 else
11134 _pkg_short_errors_supported=no
11135 fi
11136 if test $_pkg_short_errors_supported = yes; then
11137 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11138 else
11139 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11140 fi
11141 # Put the nasty error message in config.log where it belongs
11142 echo "$XINIT_PKG_ERRORS" >&5
11143
11144 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11145
11146 $XINIT_PKG_ERRORS
11147
11148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11149 installed software in a non-standard prefix.
11150
11151 Alternatively, you may set the environment variables XINIT_CFLAGS
11152 and XINIT_LIBS to avoid the need to call pkg-config.
11153 See the pkg-config man page for more details." "$LINENO" 5
11154 elif test $pkg_failed = untried; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11159 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11160 is in your PATH or set the PKG_CONFIG environment variable to the full
11161 path to pkg-config.
11162
11163 Alternatively, you may set the environment variables XINIT_CFLAGS
11164 and XINIT_LIBS to avoid the need to call pkg-config.
11165 See the pkg-config man page for more details.
11166
11167 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11168 See \`config.log' for more details" "$LINENO" 5; }
11169 else
11170 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
11171 XINIT_LIBS=$pkg_cv_XINIT_LIBS
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173 $as_echo "yes" >&6; }
11174
11175 fi
11176
11177 case $host_os in
11178 *bsd*)
11179 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
11180 ;;
11181 esac
11182
11183
11184 for ac_prog in mcookie
11185 do
11186 # Extract the first word of "$ac_prog", so it can be a program name with args.
11187 set dummy $ac_prog; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if ${ac_cv_path_MCOOKIE+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 case $MCOOKIE in
11194 [\\/]* | ?:[\\/]*)
11195 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
11196 ;;
11197 *)
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
11200 for as_dir in $as_dummy
11201 do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11206 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210 done
11211 done
11212 IFS=$as_save_IFS
11213
11214 ;;
11215 esac
11216 fi
11217 MCOOKIE=$ac_cv_path_MCOOKIE
11218 if test -n "$MCOOKIE"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
11220 $as_echo "$MCOOKIE" >&6; }
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11224 fi
11225
11226
11227 test -n "$MCOOKIE" && break
11228 done
11229 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
11230
11231
11232 # If mcookie not found, try openssl, else per-system fallbacks
11233 if test "x$MCOOKIE" = x ; then
11234 for ac_prog in openssl
11235 do
11236 # Extract the first word of "$ac_prog", so it can be a program name with args.
11237 set dummy $ac_prog; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_path_OPENSSL+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 case $OPENSSL in
11244 [\\/]* | ?:[\\/]*)
11245 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
11246 ;;
11247 *)
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
11250 for as_dir in $as_dummy
11251 do
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11256 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 break 2
11259 fi
11260 done
11261 done
11262 IFS=$as_save_IFS
11263
11264 ;;
11265 esac
11266 fi
11267 OPENSSL=$ac_cv_path_OPENSSL
11268 if test -n "$OPENSSL"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
11270 $as_echo "$OPENSSL" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275
11276
11277 test -n "$OPENSSL" && break
11278 done
11279 test -n "$OPENSSL" || OPENSSL="$OPENSSL"
11280
11281 if test "x$OPENSSL" != x ; then
11282 MCOOKIE="$OPENSSL rand -hex 16"
11283 else
11284 case $host_os in
11285 *solaris*)
11286 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
11287 ;;
11288 esac
11289 fi
11290 fi
11291 if test "x$MCOOKIE" != x ; then
11292 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
11294 $as_echo "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
11295 fi
11296
11297
11298 # Additional substitutions in startx, xinitrc & man pages
11299 SHELL_CMD="/bin/sh"
11300 XSERVERNAME="Xorg"
11301 XCONFIGFILE="xorg.conf"
11302 XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
11303 case $host_os in
11304 cygwin*)
11305 XSERVERNAME="XWin"
11306 XCONFIGFILE="XWinrc"
11307 ;;
11308 darwin*)
11309 XSERVERNAME="Xquartz"
11310 XCONFIGFILE="defaults"
11311 XCONFIGFILEMAN='defaults (1)'
11312 ;;
11313 *solaris*)
11314 SHELL_CMD="/bin/ksh"
11315 ;;
11316 esac
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332 ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
11333
11334 cat >confcache <<\_ACEOF
11335 # This file is a shell script that caches the results of configure
11336 # tests run on this system so they can be shared between configure
11337 # scripts and configure runs, see configure's option --config-cache.
11338 # It is not useful on other systems. If it contains results you don't
11339 # want to keep, you may remove or edit it.
11340 #
11341 # config.status only pays attention to the cache file if you give it
11342 # the --recheck option to rerun configure.
11343 #
11344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11346 # following values.
11347
11348 _ACEOF
11349
11350 # The following way of writing the cache mishandles newlines in values,
11351 # but we know of no workaround that is simple, portable, and efficient.
11352 # So, we kill variables containing newlines.
11353 # Ultrix sh set writes to stderr and can't be redirected directly,
11354 # and sets the high bit in the cache file unless we assign to the vars.
11355 (
11356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11357 eval ac_val=\$$ac_var
11358 case $ac_val in #(
11359 *${as_nl}*)
11360 case $ac_var in #(
11361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11362 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11363 esac
11364 case $ac_var in #(
11365 _ | IFS | as_nl) ;; #(
11366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11367 *) { eval $ac_var=; unset $ac_var;} ;;
11368 esac ;;
11369 esac
11370 done
11371
11372 (set) 2>&1 |
11373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11374 *${as_nl}ac_space=\ *)
11375 # `set' does not quote correctly, so add quotes: double-quote
11376 # substitution turns \\\\ into \\, and sed turns \\ into \.
11377 sed -n \
11378 "s/'/'\\\\''/g;
11379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11380 ;; #(
11381 *)
11382 # `set' quotes correctly as required by POSIX, so do not add quotes.
11383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11384 ;;
11385 esac |
11386 sort
11387 ) |
11388 sed '
11389 /^ac_cv_env_/b end
11390 t clear
11391 :clear
11392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11393 t end
11394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11395 :end' >>confcache
11396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11397 if test -w "$cache_file"; then
11398 if test "x$cache_file" != "x/dev/null"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11400 $as_echo "$as_me: updating cache $cache_file" >&6;}
11401 if test ! -f "$cache_file" || test -h "$cache_file"; then
11402 cat confcache >"$cache_file"
11403 else
11404 case $cache_file in #(
11405 */* | ?:*)
11406 mv -f confcache "$cache_file"$$ &&
11407 mv -f "$cache_file"$$ "$cache_file" ;; #(
11408 *)
11409 mv -f confcache "$cache_file" ;;
11410 esac
11411 fi
11412 fi
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11416 fi
11417 fi
11418 rm -f confcache
11419
11420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11421 # Let make expand exec_prefix.
11422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11423
11424 DEFS=-DHAVE_CONFIG_H
11425
11426 ac_libobjs=
11427 ac_ltlibobjs=
11428 U=
11429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11430 # 1. Remove the extension, and $U if already installed.
11431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11434 # will be set to the directory where LIBOBJS objects are built.
11435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11437 done
11438 LIBOBJS=$ac_libobjs
11439
11440 LTLIBOBJS=$ac_ltlibobjs
11441
11442
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11444 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11445 if test -n "$am_sleep_pid"; then
11446 # Hide warnings about reused PIDs.
11447 wait $am_sleep_pid 2>/dev/null
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11450 $as_echo "done" >&6; }
11451 if test -n "$EXEEXT"; then
11452 am__EXEEXT_TRUE=
11453 am__EXEEXT_FALSE='#'
11454 else
11455 am__EXEEXT_TRUE='#'
11456 am__EXEEXT_FALSE=
11457 fi
11458
11459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11460 as_fn_error $? "conditional \"AMDEP\" was never defined.
11461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11462 fi
11463 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11464 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11466 fi
11467 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
11468 as_fn_error $? "conditional \"LAUNCHD\" was never defined.
11469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11470 fi
11471 if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
11472 as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined.
11473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11474 fi
11475 if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
11476 as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
11477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11478 fi
11479
11480 : "${CONFIG_STATUS=./config.status}"
11481 ac_write_fail=0
11482 ac_clean_files_save=$ac_clean_files
11483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11486 as_write_fail=0
11487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11488 #! $SHELL
11489 # Generated by $as_me.
11490 # Run this file to recreate the current configuration.
11491 # Compiler output produced by configure, useful for debugging
11492 # configure, is in config.log if it exists.
11493
11494 debug=false
11495 ac_cs_recheck=false
11496 ac_cs_silent=false
11497
11498 SHELL=\${CONFIG_SHELL-$SHELL}
11499 export SHELL
11500 _ASEOF
11501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11502 ## -------------------- ##
11503 ## M4sh Initialization. ##
11504 ## -------------------- ##
11505
11506 # Be more Bourne compatible
11507 DUALCASE=1; export DUALCASE # for MKS sh
11508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11509 emulate sh
11510 NULLCMD=:
11511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11512 # is contrary to our usage. Disable this feature.
11513 alias -g '${1+"$@"}'='"$@"'
11514 setopt NO_GLOB_SUBST
11515 else
11516 case `(set -o) 2>/dev/null` in #(
11517 *posix*) :
11518 set -o posix ;; #(
11519 *) :
11520 ;;
11521 esac
11522 fi
11523
11524
11525 as_nl='
11526 '
11527 export as_nl
11528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11532 # Prefer a ksh shell builtin over an external printf program on Solaris,
11533 # but without wasting forks for bash or zsh.
11534 if test -z "$BASH_VERSION$ZSH_VERSION" \
11535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11536 as_echo='print -r --'
11537 as_echo_n='print -rn --'
11538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11539 as_echo='printf %s\n'
11540 as_echo_n='printf %s'
11541 else
11542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11544 as_echo_n='/usr/ucb/echo -n'
11545 else
11546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11547 as_echo_n_body='eval
11548 arg=$1;
11549 case $arg in #(
11550 *"$as_nl"*)
11551 expr "X$arg" : "X\\(.*\\)$as_nl";
11552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11553 esac;
11554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11555 '
11556 export as_echo_n_body
11557 as_echo_n='sh -c $as_echo_n_body as_echo'
11558 fi
11559 export as_echo_body
11560 as_echo='sh -c $as_echo_body as_echo'
11561 fi
11562
11563 # The user is always right.
11564 if test "${PATH_SEPARATOR+set}" != set; then
11565 PATH_SEPARATOR=:
11566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11568 PATH_SEPARATOR=';'
11569 }
11570 fi
11571
11572
11573 # IFS
11574 # We need space, tab and new line, in precisely that order. Quoting is
11575 # there to prevent editors from complaining about space-tab.
11576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11577 # splitting by setting IFS to empty value.)
11578 IFS=" "" $as_nl"
11579
11580 # Find who we are. Look in the path if we contain no directory separator.
11581 as_myself=
11582 case $0 in #((
11583 *[\\/]* ) as_myself=$0 ;;
11584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11590 done
11591 IFS=$as_save_IFS
11592
11593 ;;
11594 esac
11595 # We did not find ourselves, most probably we were run as `sh COMMAND'
11596 # in which case we are not to be found in the path.
11597 if test "x$as_myself" = x; then
11598 as_myself=$0
11599 fi
11600 if test ! -f "$as_myself"; then
11601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11602 exit 1
11603 fi
11604
11605 # Unset variables that we do not need and which cause bugs (e.g. in
11606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11607 # suppresses any "Segmentation fault" message there. '((' could
11608 # trigger a bug in pdksh 5.2.14.
11609 for as_var in BASH_ENV ENV MAIL MAILPATH
11610 do eval test x\${$as_var+set} = xset \
11611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11612 done
11613 PS1='$ '
11614 PS2='> '
11615 PS4='+ '
11616
11617 # NLS nuisances.
11618 LC_ALL=C
11619 export LC_ALL
11620 LANGUAGE=C
11621 export LANGUAGE
11622
11623 # CDPATH.
11624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11625
11626
11627 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11628 # ----------------------------------------
11629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11631 # script with STATUS, using 1 if that was 0.
11632 as_fn_error ()
11633 {
11634 as_status=$1; test $as_status -eq 0 && as_status=1
11635 if test "$4"; then
11636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11638 fi
11639 $as_echo "$as_me: error: $2" >&2
11640 as_fn_exit $as_status
11641 } # as_fn_error
11642
11643
11644 # as_fn_set_status STATUS
11645 # -----------------------
11646 # Set $? to STATUS, without forking.
11647 as_fn_set_status ()
11648 {
11649 return $1
11650 } # as_fn_set_status
11651
11652 # as_fn_exit STATUS
11653 # -----------------
11654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11655 as_fn_exit ()
11656 {
11657 set +e
11658 as_fn_set_status $1
11659 exit $1
11660 } # as_fn_exit
11661
11662 # as_fn_unset VAR
11663 # ---------------
11664 # Portably unset VAR.
11665 as_fn_unset ()
11666 {
11667 { eval $1=; unset $1;}
11668 }
11669 as_unset=as_fn_unset
11670 # as_fn_append VAR VALUE
11671 # ----------------------
11672 # Append the text in VALUE to the end of the definition contained in VAR. Take
11673 # advantage of any shell optimizations that allow amortized linear growth over
11674 # repeated appends, instead of the typical quadratic growth present in naive
11675 # implementations.
11676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11677 eval 'as_fn_append ()
11678 {
11679 eval $1+=\$2
11680 }'
11681 else
11682 as_fn_append ()
11683 {
11684 eval $1=\$$1\$2
11685 }
11686 fi # as_fn_append
11687
11688 # as_fn_arith ARG...
11689 # ------------------
11690 # Perform arithmetic evaluation on the ARGs, and store the result in the
11691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11692 # must be portable across $(()) and expr.
11693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11694 eval 'as_fn_arith ()
11695 {
11696 as_val=$(( $* ))
11697 }'
11698 else
11699 as_fn_arith ()
11700 {
11701 as_val=`expr "$@" || test $? -eq 1`
11702 }
11703 fi # as_fn_arith
11704
11705
11706 if expr a : '\(a\)' >/dev/null 2>&1 &&
11707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11708 as_expr=expr
11709 else
11710 as_expr=false
11711 fi
11712
11713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11714 as_basename=basename
11715 else
11716 as_basename=false
11717 fi
11718
11719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11720 as_dirname=dirname
11721 else
11722 as_dirname=false
11723 fi
11724
11725 as_me=`$as_basename -- "$0" ||
11726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11727 X"$0" : 'X\(//\)$' \| \
11728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11729 $as_echo X/"$0" |
11730 sed '/^.*\/\([^/][^/]*\)\/*$/{
11731 s//\1/
11732 q
11733 }
11734 /^X\/\(\/\/\)$/{
11735 s//\1/
11736 q
11737 }
11738 /^X\/\(\/\).*/{
11739 s//\1/
11740 q
11741 }
11742 s/.*/./; q'`
11743
11744 # Avoid depending upon Character Ranges.
11745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11748 as_cr_digits='0123456789'
11749 as_cr_alnum=$as_cr_Letters$as_cr_digits
11750
11751 ECHO_C= ECHO_N= ECHO_T=
11752 case `echo -n x` in #(((((
11753 -n*)
11754 case `echo 'xy\c'` in
11755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11756 xy) ECHO_C='\c';;
11757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11758 ECHO_T=' ';;
11759 esac;;
11760 *)
11761 ECHO_N='-n';;
11762 esac
11763
11764 rm -f conf$$ conf$$.exe conf$$.file
11765 if test -d conf$$.dir; then
11766 rm -f conf$$.dir/conf$$.file
11767 else
11768 rm -f conf$$.dir
11769 mkdir conf$$.dir 2>/dev/null
11770 fi
11771 if (echo >conf$$.file) 2>/dev/null; then
11772 if ln -s conf$$.file conf$$ 2>/dev/null; then
11773 as_ln_s='ln -s'
11774 # ... but there are two gotchas:
11775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11777 # In both cases, we have to default to `cp -pR'.
11778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11779 as_ln_s='cp -pR'
11780 elif ln conf$$.file conf$$ 2>/dev/null; then
11781 as_ln_s=ln
11782 else
11783 as_ln_s='cp -pR'
11784 fi
11785 else
11786 as_ln_s='cp -pR'
11787 fi
11788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11789 rmdir conf$$.dir 2>/dev/null
11790
11791
11792 # as_fn_mkdir_p
11793 # -------------
11794 # Create "$as_dir" as a directory, including parents if necessary.
11795 as_fn_mkdir_p ()
11796 {
11797
11798 case $as_dir in #(
11799 -*) as_dir=./$as_dir;;
11800 esac
11801 test -d "$as_dir" || eval $as_mkdir_p || {
11802 as_dirs=
11803 while :; do
11804 case $as_dir in #(
11805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11806 *) as_qdir=$as_dir;;
11807 esac
11808 as_dirs="'$as_qdir' $as_dirs"
11809 as_dir=`$as_dirname -- "$as_dir" ||
11810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811 X"$as_dir" : 'X\(//\)[^/]' \| \
11812 X"$as_dir" : 'X\(//\)$' \| \
11813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11814 $as_echo X"$as_dir" |
11815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816 s//\1/
11817 q
11818 }
11819 /^X\(\/\/\)[^/].*/{
11820 s//\1/
11821 q
11822 }
11823 /^X\(\/\/\)$/{
11824 s//\1/
11825 q
11826 }
11827 /^X\(\/\).*/{
11828 s//\1/
11829 q
11830 }
11831 s/.*/./; q'`
11832 test -d "$as_dir" && break
11833 done
11834 test -z "$as_dirs" || eval "mkdir $as_dirs"
11835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11836
11837
11838 } # as_fn_mkdir_p
11839 if mkdir -p . 2>/dev/null; then
11840 as_mkdir_p='mkdir -p "$as_dir"'
11841 else
11842 test -d ./-p && rmdir ./-p
11843 as_mkdir_p=false
11844 fi
11845
11846
11847 # as_fn_executable_p FILE
11848 # -----------------------
11849 # Test if FILE is an executable regular file.
11850 as_fn_executable_p ()
11851 {
11852 test -f "$1" && test -x "$1"
11853 } # as_fn_executable_p
11854 as_test_x='test -x'
11855 as_executable_p=as_fn_executable_p
11856
11857 # Sed expression to map a string onto a valid CPP name.
11858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11859
11860 # Sed expression to map a string onto a valid variable name.
11861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11862
11863
11864 exec 6>&1
11865 ## ----------------------------------- ##
11866 ## Main body of $CONFIG_STATUS script. ##
11867 ## ----------------------------------- ##
11868 _ASEOF
11869 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11870
11871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11872 # Save the log message, to keep $0 and so on meaningful, and to
11873 # report actual input values of CONFIG_FILES etc. instead of their
11874 # values after options handling.
11875 ac_log="
11876 This file was extended by xinit $as_me 1.4.0, which was
11877 generated by GNU Autoconf 2.69. Invocation command line was
11878
11879 CONFIG_FILES = $CONFIG_FILES
11880 CONFIG_HEADERS = $CONFIG_HEADERS
11881 CONFIG_LINKS = $CONFIG_LINKS
11882 CONFIG_COMMANDS = $CONFIG_COMMANDS
11883 $ $0 $@
11884
11885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11886 "
11887
11888 _ACEOF
11889
11890 case $ac_config_files in *"
11891 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11892 esac
11893
11894 case $ac_config_headers in *"
11895 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11896 esac
11897
11898
11899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11900 # Files that config.status was made for.
11901 config_files="$ac_config_files"
11902 config_headers="$ac_config_headers"
11903 config_commands="$ac_config_commands"
11904
11905 _ACEOF
11906
11907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11908 ac_cs_usage="\
11909 \`$as_me' instantiates files and other configuration actions
11910 from templates according to the current configuration. Unless the files
11911 and actions are specified as TAGs, all are instantiated by default.
11912
11913 Usage: $0 [OPTION]... [TAG]...
11914
11915 -h, --help print this help, then exit
11916 -V, --version print version number and configuration settings, then exit
11917 --config print configuration, then exit
11918 -q, --quiet, --silent
11919 do not print progress messages
11920 -d, --debug don't remove temporary files
11921 --recheck update $as_me by reconfiguring in the same conditions
11922 --file=FILE[:TEMPLATE]
11923 instantiate the configuration file FILE
11924 --header=FILE[:TEMPLATE]
11925 instantiate the configuration header FILE
11926
11927 Configuration files:
11928 $config_files
11929
11930 Configuration headers:
11931 $config_headers
11932
11933 Configuration commands:
11934 $config_commands
11935
11936 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11937
11938 _ACEOF
11939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11940 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11941 ac_cs_version="\\
11942 xinit config.status 1.4.0
11943 configured by $0, generated by GNU Autoconf 2.69,
11944 with options \\"\$ac_cs_config\\"
11945
11946 Copyright (C) 2012 Free Software Foundation, Inc.
11947 This config.status script is free software; the Free Software Foundation
11948 gives unlimited permission to copy, distribute and modify it."
11949
11950 ac_pwd='$ac_pwd'
11951 srcdir='$srcdir'
11952 INSTALL='$INSTALL'
11953 MKDIR_P='$MKDIR_P'
11954 AWK='$AWK'
11955 test -n "\$AWK" || AWK=awk
11956 _ACEOF
11957
11958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11959 # The default lists apply if the user does not specify any file.
11960 ac_need_defaults=:
11961 while test $# != 0
11962 do
11963 case $1 in
11964 --*=?*)
11965 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11966 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11967 ac_shift=:
11968 ;;
11969 --*=)
11970 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11971 ac_optarg=
11972 ac_shift=:
11973 ;;
11974 *)
11975 ac_option=$1
11976 ac_optarg=$2
11977 ac_shift=shift
11978 ;;
11979 esac
11980
11981 case $ac_option in
11982 # Handling of the options.
11983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11984 ac_cs_recheck=: ;;
11985 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11986 $as_echo "$ac_cs_version"; exit ;;
11987 --config | --confi | --conf | --con | --co | --c )
11988 $as_echo "$ac_cs_config"; exit ;;
11989 --debug | --debu | --deb | --de | --d | -d )
11990 debug=: ;;
11991 --file | --fil | --fi | --f )
11992 $ac_shift
11993 case $ac_optarg in
11994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11995 '') as_fn_error $? "missing file argument" ;;
11996 esac
11997 as_fn_append CONFIG_FILES " '$ac_optarg'"
11998 ac_need_defaults=false;;
11999 --header | --heade | --head | --hea )
12000 $ac_shift
12001 case $ac_optarg in
12002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12003 esac
12004 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12005 ac_need_defaults=false;;
12006 --he | --h)
12007 # Conflict between --help and --header
12008 as_fn_error $? "ambiguous option: \`$1'
12009 Try \`$0 --help' for more information.";;
12010 --help | --hel | -h )
12011 $as_echo "$ac_cs_usage"; exit ;;
12012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12014 ac_cs_silent=: ;;
12015
12016 # This is an error.
12017 -*) as_fn_error $? "unrecognized option: \`$1'
12018 Try \`$0 --help' for more information." ;;
12019
12020 *) as_fn_append ac_config_targets " $1"
12021 ac_need_defaults=false ;;
12022
12023 esac
12024 shift
12025 done
12026
12027 ac_configure_extra_args=
12028
12029 if $ac_cs_silent; then
12030 exec 6>/dev/null
12031 ac_configure_extra_args="$ac_configure_extra_args --silent"
12032 fi
12033
12034 _ACEOF
12035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12036 if \$ac_cs_recheck; then
12037 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12038 shift
12039 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12040 CONFIG_SHELL='$SHELL'
12041 export CONFIG_SHELL
12042 exec "\$@"
12043 fi
12044
12045 _ACEOF
12046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12047 exec 5>>config.log
12048 {
12049 echo
12050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12051 ## Running $as_me. ##
12052 _ASBOX
12053 $as_echo "$ac_log"
12054 } >&5
12055
12056 _ACEOF
12057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12058 #
12059 # INIT-COMMANDS
12060 #
12061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12062
12063 _ACEOF
12064
12065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12066
12067 # Handling of arguments.
12068 for ac_config_target in $ac_config_targets
12069 do
12070 case $ac_config_target in
12071 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12072 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12074 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12075 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12076 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12077 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12078
12079 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12080 esac
12081 done
12082
12083
12084 # If the user did not use the arguments to specify the items to instantiate,
12085 # then the envvar interface is used. Set only those that are not.
12086 # We use the long form for the default assignment because of an extremely
12087 # bizarre bug on SunOS 4.1.3.
12088 if $ac_need_defaults; then
12089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12092 fi
12093
12094 # Have a temporary directory for convenience. Make it in the build tree
12095 # simply because there is no reason against having it here, and in addition,
12096 # creating and moving files from /tmp can sometimes cause problems.
12097 # Hook for its removal unless debugging.
12098 # Note that there is a small window in which the directory will not be cleaned:
12099 # after its creation but before its name has been assigned to `$tmp'.
12100 $debug ||
12101 {
12102 tmp= ac_tmp=
12103 trap 'exit_status=$?
12104 : "${ac_tmp:=$tmp}"
12105 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12106 ' 0
12107 trap 'as_fn_exit 1' 1 2 13 15
12108 }
12109 # Create a (secure) tmp directory for tmp files.
12110
12111 {
12112 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12113 test -d "$tmp"
12114 } ||
12115 {
12116 tmp=./conf$$-$RANDOM
12117 (umask 077 && mkdir "$tmp")
12118 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12119 ac_tmp=$tmp
12120
12121 # Set up the scripts for CONFIG_FILES section.
12122 # No need to generate them if there are no CONFIG_FILES.
12123 # This happens for instance with `./config.status config.h'.
12124 if test -n "$CONFIG_FILES"; then
12125
12126
12127 ac_cr=`echo X | tr X '\015'`
12128 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12129 # But we know of no other shell where ac_cr would be empty at this
12130 # point, so we can use a bashism as a fallback.
12131 if test "x$ac_cr" = x; then
12132 eval ac_cr=\$\'\\r\'
12133 fi
12134 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12135 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12136 ac_cs_awk_cr='\\r'
12137 else
12138 ac_cs_awk_cr=$ac_cr
12139 fi
12140
12141 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12142 _ACEOF
12143
12144
12145 {
12146 echo "cat >conf$$subs.awk <<_ACEOF" &&
12147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12148 echo "_ACEOF"
12149 } >conf$$subs.sh ||
12150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12151 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12152 ac_delim='%!_!# '
12153 for ac_last_try in false false false false false :; do
12154 . ./conf$$subs.sh ||
12155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12156
12157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12158 if test $ac_delim_n = $ac_delim_num; then
12159 break
12160 elif $ac_last_try; then
12161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12162 else
12163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12164 fi
12165 done
12166 rm -f conf$$subs.sh
12167
12168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12169 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12170 _ACEOF
12171 sed -n '
12172 h
12173 s/^/S["/; s/!.*/"]=/
12174 p
12175 g
12176 s/^[^!]*!//
12177 :repl
12178 t repl
12179 s/'"$ac_delim"'$//
12180 t delim
12181 :nl
12182 h
12183 s/\(.\{148\}\)..*/\1/
12184 t more1
12185 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12186 p
12187 n
12188 b repl
12189 :more1
12190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12191 p
12192 g
12193 s/.\{148\}//
12194 t nl
12195 :delim
12196 h
12197 s/\(.\{148\}\)..*/\1/
12198 t more2
12199 s/["\\]/\\&/g; s/^/"/; s/$/"/
12200 p
12201 b
12202 :more2
12203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12204 p
12205 g
12206 s/.\{148\}//
12207 t delim
12208 ' <conf$$subs.awk | sed '
12209 /^[^""]/{
12210 N
12211 s/\n//
12212 }
12213 ' >>$CONFIG_STATUS || ac_write_fail=1
12214 rm -f conf$$subs.awk
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 _ACAWK
12217 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12218 for (key in S) S_is_set[key] = 1
12219 FS = ""
12220
12221 }
12222 {
12223 line = $ 0
12224 nfields = split(line, field, "@")
12225 substed = 0
12226 len = length(field[1])
12227 for (i = 2; i < nfields; i++) {
12228 key = field[i]
12229 keylen = length(key)
12230 if (S_is_set[key]) {
12231 value = S[key]
12232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12233 len += length(value) + length(field[++i])
12234 substed = 1
12235 } else
12236 len += 1 + keylen
12237 }
12238
12239 print line
12240 }
12241
12242 _ACAWK
12243 _ACEOF
12244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12245 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12246 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12247 else
12248 cat
12249 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12250 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12251 _ACEOF
12252
12253 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12254 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12255 # trailing colons and then remove the whole line if VPATH becomes empty
12256 # (actually we leave an empty line to preserve line numbers).
12257 if test "x$srcdir" = x.; then
12258 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12259 h
12260 s///
12261 s/^/:/
12262 s/[ ]*$/:/
12263 s/:\$(srcdir):/:/g
12264 s/:\${srcdir}:/:/g
12265 s/:@srcdir@:/:/g
12266 s/^:*//
12267 s/:*$//
12268 x
12269 s/\(=[ ]*\).*/\1/
12270 G
12271 s/\n//
12272 s/^[^=]*=[ ]*$//
12273 }'
12274 fi
12275
12276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12277 fi # test -n "$CONFIG_FILES"
12278
12279 # Set up the scripts for CONFIG_HEADERS section.
12280 # No need to generate them if there are no CONFIG_HEADERS.
12281 # This happens for instance with `./config.status Makefile'.
12282 if test -n "$CONFIG_HEADERS"; then
12283 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12284 BEGIN {
12285 _ACEOF
12286
12287 # Transform confdefs.h into an awk script `defines.awk', embedded as
12288 # here-document in config.status, that substitutes the proper values into
12289 # config.h.in to produce config.h.
12290
12291 # Create a delimiter string that does not exist in confdefs.h, to ease
12292 # handling of long lines.
12293 ac_delim='%!_!# '
12294 for ac_last_try in false false :; do
12295 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12296 if test -z "$ac_tt"; then
12297 break
12298 elif $ac_last_try; then
12299 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12300 else
12301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12302 fi
12303 done
12304
12305 # For the awk script, D is an array of macro values keyed by name,
12306 # likewise P contains macro parameters if any. Preserve backslash
12307 # newline sequences.
12308
12309 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12310 sed -n '
12311 s/.\{148\}/&'"$ac_delim"'/g
12312 t rset
12313 :rset
12314 s/^[ ]*#[ ]*define[ ][ ]*/ /
12315 t def
12316 d
12317 :def
12318 s/\\$//
12319 t bsnl
12320 s/["\\]/\\&/g
12321 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12322 D["\1"]=" \3"/p
12323 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12324 d
12325 :bsnl
12326 s/["\\]/\\&/g
12327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12328 D["\1"]=" \3\\\\\\n"\\/p
12329 t cont
12330 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12331 t cont
12332 d
12333 :cont
12334 n
12335 s/.\{148\}/&'"$ac_delim"'/g
12336 t clear
12337 :clear
12338 s/\\$//
12339 t bsnlc
12340 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12341 d
12342 :bsnlc
12343 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12344 b cont
12345 ' <confdefs.h | sed '
12346 s/'"$ac_delim"'/"\\\
12347 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12348
12349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12350 for (key in D) D_is_set[key] = 1
12351 FS = ""
12352 }
12353 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12354 line = \$ 0
12355 split(line, arg, " ")
12356 if (arg[1] == "#") {
12357 defundef = arg[2]
12358 mac1 = arg[3]
12359 } else {
12360 defundef = substr(arg[1], 2)
12361 mac1 = arg[2]
12362 }
12363 split(mac1, mac2, "(") #)
12364 macro = mac2[1]
12365 prefix = substr(line, 1, index(line, defundef) - 1)
12366 if (D_is_set[macro]) {
12367 # Preserve the white space surrounding the "#".
12368 print prefix "define", macro P[macro] D[macro]
12369 next
12370 } else {
12371 # Replace #undef with comments. This is necessary, for example,
12372 # in the case of _POSIX_SOURCE, which is predefined and required
12373 # on some systems where configure will not decide to define it.
12374 if (defundef == "undef") {
12375 print "/*", prefix defundef, macro, "*/"
12376 next
12377 }
12378 }
12379 }
12380 { print }
12381 _ACAWK
12382 _ACEOF
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12385 fi # test -n "$CONFIG_HEADERS"
12386
12387
12388 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12389 shift
12390 for ac_tag
12391 do
12392 case $ac_tag in
12393 :[FHLC]) ac_mode=$ac_tag; continue;;
12394 esac
12395 case $ac_mode$ac_tag in
12396 :[FHL]*:*);;
12397 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12398 :[FH]-) ac_tag=-:-;;
12399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12400 esac
12401 ac_save_IFS=$IFS
12402 IFS=:
12403 set x $ac_tag
12404 IFS=$ac_save_IFS
12405 shift
12406 ac_file=$1
12407 shift
12408
12409 case $ac_mode in
12410 :L) ac_source=$1;;
12411 :[FH])
12412 ac_file_inputs=
12413 for ac_f
12414 do
12415 case $ac_f in
12416 -) ac_f="$ac_tmp/stdin";;
12417 *) # Look for the file first in the build tree, then in the source tree
12418 # (if the path is not absolute). The absolute path cannot be DOS-style,
12419 # because $ac_f cannot contain `:'.
12420 test -f "$ac_f" ||
12421 case $ac_f in
12422 [\\/$]*) false;;
12423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12424 esac ||
12425 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12426 esac
12427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12428 as_fn_append ac_file_inputs " '$ac_f'"
12429 done
12430
12431 # Let's still pretend it is `configure' which instantiates (i.e., don't
12432 # use $as_me), people would be surprised to read:
12433 # /* config.h. Generated by config.status. */
12434 configure_input='Generated from '`
12435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12436 `' by configure.'
12437 if test x"$ac_file" != x-; then
12438 configure_input="$ac_file. $configure_input"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12440 $as_echo "$as_me: creating $ac_file" >&6;}
12441 fi
12442 # Neutralize special characters interpreted by sed in replacement strings.
12443 case $configure_input in #(
12444 *\&* | *\|* | *\\* )
12445 ac_sed_conf_input=`$as_echo "$configure_input" |
12446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12447 *) ac_sed_conf_input=$configure_input;;
12448 esac
12449
12450 case $ac_tag in
12451 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12453 esac
12454 ;;
12455 esac
12456
12457 ac_dir=`$as_dirname -- "$ac_file" ||
12458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12459 X"$ac_file" : 'X\(//\)[^/]' \| \
12460 X"$ac_file" : 'X\(//\)$' \| \
12461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12462 $as_echo X"$ac_file" |
12463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12464 s//\1/
12465 q
12466 }
12467 /^X\(\/\/\)[^/].*/{
12468 s//\1/
12469 q
12470 }
12471 /^X\(\/\/\)$/{
12472 s//\1/
12473 q
12474 }
12475 /^X\(\/\).*/{
12476 s//\1/
12477 q
12478 }
12479 s/.*/./; q'`
12480 as_dir="$ac_dir"; as_fn_mkdir_p
12481 ac_builddir=.
12482
12483 case "$ac_dir" in
12484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12485 *)
12486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12487 # A ".." for each directory in $ac_dir_suffix.
12488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12489 case $ac_top_builddir_sub in
12490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12492 esac ;;
12493 esac
12494 ac_abs_top_builddir=$ac_pwd
12495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12496 # for backward compatibility:
12497 ac_top_builddir=$ac_top_build_prefix
12498
12499 case $srcdir in
12500 .) # We are building in place.
12501 ac_srcdir=.
12502 ac_top_srcdir=$ac_top_builddir_sub
12503 ac_abs_top_srcdir=$ac_pwd ;;
12504 [\\/]* | ?:[\\/]* ) # Absolute name.
12505 ac_srcdir=$srcdir$ac_dir_suffix;
12506 ac_top_srcdir=$srcdir
12507 ac_abs_top_srcdir=$srcdir ;;
12508 *) # Relative name.
12509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12510 ac_top_srcdir=$ac_top_build_prefix$srcdir
12511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12512 esac
12513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12514
12515
12516 case $ac_mode in
12517 :F)
12518 #
12519 # CONFIG_FILE
12520 #
12521
12522 case $INSTALL in
12523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12525 esac
12526 ac_MKDIR_P=$MKDIR_P
12527 case $MKDIR_P in
12528 [\\/$]* | ?:[\\/]* ) ;;
12529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12530 esac
12531 _ACEOF
12532
12533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12534 # If the template does not know about datarootdir, expand it.
12535 # FIXME: This hack should be removed a few years after 2.60.
12536 ac_datarootdir_hack=; ac_datarootdir_seen=
12537 ac_sed_dataroot='
12538 /datarootdir/ {
12539 p
12540 q
12541 }
12542 /@datadir@/p
12543 /@docdir@/p
12544 /@infodir@/p
12545 /@localedir@/p
12546 /@mandir@/p'
12547 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12548 *datarootdir*) ac_datarootdir_seen=yes;;
12549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12551 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12552 _ACEOF
12553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12554 ac_datarootdir_hack='
12555 s&@datadir@&$datadir&g
12556 s&@docdir@&$docdir&g
12557 s&@infodir@&$infodir&g
12558 s&@localedir@&$localedir&g
12559 s&@mandir@&$mandir&g
12560 s&\\\${datarootdir}&$datarootdir&g' ;;
12561 esac
12562 _ACEOF
12563
12564 # Neutralize VPATH when `$srcdir' = `.'.
12565 # Shell code in configure.ac might set extrasub.
12566 # FIXME: do we really want to maintain this feature?
12567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12568 ac_sed_extra="$ac_vpsub
12569 $extrasub
12570 _ACEOF
12571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12572 :t
12573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12574 s|@configure_input@|$ac_sed_conf_input|;t t
12575 s&@top_builddir@&$ac_top_builddir_sub&;t t
12576 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12577 s&@srcdir@&$ac_srcdir&;t t
12578 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12579 s&@top_srcdir@&$ac_top_srcdir&;t t
12580 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12581 s&@builddir@&$ac_builddir&;t t
12582 s&@abs_builddir@&$ac_abs_builddir&;t t
12583 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12584 s&@INSTALL@&$ac_INSTALL&;t t
12585 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12586 $ac_datarootdir_hack
12587 "
12588 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12589 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12590
12591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12592 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12594 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12596 which seems to be undefined. Please make sure it is defined" >&5
12597 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12598 which seems to be undefined. Please make sure it is defined" >&2;}
12599
12600 rm -f "$ac_tmp/stdin"
12601 case $ac_file in
12602 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12603 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12604 esac \
12605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12606 ;;
12607 :H)
12608 #
12609 # CONFIG_HEADER
12610 #
12611 if test x"$ac_file" != x-; then
12612 {
12613 $as_echo "/* $configure_input */" \
12614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12615 } >"$ac_tmp/config.h" \
12616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12617 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12619 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12620 else
12621 rm -f "$ac_file"
12622 mv "$ac_tmp/config.h" "$ac_file" \
12623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12624 fi
12625 else
12626 $as_echo "/* $configure_input */" \
12627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12628 || as_fn_error $? "could not create -" "$LINENO" 5
12629 fi
12630 # Compute "$ac_file"'s index in $config_headers.
12631 _am_arg="$ac_file"
12632 _am_stamp_count=1
12633 for _am_header in $config_headers :; do
12634 case $_am_header in
12635 $_am_arg | $_am_arg:* )
12636 break ;;
12637 * )
12638 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12639 esac
12640 done
12641 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12642 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$_am_arg" : 'X\(//\)[^/]' \| \
12644 X"$_am_arg" : 'X\(//\)$' \| \
12645 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12646 $as_echo X"$_am_arg" |
12647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648 s//\1/
12649 q
12650 }
12651 /^X\(\/\/\)[^/].*/{
12652 s//\1/
12653 q
12654 }
12655 /^X\(\/\/\)$/{
12656 s//\1/
12657 q
12658 }
12659 /^X\(\/\).*/{
12660 s//\1/
12661 q
12662 }
12663 s/.*/./; q'`/stamp-h$_am_stamp_count
12664 ;;
12665
12666 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12667 $as_echo "$as_me: executing $ac_file commands" >&6;}
12668 ;;
12669 esac
12670
12671
12672 case $ac_file$ac_mode in
12673 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12674 # Older Autoconf quotes --file arguments for eval, but not when files
12675 # are listed without --file. Let's play safe and only enable the eval
12676 # if we detect the quoting.
12677 case $CONFIG_FILES in
12678 *\'*) eval set x "$CONFIG_FILES" ;;
12679 *) set x $CONFIG_FILES ;;
12680 esac
12681 shift
12682 for mf
12683 do
12684 # Strip MF so we end up with the name of the file.
12685 mf=`echo "$mf" | sed -e 's/:.*$//'`
12686 # Check whether this is an Automake generated Makefile or not.
12687 # We used to match only the files named 'Makefile.in', but
12688 # some people rename them; so instead we look at the file content.
12689 # Grep'ing the first line is not enough: some people post-process
12690 # each Makefile.in and add a new line on top of each file to say so.
12691 # Grep'ing the whole file is not good either: AIX grep has a line
12692 # limit of 2048, but all sed's we know have understand at least 4000.
12693 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12694 dirpart=`$as_dirname -- "$mf" ||
12695 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12696 X"$mf" : 'X\(//\)[^/]' \| \
12697 X"$mf" : 'X\(//\)$' \| \
12698 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12699 $as_echo X"$mf" |
12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12701 s//\1/
12702 q
12703 }
12704 /^X\(\/\/\)[^/].*/{
12705 s//\1/
12706 q
12707 }
12708 /^X\(\/\/\)$/{
12709 s//\1/
12710 q
12711 }
12712 /^X\(\/\).*/{
12713 s//\1/
12714 q
12715 }
12716 s/.*/./; q'`
12717 else
12718 continue
12719 fi
12720 # Extract the definition of DEPDIR, am__include, and am__quote
12721 # from the Makefile without running 'make'.
12722 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12723 test -z "$DEPDIR" && continue
12724 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12725 test -z "$am__include" && continue
12726 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12727 # Find all dependency output files, they are included files with
12728 # $(DEPDIR) in their names. We invoke sed twice because it is the
12729 # simplest approach to changing $(DEPDIR) to its actual value in the
12730 # expansion.
12731 for file in `sed -n "
12732 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12733 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12734 # Make sure the directory exists.
12735 test -f "$dirpart/$file" && continue
12736 fdir=`$as_dirname -- "$file" ||
12737 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12738 X"$file" : 'X\(//\)[^/]' \| \
12739 X"$file" : 'X\(//\)$' \| \
12740 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12741 $as_echo X"$file" |
12742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12743 s//\1/
12744 q
12745 }
12746 /^X\(\/\/\)[^/].*/{
12747 s//\1/
12748 q
12749 }
12750 /^X\(\/\/\)$/{
12751 s//\1/
12752 q
12753 }
12754 /^X\(\/\).*/{
12755 s//\1/
12756 q
12757 }
12758 s/.*/./; q'`
12759 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12760 # echo "creating $dirpart/$file"
12761 echo '# dummy' > "$dirpart/$file"
12762 done
12763 done
12764 }
12765 ;;
12766
12767 esac
12768 done # for ac_tag
12769
12770
12771 as_fn_exit 0
12772 _ACEOF
12773 ac_clean_files=$ac_clean_files_save
12774
12775 test $ac_write_fail = 0 ||
12776 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12777
12778
12779 # configure is writing to config.log, and then calls config.status.
12780 # config.status does its own redirection, appending to config.log.
12781 # Unfortunately, on DOS this fails, as config.log is still kept open
12782 # by configure, so config.status won't be able to write to it; its
12783 # output is simply discarded. So we exec the FD to /dev/null,
12784 # effectively closing config.log, so it can be properly (re)opened and
12785 # appended to by config.status. When coming back to configure, we
12786 # need to make the FD available again.
12787 if test "$no_create" != yes; then
12788 ac_cs_success=:
12789 ac_config_status_args=
12790 test "$silent" = yes &&
12791 ac_config_status_args="$ac_config_status_args --quiet"
12792 exec 5>/dev/null
12793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12794 exec 5>>config.log
12795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12796 # would make configure fail if this is the last instruction.
12797 $ac_cs_success || as_fn_exit 1
12798 fi
12799 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12801 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12802 fi
12803
12804