configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xinit 1.3.4.
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.3.4'
585 PACKAGE_STRING='xinit 1.3.4'
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 SCOMAN
643 SHELL_CMD
644 STARTX_COOKIE_FLAGS
645 OPENSSL
646 MCOOKIE
647 XINIT_LIBS
648 XINIT_CFLAGS
649 LAUNCHAGENT_XSERVER_FALSE
650 LAUNCHAGENT_XSERVER_TRUE
651 TIGER_LAUNCHD_FALSE
652 TIGER_LAUNCHD_TRUE
653 LAUNCHD_FALSE
654 LAUNCHD_TRUE
655 launchagentxserver
656 bundleidprefix
657 launchdaemonsdir
658 launchagentsdir
659 LAUNCHD
660 TRADITIONALCPPFLAGS
661 RAWCPPFLAGS
662 RAWCPP
663 MAN_SUBSTS
664 XORG_MAN_PAGE
665 ADMIN_MAN_DIR
666 DRIVER_MAN_DIR
667 MISC_MAN_DIR
668 FILE_MAN_DIR
669 LIB_MAN_DIR
670 APP_MAN_DIR
671 ADMIN_MAN_SUFFIX
672 DRIVER_MAN_SUFFIX
673 MISC_MAN_SUFFIX
674 FILE_MAN_SUFFIX
675 LIB_MAN_SUFFIX
676 APP_MAN_SUFFIX
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 EGREP
695 GREP
696 CPP
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_dependency_tracking
784 enable_selective_werror
785 enable_strict_compilation
786 with_xrdb
787 with_xmodmap
788 with_twm
789 with_xclock
790 with_xterm
791 with_xserver
792 with_xauth
793 with_xinit
794 with_xinitdir
795 with_launchd
796 with_launchagents_dir
797 with_launchagent_xserver
798 with_launchdaemons_dir
799 with_launchd_id_prefix
800 with_bundle_id_prefix
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 PKG_CONFIG
812 PKG_CONFIG_PATH
813 PKG_CONFIG_LIBDIR
814 XINIT_CFLAGS
815 XINIT_LIBS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321 else
1322 ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures xinit 1.3.4 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1410
1411 cat <<\_ACEOF
1412
1413 Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418 System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of xinit 1.3.4:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-selective-werror
1441 Turn off selective compiler errors. (default:
1442 enabled)
1443 --enable-strict-compilation
1444 Enable all warnings from compiler and make them
1445 errors (default: disabled)
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-xrdb=XRDB Path to xrdb
1451 --with-xmodmap=XMODMAP Path to xmodmap
1452 --with-twm=TWM Path to twm
1453 --with-xclock=XCLOCK Path to xclock
1454 --with-xterm=XTERM Path to xterm
1455 --with-xserver=XSERVER Path to default X server
1456 --with-xauth=XAUTH Path to xauth
1457 --with-xinit=XINIT Path to xinit
1458 --with-xinitdir=XINITDIR
1459 Path to xinitdir
1460 --with-launchd Build with support for Apple's launchd (default:
1461 auto)
1462 --with-launchagents-dir=PATH
1463 Path to launchd's LaunchAgents directory (default:
1464 /Library/LaunchAgents)
1465 --with-launchagent-xserver=PATH
1466 Path to the X server which the LaunchAgent should
1467 start (if not provided, let startx decide)"
1468 --with-launchdaemons-dir=PATH
1469 Path to launchd's LaunchDaemonss directory (default:
1470 /Library/LaunchDaemons)
1471 --with-launchd-id-prefix=PATH
1472 Deprecated: Use --with-bundle-id-prefix.
1473 --with-bundle-id-prefix=PATH
1474 Prefix to use for bundle identifiers (default:
1475 org.x)
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 PKG_CONFIG path to pkg-config utility
1487 PKG_CONFIG_PATH
1488 directories to add to pkg-config's search path
1489 PKG_CONFIG_LIBDIR
1490 path overriding pkg-config's built-in search path
1491 XINIT_CFLAGS
1492 C compiler flags for XINIT, overriding pkg-config
1493 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1494
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1510
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *)
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1526
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1556 fi
1557
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 xinit configure 1.3.4
1562 generated by GNU Autoconf 2.69
1563
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1569 fi
1570
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1574
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_compile
1612
1613 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1614 # ---------------------------------------------
1615 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1616 # accordingly.
1617 ac_fn_c_check_decl ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 as_decl_name=`echo $2|sed 's/ *(.*//'`
1621 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1623 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 int
1631 main ()
1632 {
1633 #ifndef $as_decl_name
1634 #ifdef __cplusplus
1635 (void) $as_decl_use;
1636 #else
1637 (void) $as_decl_name;
1638 #endif
1639 #endif
1640
1641 ;
1642 return 0;
1643 }
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_decl
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731 fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists and can be compiled using the include files in
1741 # INCLUDES, setting the cache variable VAR accordingly.
1742 ac_fn_c_check_header_compile ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748 $as_echo_n "(cached) " >&6
1749 else
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 eval "$3=yes"
1757 else
1758 eval "$3=no"
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 fi
1762 eval ac_res=\$$3
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_header_compile
1768
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_link ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 test -x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_link
1814
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1831
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1836
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1842
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main ()
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_func
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by xinit $as_me 1.3.4, which was
1886 generated by GNU Autoconf 2.69. Invocation command line was
1887
1888 $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1923 done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 $as_echo "## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 $as_echo "## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 $as_echo "## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2052 do
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 $as_echo "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2060 fi
2061
2062 if test -s confdefs.h; then
2063 $as_echo "## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2069 fi
2070 test "$ac_signal" != 0 &&
2071 $as_echo "$as_me: caught signal $ac_signal"
2072 $as_echo "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2077 ' 0
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2082
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2085
2086 $as_echo "/* confdefs.h */" > confdefs.h
2087
2088 # Predefined preprocessor variables.
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_URL "$PACKAGE_URL"
2112 _ACEOF
2113
2114
2115 # Let the site file select an alternate cache file if it wants to.
2116 # Prefer an explicitly selected file to automatically selected ones.
2117 ac_site_file1=NONE
2118 ac_site_file2=NONE
2119 if test -n "$CONFIG_SITE"; then
2120 # We do not want a PATH search for config.site.
2121 case $CONFIG_SITE in #((
2122 -*) ac_site_file1=./$CONFIG_SITE;;
2123 */*) ac_site_file1=$CONFIG_SITE;;
2124 *) ac_site_file1=./$CONFIG_SITE;;
2125 esac
2126 elif test "x$prefix" != xNONE; then
2127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
2129 else
2130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
2132 fi
2133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 do
2135 test "x$ac_site_file" = xNONE && continue
2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139 sed 's/^/| /' "$ac_site_file" >&5
2140 . "$ac_site_file" \
2141 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 as_fn_error $? "failed to load site script $ac_site_file
2144 See \`config.log' for more details" "$LINENO" 5; }
2145 fi
2146 done
2147
2148 if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special files
2150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 case $cache_file in
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2157 esac
2158 fi
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 >$cache_file
2163 fi
2164
2165 # Check that the precious variables saved in the cache have kept the same
2166 # value.
2167 ac_cache_corrupted=false
2168 for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2174 set,)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,set)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,);;
2183 *)
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2196 fi
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 esac
2213 fi
2214 done
2215 if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221 fi
2222 ## -------------------- ##
2223 ## Main body of script. ##
2224 ## -------------------- ##
2225
2226 ac_ext=c
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
2234 ac_config_headers="$ac_config_headers config.h"
2235
2236
2237 # Initialize Automake
2238 am__api_version='1.14'
2239
2240 ac_aux_dir=
2241 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242 if test -f "$ac_dir/install-sh"; then
2243 ac_aux_dir=$ac_dir
2244 ac_install_sh="$ac_aux_dir/install-sh -c"
2245 break
2246 elif test -f "$ac_dir/install.sh"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/install.sh -c"
2249 break
2250 elif test -f "$ac_dir/shtool"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/shtool install -c"
2253 break
2254 fi
2255 done
2256 if test -z "$ac_aux_dir"; then
2257 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2258 fi
2259
2260 # These three variables are undocumented and unsupported,
2261 # and are intended to be withdrawn in a future Autoconf release.
2262 # They can cause serious problems if a builder's source tree is in a directory
2263 # whose full name contains unusual characters.
2264 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2265 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2266 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2267
2268
2269 # Find a good install program. We prefer a C program (faster),
2270 # so one script is as good as another. But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 # Reject install programs that cannot install multiple files.
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2285 if test -z "$INSTALL"; then
2286 if ${ac_cv_path_install+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in #((
2296 ./ | .// | /[cC]/* | \
2297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299 /usr/ucb/* ) ;;
2300 *)
2301 # OSF1 and SCO ODT 3.0 have their own names for install.
2302 # Don't use installbsd from OSF since it installs stuff as root
2303 # by default.
2304 for ac_prog in ginstall scoinst install; do
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307 if test $ac_prog = install &&
2308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # AIX install. It has an incompatible calling convention.
2310 :
2311 elif test $ac_prog = install &&
2312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # program-specific install script used by HP pwplus--don't use.
2314 :
2315 else
2316 rm -rf conftest.one conftest.two conftest.dir
2317 echo one > conftest.one
2318 echo two > conftest.two
2319 mkdir conftest.dir
2320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321 test -s conftest.one && test -s conftest.two &&
2322 test -s conftest.dir/conftest.one &&
2323 test -s conftest.dir/conftest.two
2324 then
2325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326 break 3
2327 fi
2328 fi
2329 fi
2330 done
2331 done
2332 ;;
2333 esac
2334
2335 done
2336 IFS=$as_save_IFS
2337
2338 rm -rf conftest.one conftest.two conftest.dir
2339
2340 fi
2341 if test "${ac_cv_path_install+set}" = set; then
2342 INSTALL=$ac_cv_path_install
2343 else
2344 # As a last resort, use the slow shell script. Don't cache a
2345 # value for INSTALL within a source directory, because that will
2346 # break other packages using the cache if that directory is
2347 # removed, or if the value is a relative name.
2348 INSTALL=$ac_install_sh
2349 fi
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
2353
2354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355 # It thinks the first close brace ends the variable substitution.
2356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name. Accept space and tab only in the latter.
2366 am_lf='
2367 '
2368 case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2375 esac
2376
2377 # Do 'set' in a subshell so we don't clobber the current shell's
2378 # arguments. Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383 am_has_slept=no
2384 for am_try in 1 2; do
2385 echo "timestamp, slept: $am_has_slept" > conftest.file
2386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387 if test "$*" = "X"; then
2388 # -L didn't work.
2389 set X `ls -t "$srcdir/configure" conftest.file`
2390 fi
2391 if test "$*" != "X $srcdir/configure conftest.file" \
2392 && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394 # If neither matched, then we have a broken ls. This can happen
2395 # if, for instance, CONFIG_SHELL is bash and it inherits a
2396 # broken ls alias from the environment. This has actually
2397 # happened. Such a system could not be considered "sane".
2398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2399 alias in your environment" "$LINENO" 5
2400 fi
2401 if test "$2" = conftest.file || test $am_try -eq 2; then
2402 break
2403 fi
2404 # Just in case.
2405 sleep 1
2406 am_has_slept=yes
2407 done
2408 test "$2" = conftest.file
2409 )
2410 then
2411 # Ok.
2412 :
2413 else
2414 as_fn_error $? "newly created file is older than distributed files!
2415 Check your system clock" "$LINENO" 5
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418 $as_echo "yes" >&6; }
2419 # If we didn't sleep, we still need to ensure time stamps of config.status and
2420 # generated files are strictly newer.
2421 am_sleep_pid=
2422 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2423 ( sleep 1 ) &
2424 am_sleep_pid=$!
2425 fi
2426
2427 rm -f conftest.file
2428
2429 test "$program_prefix" != NONE &&
2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439 # expand $ac_aux_dir to an absolute path
2440 am_aux_dir=`cd $ac_aux_dir && pwd`
2441
2442 if test x"${MISSING+set}" != xset; then
2443 case $am_aux_dir in
2444 *\ * | *\ *)
2445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446 *)
2447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448 esac
2449 fi
2450 # Use eval to expand $SHELL
2451 if eval "$MISSING --is-lightweight"; then
2452 am_missing_run="$MISSING "
2453 else
2454 am_missing_run=
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2456 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2457 fi
2458
2459 if test x"${install_sh}" != xset; then
2460 case $am_aux_dir in
2461 *\ * | *\ *)
2462 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463 *)
2464 install_sh="\${SHELL} $am_aux_dir/install-sh"
2465 esac
2466 fi
2467
2468 # Installed binaries are usually stripped using 'strip' when the user
2469 # run "make install-strip". However 'strip' might not be the right
2470 # tool to use in cross-compilation environments, therefore Automake
2471 # will honor the 'STRIP' environment variable to overrule this program.
2472 if test "$cross_compiling" != no; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_STRIP+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$STRIP"; then
2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 STRIP=$ac_cv_prog_STRIP
2502 if test -n "$STRIP"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_STRIP"; then
2513 ac_ct_STRIP=$STRIP
2514 # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$ac_ct_STRIP"; then
2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_STRIP="strip"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542 if test -n "$ac_ct_STRIP"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550 if test "x$ac_ct_STRIP" = x; then
2551 STRIP=":"
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559 STRIP=$ac_ct_STRIP
2560 fi
2561 else
2562 STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2570 if test -z "$MKDIR_P"; then
2571 if ${ac_cv_path_mkdir+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_prog in mkdir gmkdir; do
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583 'mkdir (GNU coreutils) '* | \
2584 'mkdir (coreutils) '* | \
2585 'mkdir (fileutils) '4.1*)
2586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2587 break 3;;
2588 esac
2589 done
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595
2596 test -d ./--version && rmdir ./--version
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for MKDIR_P within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 MKDIR_P="$ac_install_sh -d"
2605 fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2609
2610 for ac_prog in gawk mawk nawk awk
2611 do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_AWK+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$AWK"; then
2620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_AWK="$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 AWK=$ac_cv_prog_AWK
2640 if test -n "$AWK"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642 $as_echo "$AWK" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 test -n "$AWK" && break
2650 done
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654 set x ${MAKE-make}
2655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat >conftest.make <<\_ACEOF
2660 SHELL = /bin/sh
2661 all:
2662 @echo '@@@%%%=$(MAKE)=@@@%%%'
2663 _ACEOF
2664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666 *@@@%%%=?*=@@@%%%*)
2667 eval ac_cv_prog_make_${ac_make}_set=yes;;
2668 *)
2669 eval ac_cv_prog_make_${ac_make}_set=no;;
2670 esac
2671 rm -f conftest.make
2672 fi
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676 SET_MAKE=
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 SET_MAKE="MAKE=${MAKE-make}"
2681 fi
2682
2683 rm -rf .tst 2>/dev/null
2684 mkdir .tst 2>/dev/null
2685 if test -d .tst; then
2686 am__leading_dot=.
2687 else
2688 am__leading_dot=_
2689 fi
2690 rmdir .tst 2>/dev/null
2691
2692 # Check whether --enable-silent-rules was given.
2693 if test "${enable_silent_rules+set}" = set; then :
2694 enableval=$enable_silent_rules;
2695 fi
2696
2697 case $enable_silent_rules in # (((
2698 yes) AM_DEFAULT_VERBOSITY=0;;
2699 no) AM_DEFAULT_VERBOSITY=1;;
2700 *) AM_DEFAULT_VERBOSITY=1;;
2701 esac
2702 am_make=${MAKE-make}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2705 if ${am_cv_make_support_nested_variables+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if $as_echo 'TRUE=$(BAR$(V))
2709 BAR0=false
2710 BAR1=true
2711 V=1
2712 am__doit:
2713 @$(TRUE)
2714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2715 am_cv_make_support_nested_variables=yes
2716 else
2717 am_cv_make_support_nested_variables=no
2718 fi
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2722 if test $am_cv_make_support_nested_variables = yes; then
2723 AM_V='$(V)'
2724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2725 else
2726 AM_V=$AM_DEFAULT_VERBOSITY
2727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2728 fi
2729 AM_BACKSLASH='\'
2730
2731 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2732 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2733 # is not polluted with repeated "-I."
2734 am__isrc=' -I$(srcdir)'
2735 # test to see if srcdir already configured
2736 if test -f $srcdir/config.status; then
2737 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2738 fi
2739 fi
2740
2741 # test whether we have cygpath
2742 if test -z "$CYGPATH_W"; then
2743 if (cygpath --version) >/dev/null 2>/dev/null; then
2744 CYGPATH_W='cygpath -w'
2745 else
2746 CYGPATH_W=echo
2747 fi
2748 fi
2749
2750
2751 # Define the identity of the package.
2752 PACKAGE='xinit'
2753 VERSION='1.3.4'
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2758 _ACEOF
2759
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2763 _ACEOF
2764
2765 # Some tools Automake needs.
2766
2767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768
2769
2770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771
2772
2773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774
2775
2776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777
2778
2779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2780
2781 # For better backward compatibility. To be removed once Automake 1.9.x
2782 # dies out for good. For more background, see:
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2784 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2785 mkdir_p='$(MKDIR_P)'
2786
2787 # We need awk for the "check" target. The system "awk" is bad on
2788 # some platforms.
2789 # Always define AMTAR for backward compatibility. Yes, it's still used
2790 # in the wild :-( We should find a proper way to deprecate it ...
2791 AMTAR='$${TAR-tar}'
2792
2793
2794 # We'll loop over all known methods to create a tar archive until one works.
2795 _am_tools='gnutar pax cpio none'
2796
2797 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2798
2799
2800
2801
2802
2803
2804 # POSIX will say in a future version that running "rm -f" with no argument
2805 # is OK; and we want to be able to make that assumption in our Makefile
2806 # recipes. So use an aggressive probe to check that the usage we want is
2807 # actually supported "in the wild" to an acceptable degree.
2808 # See automake bug#10828.
2809 # To make any issue more visible, cause the running configure to be aborted
2810 # by default if the 'rm' program in use doesn't match our expectations; the
2811 # user can still override this though.
2812 if rm -f && rm -fr && rm -rf; then : OK; else
2813 cat >&2 <<'END'
2814 Oops!
2815
2816 Your 'rm' program seems unable to run without file operands specified
2817 on the command line, even when the '-f' option is present. This is contrary
2818 to the behaviour of most rm programs out there, and not conforming with
2819 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2820
2821 Please tell bug-automake@gnu.org about your system, including the value
2822 of your $PATH and any error possibly output before this message. This
2823 can help us improve future automake versions.
2824
2825 END
2826 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2827 echo 'Configuration will proceed anyway, since you have set the' >&2
2828 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2829 echo >&2
2830 else
2831 cat >&2 <<'END'
2832 Aborting the configuration process, to ensure you take notice of the issue.
2833
2834 You can download and install GNU coreutils to get an 'rm' implementation
2835 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2836
2837 If you want to complete the configuration process using your problematic
2838 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2839 to "yes", and re-run configure.
2840
2841 END
2842 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2843 fi
2844 fi
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*) FILE_MAN_SUFFIX=4 ;;
10632 *) FILE_MAN_SUFFIX=5 ;;
10633 esac
10634 fi
10635 if test x$FILE_MAN_DIR = x ; then
10636 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10637 fi
10638
10639 if test x$MISC_MAN_SUFFIX = x ; then
10640 case $host_os in
10641 solaris*) MISC_MAN_SUFFIX=5 ;;
10642 *) MISC_MAN_SUFFIX=7 ;;
10643 esac
10644 fi
10645 if test x$MISC_MAN_DIR = x ; then
10646 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10647 fi
10648
10649 if test x$DRIVER_MAN_SUFFIX = x ; then
10650 case $host_os in
10651 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10652 *) DRIVER_MAN_SUFFIX=4 ;;
10653 esac
10654 fi
10655 if test x$DRIVER_MAN_DIR = x ; then
10656 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10657 fi
10658
10659 if test x$ADMIN_MAN_SUFFIX = x ; then
10660 case $host_os in
10661 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10662 *) ADMIN_MAN_SUFFIX=8 ;;
10663 esac
10664 fi
10665 if test x$ADMIN_MAN_DIR = x ; then
10666 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10667 fi
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 XORG_MAN_PAGE="X Version 11"
10684
10685 MAN_SUBSTS="\
10686 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10687 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10688 -e 's|__xservername__|Xorg|g' \
10689 -e 's|__xconfigfile__|xorg.conf|g' \
10690 -e 's|__projectroot__|\$(prefix)|g' \
10691 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10692 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10693 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10694 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10695 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10696 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10697 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10698
10699
10700
10701 # Check whether --enable-silent-rules was given.
10702 if test "${enable_silent_rules+set}" = set; then :
10703 enableval=$enable_silent_rules;
10704 fi
10705
10706 case $enable_silent_rules in # (((
10707 yes) AM_DEFAULT_VERBOSITY=0;;
10708 no) AM_DEFAULT_VERBOSITY=1;;
10709 *) AM_DEFAULT_VERBOSITY=0;;
10710 esac
10711 am_make=${MAKE-make}
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10713 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10714 if ${am_cv_make_support_nested_variables+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 if $as_echo 'TRUE=$(BAR$(V))
10718 BAR0=false
10719 BAR1=true
10720 V=1
10721 am__doit:
10722 @$(TRUE)
10723 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10724 am_cv_make_support_nested_variables=yes
10725 else
10726 am_cv_make_support_nested_variables=no
10727 fi
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10730 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10731 if test $am_cv_make_support_nested_variables = yes; then
10732 AM_V='$(V)'
10733 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10734 else
10735 AM_V=$AM_DEFAULT_VERBOSITY
10736 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10737 fi
10738 AM_BACKSLASH='\'
10739
10740
10741
10742
10743
10744 for ac_prog in cpp
10745 do
10746 # Extract the first word of "$ac_prog", so it can be a program name with args.
10747 set dummy $ac_prog; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_path_RAWCPP+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 case $RAWCPP in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10756 ;;
10757 *)
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10760 for as_dir in $as_dummy
10761 do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770 done
10771 done
10772 IFS=$as_save_IFS
10773
10774 ;;
10775 esac
10776 fi
10777 RAWCPP=$ac_cv_path_RAWCPP
10778 if test -n "$RAWCPP"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10780 $as_echo "$RAWCPP" >&6; }
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787 test -n "$RAWCPP" && break
10788 done
10789 test -n "$RAWCPP" || RAWCPP="${CPP}"
10790
10791
10792 # Check for flag to avoid builtin definitions - assumes unix is predefined,
10793 # which is not the best choice for supporting other OS'es, but covers most
10794 # of the ones we need for now.
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10796 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 Does cpp redefine unix ?
10800 _ACEOF
10801 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10804 else
10805 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10806 RAWCPPFLAGS=-undef
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; }
10809 # under Cygwin unix is still defined even with -undef
10810 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10811 RAWCPPFLAGS="-undef -ansi"
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10813 $as_echo "yes, with -ansi" >&6; }
10814 else
10815 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
10816 fi
10817 fi
10818 rm -f conftest.$ac_ext
10819
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10821 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 Does cpp preserve "whitespace"?
10825 _ACEOF
10826 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 else
10830 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
10831 TRADITIONALCPPFLAGS="-traditional"
10832 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834 $as_echo "yes" >&6; }
10835 else
10836 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
10837 fi
10838 fi
10839 rm -f conftest.$ac_ext
10840
10841
10842
10843
10844
10845 # Build options
10846 DEFAULT_XRDB=xrdb
10847 DEFAULT_XMODMAP=xmodmap
10848 DEFAULT_TWM=twm
10849 DEFAULT_XCLOCK=xclock
10850 DEFAULT_XTERM=xterm
10851 # You always want to specify the full path to the X server
10852 DEFAULT_XSERVER=${bindir}/X
10853 DEFAULT_XAUTH=xauth
10854 DEFAULT_XINIT=xinit
10855 DEFAULT_XINITDIR=${sysconfdir}/X11/xinit
10856
10857
10858 # Check whether --with-xrdb was given.
10859 if test "${with_xrdb+set}" = set; then :
10860 withval=$with_xrdb; XRDB="$withval"
10861 else
10862 XRDB="$DEFAULT_XRDB"
10863 fi
10864
10865
10866
10867 # Check whether --with-xmodmap was given.
10868 if test "${with_xmodmap+set}" = set; then :
10869 withval=$with_xmodmap; XMODMAP="$withval"
10870 else
10871 XMODMAP="$DEFAULT_XMODMAP"
10872 fi
10873
10874
10875
10876 # Check whether --with-twm was given.
10877 if test "${with_twm+set}" = set; then :
10878 withval=$with_twm; TWM="$withval"
10879 else
10880 TWM="$DEFAULT_TWM"
10881 fi
10882
10883
10884
10885 # Check whether --with-xclock was given.
10886 if test "${with_xclock+set}" = set; then :
10887 withval=$with_xclock; XCLOCK="$withval"
10888 else
10889 XCLOCK="$DEFAULT_XCLOCK"
10890 fi
10891
10892
10893
10894 # Check whether --with-xterm was given.
10895 if test "${with_xterm+set}" = set; then :
10896 withval=$with_xterm; XTERM="$withval"
10897 else
10898 XTERM="$DEFAULT_XTERM"
10899 fi
10900
10901
10902
10903 # Check whether --with-xserver was given.
10904 if test "${with_xserver+set}" = set; then :
10905 withval=$with_xserver; XSERVER="$withval"
10906 else
10907 XSERVER="$DEFAULT_XSERVER"
10908 fi
10909
10910
10911
10912 # Check whether --with-xauth was given.
10913 if test "${with_xauth+set}" = set; then :
10914 withval=$with_xauth; XAUTH="$withval"
10915 else
10916 XAUTH="$DEFAULT_XAUTH"
10917 fi
10918
10919
10920
10921 # Check whether --with-xinit was given.
10922 if test "${with_xinit+set}" = set; then :
10923 withval=$with_xinit; XINIT="$withval"
10924 else
10925 XINIT="$DEFAULT_XINIT"
10926 fi
10927
10928
10929
10930 # Check whether --with-xinitdir was given.
10931 if test "${with_xinitdir+set}" = set; then :
10932 withval=$with_xinitdir; XINITDIR="$withval"
10933 else
10934 XINITDIR="$DEFAULT_XINITDIR"
10935 fi
10936
10937
10938
10939 # Check whether --with-launchd was given.
10940 if test "${with_launchd+set}" = set; then :
10941 withval=$with_launchd; LAUNCHD=$withval
10942 else
10943 LAUNCHD=auto
10944 fi
10945
10946
10947 # Check whether --with-launchagents-dir was given.
10948 if test "${with_launchagents_dir+set}" = set; then :
10949 withval=$with_launchagents_dir; launchagentsdir="${withval}"
10950 else
10951 launchagentsdir="/Library/LaunchAgents"
10952 fi
10953
10954
10955 # Check whether --with-launchagent-xserver was given.
10956 if test "${with_launchagent_xserver+set}" = set; then :
10957 withval=$with_launchagent_xserver; launchagentxserver="${withval}"
10958 else
10959 launchagentxserver="no"
10960 fi
10961
10962
10963 # Check whether --with-launchdaemons-dir was given.
10964 if test "${with_launchdaemons_dir+set}" = set; then :
10965 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
10966 else
10967 launchdaemonsdir="/Library/LaunchDaemons"
10968 fi
10969
10970
10971 # Check whether --with-launchd-id-prefix was given.
10972 if test "${with_launchd_id_prefix+set}" = set; then :
10973 withval=$with_launchd_id_prefix; bundleidprefix="${withval}"
10974 else
10975 bundleidprefix="org.x"
10976 fi
10977
10978
10979 # Check whether --with-bundle-id-prefix was given.
10980 if test "${with_bundle_id_prefix+set}" = set; then :
10981 withval=$with_bundle_id_prefix; bundleidprefix="${withval}"
10982 fi
10983
10984
10985 if test "x$LAUNCHD" = "xauto"; then
10986 unset LAUNCHD
10987 # Extract the first word of "launchd", so it can be a program name with args.
10988 set dummy launchd; ac_word=$2
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 $as_echo_n "checking for $ac_word... " >&6; }
10991 if ${ac_cv_prog_LAUNCHD+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 if test -n "$LAUNCHD"; then
10995 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
10996 else
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH$PATH_SEPARATOR/sbin
10999 do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004 ac_cv_prog_LAUNCHD="yes"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11007 fi
11008 done
11009 done
11010 IFS=$as_save_IFS
11011
11012 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
11013 fi
11014 fi
11015 LAUNCHD=$ac_cv_prog_LAUNCHD
11016 if test -n "$LAUNCHD"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
11018 $as_echo "$LAUNCHD" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 fi
11023
11024
11025 fi
11026
11027 TIGER_LAUNCHD=no
11028 if test "x$LAUNCHD" = "xyes" ; then
11029
11030 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
11031
11032 case $host_os in
11033 darwin8*)
11034 TIGER_LAUNCHD=yes
11035 ;;
11036 esac
11037 ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async"
11038 if test "x$ac_cv_func_dispatch_async" = xyes; then :
11039
11040 $as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h
11041
11042 fi
11043
11044 fi
11045
11046
11047 cat >>confdefs.h <<_ACEOF
11048 #define BUNDLE_ID_PREFIX "$bundleidprefix"
11049 _ACEOF
11050
11051
11052
11053
11054
11055 if test "x$LAUNCHD" = "xyes"; then
11056 LAUNCHD_TRUE=
11057 LAUNCHD_FALSE='#'
11058 else
11059 LAUNCHD_TRUE='#'
11060 LAUNCHD_FALSE=
11061 fi
11062
11063 if test "x$TIGER_LAUNCHD" = "xyes"; then
11064 TIGER_LAUNCHD_TRUE=
11065 TIGER_LAUNCHD_FALSE='#'
11066 else
11067 TIGER_LAUNCHD_TRUE='#'
11068 TIGER_LAUNCHD_FALSE=
11069 fi
11070
11071 if test "x$launchagentxserver" != "xno"; then
11072 LAUNCHAGENT_XSERVER_TRUE=
11073 LAUNCHAGENT_XSERVER_FALSE='#'
11074 else
11075 LAUNCHAGENT_XSERVER_TRUE='#'
11076 LAUNCHAGENT_XSERVER_FALSE=
11077 fi
11078
11079
11080 # Checks for pkg-config packages
11081
11082 pkg_failed=no
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
11084 $as_echo_n "checking for XINIT... " >&6; }
11085
11086 if test -n "$XINIT_CFLAGS"; then
11087 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11088 elif test -n "$PKG_CONFIG"; then
11089 if test -n "$PKG_CONFIG" && \
11090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11091 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11092 ac_status=$?
11093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11094 test $ac_status = 0; }; then
11095 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11096 test "x$?" != "x0" && pkg_failed=yes
11097 else
11098 pkg_failed=yes
11099 fi
11100 else
11101 pkg_failed=untried
11102 fi
11103 if test -n "$XINIT_LIBS"; then
11104 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11105 elif test -n "$PKG_CONFIG"; then
11106 if test -n "$PKG_CONFIG" && \
11107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11108 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11109 ac_status=$?
11110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11111 test $ac_status = 0; }; then
11112 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11113 test "x$?" != "x0" && pkg_failed=yes
11114 else
11115 pkg_failed=yes
11116 fi
11117 else
11118 pkg_failed=untried
11119 fi
11120
11121
11122
11123 if test $pkg_failed = yes; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126
11127 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11128 _pkg_short_errors_supported=yes
11129 else
11130 _pkg_short_errors_supported=no
11131 fi
11132 if test $_pkg_short_errors_supported = yes; then
11133 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11134 else
11135 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11136 fi
11137 # Put the nasty error message in config.log where it belongs
11138 echo "$XINIT_PKG_ERRORS" >&5
11139
11140 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11141
11142 $XINIT_PKG_ERRORS
11143
11144 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11145 installed software in a non-standard prefix.
11146
11147 Alternatively, you may set the environment variables XINIT_CFLAGS
11148 and XINIT_LIBS to avoid the need to call pkg-config.
11149 See the pkg-config man page for more details." "$LINENO" 5
11150 elif test $pkg_failed = untried; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11155 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11156 is in your PATH or set the PKG_CONFIG environment variable to the full
11157 path to pkg-config.
11158
11159 Alternatively, you may set the environment variables XINIT_CFLAGS
11160 and XINIT_LIBS to avoid the need to call pkg-config.
11161 See the pkg-config man page for more details.
11162
11163 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11164 See \`config.log' for more details" "$LINENO" 5; }
11165 else
11166 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
11167 XINIT_LIBS=$pkg_cv_XINIT_LIBS
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; }
11170
11171 fi
11172
11173 case $host_os in
11174 *bsd*)
11175 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
11176 ;;
11177 esac
11178
11179
11180 for ac_prog in mcookie
11181 do
11182 # Extract the first word of "$ac_prog", so it can be a program name with args.
11183 set dummy $ac_prog; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if ${ac_cv_path_MCOOKIE+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 case $MCOOKIE in
11190 [\\/]* | ?:[\\/]*)
11191 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
11192 ;;
11193 *)
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
11196 for as_dir in $as_dummy
11197 do
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
11203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11205 fi
11206 done
11207 done
11208 IFS=$as_save_IFS
11209
11210 ;;
11211 esac
11212 fi
11213 MCOOKIE=$ac_cv_path_MCOOKIE
11214 if test -n "$MCOOKIE"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
11216 $as_echo "$MCOOKIE" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11220 fi
11221
11222
11223 test -n "$MCOOKIE" && break
11224 done
11225 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
11226
11227
11228 # If mcookie not found, try openssl, else per-system fallbacks
11229 if test "x$MCOOKIE" = x ; then
11230 for ac_prog in openssl
11231 do
11232 # Extract the first word of "$ac_prog", so it can be a program name with args.
11233 set dummy $ac_prog; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_path_OPENSSL+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 case $OPENSSL in
11240 [\\/]* | ?:[\\/]*)
11241 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
11242 ;;
11243 *)
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
11246 for as_dir in $as_dummy
11247 do
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11255 fi
11256 done
11257 done
11258 IFS=$as_save_IFS
11259
11260 ;;
11261 esac
11262 fi
11263 OPENSSL=$ac_cv_path_OPENSSL
11264 if test -n "$OPENSSL"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
11266 $as_echo "$OPENSSL" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 fi
11271
11272
11273 test -n "$OPENSSL" && break
11274 done
11275 test -n "$OPENSSL" || OPENSSL="$OPENSSL"
11276
11277 if test "x$OPENSSL" != x ; then
11278 MCOOKIE="$OPENSSL rand -hex 16"
11279 else
11280 case $host_os in
11281 *solaris*)
11282 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
11283 ;;
11284 esac
11285 fi
11286 fi
11287 if test "x$MCOOKIE" != x ; then
11288 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
11290 $as_echo "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
11291 fi
11292
11293
11294 # Additional substitutions in startx, xinitrc & man pages
11295 SHELL_CMD="/bin/sh"
11296 XSERVERNAME="Xorg"
11297 XCONFIGFILE="xorg.conf"
11298 XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
11299 case $host_os in
11300 cygwin*)
11301 XSERVERNAME="XWin"
11302 XCONFIGFILE="XWinrc"
11303 ;;
11304 darwin*)
11305 XSERVERNAME="Xquartz"
11306 XCONFIGFILE="defaults"
11307 XCONFIGFILEMAN='defaults (1)'
11308 ;;
11309 *solaris*)
11310 SHELL_CMD="/bin/ksh"
11311 ;;
11312 *sco*)
11313 SHELL_CMD="/bin/ksh"
11314 SCOMAN=1
11315 ;;
11316 esac
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333 ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
11334
11335 cat >confcache <<\_ACEOF
11336 # This file is a shell script that caches the results of configure
11337 # tests run on this system so they can be shared between configure
11338 # scripts and configure runs, see configure's option --config-cache.
11339 # It is not useful on other systems. If it contains results you don't
11340 # want to keep, you may remove or edit it.
11341 #
11342 # config.status only pays attention to the cache file if you give it
11343 # the --recheck option to rerun configure.
11344 #
11345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11347 # following values.
11348
11349 _ACEOF
11350
11351 # The following way of writing the cache mishandles newlines in values,
11352 # but we know of no workaround that is simple, portable, and efficient.
11353 # So, we kill variables containing newlines.
11354 # Ultrix sh set writes to stderr and can't be redirected directly,
11355 # and sets the high bit in the cache file unless we assign to the vars.
11356 (
11357 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11358 eval ac_val=\$$ac_var
11359 case $ac_val in #(
11360 *${as_nl}*)
11361 case $ac_var in #(
11362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11364 esac
11365 case $ac_var in #(
11366 _ | IFS | as_nl) ;; #(
11367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11368 *) { eval $ac_var=; unset $ac_var;} ;;
11369 esac ;;
11370 esac
11371 done
11372
11373 (set) 2>&1 |
11374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11375 *${as_nl}ac_space=\ *)
11376 # `set' does not quote correctly, so add quotes: double-quote
11377 # substitution turns \\\\ into \\, and sed turns \\ into \.
11378 sed -n \
11379 "s/'/'\\\\''/g;
11380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11381 ;; #(
11382 *)
11383 # `set' quotes correctly as required by POSIX, so do not add quotes.
11384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11385 ;;
11386 esac |
11387 sort
11388 ) |
11389 sed '
11390 /^ac_cv_env_/b end
11391 t clear
11392 :clear
11393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11394 t end
11395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11396 :end' >>confcache
11397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11398 if test -w "$cache_file"; then
11399 if test "x$cache_file" != "x/dev/null"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11401 $as_echo "$as_me: updating cache $cache_file" >&6;}
11402 if test ! -f "$cache_file" || test -h "$cache_file"; then
11403 cat confcache >"$cache_file"
11404 else
11405 case $cache_file in #(
11406 */* | ?:*)
11407 mv -f confcache "$cache_file"$$ &&
11408 mv -f "$cache_file"$$ "$cache_file" ;; #(
11409 *)
11410 mv -f confcache "$cache_file" ;;
11411 esac
11412 fi
11413 fi
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11417 fi
11418 fi
11419 rm -f confcache
11420
11421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11422 # Let make expand exec_prefix.
11423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11424
11425 DEFS=-DHAVE_CONFIG_H
11426
11427 ac_libobjs=
11428 ac_ltlibobjs=
11429 U=
11430 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11431 # 1. Remove the extension, and $U if already installed.
11432 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11433 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11434 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11435 # will be set to the directory where LIBOBJS objects are built.
11436 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11437 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11438 done
11439 LIBOBJS=$ac_libobjs
11440
11441 LTLIBOBJS=$ac_ltlibobjs
11442
11443
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11445 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11446 if test -n "$am_sleep_pid"; then
11447 # Hide warnings about reused PIDs.
11448 wait $am_sleep_pid 2>/dev/null
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11451 $as_echo "done" >&6; }
11452 if test -n "$EXEEXT"; then
11453 am__EXEEXT_TRUE=
11454 am__EXEEXT_FALSE='#'
11455 else
11456 am__EXEEXT_TRUE='#'
11457 am__EXEEXT_FALSE=
11458 fi
11459
11460 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11461 as_fn_error $? "conditional \"AMDEP\" was never defined.
11462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11463 fi
11464 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11465 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11467 fi
11468 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
11469 as_fn_error $? "conditional \"LAUNCHD\" was never defined.
11470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11471 fi
11472 if test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then
11473 as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined.
11474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11475 fi
11476 if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
11477 as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
11478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11479 fi
11480
11481 : "${CONFIG_STATUS=./config.status}"
11482 ac_write_fail=0
11483 ac_clean_files_save=$ac_clean_files
11484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11487 as_write_fail=0
11488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11489 #! $SHELL
11490 # Generated by $as_me.
11491 # Run this file to recreate the current configuration.
11492 # Compiler output produced by configure, useful for debugging
11493 # configure, is in config.log if it exists.
11494
11495 debug=false
11496 ac_cs_recheck=false
11497 ac_cs_silent=false
11498
11499 SHELL=\${CONFIG_SHELL-$SHELL}
11500 export SHELL
11501 _ASEOF
11502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11503 ## -------------------- ##
11504 ## M4sh Initialization. ##
11505 ## -------------------- ##
11506
11507 # Be more Bourne compatible
11508 DUALCASE=1; export DUALCASE # for MKS sh
11509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11510 emulate sh
11511 NULLCMD=:
11512 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11513 # is contrary to our usage. Disable this feature.
11514 alias -g '${1+"$@"}'='"$@"'
11515 setopt NO_GLOB_SUBST
11516 else
11517 case `(set -o) 2>/dev/null` in #(
11518 *posix*) :
11519 set -o posix ;; #(
11520 *) :
11521 ;;
11522 esac
11523 fi
11524
11525
11526 as_nl='
11527 '
11528 export as_nl
11529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11530 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11533 # Prefer a ksh shell builtin over an external printf program on Solaris,
11534 # but without wasting forks for bash or zsh.
11535 if test -z "$BASH_VERSION$ZSH_VERSION" \
11536 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11537 as_echo='print -r --'
11538 as_echo_n='print -rn --'
11539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11540 as_echo='printf %s\n'
11541 as_echo_n='printf %s'
11542 else
11543 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11544 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11545 as_echo_n='/usr/ucb/echo -n'
11546 else
11547 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11548 as_echo_n_body='eval
11549 arg=$1;
11550 case $arg in #(
11551 *"$as_nl"*)
11552 expr "X$arg" : "X\\(.*\\)$as_nl";
11553 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11554 esac;
11555 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11556 '
11557 export as_echo_n_body
11558 as_echo_n='sh -c $as_echo_n_body as_echo'
11559 fi
11560 export as_echo_body
11561 as_echo='sh -c $as_echo_body as_echo'
11562 fi
11563
11564 # The user is always right.
11565 if test "${PATH_SEPARATOR+set}" != set; then
11566 PATH_SEPARATOR=:
11567 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11568 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11569 PATH_SEPARATOR=';'
11570 }
11571 fi
11572
11573
11574 # IFS
11575 # We need space, tab and new line, in precisely that order. Quoting is
11576 # there to prevent editors from complaining about space-tab.
11577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11578 # splitting by setting IFS to empty value.)
11579 IFS=" "" $as_nl"
11580
11581 # Find who we are. Look in the path if we contain no directory separator.
11582 as_myself=
11583 case $0 in #((
11584 *[\\/]* ) as_myself=$0 ;;
11585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11587 do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11591 done
11592 IFS=$as_save_IFS
11593
11594 ;;
11595 esac
11596 # We did not find ourselves, most probably we were run as `sh COMMAND'
11597 # in which case we are not to be found in the path.
11598 if test "x$as_myself" = x; then
11599 as_myself=$0
11600 fi
11601 if test ! -f "$as_myself"; then
11602 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11603 exit 1
11604 fi
11605
11606 # Unset variables that we do not need and which cause bugs (e.g. in
11607 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11608 # suppresses any "Segmentation fault" message there. '((' could
11609 # trigger a bug in pdksh 5.2.14.
11610 for as_var in BASH_ENV ENV MAIL MAILPATH
11611 do eval test x\${$as_var+set} = xset \
11612 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11613 done
11614 PS1='$ '
11615 PS2='> '
11616 PS4='+ '
11617
11618 # NLS nuisances.
11619 LC_ALL=C
11620 export LC_ALL
11621 LANGUAGE=C
11622 export LANGUAGE
11623
11624 # CDPATH.
11625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11626
11627
11628 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11629 # ----------------------------------------
11630 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11631 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11632 # script with STATUS, using 1 if that was 0.
11633 as_fn_error ()
11634 {
11635 as_status=$1; test $as_status -eq 0 && as_status=1
11636 if test "$4"; then
11637 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11638 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11639 fi
11640 $as_echo "$as_me: error: $2" >&2
11641 as_fn_exit $as_status
11642 } # as_fn_error
11643
11644
11645 # as_fn_set_status STATUS
11646 # -----------------------
11647 # Set $? to STATUS, without forking.
11648 as_fn_set_status ()
11649 {
11650 return $1
11651 } # as_fn_set_status
11652
11653 # as_fn_exit STATUS
11654 # -----------------
11655 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11656 as_fn_exit ()
11657 {
11658 set +e
11659 as_fn_set_status $1
11660 exit $1
11661 } # as_fn_exit
11662
11663 # as_fn_unset VAR
11664 # ---------------
11665 # Portably unset VAR.
11666 as_fn_unset ()
11667 {
11668 { eval $1=; unset $1;}
11669 }
11670 as_unset=as_fn_unset
11671 # as_fn_append VAR VALUE
11672 # ----------------------
11673 # Append the text in VALUE to the end of the definition contained in VAR. Take
11674 # advantage of any shell optimizations that allow amortized linear growth over
11675 # repeated appends, instead of the typical quadratic growth present in naive
11676 # implementations.
11677 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11678 eval 'as_fn_append ()
11679 {
11680 eval $1+=\$2
11681 }'
11682 else
11683 as_fn_append ()
11684 {
11685 eval $1=\$$1\$2
11686 }
11687 fi # as_fn_append
11688
11689 # as_fn_arith ARG...
11690 # ------------------
11691 # Perform arithmetic evaluation on the ARGs, and store the result in the
11692 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11693 # must be portable across $(()) and expr.
11694 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11695 eval 'as_fn_arith ()
11696 {
11697 as_val=$(( $* ))
11698 }'
11699 else
11700 as_fn_arith ()
11701 {
11702 as_val=`expr "$@" || test $? -eq 1`
11703 }
11704 fi # as_fn_arith
11705
11706
11707 if expr a : '\(a\)' >/dev/null 2>&1 &&
11708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11709 as_expr=expr
11710 else
11711 as_expr=false
11712 fi
11713
11714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11715 as_basename=basename
11716 else
11717 as_basename=false
11718 fi
11719
11720 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11721 as_dirname=dirname
11722 else
11723 as_dirname=false
11724 fi
11725
11726 as_me=`$as_basename -- "$0" ||
11727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11728 X"$0" : 'X\(//\)$' \| \
11729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11730 $as_echo X/"$0" |
11731 sed '/^.*\/\([^/][^/]*\)\/*$/{
11732 s//\1/
11733 q
11734 }
11735 /^X\/\(\/\/\)$/{
11736 s//\1/
11737 q
11738 }
11739 /^X\/\(\/\).*/{
11740 s//\1/
11741 q
11742 }
11743 s/.*/./; q'`
11744
11745 # Avoid depending upon Character Ranges.
11746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11749 as_cr_digits='0123456789'
11750 as_cr_alnum=$as_cr_Letters$as_cr_digits
11751
11752 ECHO_C= ECHO_N= ECHO_T=
11753 case `echo -n x` in #(((((
11754 -n*)
11755 case `echo 'xy\c'` in
11756 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11757 xy) ECHO_C='\c';;
11758 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11759 ECHO_T=' ';;
11760 esac;;
11761 *)
11762 ECHO_N='-n';;
11763 esac
11764
11765 rm -f conf$$ conf$$.exe conf$$.file
11766 if test -d conf$$.dir; then
11767 rm -f conf$$.dir/conf$$.file
11768 else
11769 rm -f conf$$.dir
11770 mkdir conf$$.dir 2>/dev/null
11771 fi
11772 if (echo >conf$$.file) 2>/dev/null; then
11773 if ln -s conf$$.file conf$$ 2>/dev/null; then
11774 as_ln_s='ln -s'
11775 # ... but there are two gotchas:
11776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11778 # In both cases, we have to default to `cp -pR'.
11779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11780 as_ln_s='cp -pR'
11781 elif ln conf$$.file conf$$ 2>/dev/null; then
11782 as_ln_s=ln
11783 else
11784 as_ln_s='cp -pR'
11785 fi
11786 else
11787 as_ln_s='cp -pR'
11788 fi
11789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11790 rmdir conf$$.dir 2>/dev/null
11791
11792
11793 # as_fn_mkdir_p
11794 # -------------
11795 # Create "$as_dir" as a directory, including parents if necessary.
11796 as_fn_mkdir_p ()
11797 {
11798
11799 case $as_dir in #(
11800 -*) as_dir=./$as_dir;;
11801 esac
11802 test -d "$as_dir" || eval $as_mkdir_p || {
11803 as_dirs=
11804 while :; do
11805 case $as_dir in #(
11806 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11807 *) as_qdir=$as_dir;;
11808 esac
11809 as_dirs="'$as_qdir' $as_dirs"
11810 as_dir=`$as_dirname -- "$as_dir" ||
11811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11812 X"$as_dir" : 'X\(//\)[^/]' \| \
11813 X"$as_dir" : 'X\(//\)$' \| \
11814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11815 $as_echo X"$as_dir" |
11816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11817 s//\1/
11818 q
11819 }
11820 /^X\(\/\/\)[^/].*/{
11821 s//\1/
11822 q
11823 }
11824 /^X\(\/\/\)$/{
11825 s//\1/
11826 q
11827 }
11828 /^X\(\/\).*/{
11829 s//\1/
11830 q
11831 }
11832 s/.*/./; q'`
11833 test -d "$as_dir" && break
11834 done
11835 test -z "$as_dirs" || eval "mkdir $as_dirs"
11836 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11837
11838
11839 } # as_fn_mkdir_p
11840 if mkdir -p . 2>/dev/null; then
11841 as_mkdir_p='mkdir -p "$as_dir"'
11842 else
11843 test -d ./-p && rmdir ./-p
11844 as_mkdir_p=false
11845 fi
11846
11847
11848 # as_fn_executable_p FILE
11849 # -----------------------
11850 # Test if FILE is an executable regular file.
11851 as_fn_executable_p ()
11852 {
11853 test -f "$1" && test -x "$1"
11854 } # as_fn_executable_p
11855 as_test_x='test -x'
11856 as_executable_p=as_fn_executable_p
11857
11858 # Sed expression to map a string onto a valid CPP name.
11859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11860
11861 # Sed expression to map a string onto a valid variable name.
11862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11863
11864
11865 exec 6>&1
11866 ## ----------------------------------- ##
11867 ## Main body of $CONFIG_STATUS script. ##
11868 ## ----------------------------------- ##
11869 _ASEOF
11870 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11871
11872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11873 # Save the log message, to keep $0 and so on meaningful, and to
11874 # report actual input values of CONFIG_FILES etc. instead of their
11875 # values after options handling.
11876 ac_log="
11877 This file was extended by xinit $as_me 1.3.4, which was
11878 generated by GNU Autoconf 2.69. Invocation command line was
11879
11880 CONFIG_FILES = $CONFIG_FILES
11881 CONFIG_HEADERS = $CONFIG_HEADERS
11882 CONFIG_LINKS = $CONFIG_LINKS
11883 CONFIG_COMMANDS = $CONFIG_COMMANDS
11884 $ $0 $@
11885
11886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11887 "
11888
11889 _ACEOF
11890
11891 case $ac_config_files in *"
11892 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11893 esac
11894
11895 case $ac_config_headers in *"
11896 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11897 esac
11898
11899
11900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11901 # Files that config.status was made for.
11902 config_files="$ac_config_files"
11903 config_headers="$ac_config_headers"
11904 config_commands="$ac_config_commands"
11905
11906 _ACEOF
11907
11908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11909 ac_cs_usage="\
11910 \`$as_me' instantiates files and other configuration actions
11911 from templates according to the current configuration. Unless the files
11912 and actions are specified as TAGs, all are instantiated by default.
11913
11914 Usage: $0 [OPTION]... [TAG]...
11915
11916 -h, --help print this help, then exit
11917 -V, --version print version number and configuration settings, then exit
11918 --config print configuration, then exit
11919 -q, --quiet, --silent
11920 do not print progress messages
11921 -d, --debug don't remove temporary files
11922 --recheck update $as_me by reconfiguring in the same conditions
11923 --file=FILE[:TEMPLATE]
11924 instantiate the configuration file FILE
11925 --header=FILE[:TEMPLATE]
11926 instantiate the configuration header FILE
11927
11928 Configuration files:
11929 $config_files
11930
11931 Configuration headers:
11932 $config_headers
11933
11934 Configuration commands:
11935 $config_commands
11936
11937 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11938
11939 _ACEOF
11940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11942 ac_cs_version="\\
11943 xinit config.status 1.3.4
11944 configured by $0, generated by GNU Autoconf 2.69,
11945 with options \\"\$ac_cs_config\\"
11946
11947 Copyright (C) 2012 Free Software Foundation, Inc.
11948 This config.status script is free software; the Free Software Foundation
11949 gives unlimited permission to copy, distribute and modify it."
11950
11951 ac_pwd='$ac_pwd'
11952 srcdir='$srcdir'
11953 INSTALL='$INSTALL'
11954 MKDIR_P='$MKDIR_P'
11955 AWK='$AWK'
11956 test -n "\$AWK" || AWK=awk
11957 _ACEOF
11958
11959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11960 # The default lists apply if the user does not specify any file.
11961 ac_need_defaults=:
11962 while test $# != 0
11963 do
11964 case $1 in
11965 --*=?*)
11966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11968 ac_shift=:
11969 ;;
11970 --*=)
11971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11972 ac_optarg=
11973 ac_shift=:
11974 ;;
11975 *)
11976 ac_option=$1
11977 ac_optarg=$2
11978 ac_shift=shift
11979 ;;
11980 esac
11981
11982 case $ac_option in
11983 # Handling of the options.
11984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11985 ac_cs_recheck=: ;;
11986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11987 $as_echo "$ac_cs_version"; exit ;;
11988 --config | --confi | --conf | --con | --co | --c )
11989 $as_echo "$ac_cs_config"; exit ;;
11990 --debug | --debu | --deb | --de | --d | -d )
11991 debug=: ;;
11992 --file | --fil | --fi | --f )
11993 $ac_shift
11994 case $ac_optarg in
11995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11996 '') as_fn_error $? "missing file argument" ;;
11997 esac
11998 as_fn_append CONFIG_FILES " '$ac_optarg'"
11999 ac_need_defaults=false;;
12000 --header | --heade | --head | --hea )
12001 $ac_shift
12002 case $ac_optarg in
12003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12004 esac
12005 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12006 ac_need_defaults=false;;
12007 --he | --h)
12008 # Conflict between --help and --header
12009 as_fn_error $? "ambiguous option: \`$1'
12010 Try \`$0 --help' for more information.";;
12011 --help | --hel | -h )
12012 $as_echo "$ac_cs_usage"; exit ;;
12013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12015 ac_cs_silent=: ;;
12016
12017 # This is an error.
12018 -*) as_fn_error $? "unrecognized option: \`$1'
12019 Try \`$0 --help' for more information." ;;
12020
12021 *) as_fn_append ac_config_targets " $1"
12022 ac_need_defaults=false ;;
12023
12024 esac
12025 shift
12026 done
12027
12028 ac_configure_extra_args=
12029
12030 if $ac_cs_silent; then
12031 exec 6>/dev/null
12032 ac_configure_extra_args="$ac_configure_extra_args --silent"
12033 fi
12034
12035 _ACEOF
12036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12037 if \$ac_cs_recheck; then
12038 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12039 shift
12040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12041 CONFIG_SHELL='$SHELL'
12042 export CONFIG_SHELL
12043 exec "\$@"
12044 fi
12045
12046 _ACEOF
12047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048 exec 5>>config.log
12049 {
12050 echo
12051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12052 ## Running $as_me. ##
12053 _ASBOX
12054 $as_echo "$ac_log"
12055 } >&5
12056
12057 _ACEOF
12058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059 #
12060 # INIT-COMMANDS
12061 #
12062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12063
12064 _ACEOF
12065
12066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12067
12068 # Handling of arguments.
12069 for ac_config_target in $ac_config_targets
12070 do
12071 case $ac_config_target in
12072 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12073 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12074 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12075 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12076 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12077 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12078 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12079
12080 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12081 esac
12082 done
12083
12084
12085 # If the user did not use the arguments to specify the items to instantiate,
12086 # then the envvar interface is used. Set only those that are not.
12087 # We use the long form for the default assignment because of an extremely
12088 # bizarre bug on SunOS 4.1.3.
12089 if $ac_need_defaults; then
12090 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12091 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12092 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12093 fi
12094
12095 # Have a temporary directory for convenience. Make it in the build tree
12096 # simply because there is no reason against having it here, and in addition,
12097 # creating and moving files from /tmp can sometimes cause problems.
12098 # Hook for its removal unless debugging.
12099 # Note that there is a small window in which the directory will not be cleaned:
12100 # after its creation but before its name has been assigned to `$tmp'.
12101 $debug ||
12102 {
12103 tmp= ac_tmp=
12104 trap 'exit_status=$?
12105 : "${ac_tmp:=$tmp}"
12106 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12107 ' 0
12108 trap 'as_fn_exit 1' 1 2 13 15
12109 }
12110 # Create a (secure) tmp directory for tmp files.
12111
12112 {
12113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12114 test -d "$tmp"
12115 } ||
12116 {
12117 tmp=./conf$$-$RANDOM
12118 (umask 077 && mkdir "$tmp")
12119 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12120 ac_tmp=$tmp
12121
12122 # Set up the scripts for CONFIG_FILES section.
12123 # No need to generate them if there are no CONFIG_FILES.
12124 # This happens for instance with `./config.status config.h'.
12125 if test -n "$CONFIG_FILES"; then
12126
12127
12128 ac_cr=`echo X | tr X '\015'`
12129 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12130 # But we know of no other shell where ac_cr would be empty at this
12131 # point, so we can use a bashism as a fallback.
12132 if test "x$ac_cr" = x; then
12133 eval ac_cr=\$\'\\r\'
12134 fi
12135 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12136 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12137 ac_cs_awk_cr='\\r'
12138 else
12139 ac_cs_awk_cr=$ac_cr
12140 fi
12141
12142 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12143 _ACEOF
12144
12145
12146 {
12147 echo "cat >conf$$subs.awk <<_ACEOF" &&
12148 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12149 echo "_ACEOF"
12150 } >conf$$subs.sh ||
12151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12152 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12153 ac_delim='%!_!# '
12154 for ac_last_try in false false false false false :; do
12155 . ./conf$$subs.sh ||
12156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12157
12158 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12159 if test $ac_delim_n = $ac_delim_num; then
12160 break
12161 elif $ac_last_try; then
12162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12163 else
12164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12165 fi
12166 done
12167 rm -f conf$$subs.sh
12168
12169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12170 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12171 _ACEOF
12172 sed -n '
12173 h
12174 s/^/S["/; s/!.*/"]=/
12175 p
12176 g
12177 s/^[^!]*!//
12178 :repl
12179 t repl
12180 s/'"$ac_delim"'$//
12181 t delim
12182 :nl
12183 h
12184 s/\(.\{148\}\)..*/\1/
12185 t more1
12186 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12187 p
12188 n
12189 b repl
12190 :more1
12191 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12192 p
12193 g
12194 s/.\{148\}//
12195 t nl
12196 :delim
12197 h
12198 s/\(.\{148\}\)..*/\1/
12199 t more2
12200 s/["\\]/\\&/g; s/^/"/; s/$/"/
12201 p
12202 b
12203 :more2
12204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12205 p
12206 g
12207 s/.\{148\}//
12208 t delim
12209 ' <conf$$subs.awk | sed '
12210 /^[^""]/{
12211 N
12212 s/\n//
12213 }
12214 ' >>$CONFIG_STATUS || ac_write_fail=1
12215 rm -f conf$$subs.awk
12216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12217 _ACAWK
12218 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12219 for (key in S) S_is_set[key] = 1
12220 FS = ""
12221
12222 }
12223 {
12224 line = $ 0
12225 nfields = split(line, field, "@")
12226 substed = 0
12227 len = length(field[1])
12228 for (i = 2; i < nfields; i++) {
12229 key = field[i]
12230 keylen = length(key)
12231 if (S_is_set[key]) {
12232 value = S[key]
12233 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12234 len += length(value) + length(field[++i])
12235 substed = 1
12236 } else
12237 len += 1 + keylen
12238 }
12239
12240 print line
12241 }
12242
12243 _ACAWK
12244 _ACEOF
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12247 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12248 else
12249 cat
12250 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12251 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12252 _ACEOF
12253
12254 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12255 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12256 # trailing colons and then remove the whole line if VPATH becomes empty
12257 # (actually we leave an empty line to preserve line numbers).
12258 if test "x$srcdir" = x.; then
12259 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12260 h
12261 s///
12262 s/^/:/
12263 s/[ ]*$/:/
12264 s/:\$(srcdir):/:/g
12265 s/:\${srcdir}:/:/g
12266 s/:@srcdir@:/:/g
12267 s/^:*//
12268 s/:*$//
12269 x
12270 s/\(=[ ]*\).*/\1/
12271 G
12272 s/\n//
12273 s/^[^=]*=[ ]*$//
12274 }'
12275 fi
12276
12277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12278 fi # test -n "$CONFIG_FILES"
12279
12280 # Set up the scripts for CONFIG_HEADERS section.
12281 # No need to generate them if there are no CONFIG_HEADERS.
12282 # This happens for instance with `./config.status Makefile'.
12283 if test -n "$CONFIG_HEADERS"; then
12284 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12285 BEGIN {
12286 _ACEOF
12287
12288 # Transform confdefs.h into an awk script `defines.awk', embedded as
12289 # here-document in config.status, that substitutes the proper values into
12290 # config.h.in to produce config.h.
12291
12292 # Create a delimiter string that does not exist in confdefs.h, to ease
12293 # handling of long lines.
12294 ac_delim='%!_!# '
12295 for ac_last_try in false false :; do
12296 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12297 if test -z "$ac_tt"; then
12298 break
12299 elif $ac_last_try; then
12300 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12301 else
12302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12303 fi
12304 done
12305
12306 # For the awk script, D is an array of macro values keyed by name,
12307 # likewise P contains macro parameters if any. Preserve backslash
12308 # newline sequences.
12309
12310 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12311 sed -n '
12312 s/.\{148\}/&'"$ac_delim"'/g
12313 t rset
12314 :rset
12315 s/^[ ]*#[ ]*define[ ][ ]*/ /
12316 t def
12317 d
12318 :def
12319 s/\\$//
12320 t bsnl
12321 s/["\\]/\\&/g
12322 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12323 D["\1"]=" \3"/p
12324 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12325 d
12326 :bsnl
12327 s/["\\]/\\&/g
12328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12329 D["\1"]=" \3\\\\\\n"\\/p
12330 t cont
12331 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12332 t cont
12333 d
12334 :cont
12335 n
12336 s/.\{148\}/&'"$ac_delim"'/g
12337 t clear
12338 :clear
12339 s/\\$//
12340 t bsnlc
12341 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12342 d
12343 :bsnlc
12344 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12345 b cont
12346 ' <confdefs.h | sed '
12347 s/'"$ac_delim"'/"\\\
12348 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12349
12350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12351 for (key in D) D_is_set[key] = 1
12352 FS = ""
12353 }
12354 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12355 line = \$ 0
12356 split(line, arg, " ")
12357 if (arg[1] == "#") {
12358 defundef = arg[2]
12359 mac1 = arg[3]
12360 } else {
12361 defundef = substr(arg[1], 2)
12362 mac1 = arg[2]
12363 }
12364 split(mac1, mac2, "(") #)
12365 macro = mac2[1]
12366 prefix = substr(line, 1, index(line, defundef) - 1)
12367 if (D_is_set[macro]) {
12368 # Preserve the white space surrounding the "#".
12369 print prefix "define", macro P[macro] D[macro]
12370 next
12371 } else {
12372 # Replace #undef with comments. This is necessary, for example,
12373 # in the case of _POSIX_SOURCE, which is predefined and required
12374 # on some systems where configure will not decide to define it.
12375 if (defundef == "undef") {
12376 print "/*", prefix defundef, macro, "*/"
12377 next
12378 }
12379 }
12380 }
12381 { print }
12382 _ACAWK
12383 _ACEOF
12384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12386 fi # test -n "$CONFIG_HEADERS"
12387
12388
12389 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12390 shift
12391 for ac_tag
12392 do
12393 case $ac_tag in
12394 :[FHLC]) ac_mode=$ac_tag; continue;;
12395 esac
12396 case $ac_mode$ac_tag in
12397 :[FHL]*:*);;
12398 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12399 :[FH]-) ac_tag=-:-;;
12400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12401 esac
12402 ac_save_IFS=$IFS
12403 IFS=:
12404 set x $ac_tag
12405 IFS=$ac_save_IFS
12406 shift
12407 ac_file=$1
12408 shift
12409
12410 case $ac_mode in
12411 :L) ac_source=$1;;
12412 :[FH])
12413 ac_file_inputs=
12414 for ac_f
12415 do
12416 case $ac_f in
12417 -) ac_f="$ac_tmp/stdin";;
12418 *) # Look for the file first in the build tree, then in the source tree
12419 # (if the path is not absolute). The absolute path cannot be DOS-style,
12420 # because $ac_f cannot contain `:'.
12421 test -f "$ac_f" ||
12422 case $ac_f in
12423 [\\/$]*) false;;
12424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12425 esac ||
12426 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12427 esac
12428 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12429 as_fn_append ac_file_inputs " '$ac_f'"
12430 done
12431
12432 # Let's still pretend it is `configure' which instantiates (i.e., don't
12433 # use $as_me), people would be surprised to read:
12434 # /* config.h. Generated by config.status. */
12435 configure_input='Generated from '`
12436 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12437 `' by configure.'
12438 if test x"$ac_file" != x-; then
12439 configure_input="$ac_file. $configure_input"
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12441 $as_echo "$as_me: creating $ac_file" >&6;}
12442 fi
12443 # Neutralize special characters interpreted by sed in replacement strings.
12444 case $configure_input in #(
12445 *\&* | *\|* | *\\* )
12446 ac_sed_conf_input=`$as_echo "$configure_input" |
12447 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12448 *) ac_sed_conf_input=$configure_input;;
12449 esac
12450
12451 case $ac_tag in
12452 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12454 esac
12455 ;;
12456 esac
12457
12458 ac_dir=`$as_dirname -- "$ac_file" ||
12459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460 X"$ac_file" : 'X\(//\)[^/]' \| \
12461 X"$ac_file" : 'X\(//\)$' \| \
12462 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12463 $as_echo X"$ac_file" |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465 s//\1/
12466 q
12467 }
12468 /^X\(\/\/\)[^/].*/{
12469 s//\1/
12470 q
12471 }
12472 /^X\(\/\/\)$/{
12473 s//\1/
12474 q
12475 }
12476 /^X\(\/\).*/{
12477 s//\1/
12478 q
12479 }
12480 s/.*/./; q'`
12481 as_dir="$ac_dir"; as_fn_mkdir_p
12482 ac_builddir=.
12483
12484 case "$ac_dir" in
12485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12486 *)
12487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12488 # A ".." for each directory in $ac_dir_suffix.
12489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12490 case $ac_top_builddir_sub in
12491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12493 esac ;;
12494 esac
12495 ac_abs_top_builddir=$ac_pwd
12496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12497 # for backward compatibility:
12498 ac_top_builddir=$ac_top_build_prefix
12499
12500 case $srcdir in
12501 .) # We are building in place.
12502 ac_srcdir=.
12503 ac_top_srcdir=$ac_top_builddir_sub
12504 ac_abs_top_srcdir=$ac_pwd ;;
12505 [\\/]* | ?:[\\/]* ) # Absolute name.
12506 ac_srcdir=$srcdir$ac_dir_suffix;
12507 ac_top_srcdir=$srcdir
12508 ac_abs_top_srcdir=$srcdir ;;
12509 *) # Relative name.
12510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12511 ac_top_srcdir=$ac_top_build_prefix$srcdir
12512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12513 esac
12514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12515
12516
12517 case $ac_mode in
12518 :F)
12519 #
12520 # CONFIG_FILE
12521 #
12522
12523 case $INSTALL in
12524 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12525 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12526 esac
12527 ac_MKDIR_P=$MKDIR_P
12528 case $MKDIR_P in
12529 [\\/$]* | ?:[\\/]* ) ;;
12530 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12531 esac
12532 _ACEOF
12533
12534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535 # If the template does not know about datarootdir, expand it.
12536 # FIXME: This hack should be removed a few years after 2.60.
12537 ac_datarootdir_hack=; ac_datarootdir_seen=
12538 ac_sed_dataroot='
12539 /datarootdir/ {
12540 p
12541 q
12542 }
12543 /@datadir@/p
12544 /@docdir@/p
12545 /@infodir@/p
12546 /@localedir@/p
12547 /@mandir@/p'
12548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12549 *datarootdir*) ac_datarootdir_seen=yes;;
12550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12553 _ACEOF
12554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555 ac_datarootdir_hack='
12556 s&@datadir@&$datadir&g
12557 s&@docdir@&$docdir&g
12558 s&@infodir@&$infodir&g
12559 s&@localedir@&$localedir&g
12560 s&@mandir@&$mandir&g
12561 s&\\\${datarootdir}&$datarootdir&g' ;;
12562 esac
12563 _ACEOF
12564
12565 # Neutralize VPATH when `$srcdir' = `.'.
12566 # Shell code in configure.ac might set extrasub.
12567 # FIXME: do we really want to maintain this feature?
12568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569 ac_sed_extra="$ac_vpsub
12570 $extrasub
12571 _ACEOF
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573 :t
12574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12575 s|@configure_input@|$ac_sed_conf_input|;t t
12576 s&@top_builddir@&$ac_top_builddir_sub&;t t
12577 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12578 s&@srcdir@&$ac_srcdir&;t t
12579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12580 s&@top_srcdir@&$ac_top_srcdir&;t t
12581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12582 s&@builddir@&$ac_builddir&;t t
12583 s&@abs_builddir@&$ac_abs_builddir&;t t
12584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12585 s&@INSTALL@&$ac_INSTALL&;t t
12586 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12587 $ac_datarootdir_hack
12588 "
12589 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12590 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591
12592 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12593 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12595 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12597 which seems to be undefined. Please make sure it is defined" >&5
12598 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12599 which seems to be undefined. Please make sure it is defined" >&2;}
12600
12601 rm -f "$ac_tmp/stdin"
12602 case $ac_file in
12603 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12604 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12605 esac \
12606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12607 ;;
12608 :H)
12609 #
12610 # CONFIG_HEADER
12611 #
12612 if test x"$ac_file" != x-; then
12613 {
12614 $as_echo "/* $configure_input */" \
12615 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12616 } >"$ac_tmp/config.h" \
12617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12618 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12620 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12621 else
12622 rm -f "$ac_file"
12623 mv "$ac_tmp/config.h" "$ac_file" \
12624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12625 fi
12626 else
12627 $as_echo "/* $configure_input */" \
12628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12629 || as_fn_error $? "could not create -" "$LINENO" 5
12630 fi
12631 # Compute "$ac_file"'s index in $config_headers.
12632 _am_arg="$ac_file"
12633 _am_stamp_count=1
12634 for _am_header in $config_headers :; do
12635 case $_am_header in
12636 $_am_arg | $_am_arg:* )
12637 break ;;
12638 * )
12639 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12640 esac
12641 done
12642 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12643 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12644 X"$_am_arg" : 'X\(//\)[^/]' \| \
12645 X"$_am_arg" : 'X\(//\)$' \| \
12646 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12647 $as_echo X"$_am_arg" |
12648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12649 s//\1/
12650 q
12651 }
12652 /^X\(\/\/\)[^/].*/{
12653 s//\1/
12654 q
12655 }
12656 /^X\(\/\/\)$/{
12657 s//\1/
12658 q
12659 }
12660 /^X\(\/\).*/{
12661 s//\1/
12662 q
12663 }
12664 s/.*/./; q'`/stamp-h$_am_stamp_count
12665 ;;
12666
12667 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12668 $as_echo "$as_me: executing $ac_file commands" >&6;}
12669 ;;
12670 esac
12671
12672
12673 case $ac_file$ac_mode in
12674 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12675 # Older Autoconf quotes --file arguments for eval, but not when files
12676 # are listed without --file. Let's play safe and only enable the eval
12677 # if we detect the quoting.
12678 case $CONFIG_FILES in
12679 *\'*) eval set x "$CONFIG_FILES" ;;
12680 *) set x $CONFIG_FILES ;;
12681 esac
12682 shift
12683 for mf
12684 do
12685 # Strip MF so we end up with the name of the file.
12686 mf=`echo "$mf" | sed -e 's/:.*$//'`
12687 # Check whether this is an Automake generated Makefile or not.
12688 # We used to match only the files named 'Makefile.in', but
12689 # some people rename them; so instead we look at the file content.
12690 # Grep'ing the first line is not enough: some people post-process
12691 # each Makefile.in and add a new line on top of each file to say so.
12692 # Grep'ing the whole file is not good either: AIX grep has a line
12693 # limit of 2048, but all sed's we know have understand at least 4000.
12694 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12695 dirpart=`$as_dirname -- "$mf" ||
12696 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12697 X"$mf" : 'X\(//\)[^/]' \| \
12698 X"$mf" : 'X\(//\)$' \| \
12699 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12700 $as_echo X"$mf" |
12701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12702 s//\1/
12703 q
12704 }
12705 /^X\(\/\/\)[^/].*/{
12706 s//\1/
12707 q
12708 }
12709 /^X\(\/\/\)$/{
12710 s//\1/
12711 q
12712 }
12713 /^X\(\/\).*/{
12714 s//\1/
12715 q
12716 }
12717 s/.*/./; q'`
12718 else
12719 continue
12720 fi
12721 # Extract the definition of DEPDIR, am__include, and am__quote
12722 # from the Makefile without running 'make'.
12723 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12724 test -z "$DEPDIR" && continue
12725 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12726 test -z "$am__include" && continue
12727 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12728 # Find all dependency output files, they are included files with
12729 # $(DEPDIR) in their names. We invoke sed twice because it is the
12730 # simplest approach to changing $(DEPDIR) to its actual value in the
12731 # expansion.
12732 for file in `sed -n "
12733 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12734 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12735 # Make sure the directory exists.
12736 test -f "$dirpart/$file" && continue
12737 fdir=`$as_dirname -- "$file" ||
12738 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12739 X"$file" : 'X\(//\)[^/]' \| \
12740 X"$file" : 'X\(//\)$' \| \
12741 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12742 $as_echo X"$file" |
12743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12744 s//\1/
12745 q
12746 }
12747 /^X\(\/\/\)[^/].*/{
12748 s//\1/
12749 q
12750 }
12751 /^X\(\/\/\)$/{
12752 s//\1/
12753 q
12754 }
12755 /^X\(\/\).*/{
12756 s//\1/
12757 q
12758 }
12759 s/.*/./; q'`
12760 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12761 # echo "creating $dirpart/$file"
12762 echo '# dummy' > "$dirpart/$file"
12763 done
12764 done
12765 }
12766 ;;
12767
12768 esac
12769 done # for ac_tag
12770
12771
12772 as_fn_exit 0
12773 _ACEOF
12774 ac_clean_files=$ac_clean_files_save
12775
12776 test $ac_write_fail = 0 ||
12777 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12778
12779
12780 # configure is writing to config.log, and then calls config.status.
12781 # config.status does its own redirection, appending to config.log.
12782 # Unfortunately, on DOS this fails, as config.log is still kept open
12783 # by configure, so config.status won't be able to write to it; its
12784 # output is simply discarded. So we exec the FD to /dev/null,
12785 # effectively closing config.log, so it can be properly (re)opened and
12786 # appended to by config.status. When coming back to configure, we
12787 # need to make the FD available again.
12788 if test "$no_create" != yes; then
12789 ac_cs_success=:
12790 ac_config_status_args=
12791 test "$silent" = yes &&
12792 ac_config_status_args="$ac_config_status_args --quiet"
12793 exec 5>/dev/null
12794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12795 exec 5>>config.log
12796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12797 # would make configure fail if this is the last instruction.
12798 $ac_cs_success || as_fn_exit 1
12799 fi
12800 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12802 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12803 fi
12804
12805