configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for x11perf 1.6.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='x11perf'
583 PACKAGE_TARNAME='x11perf'
584 PACKAGE_VERSION='1.6.0'
585 PACKAGE_STRING='x11perf 1.6.0'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 XEXT_LIBS
631 XEXT_CFLAGS
632 XFT_LIBS
633 XFT_CFLAGS
634 XRENDER_LIBS
635 XRENDER_CFLAGS
636 X11PERF_LIBS
637 X11PERF_CFLAGS
638 MKTEMP
639 x11perfcompdir
640 MAN_SUBSTS
641 XORG_MAN_PAGE
642 ADMIN_MAN_DIR
643 DRIVER_MAN_DIR
644 MISC_MAN_DIR
645 FILE_MAN_DIR
646 LIB_MAN_DIR
647 APP_MAN_DIR
648 ADMIN_MAN_SUFFIX
649 DRIVER_MAN_SUFFIX
650 MISC_MAN_SUFFIX
651 FILE_MAN_SUFFIX
652 LIB_MAN_SUFFIX
653 APP_MAN_SUFFIX
654 SED
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 INSTALL_CMD
664 PKG_CONFIG
665 CHANGELOG_CMD
666 STRICT_CFLAGS
667 CWARNFLAGS
668 BASE_CFLAGS
669 EGREP
670 GREP
671 CPP
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_selective_werror
760 enable_strict_compilation
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CPP
771 PKG_CONFIG
772 X11PERF_CFLAGS
773 X11PERF_LIBS
774 XRENDER_CFLAGS
775 XRENDER_LIBS
776 XFT_CFLAGS
777 XFT_LIBS
778 XEXT_CFLAGS
779 XEXT_LIBS'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures x11perf 1.6.0 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/x11perf]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of x11perf 1.6.0:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --disable-selective-werror
1405 Turn off selective compiler errors. (default:
1406 enabled)
1407 --enable-strict-compilation
1408 Enable all warnings from compiler and make them
1409 errors (default: disabled)
1410
1411 Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
1416 LIBS libraries to pass to the linker, e.g. -l<library>
1417 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1418 you have headers in a nonstandard directory <include dir>
1419 CPP C preprocessor
1420 PKG_CONFIG path to pkg-config utility
1421 X11PERF_CFLAGS
1422 C compiler flags for X11PERF, overriding pkg-config
1423 X11PERF_LIBS
1424 linker flags for X11PERF, overriding pkg-config
1425 XRENDER_CFLAGS
1426 C compiler flags for XRENDER, overriding pkg-config
1427 XRENDER_LIBS
1428 linker flags for XRENDER, overriding pkg-config
1429 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
1430 XFT_LIBS linker flags for XFT, overriding pkg-config
1431 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1432 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1433
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 x11perf configure 1.6.0
1501 generated by GNU Autoconf 2.69
1502
1503 Copyright (C) 2012 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507 exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1553 # ---------------------------------------------
1554 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1555 # accordingly.
1556 ac_fn_c_check_decl ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 as_decl_name=`echo $2|sed 's/ *(.*//'`
1560 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1562 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1563 if eval \${$3+:} false; then :
1564 $as_echo_n "(cached) " >&6
1565 else
1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567 /* end confdefs.h. */
1568 $4
1569 int
1570 main ()
1571 {
1572 #ifndef $as_decl_name
1573 #ifdef __cplusplus
1574 (void) $as_decl_use;
1575 #else
1576 (void) $as_decl_name;
1577 #endif
1578 #endif
1579
1580 ;
1581 return 0;
1582 }
1583 _ACEOF
1584 if ac_fn_c_try_compile "$LINENO"; then :
1585 eval "$3=yes"
1586 else
1587 eval "$3=no"
1588 fi
1589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590 fi
1591 eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595
1596 } # ac_fn_c_check_decl
1597
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_cpp ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } > conftest.i && {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_cpp
1634
1635 # ac_fn_c_try_run LINENO
1636 # ----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1638 # that executables *can* be run.
1639 ac_fn_c_try_run ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>&5
1650 ac_status=$?
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1653 { { case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_try") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; }; }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: program exited with status $ac_status" >&5
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=$ac_status
1670 fi
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_run
1676
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695 eval "$3=yes"
1696 else
1697 eval "$3=no"
1698 fi
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706 } # ac_fn_c_check_header_compile
1707
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_link
1753
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1770
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1775
1776 #ifdef __STDC__
1777 # include <limits.h>
1778 #else
1779 # include <assert.h>
1780 #endif
1781
1782 #undef $2
1783
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 ();
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1797
1798 int
1799 main ()
1800 {
1801 return $2 ();
1802 ;
1803 return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_func
1820 cat >config.log <<_ACEOF
1821 This file contains any messages produced by compilers while
1822 running configure, to aid debugging if configure makes a mistake.
1823
1824 It was created by x11perf $as_me 1.6.0, which was
1825 generated by GNU Autoconf 2.69. Invocation command line was
1826
1827 $ $0 $@
1828
1829 _ACEOF
1830 exec 5>>config.log
1831 {
1832 cat <<_ASUNAME
1833 ## --------- ##
1834 ## Platform. ##
1835 ## --------- ##
1836
1837 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1838 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1839 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1840 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1841 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1842
1843 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1844 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1845
1846 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1847 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1848 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1849 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1850 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1851 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1852 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1853
1854 _ASUNAME
1855
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 $as_echo "PATH: $as_dir"
1862 done
1863 IFS=$as_save_IFS
1864
1865 } >&5
1866
1867 cat >&5 <<_ACEOF
1868
1869
1870 ## ----------- ##
1871 ## Core tests. ##
1872 ## ----------- ##
1873
1874 _ACEOF
1875
1876
1877 # Keep a trace of the command line.
1878 # Strip out --no-create and --no-recursion so they do not pile up.
1879 # Strip out --silent because we don't want to record it for future runs.
1880 # Also quote any args containing shell meta-characters.
1881 # Make two passes to allow for proper duplicate-argument suppression.
1882 ac_configure_args=
1883 ac_configure_args0=
1884 ac_configure_args1=
1885 ac_must_keep_next=false
1886 for ac_pass in 1 2
1887 do
1888 for ac_arg
1889 do
1890 case $ac_arg in
1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1893 | -silent | --silent | --silen | --sile | --sil)
1894 continue ;;
1895 *\'*)
1896 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 esac
1898 case $ac_pass in
1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1900 2)
1901 as_fn_append ac_configure_args1 " '$ac_arg'"
1902 if test $ac_must_keep_next = true; then
1903 ac_must_keep_next=false # Got value, back to normal.
1904 else
1905 case $ac_arg in
1906 *=* | --config-cache | -C | -disable-* | --disable-* \
1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1909 | -with-* | --with-* | -without-* | --without-* | --x)
1910 case "$ac_configure_args0 " in
1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1912 esac
1913 ;;
1914 -* ) ac_must_keep_next=true ;;
1915 esac
1916 fi
1917 as_fn_append ac_configure_args " '$ac_arg'"
1918 ;;
1919 esac
1920 done
1921 done
1922 { ac_configure_args0=; unset ac_configure_args0;}
1923 { ac_configure_args1=; unset ac_configure_args1;}
1924
1925 # When interrupted or exit'd, cleanup temporary files, and complete
1926 # config.log. We remove comments because anyway the quotes in there
1927 # would cause problems or look ugly.
1928 # WARNING: Use '\'' to represent an apostrophe within the trap.
1929 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1930 trap 'exit_status=$?
1931 # Save into config.log some information that might help in debugging.
1932 {
1933 echo
1934
1935 $as_echo "## ---------------- ##
1936 ## Cache variables. ##
1937 ## ---------------- ##"
1938 echo
1939 # The following way of writing the cache mishandles newlines in values,
1940 (
1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in #(
1944 *${as_nl}*)
1945 case $ac_var in #(
1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948 esac
1949 case $ac_var in #(
1950 _ | IFS | as_nl) ;; #(
1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1952 *) { eval $ac_var=; unset $ac_var;} ;;
1953 esac ;;
1954 esac
1955 done
1956 (set) 2>&1 |
1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1958 *${as_nl}ac_space=\ *)
1959 sed -n \
1960 "s/'\''/'\''\\\\'\'''\''/g;
1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962 ;; #(
1963 *)
1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1965 ;;
1966 esac |
1967 sort
1968 )
1969 echo
1970
1971 $as_echo "## ----------------- ##
1972 ## Output variables. ##
1973 ## ----------------- ##"
1974 echo
1975 for ac_var in $ac_subst_vars
1976 do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1984
1985 if test -n "$ac_subst_files"; then
1986 $as_echo "## ------------------- ##
1987 ## File substitutions. ##
1988 ## ------------------- ##"
1989 echo
1990 for ac_var in $ac_subst_files
1991 do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 $as_echo "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
1999 fi
2000
2001 if test -s confdefs.h; then
2002 $as_echo "## ----------- ##
2003 ## confdefs.h. ##
2004 ## ----------- ##"
2005 echo
2006 cat confdefs.h
2007 echo
2008 fi
2009 test "$ac_signal" != 0 &&
2010 $as_echo "$as_me: caught signal $ac_signal"
2011 $as_echo "$as_me: exit $exit_status"
2012 } >&5
2013 rm -f core *.core core.conftest.* &&
2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2015 exit $exit_status
2016 ' 0
2017 for ac_signal in 1 2 13 15; do
2018 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2019 done
2020 ac_signal=0
2021
2022 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2023 rm -f -r conftest* confdefs.h
2024
2025 $as_echo "/* confdefs.h */" > confdefs.h
2026
2027 # Predefined preprocessor variables.
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_NAME "$PACKAGE_NAME"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_STRING "$PACKAGE_STRING"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_URL "$PACKAGE_URL"
2051 _ACEOF
2052
2053
2054 # Let the site file select an alternate cache file if it wants to.
2055 # Prefer an explicitly selected file to automatically selected ones.
2056 ac_site_file1=NONE
2057 ac_site_file2=NONE
2058 if test -n "$CONFIG_SITE"; then
2059 # We do not want a PATH search for config.site.
2060 case $CONFIG_SITE in #((
2061 -*) ac_site_file1=./$CONFIG_SITE;;
2062 */*) ac_site_file1=$CONFIG_SITE;;
2063 *) ac_site_file1=./$CONFIG_SITE;;
2064 esac
2065 elif test "x$prefix" != xNONE; then
2066 ac_site_file1=$prefix/share/config.site
2067 ac_site_file2=$prefix/etc/config.site
2068 else
2069 ac_site_file1=$ac_default_prefix/share/config.site
2070 ac_site_file2=$ac_default_prefix/etc/config.site
2071 fi
2072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2073 do
2074 test "x$ac_site_file" = xNONE && continue
2075 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2078 sed 's/^/| /' "$ac_site_file" >&5
2079 . "$ac_site_file" \
2080 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 as_fn_error $? "failed to load site script $ac_site_file
2083 See \`config.log' for more details" "$LINENO" 5; }
2084 fi
2085 done
2086
2087 if test -r "$cache_file"; then
2088 # Some versions of bash will fail to source /dev/null (special files
2089 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2090 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2092 $as_echo "$as_me: loading cache $cache_file" >&6;}
2093 case $cache_file in
2094 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2095 *) . "./$cache_file";;
2096 esac
2097 fi
2098 else
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2100 $as_echo "$as_me: creating cache $cache_file" >&6;}
2101 >$cache_file
2102 fi
2103
2104 # Check that the precious variables saved in the cache have kept the same
2105 # value.
2106 ac_cache_corrupted=false
2107 for ac_var in $ac_precious_vars; do
2108 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2109 eval ac_new_set=\$ac_env_${ac_var}_set
2110 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2111 eval ac_new_val=\$ac_env_${ac_var}_value
2112 case $ac_old_set,$ac_new_set in
2113 set,)
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2115 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2116 ac_cache_corrupted=: ;;
2117 ,set)
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2119 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2120 ac_cache_corrupted=: ;;
2121 ,);;
2122 *)
2123 if test "x$ac_old_val" != "x$ac_new_val"; then
2124 # differences in whitespace do not lead to failure.
2125 ac_old_val_w=`echo x $ac_old_val`
2126 ac_new_val_w=`echo x $ac_new_val`
2127 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2129 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2130 ac_cache_corrupted=:
2131 else
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2133 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2134 eval $ac_var=\$ac_old_val
2135 fi
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2137 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2139 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2140 fi;;
2141 esac
2142 # Pass precious variables to config.status.
2143 if test "$ac_new_set" = set; then
2144 case $ac_new_val in
2145 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 *) ac_arg=$ac_var=$ac_new_val ;;
2147 esac
2148 case " $ac_configure_args " in
2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2150 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2151 esac
2152 fi
2153 done
2154 if $ac_cache_corrupted; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2158 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2159 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2160 fi
2161 ## -------------------- ##
2162 ## Main body of script. ##
2163 ## -------------------- ##
2164
2165 ac_ext=c
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2170
2171
2172
2173 ac_config_headers="$ac_config_headers config.h"
2174
2175
2176 # Initialize Automake
2177 am__api_version='1.15'
2178
2179 ac_aux_dir=
2180 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2181 if test -f "$ac_dir/install-sh"; then
2182 ac_aux_dir=$ac_dir
2183 ac_install_sh="$ac_aux_dir/install-sh -c"
2184 break
2185 elif test -f "$ac_dir/install.sh"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/install.sh -c"
2188 break
2189 elif test -f "$ac_dir/shtool"; then
2190 ac_aux_dir=$ac_dir
2191 ac_install_sh="$ac_aux_dir/shtool install -c"
2192 break
2193 fi
2194 done
2195 if test -z "$ac_aux_dir"; then
2196 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2197 fi
2198
2199 # These three variables are undocumented and unsupported,
2200 # and are intended to be withdrawn in a future Autoconf release.
2201 # They can cause serious problems if a builder's source tree is in a directory
2202 # whose full name contains unusual characters.
2203 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2204 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2205 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206
2207
2208 # Find a good install program. We prefer a C program (faster),
2209 # so one script is as good as another. But avoid the broken or
2210 # incompatible versions:
2211 # SysV /etc/install, /usr/sbin/install
2212 # SunOS /usr/etc/install
2213 # IRIX /sbin/install
2214 # AIX /bin/install
2215 # AmigaOS /C/install, which installs bootblocks on floppy discs
2216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2219 # OS/2's system install, which has a completely different semantic
2220 # ./install, which can be erroneously created by make from ./install.sh.
2221 # Reject install programs that cannot install multiple files.
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2223 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2224 if test -z "$INSTALL"; then
2225 if ${ac_cv_path_install+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 # Account for people who put trailing slashes in PATH elements.
2234 case $as_dir/ in #((
2235 ./ | .// | /[cC]/* | \
2236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2237 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2238 /usr/ucb/* ) ;;
2239 *)
2240 # OSF1 and SCO ODT 3.0 have their own names for install.
2241 # Don't use installbsd from OSF since it installs stuff as root
2242 # by default.
2243 for ac_prog in ginstall scoinst install; do
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2246 if test $ac_prog = install &&
2247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # AIX install. It has an incompatible calling convention.
2249 :
2250 elif test $ac_prog = install &&
2251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252 # program-specific install script used by HP pwplus--don't use.
2253 :
2254 else
2255 rm -rf conftest.one conftest.two conftest.dir
2256 echo one > conftest.one
2257 echo two > conftest.two
2258 mkdir conftest.dir
2259 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2260 test -s conftest.one && test -s conftest.two &&
2261 test -s conftest.dir/conftest.one &&
2262 test -s conftest.dir/conftest.two
2263 then
2264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2265 break 3
2266 fi
2267 fi
2268 fi
2269 done
2270 done
2271 ;;
2272 esac
2273
2274 done
2275 IFS=$as_save_IFS
2276
2277 rm -rf conftest.one conftest.two conftest.dir
2278
2279 fi
2280 if test "${ac_cv_path_install+set}" = set; then
2281 INSTALL=$ac_cv_path_install
2282 else
2283 # As a last resort, use the slow shell script. Don't cache a
2284 # value for INSTALL within a source directory, because that will
2285 # break other packages using the cache if that directory is
2286 # removed, or if the value is a relative name.
2287 INSTALL=$ac_install_sh
2288 fi
2289 fi
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2291 $as_echo "$INSTALL" >&6; }
2292
2293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2294 # It thinks the first close brace ends the variable substitution.
2295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2296
2297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2298
2299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2300
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2302 $as_echo_n "checking whether build environment is sane... " >&6; }
2303 # Reject unsafe characters in $srcdir or the absolute working directory
2304 # name. Accept space and tab only in the latter.
2305 am_lf='
2306 '
2307 case `pwd` in
2308 *[\\\"\#\$\&\'\`$am_lf]*)
2309 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2310 esac
2311 case $srcdir in
2312 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2313 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2314 esac
2315
2316 # Do 'set' in a subshell so we don't clobber the current shell's
2317 # arguments. Must try -L first in case configure is actually a
2318 # symlink; some systems play weird games with the mod time of symlinks
2319 # (eg FreeBSD returns the mod time of the symlink's containing
2320 # directory).
2321 if (
2322 am_has_slept=no
2323 for am_try in 1 2; do
2324 echo "timestamp, slept: $am_has_slept" > conftest.file
2325 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2326 if test "$*" = "X"; then
2327 # -L didn't work.
2328 set X `ls -t "$srcdir/configure" conftest.file`
2329 fi
2330 if test "$*" != "X $srcdir/configure conftest.file" \
2331 && test "$*" != "X conftest.file $srcdir/configure"; then
2332
2333 # If neither matched, then we have a broken ls. This can happen
2334 # if, for instance, CONFIG_SHELL is bash and it inherits a
2335 # broken ls alias from the environment. This has actually
2336 # happened. Such a system could not be considered "sane".
2337 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2338 alias in your environment" "$LINENO" 5
2339 fi
2340 if test "$2" = conftest.file || test $am_try -eq 2; then
2341 break
2342 fi
2343 # Just in case.
2344 sleep 1
2345 am_has_slept=yes
2346 done
2347 test "$2" = conftest.file
2348 )
2349 then
2350 # Ok.
2351 :
2352 else
2353 as_fn_error $? "newly created file is older than distributed files!
2354 Check your system clock" "$LINENO" 5
2355 fi
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2357 $as_echo "yes" >&6; }
2358 # If we didn't sleep, we still need to ensure time stamps of config.status and
2359 # generated files are strictly newer.
2360 am_sleep_pid=
2361 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2362 ( sleep 1 ) &
2363 am_sleep_pid=$!
2364 fi
2365
2366 rm -f conftest.file
2367
2368 test "$program_prefix" != NONE &&
2369 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2370 # Use a double $ so make ignores it.
2371 test "$program_suffix" != NONE &&
2372 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2373 # Double any \ or $.
2374 # By default was `s,x,x', remove it if useless.
2375 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2376 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2377
2378 # Expand $ac_aux_dir to an absolute path.
2379 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2380
2381 if test x"${MISSING+set}" != xset; then
2382 case $am_aux_dir in
2383 *\ * | *\ *)
2384 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2385 *)
2386 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2387 esac
2388 fi
2389 # Use eval to expand $SHELL
2390 if eval "$MISSING --is-lightweight"; then
2391 am_missing_run="$MISSING "
2392 else
2393 am_missing_run=
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2395 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2396 fi
2397
2398 if test x"${install_sh+set}" != xset; then
2399 case $am_aux_dir in
2400 *\ * | *\ *)
2401 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2402 *)
2403 install_sh="\${SHELL} $am_aux_dir/install-sh"
2404 esac
2405 fi
2406
2407 # Installed binaries are usually stripped using 'strip' when the user
2408 # run "make install-strip". However 'strip' might not be the right
2409 # tool to use in cross-compilation environments, therefore Automake
2410 # will honor the 'STRIP' environment variable to overrule this program.
2411 if test "$cross_compiling" != no; then
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}strip; ac_word=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if ${ac_cv_prog_STRIP+:} false; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$STRIP"; then
2421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 STRIP=$ac_cv_prog_STRIP
2441 if test -n "$STRIP"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2443 $as_echo "$STRIP" >&6; }
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_STRIP"; then
2452 ac_ct_STRIP=$STRIP
2453 # Extract the first word of "strip", so it can be a program name with args.
2454 set dummy strip; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$ac_ct_STRIP"; then
2461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_ac_ct_STRIP="strip"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2481 if test -n "$ac_ct_STRIP"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2483 $as_echo "$ac_ct_STRIP" >&6; }
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489 if test "x$ac_ct_STRIP" = x; then
2490 STRIP=":"
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 STRIP=$ac_ct_STRIP
2499 fi
2500 else
2501 STRIP="$ac_cv_prog_STRIP"
2502 fi
2503
2504 fi
2505 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2508 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2509 if test -z "$MKDIR_P"; then
2510 if ${ac_cv_path_mkdir+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in mkdir gmkdir; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2521 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2522 'mkdir (GNU coreutils) '* | \
2523 'mkdir (coreutils) '* | \
2524 'mkdir (fileutils) '4.1*)
2525 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2526 break 3;;
2527 esac
2528 done
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534
2535 test -d ./--version && rmdir ./--version
2536 if test "${ac_cv_path_mkdir+set}" = set; then
2537 MKDIR_P="$ac_cv_path_mkdir -p"
2538 else
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for MKDIR_P within a source directory, because that will
2541 # break other packages using the cache if that directory is
2542 # removed, or if the value is a relative name.
2543 MKDIR_P="$ac_install_sh -d"
2544 fi
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2547 $as_echo "$MKDIR_P" >&6; }
2548
2549 for ac_prog in gawk mawk nawk awk
2550 do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_AWK+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$AWK"; then
2559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_AWK="$ac_prog"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 AWK=$ac_cv_prog_AWK
2579 if test -n "$AWK"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2581 $as_echo "$AWK" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 test -n "$AWK" && break
2589 done
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2592 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2593 set x ${MAKE-make}
2594 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2595 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 cat >conftest.make <<\_ACEOF
2599 SHELL = /bin/sh
2600 all:
2601 @echo '@@@%%%=$(MAKE)=@@@%%%'
2602 _ACEOF
2603 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2604 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2605 *@@@%%%=?*=@@@%%%*)
2606 eval ac_cv_prog_make_${ac_make}_set=yes;;
2607 *)
2608 eval ac_cv_prog_make_${ac_make}_set=no;;
2609 esac
2610 rm -f conftest.make
2611 fi
2612 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2614 $as_echo "yes" >&6; }
2615 SET_MAKE=
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 SET_MAKE="MAKE=${MAKE-make}"
2620 fi
2621
2622 rm -rf .tst 2>/dev/null
2623 mkdir .tst 2>/dev/null
2624 if test -d .tst; then
2625 am__leading_dot=.
2626 else
2627 am__leading_dot=_
2628 fi
2629 rmdir .tst 2>/dev/null
2630
2631 # Check whether --enable-silent-rules was given.
2632 if test "${enable_silent_rules+set}" = set; then :
2633 enableval=$enable_silent_rules;
2634 fi
2635
2636 case $enable_silent_rules in # (((
2637 yes) AM_DEFAULT_VERBOSITY=0;;
2638 no) AM_DEFAULT_VERBOSITY=1;;
2639 *) AM_DEFAULT_VERBOSITY=1;;
2640 esac
2641 am_make=${MAKE-make}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2643 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2644 if ${am_cv_make_support_nested_variables+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if $as_echo 'TRUE=$(BAR$(V))
2648 BAR0=false
2649 BAR1=true
2650 V=1
2651 am__doit:
2652 @$(TRUE)
2653 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2654 am_cv_make_support_nested_variables=yes
2655 else
2656 am_cv_make_support_nested_variables=no
2657 fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2660 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2661 if test $am_cv_make_support_nested_variables = yes; then
2662 AM_V='$(V)'
2663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2664 else
2665 AM_V=$AM_DEFAULT_VERBOSITY
2666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2667 fi
2668 AM_BACKSLASH='\'
2669
2670 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2672 # is not polluted with repeated "-I."
2673 am__isrc=' -I$(srcdir)'
2674 # test to see if srcdir already configured
2675 if test -f $srcdir/config.status; then
2676 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2677 fi
2678 fi
2679
2680 # test whether we have cygpath
2681 if test -z "$CYGPATH_W"; then
2682 if (cygpath --version) >/dev/null 2>/dev/null; then
2683 CYGPATH_W='cygpath -w'
2684 else
2685 CYGPATH_W=echo
2686 fi
2687 fi
2688
2689
2690 # Define the identity of the package.
2691 PACKAGE='x11perf'
2692 VERSION='1.6.0'
2693
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE "$PACKAGE"
2697 _ACEOF
2698
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define VERSION "$VERSION"
2702 _ACEOF
2703
2704 # Some tools Automake needs.
2705
2706 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2707
2708
2709 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2710
2711
2712 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2713
2714
2715 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2716
2717
2718 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2719
2720 # For better backward compatibility. To be removed once Automake 1.9.x
2721 # dies out for good. For more background, see:
2722 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2723 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2724 mkdir_p='$(MKDIR_P)'
2725
2726 # We need awk for the "check" target (and possibly the TAP driver). The
2727 # system "awk" is bad on some platforms.
2728 # Always define AMTAR for backward compatibility. Yes, it's still used
2729 # in the wild :-( We should find a proper way to deprecate it ...
2730 AMTAR='$${TAR-tar}'
2731
2732
2733 # We'll loop over all known methods to create a tar archive until one works.
2734 _am_tools='gnutar pax cpio none'
2735
2736 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2737
2738
2739
2740
2741
2742
2743 # POSIX will say in a future version that running "rm -f" with no argument
2744 # is OK; and we want to be able to make that assumption in our Makefile
2745 # recipes. So use an aggressive probe to check that the usage we want is
2746 # actually supported "in the wild" to an acceptable degree.
2747 # See automake bug#10828.
2748 # To make any issue more visible, cause the running configure to be aborted
2749 # by default if the 'rm' program in use doesn't match our expectations; the
2750 # user can still override this though.
2751 if rm -f && rm -fr && rm -rf; then : OK; else
2752 cat >&2 <<'END'
2753 Oops!
2754
2755 Your 'rm' program seems unable to run without file operands specified
2756 on the command line, even when the '-f' option is present. This is contrary
2757 to the behaviour of most rm programs out there, and not conforming with
2758 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2759
2760 Please tell bug-automake@gnu.org about your system, including the value
2761 of your $PATH and any error possibly output before this message. This
2762 can help us improve future automake versions.
2763
2764 END
2765 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2766 echo 'Configuration will proceed anyway, since you have set the' >&2
2767 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2768 echo >&2
2769 else
2770 cat >&2 <<'END'
2771 Aborting the configuration process, to ensure you take notice of the issue.
2772
2773 You can download and install GNU coreutils to get an 'rm' implementation
2774 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2775
2776 If you want to complete the configuration process using your problematic
2777 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2778 to "yes", and re-run configure.
2779
2780 END
2781 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2782 fi
2783 fi
2784
2785
2786 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798 DEPDIR="${am__leading_dot}deps"
2799
2800 ac_config_commands="$ac_config_commands depfiles"
2801
2802
2803 am_make=${MAKE-make}
2804 cat > confinc << 'END'
2805 am__doit:
2806 @echo this is the am__doit target
2807 .PHONY: am__doit
2808 END
2809 # If we don't find an include directive, just comment out the code.
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2811 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2812 am__include="#"
2813 am__quote=
2814 _am_result=none
2815 # First try GNU make style include.
2816 echo "include confinc" > confmf
2817 # Ignore all kinds of additional output from 'make'.
2818 case `$am_make -s -f confmf 2> /dev/null` in #(
2819 *the\ am__doit\ target*)
2820 am__include=include
2821 am__quote=
2822 _am_result=GNU
2823 ;;
2824 esac
2825 # Now try BSD make style include.
2826 if test "$am__include" = "#"; then
2827 echo '.include "confinc"' > confmf
2828 case `$am_make -s -f confmf 2> /dev/null` in #(
2829 *the\ am__doit\ target*)
2830 am__include=.include
2831 am__quote="\""
2832 _am_result=BSD
2833 ;;
2834 esac
2835 fi
2836
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2839 $as_echo "$_am_result" >&6; }
2840 rm -f confinc confmf
2841
2842 # Check whether --enable-dependency-tracking was given.
2843 if test "${enable_dependency_tracking+set}" = set; then :
2844 enableval=$enable_dependency_tracking;
2845 fi
2846
2847 if test "x$enable_dependency_tracking" != xno; then
2848 am_depcomp="$ac_aux_dir/depcomp"
2849 AMDEPBACKSLASH='\'
2850 am__nodep='_no'
2851 fi
2852 if test "x$enable_dependency_tracking" != xno; then
2853 AMDEP_TRUE=
2854 AMDEP_FALSE='#'
2855 else
2856 AMDEP_TRUE='#'
2857 AMDEP_FALSE=
2858 fi
2859
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$ac_cv_prog_CC"; then
2906 ac_ct_CC=$CC
2907 # Extract the first word of "gcc", so it can be a program name with args.
2908 set dummy gcc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_ac_ct_CC="gcc"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935 if test -n "$ac_ct_CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937 $as_echo "$ac_ct_CC" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943 if test "x$ac_ct_CC" = x; then
2944 CC=""
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952 CC=$ac_ct_CC
2953 fi
2954 else
2955 CC="$ac_cv_prog_CC"
2956 fi
2957
2958 if test -z "$CC"; then
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}cc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_CC="${ac_tool_prefix}cc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 fi
2999 if test -z "$CC"; then
3000 # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 ac_prog_rejected=no
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3019 ac_prog_rejected=yes
3020 continue
3021 fi
3022 ac_cv_prog_CC="cc"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 if test $ac_prog_rejected = yes; then
3031 # We found a bogon in the path, so make sure we never use it.
3032 set dummy $ac_cv_prog_CC
3033 shift
3034 if test $# != 0; then
3035 # We chose a different compiler from the bogus one.
3036 # However, it has the same basename, so the bogon will be chosen
3037 # first if we set CC to just the basename; use the full file name.
3038 shift
3039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3040 fi
3041 fi
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 fi
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 for ac_prog in cl.exe
3058 do
3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095
3096 test -n "$CC" && break
3097 done
3098 fi
3099 if test -z "$CC"; then
3100 ac_ct_CC=$CC
3101 for ac_prog in cl.exe
3102 do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131 if test -n "$ac_ct_CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133 $as_echo "$ac_ct_CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$ac_ct_CC" && break
3141 done
3142
3143 if test "x$ac_ct_CC" = x; then
3144 CC=""
3145 else
3146 case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152 CC=$ac_ct_CC
3153 fi
3154 fi
3155
3156 fi
3157
3158
3159 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "no acceptable C compiler found in \$PATH
3162 See \`config.log' for more details" "$LINENO" 5; }
3163
3164 # Provide some information about the compiler.
3165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3166 set X $ac_compile
3167 ac_compiler=$2
3168 for ac_option in --version -v -V -qversion; do
3169 { { ac_try="$ac_compiler $ac_option >&5"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3177 ac_status=$?
3178 if test -s conftest.err; then
3179 sed '10a\
3180 ... rest of stderr output deleted ...
3181 10q' conftest.err >conftest.er1
3182 cat conftest.er1 >&5
3183 fi
3184 rm -f conftest.er1 conftest.err
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }
3187 done
3188
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191
3192 int
3193 main ()
3194 {
3195
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 ac_clean_files_save=$ac_clean_files
3201 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3202 # Try to create an executable without -o first, disregard a.out.
3203 # It will help us diagnose broken compilers, and finding out an intuition
3204 # of exeext.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3206 $as_echo_n "checking whether the C compiler works... " >&6; }
3207 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3208
3209 # The possible output files:
3210 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3211
3212 ac_rmfiles=
3213 for ac_file in $ac_files
3214 do
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3218 esac
3219 done
3220 rm -f $ac_rmfiles
3221
3222 if { { ac_try="$ac_link_default"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_link_default") 2>&5
3230 ac_status=$?
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }; then :
3233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3234 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3235 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3236 # so that the user can short-circuit this test for compilers unknown to
3237 # Autoconf.
3238 for ac_file in $ac_files ''
3239 do
3240 test -f "$ac_file" || continue
3241 case $ac_file in
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3243 ;;
3244 [ab].out )
3245 # We found the default executable, but exeext='' is most
3246 # certainly right.
3247 break;;
3248 *.* )
3249 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3250 then :; else
3251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252 fi
3253 # We set ac_cv_exeext here because the later test for it is not
3254 # safe: cross compilers may not add the suffix if given an `-o'
3255 # argument, so we may need to know it at that point already.
3256 # Even if this section looks crufty: it has the advantage of
3257 # actually working.
3258 break;;
3259 * )
3260 break;;
3261 esac
3262 done
3263 test "$ac_cv_exeext" = no && ac_cv_exeext=
3264
3265 else
3266 ac_file=''
3267 fi
3268 if test -z "$ac_file"; then :
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error 77 "C compiler cannot create executables
3277 See \`config.log' for more details" "$LINENO" 5; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3283 $as_echo_n "checking for C compiler default output file name... " >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3285 $as_echo "$ac_file" >&6; }
3286 ac_exeext=$ac_cv_exeext
3287
3288 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3289 ac_clean_files=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3291 $as_echo_n "checking for suffix of executables... " >&6; }
3292 if { { ac_try="$ac_link"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3304 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3305 # work properly (i.e., refer to `conftest.exe'), while it won't with
3306 # `rm'.
3307 for ac_file in conftest.exe conftest conftest.*; do
3308 test -f "$ac_file" || continue
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 break;;
3313 * ) break;;
3314 esac
3315 done
3316 else
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 fi
3322 rm -f conftest conftest$ac_cv_exeext
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3324 $as_echo "$ac_cv_exeext" >&6; }
3325
3326 rm -f conftest.$ac_ext
3327 EXEEXT=$ac_cv_exeext
3328 ac_exeext=$EXEEXT
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #include <stdio.h>
3332 int
3333 main ()
3334 {
3335 FILE *f = fopen ("conftest.out", "w");
3336 return ferror (f) || fclose (f) != 0;
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 ac_clean_files="$ac_clean_files conftest.out"
3343 # Check that the compiler produces executables we can run. If not, either
3344 # the compiler is broken, or we cross compile.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3346 $as_echo_n "checking whether we are cross compiling... " >&6; }
3347 if test "$cross_compiling" != yes; then
3348 { { ac_try="$ac_link"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_link") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }
3359 if { ac_try='./conftest$ac_cv_exeext'
3360 { { case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_try") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; }; then
3370 cross_compiling=no
3371 else
3372 if test "$cross_compiling" = maybe; then
3373 cross_compiling=yes
3374 else
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error $? "cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 fi
3381 fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3384 $as_echo "$cross_compiling" >&6; }
3385
3386 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3387 ac_clean_files=$ac_clean_files_save
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3389 $as_echo_n "checking for suffix of object files... " >&6; }
3390 if ${ac_cv_objext+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.o conftest.obj
3405 if { { ac_try="$ac_compile"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_compile") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 for ac_file in conftest.o conftest.obj conftest.*; do
3417 test -f "$ac_file" || continue;
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421 break;;
3422 esac
3423 done
3424 else
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 fi
3433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3436 $as_echo "$ac_cv_objext" >&6; }
3437 OBJEXT=$ac_cv_objext
3438 ac_objext=$OBJEXT
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3440 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3441 if ${ac_cv_c_compiler_gnu+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446
3447 int
3448 main ()
3449 {
3450 #ifndef __GNUC__
3451 choke me
3452 #endif
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_compiler_gnu=yes
3460 else
3461 ac_compiler_gnu=no
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470 GCC=yes
3471 else
3472 GCC=
3473 fi
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if ${ac_cv_prog_cc_g+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_save_c_werror_flag=$ac_c_werror_flag
3482 ac_c_werror_flag=yes
3483 ac_cv_prog_cc_g=no
3484 CFLAGS="-g"
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_prog_cc_g=yes
3498 else
3499 CFLAGS=""
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502
3503 int
3504 main ()
3505 {
3506
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512
3513 else
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3515 CFLAGS="-g"
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main ()
3521 {
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_prog_cc_g=yes
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3538 $as_echo "$ac_cv_prog_cc_g" >&6; }
3539 if test "$ac_test_CFLAGS" = set; then
3540 CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3543 CFLAGS="-g -O2"
3544 else
3545 CFLAGS="-g"
3546 fi
3547 else
3548 if test "$GCC" = yes; then
3549 CFLAGS="-O2"
3550 else
3551 CFLAGS=
3552 fi
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3556 if ${ac_cv_prog_cc_c89+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_cv_prog_cc_c89=no
3560 ac_save_CC=$CC
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <stdarg.h>
3564 #include <stdio.h>
3565 struct stat;
3566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3567 struct buf { int x; };
3568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3569 static char *e (p, i)
3570 char **p;
3571 int i;
3572 {
3573 return p[i];
3574 }
3575 static char *f (char * (*g) (char **, int), char **p, ...)
3576 {
3577 char *s;
3578 va_list v;
3579 va_start (v,p);
3580 s = g (p, va_arg (v,int));
3581 va_end (v);
3582 return s;
3583 }
3584
3585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3586 function prototypes and stuff, but not '\xHH' hex character constants.
3587 These don't provoke an error unfortunately, instead are silently treated
3588 as 'x'. The following induces an error, until -std is added to get
3589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3590 array size at least. It's necessary to write '\x00'==0 to get something
3591 that's true only with -std. */
3592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3593
3594 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3595 inside strings and character constants. */
3596 #define FOO(x) 'x'
3597 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3598
3599 int test (int i, double x);
3600 struct s1 {int (*f) (int a);};
3601 struct s2 {int (*f) (double a);};
3602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3603 int argc;
3604 char **argv;
3605 int
3606 main ()
3607 {
3608 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3615 do
3616 CC="$ac_save_CC $ac_arg"
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_c89=$ac_arg
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext
3621 test "x$ac_cv_prog_cc_c89" != "xno" && break
3622 done
3623 rm -f conftest.$ac_ext
3624 CC=$ac_save_CC
3625
3626 fi
3627 # AC_CACHE_VAL
3628 case "x$ac_cv_prog_cc_c89" in
3629 x)
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3631 $as_echo "none needed" >&6; } ;;
3632 xno)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3634 $as_echo "unsupported" >&6; } ;;
3635 *)
3636 CC="$CC $ac_cv_prog_cc_c89"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3638 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3639 esac
3640 if test "x$ac_cv_prog_cc_c89" != xno; then :
3641
3642 fi
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3656 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3657 if ${am_cv_prog_cc_c_o+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 # Make sure it works both with $CC and with simple cc.
3672 # Following AC_PROG_CC_C_O, we do the test twice because some
3673 # compilers refuse to overwrite an existing .o file with -o,
3674 # though they will create one.
3675 am_cv_prog_cc_c_o=yes
3676 for am_i in 1 2; do
3677 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3678 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } \
3682 && test -f conftest2.$ac_objext; then
3683 : OK
3684 else
3685 am_cv_prog_cc_c_o=no
3686 break
3687 fi
3688 done
3689 rm -f core conftest*
3690 unset am_i
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3693 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3694 if test "$am_cv_prog_cc_c_o" != yes; then
3695 # Losing compiler, so override with the script.
3696 # FIXME: It is wrong to rewrite CC.
3697 # But if we don't then we get into trouble of one sort or another.
3698 # A longer-term fix would be to have automake use am__CC in this case,
3699 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3700 CC="$am_aux_dir/compile $CC"
3701 fi
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708
3709 depcc="$CC" am_compiler_list=
3710
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3712 $as_echo_n "checking dependency style of $depcc... " >&6; }
3713 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3717 # We make a subdir and do the tests there. Otherwise we can end up
3718 # making bogus files that we don't know about and never remove. For
3719 # instance it was reported that on HP-UX the gcc test will end up
3720 # making a dummy file named 'D' -- because '-MD' means "put the output
3721 # in D".
3722 rm -rf conftest.dir
3723 mkdir conftest.dir
3724 # Copy depcomp to subdir because otherwise we won't find it if we're
3725 # using a relative directory.
3726 cp "$am_depcomp" conftest.dir
3727 cd conftest.dir
3728 # We will build objects and dependencies in a subdirectory because
3729 # it helps to detect inapplicable dependency modes. For instance
3730 # both Tru64's cc and ICC support -MD to output dependencies as a
3731 # side effect of compilation, but ICC will put the dependencies in
3732 # the current directory while Tru64 will put them in the object
3733 # directory.
3734 mkdir sub
3735
3736 am_cv_CC_dependencies_compiler_type=none
3737 if test "$am_compiler_list" = ""; then
3738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3739 fi
3740 am__universal=false
3741 case " $depcc " in #(
3742 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3743 esac
3744
3745 for depmode in $am_compiler_list; do
3746 # Setup a source with many dependencies, because some compilers
3747 # like to wrap large dependency lists on column 80 (with \), and
3748 # we should not choose a depcomp mode which is confused by this.
3749 #
3750 # We need to recreate these files for each test, as the compiler may
3751 # overwrite some of them when testing with obscure command lines.
3752 # This happens at least with the AIX C compiler.
3753 : > sub/conftest.c
3754 for i in 1 2 3 4 5 6; do
3755 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3756 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3757 # Solaris 10 /bin/sh.
3758 echo '/* dummy */' > sub/conftst$i.h
3759 done
3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3761
3762 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3763 # mode. It turns out that the SunPro C++ compiler does not properly
3764 # handle '-M -o', and we need to detect this. Also, some Intel
3765 # versions had trouble with output in subdirs.
3766 am__obj=sub/conftest.${OBJEXT-o}
3767 am__minus_obj="-o $am__obj"
3768 case $depmode in
3769 gcc)
3770 # This depmode causes a compiler race in universal mode.
3771 test "$am__universal" = false || continue
3772 ;;
3773 nosideeffect)
3774 # After this tag, mechanisms are not by side-effect, so they'll
3775 # only be used when explicitly requested.
3776 if test "x$enable_dependency_tracking" = xyes; then
3777 continue
3778 else
3779 break
3780 fi
3781 ;;
3782 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3783 # This compiler won't grok '-c -o', but also, the minuso test has
3784 # not run yet. These depmodes are late enough in the game, and
3785 # so weak that their functioning should not be impacted.
3786 am__obj=conftest.${OBJEXT-o}
3787 am__minus_obj=
3788 ;;
3789 none) break ;;
3790 esac
3791 if depmode=$depmode \
3792 source=sub/conftest.c object=$am__obj \
3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3795 >/dev/null 2>conftest.err &&
3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800 # icc doesn't choke on unknown options, it will just issue warnings
3801 # or remarks (even with -Werror). So we grep stderr for any message
3802 # that says an option was ignored or not supported.
3803 # When given -MP, icc 7.0 and 7.1 complain thusly:
3804 # icc: Command line warning: ignoring option '-M'; no argument required
3805 # The diagnosis changed in icc 8.0:
3806 # icc: Command line remark: option '-MP' not supported
3807 if (grep 'ignoring option' conftest.err ||
3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809 am_cv_CC_dependencies_compiler_type=$depmode
3810 break
3811 fi
3812 fi
3813 done
3814
3815 cd ..
3816 rm -rf conftest.dir
3817 else
3818 am_cv_CC_dependencies_compiler_type=none
3819 fi
3820
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3823 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3824 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3825
3826 if
3827 test "x$enable_dependency_tracking" != xno \
3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3829 am__fastdepCC_TRUE=
3830 am__fastdepCC_FALSE='#'
3831 else
3832 am__fastdepCC_TRUE='#'
3833 am__fastdepCC_FALSE=
3834 fi
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3838 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3839 if ${ac_cv_prog_cc_c99+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 ac_cv_prog_cc_c99=no
3843 ac_save_CC=$CC
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <stdarg.h>
3847 #include <stdbool.h>
3848 #include <stdlib.h>
3849 #include <wchar.h>
3850 #include <stdio.h>
3851
3852 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3853 #define debug(...) fprintf (stderr, __VA_ARGS__)
3854 #define showlist(...) puts (#__VA_ARGS__)
3855 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3856 static void
3857 test_varargs_macros (void)
3858 {
3859 int x = 1234;
3860 int y = 5678;
3861 debug ("Flag");
3862 debug ("X = %d\n", x);
3863 showlist (The first, second, and third items.);
3864 report (x>y, "x is %d but y is %d", x, y);
3865 }
3866
3867 // Check long long types.
3868 #define BIG64 18446744073709551615ull
3869 #define BIG32 4294967295ul
3870 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3871 #if !BIG_OK
3872 your preprocessor is broken;
3873 #endif
3874 #if BIG_OK
3875 #else
3876 your preprocessor is broken;
3877 #endif
3878 static long long int bignum = -9223372036854775807LL;
3879 static unsigned long long int ubignum = BIG64;
3880
3881 struct incomplete_array
3882 {
3883 int datasize;
3884 double data[];
3885 };
3886
3887 struct named_init {
3888 int number;
3889 const wchar_t *name;
3890 double average;
3891 };
3892
3893 typedef const char *ccp;
3894
3895 static inline int
3896 test_restrict (ccp restrict text)
3897 {
3898 // See if C++-style comments work.
3899 // Iterate through items via the restricted pointer.
3900 // Also check for declarations in for loops.
3901 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3902 continue;
3903 return 0;
3904 }
3905
3906 // Check varargs and va_copy.
3907 static void
3908 test_varargs (const char *format, ...)
3909 {
3910 va_list args;
3911 va_start (args, format);
3912 va_list args_copy;
3913 va_copy (args_copy, args);
3914
3915 const char *str;
3916 int number;
3917 float fnumber;
3918
3919 while (*format)
3920 {
3921 switch (*format++)
3922 {
3923 case 's': // string
3924 str = va_arg (args_copy, const char *);
3925 break;
3926 case 'd': // int
3927 number = va_arg (args_copy, int);
3928 break;
3929 case 'f': // float
3930 fnumber = va_arg (args_copy, double);
3931 break;
3932 default:
3933 break;
3934 }
3935 }
3936 va_end (args_copy);
3937 va_end (args);
3938 }
3939
3940 int
3941 main ()
3942 {
3943
3944 // Check bool.
3945 _Bool success = false;
3946
3947 // Check restrict.
3948 if (test_restrict ("String literal") == 0)
3949 success = true;
3950 char *restrict newvar = "Another string";
3951
3952 // Check varargs.
3953 test_varargs ("s, d' f .", "string", 65, 34.234);
3954 test_varargs_macros ();
3955
3956 // Check flexible array members.
3957 struct incomplete_array *ia =
3958 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3959 ia->datasize = 10;
3960 for (int i = 0; i < ia->datasize; ++i)
3961 ia->data[i] = i * 1.234;
3962
3963 // Check named initializers.
3964 struct named_init ni = {
3965 .number = 34,
3966 .name = L"Test wide string",
3967 .average = 543.34343,
3968 };
3969
3970 ni.number = 58;
3971
3972 int dynamic_array[ni.number];
3973 dynamic_array[ni.number - 1] = 543;
3974
3975 // work around unused variable warnings
3976 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3977 || dynamic_array[ni.number - 1] != 543);
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3984 do
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c99=$ac_arg
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c99" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c99" in
3998 x)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004 *)
4005 CC="$CC $ac_cv_prog_cc_c99"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4007 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c99" != xno; then :
4010
4011 fi
4012
4013
4014
4015 ac_ext=c
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4021 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4022 # On Suns, sometimes $CPP names a directory.
4023 if test -n "$CPP" && test -d "$CPP"; then
4024 CPP=
4025 fi
4026 if test -z "$CPP"; then
4027 if ${ac_cv_prog_CPP+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 # Double quotes because CPP needs to be expanded
4031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4032 do
4033 ac_preproc_ok=false
4034 for ac_c_preproc_warn_flag in '' yes
4035 do
4036 # Use a header file that comes with gcc, so configuring glibc
4037 # with a fresh cross-compiler works.
4038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4039 # <limits.h> exists even on freestanding compilers.
4040 # On the NeXT, cc -E runs the code through the compiler's parser,
4041 # not just through cpp. "Syntax error" is here to catch this case.
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #ifdef __STDC__
4045 # include <limits.h>
4046 #else
4047 # include <assert.h>
4048 #endif
4049 Syntax error
4050 _ACEOF
4051 if ac_fn_c_try_cpp "$LINENO"; then :
4052
4053 else
4054 # Broken: fails on valid input.
4055 continue
4056 fi
4057 rm -f conftest.err conftest.i conftest.$ac_ext
4058
4059 # OK, works on sane cases. Now check whether nonexistent headers
4060 # can be detected and how.
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #include <ac_nonexistent.h>
4064 _ACEOF
4065 if ac_fn_c_try_cpp "$LINENO"; then :
4066 # Broken: success on invalid input.
4067 continue
4068 else
4069 # Passes both tests.
4070 ac_preproc_ok=:
4071 break
4072 fi
4073 rm -f conftest.err conftest.i conftest.$ac_ext
4074
4075 done
4076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4077 rm -f conftest.i conftest.err conftest.$ac_ext
4078 if $ac_preproc_ok; then :
4079 break
4080 fi
4081
4082 done
4083 ac_cv_prog_CPP=$CPP
4084
4085 fi
4086 CPP=$ac_cv_prog_CPP
4087 else
4088 ac_cv_prog_CPP=$CPP
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4091 $as_echo "$CPP" >&6; }
4092 ac_preproc_ok=false
4093 for ac_c_preproc_warn_flag in '' yes
4094 do
4095 # Use a header file that comes with gcc, so configuring glibc
4096 # with a fresh cross-compiler works.
4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098 # <limits.h> exists even on freestanding compilers.
4099 # On the NeXT, cc -E runs the code through the compiler's parser,
4100 # not just through cpp. "Syntax error" is here to catch this case.
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #ifdef __STDC__
4104 # include <limits.h>
4105 #else
4106 # include <assert.h>
4107 #endif
4108 Syntax error
4109 _ACEOF
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111
4112 else
4113 # Broken: fails on valid input.
4114 continue
4115 fi
4116 rm -f conftest.err conftest.i conftest.$ac_ext
4117
4118 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4125 # Broken: success on invalid input.
4126 continue
4127 else
4128 # Passes both tests.
4129 ac_preproc_ok=:
4130 break
4131 fi
4132 rm -f conftest.err conftest.i conftest.$ac_ext
4133
4134 done
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.i conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then :
4138
4139 else
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4143 See \`config.log' for more details" "$LINENO" 5; }
4144 fi
4145
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4154 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4155 if ${ac_cv_path_GREP+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -z "$GREP"; then
4159 ac_path_GREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in grep ggrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4169 as_fn_executable_p "$ac_path_GREP" || continue
4170 # Check for GNU ac_path_GREP and select it if it is found.
4171 # Check for GNU $ac_path_GREP
4172 case `"$ac_path_GREP" --version 2>&1` in
4173 *GNU*)
4174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4175 *)
4176 ac_count=0
4177 $as_echo_n 0123456789 >"conftest.in"
4178 while :
4179 do
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo 'GREP' >> "conftest.nl"
4184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 as_fn_arith $ac_count + 1 && ac_count=$as_val
4187 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_GREP="$ac_path_GREP"
4190 ac_path_GREP_max=$ac_count
4191 fi
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4194 done
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 esac
4197
4198 $ac_path_GREP_found && break 3
4199 done
4200 done
4201 done
4202 IFS=$as_save_IFS
4203 if test -z "$ac_cv_path_GREP"; then
4204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205 fi
4206 else
4207 ac_cv_path_GREP=$GREP
4208 fi
4209
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4212 $as_echo "$ac_cv_path_GREP" >&6; }
4213 GREP="$ac_cv_path_GREP"
4214
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4217 $as_echo_n "checking for egrep... " >&6; }
4218 if ${ac_cv_path_EGREP+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4222 then ac_cv_path_EGREP="$GREP -E"
4223 else
4224 if test -z "$EGREP"; then
4225 ac_path_EGREP_found=false
4226 # Loop through the user's path and test for each of PROGNAME-LIST
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4229 do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_prog in egrep; do
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4235 as_fn_executable_p "$ac_path_EGREP" || continue
4236 # Check for GNU ac_path_EGREP and select it if it is found.
4237 # Check for GNU $ac_path_EGREP
4238 case `"$ac_path_EGREP" --version 2>&1` in
4239 *GNU*)
4240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4241 *)
4242 ac_count=0
4243 $as_echo_n 0123456789 >"conftest.in"
4244 while :
4245 do
4246 cat "conftest.in" "conftest.in" >"conftest.tmp"
4247 mv "conftest.tmp" "conftest.in"
4248 cp "conftest.in" "conftest.nl"
4249 $as_echo 'EGREP' >> "conftest.nl"
4250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4252 as_fn_arith $ac_count + 1 && ac_count=$as_val
4253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4254 # Best one so far, save it but keep looking for a better one
4255 ac_cv_path_EGREP="$ac_path_EGREP"
4256 ac_path_EGREP_max=$ac_count
4257 fi
4258 # 10*(2^10) chars as input seems more than enough
4259 test $ac_count -gt 10 && break
4260 done
4261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4262 esac
4263
4264 $ac_path_EGREP_found && break 3
4265 done
4266 done
4267 done
4268 IFS=$as_save_IFS
4269 if test -z "$ac_cv_path_EGREP"; then
4270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4271 fi
4272 else
4273 ac_cv_path_EGREP=$EGREP
4274 fi
4275
4276 fi
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4279 $as_echo "$ac_cv_path_EGREP" >&6; }
4280 EGREP="$ac_cv_path_EGREP"
4281
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4284 $as_echo_n "checking for ANSI C header files... " >&6; }
4285 if ${ac_cv_header_stdc+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <stdlib.h>
4291 #include <stdarg.h>
4292 #include <string.h>
4293 #include <float.h>
4294
4295 int
4296 main ()
4297 {
4298
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_header_stdc=yes
4305 else
4306 ac_cv_header_stdc=no
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309
4310 if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <string.h>
4315
4316 _ACEOF
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 $EGREP "memchr" >/dev/null 2>&1; then :
4319
4320 else
4321 ac_cv_header_stdc=no
4322 fi
4323 rm -f conftest*
4324
4325 fi
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331 #include <stdlib.h>
4332
4333 _ACEOF
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 $EGREP "free" >/dev/null 2>&1; then :
4336
4337 else
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f conftest*
4341
4342 fi
4343
4344 if test $ac_cv_header_stdc = yes; then
4345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4346 if test "$cross_compiling" = yes; then :
4347 :
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <ctype.h>
4352 #include <stdlib.h>
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4356 #else
4357 # define ISLOWER(c) \
4358 (('a' <= (c) && (c) <= 'i') \
4359 || ('j' <= (c) && (c) <= 'r') \
4360 || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #endif
4363
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365 int
4366 main ()
4367 {
4368 int i;
4369 for (i = 0; i < 256; i++)
4370 if (XOR (islower (i), ISLOWER (i))
4371 || toupper (i) != TOUPPER (i))
4372 return 2;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_run "$LINENO"; then :
4377
4378 else
4379 ac_cv_header_stdc=no
4380 fi
4381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4382 conftest.$ac_objext conftest.beam conftest.$ac_ext
4383 fi
4384
4385 fi
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4388 $as_echo "$ac_cv_header_stdc" >&6; }
4389 if test $ac_cv_header_stdc = yes; then
4390
4391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4392
4393 fi
4394
4395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4397 inttypes.h stdint.h unistd.h
4398 do :
4399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4401 "
4402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4403 cat >>confdefs.h <<_ACEOF
4404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4405 _ACEOF
4406
4407 fi
4408
4409 done
4410
4411
4412
4413
4414
4415
4416 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4417 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4418 CLANGCC="yes"
4419 else
4420 CLANGCC="no"
4421 fi
4422
4423 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4424 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4425 INTELCC="yes"
4426 else
4427 INTELCC="no"
4428 fi
4429
4430 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4431 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4432 SUNCC="yes"
4433 else
4434 SUNCC="no"
4435 fi
4436
4437
4438
4439
4440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 case $PKG_CONFIG in
4450 [\\/]* | ?:[\\/]*)
4451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4452 ;;
4453 *)
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4467 IFS=$as_save_IFS
4468
4469 ;;
4470 esac
4471 fi
4472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4473 if test -n "$PKG_CONFIG"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4475 $as_echo "$PKG_CONFIG" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482 fi
4483 if test -z "$ac_cv_path_PKG_CONFIG"; then
4484 ac_pt_PKG_CONFIG=$PKG_CONFIG
4485 # Extract the first word of "pkg-config", so it can be a program name with args.
4486 set dummy pkg-config; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 case $ac_pt_PKG_CONFIG in
4493 [\\/]* | ?:[\\/]*)
4494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4495 ;;
4496 *)
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 ;;
4513 esac
4514 fi
4515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4516 if test -n "$ac_pt_PKG_CONFIG"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4518 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524 if test "x$ac_pt_PKG_CONFIG" = x; then
4525 PKG_CONFIG=""
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533 PKG_CONFIG=$ac_pt_PKG_CONFIG
4534 fi
4535 else
4536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4537 fi
4538
4539 fi
4540 if test -n "$PKG_CONFIG"; then
4541 _pkg_min_version=0.9.0
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4546 $as_echo "yes" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 PKG_CONFIG=""
4551 fi
4552
4553 fi
4554 # Make sure we can run config.sub.
4555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4559 $as_echo_n "checking build system type... " >&6; }
4560 if ${ac_cv_build+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_build_alias=$build_alias
4564 test "x$ac_build_alias" = x &&
4565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4566 test "x$ac_build_alias" = x &&
4567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4570
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4573 $as_echo "$ac_cv_build" >&6; }
4574 case $ac_cv_build in
4575 *-*-*) ;;
4576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4577 esac
4578 build=$ac_cv_build
4579 ac_save_IFS=$IFS; IFS='-'
4580 set x $ac_cv_build
4581 shift
4582 build_cpu=$1
4583 build_vendor=$2
4584 shift; shift
4585 # Remember, the first character of IFS is used to create $*,
4586 # except with old shells:
4587 build_os=$*
4588 IFS=$ac_save_IFS
4589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4593 $as_echo_n "checking host system type... " >&6; }
4594 if ${ac_cv_host+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test "x$host_alias" = x; then
4598 ac_cv_host=$ac_cv_build
4599 else
4600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4606 $as_echo "$ac_cv_host" >&6; }
4607 case $ac_cv_host in
4608 *-*-*) ;;
4609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4610 esac
4611 host=$ac_cv_host
4612 ac_save_IFS=$IFS; IFS='-'
4613 set x $ac_cv_host
4614 shift
4615 host_cpu=$1
4616 host_vendor=$2
4617 shift; shift
4618 # Remember, the first character of IFS is used to create $*,
4619 # except with old shells:
4620 host_os=$*
4621 IFS=$ac_save_IFS
4622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4626 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4627 if ${ac_cv_path_SED+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4631 for ac_i in 1 2 3 4 5 6 7; do
4632 ac_script="$ac_script$as_nl$ac_script"
4633 done
4634 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4635 { ac_script=; unset ac_script;}
4636 if test -z "$SED"; then
4637 ac_path_SED_found=false
4638 # Loop through the user's path and test for each of PROGNAME-LIST
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_prog in sed gsed; do
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4647 as_fn_executable_p "$ac_path_SED" || continue
4648 # Check for GNU ac_path_SED and select it if it is found.
4649 # Check for GNU $ac_path_SED
4650 case `"$ac_path_SED" --version 2>&1` in
4651 *GNU*)
4652 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4653 *)
4654 ac_count=0
4655 $as_echo_n 0123456789 >"conftest.in"
4656 while :
4657 do
4658 cat "conftest.in" "conftest.in" >"conftest.tmp"
4659 mv "conftest.tmp" "conftest.in"
4660 cp "conftest.in" "conftest.nl"
4661 $as_echo '' >> "conftest.nl"
4662 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664 as_fn_arith $ac_count + 1 && ac_count=$as_val
4665 if test $ac_count -gt ${ac_path_SED_max-0}; then
4666 # Best one so far, save it but keep looking for a better one
4667 ac_cv_path_SED="$ac_path_SED"
4668 ac_path_SED_max=$ac_count
4669 fi
4670 # 10*(2^10) chars as input seems more than enough
4671 test $ac_count -gt 10 && break
4672 done
4673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 esac
4675
4676 $ac_path_SED_found && break 3
4677 done
4678 done
4679 done
4680 IFS=$as_save_IFS
4681 if test -z "$ac_cv_path_SED"; then
4682 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4683 fi
4684 else
4685 ac_cv_path_SED=$SED
4686 fi
4687
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4690 $as_echo "$ac_cv_path_SED" >&6; }
4691 SED="$ac_cv_path_SED"
4692 rm -f conftest.sed
4693
4694
4695
4696
4697
4698
4699 # Check whether --enable-selective-werror was given.
4700 if test "${enable_selective_werror+set}" = set; then :
4701 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4702 else
4703 SELECTIVE_WERROR=yes
4704 fi
4705
4706
4707
4708
4709
4710 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4711 if test "x$SUNCC" = "xyes"; then
4712 BASE_CFLAGS="-v"
4713 else
4714 BASE_CFLAGS=""
4715 fi
4716
4717 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731 xorg_testset_save_CFLAGS="$CFLAGS"
4732
4733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4736 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4737 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 int i;
4743 _ACEOF
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 xorg_cv_cc_flag_unknown_warning_option=yes
4746 else
4747 xorg_cv_cc_flag_unknown_warning_option=no
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4752 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4754 CFLAGS="$xorg_testset_save_CFLAGS"
4755 fi
4756
4757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4760 fi
4761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4763 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4764 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 int i;
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772 xorg_cv_cc_flag_unused_command_line_argument=yes
4773 else
4774 xorg_cv_cc_flag_unused_command_line_argument=no
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4779 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4781 CFLAGS="$xorg_testset_save_CFLAGS"
4782 fi
4783
4784 found="no"
4785
4786 if test $found = "no" ; then
4787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4789 fi
4790
4791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4793 fi
4794
4795 CFLAGS="$CFLAGS -Wall"
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4798 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4799 cacheid=xorg_cv_cc_flag__Wall
4800 if eval \${$cacheid+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 int i;
4806 int
4807 main ()
4808 {
4809
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 if ac_fn_c_try_link "$LINENO"; then :
4815 eval $cacheid=yes
4816 else
4817 eval $cacheid=no
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext \
4820 conftest$ac_exeext conftest.$ac_ext
4821 fi
4822
4823
4824 CFLAGS="$xorg_testset_save_CFLAGS"
4825
4826 eval supported=\$$cacheid
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4828 $as_echo "$supported" >&6; }
4829 if test "$supported" = "yes" ; then
4830 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4831 found="yes"
4832 fi
4833 fi
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849 xorg_testset_save_CFLAGS="$CFLAGS"
4850
4851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4854 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4855 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 int i;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 xorg_cv_cc_flag_unknown_warning_option=yes
4864 else
4865 xorg_cv_cc_flag_unknown_warning_option=no
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4870 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4872 CFLAGS="$xorg_testset_save_CFLAGS"
4873 fi
4874
4875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4878 fi
4879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4881 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4882 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 int i;
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 xorg_cv_cc_flag_unused_command_line_argument=yes
4891 else
4892 xorg_cv_cc_flag_unused_command_line_argument=no
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4897 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4899 CFLAGS="$xorg_testset_save_CFLAGS"
4900 fi
4901
4902 found="no"
4903
4904 if test $found = "no" ; then
4905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907 fi
4908
4909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4911 fi
4912
4913 CFLAGS="$CFLAGS -Wpointer-arith"
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4916 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4917 cacheid=xorg_cv_cc_flag__Wpointer_arith
4918 if eval \${$cacheid+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 int i;
4924 int
4925 main ()
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_link "$LINENO"; then :
4933 eval $cacheid=yes
4934 else
4935 eval $cacheid=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
4939 fi
4940
4941
4942 CFLAGS="$xorg_testset_save_CFLAGS"
4943
4944 eval supported=\$$cacheid
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4946 $as_echo "$supported" >&6; }
4947 if test "$supported" = "yes" ; then
4948 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4949 found="yes"
4950 fi
4951 fi
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 xorg_testset_save_CFLAGS="$CFLAGS"
4968
4969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 int i;
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 xorg_cv_cc_flag_unknown_warning_option=yes
4982 else
4983 xorg_cv_cc_flag_unknown_warning_option=no
4984 fi
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4990 CFLAGS="$xorg_testset_save_CFLAGS"
4991 fi
4992
4993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996 fi
4997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 int i;
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 xorg_cv_cc_flag_unused_command_line_argument=yes
5009 else
5010 xorg_cv_cc_flag_unused_command_line_argument=no
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 fi
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5017 CFLAGS="$xorg_testset_save_CFLAGS"
5018 fi
5019
5020 found="no"
5021
5022 if test $found = "no" ; then
5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025 fi
5026
5027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029 fi
5030
5031 CFLAGS="$CFLAGS -Wmissing-declarations"
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5034 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5035 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5036 if eval \${$cacheid+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 int i;
5042 int
5043 main ()
5044 {
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_link "$LINENO"; then :
5051 eval $cacheid=yes
5052 else
5053 eval $cacheid=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext \
5056 conftest$ac_exeext conftest.$ac_ext
5057 fi
5058
5059
5060 CFLAGS="$xorg_testset_save_CFLAGS"
5061
5062 eval supported=\$$cacheid
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5064 $as_echo "$supported" >&6; }
5065 if test "$supported" = "yes" ; then
5066 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5067 found="yes"
5068 fi
5069 fi
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 xorg_testset_save_CFLAGS="$CFLAGS"
5086
5087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int i;
5097 _ACEOF
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 xorg_cv_cc_flag_unknown_warning_option=yes
5100 else
5101 xorg_cv_cc_flag_unknown_warning_option=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5108 CFLAGS="$xorg_testset_save_CFLAGS"
5109 fi
5110
5111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114 fi
5115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 int i;
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 xorg_cv_cc_flag_unused_command_line_argument=yes
5127 else
5128 xorg_cv_cc_flag_unused_command_line_argument=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5135 CFLAGS="$xorg_testset_save_CFLAGS"
5136 fi
5137
5138 found="no"
5139
5140 if test $found = "no" ; then
5141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5143 fi
5144
5145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5147 fi
5148
5149 CFLAGS="$CFLAGS -Wformat=2"
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5152 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5153 cacheid=xorg_cv_cc_flag__Wformat_2
5154 if eval \${$cacheid+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 int i;
5160 int
5161 main ()
5162 {
5163
5164 ;
5165 return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_link "$LINENO"; then :
5169 eval $cacheid=yes
5170 else
5171 eval $cacheid=no
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5175 fi
5176
5177
5178 CFLAGS="$xorg_testset_save_CFLAGS"
5179
5180 eval supported=\$$cacheid
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5182 $as_echo "$supported" >&6; }
5183 if test "$supported" = "yes" ; then
5184 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5185 found="yes"
5186 fi
5187 fi
5188
5189 if test $found = "no" ; then
5190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192 fi
5193
5194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196 fi
5197
5198 CFLAGS="$CFLAGS -Wformat"
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5201 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5202 cacheid=xorg_cv_cc_flag__Wformat
5203 if eval \${$cacheid+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 int i;
5209 int
5210 main ()
5211 {
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_link "$LINENO"; then :
5218 eval $cacheid=yes
5219 else
5220 eval $cacheid=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224 fi
5225
5226
5227 CFLAGS="$xorg_testset_save_CFLAGS"
5228
5229 eval supported=\$$cacheid
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231 $as_echo "$supported" >&6; }
5232 if test "$supported" = "yes" ; then
5233 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5234 found="yes"
5235 fi
5236 fi
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254 xorg_testset_save_CFLAGS="$CFLAGS"
5255
5256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265 int i;
5266 _ACEOF
5267 if ac_fn_c_try_compile "$LINENO"; then :
5268 xorg_cv_cc_flag_unknown_warning_option=yes
5269 else
5270 xorg_cv_cc_flag_unknown_warning_option=no
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5277 CFLAGS="$xorg_testset_save_CFLAGS"
5278 fi
5279
5280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5283 fi
5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 int i;
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 xorg_cv_cc_flag_unused_command_line_argument=yes
5296 else
5297 xorg_cv_cc_flag_unused_command_line_argument=no
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5304 CFLAGS="$xorg_testset_save_CFLAGS"
5305 fi
5306
5307 found="no"
5308
5309 if test $found = "no" ; then
5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312 fi
5313
5314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316 fi
5317
5318 CFLAGS="$CFLAGS -Wstrict-prototypes"
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5321 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5322 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5323 if eval \${$cacheid+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 int i;
5329 int
5330 main ()
5331 {
5332
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 if ac_fn_c_try_link "$LINENO"; then :
5338 eval $cacheid=yes
5339 else
5340 eval $cacheid=no
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344 fi
5345
5346
5347 CFLAGS="$xorg_testset_save_CFLAGS"
5348
5349 eval supported=\$$cacheid
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5351 $as_echo "$supported" >&6; }
5352 if test "$supported" = "yes" ; then
5353 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5354 found="yes"
5355 fi
5356 fi
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 xorg_testset_save_CFLAGS="$CFLAGS"
5373
5374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 int i;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 xorg_cv_cc_flag_unknown_warning_option=yes
5387 else
5388 xorg_cv_cc_flag_unknown_warning_option=no
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5395 CFLAGS="$xorg_testset_save_CFLAGS"
5396 fi
5397
5398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401 fi
5402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 int i;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 xorg_cv_cc_flag_unused_command_line_argument=yes
5414 else
5415 xorg_cv_cc_flag_unused_command_line_argument=no
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5422 CFLAGS="$xorg_testset_save_CFLAGS"
5423 fi
5424
5425 found="no"
5426
5427 if test $found = "no" ; then
5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430 fi
5431
5432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434 fi
5435
5436 CFLAGS="$CFLAGS -Wmissing-prototypes"
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5439 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5440 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5441 if eval \${$cacheid+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 int i;
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_link "$LINENO"; then :
5456 eval $cacheid=yes
5457 else
5458 eval $cacheid=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 fi
5463
5464
5465 CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467 eval supported=\$$cacheid
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469 $as_echo "$supported" >&6; }
5470 if test "$supported" = "yes" ; then
5471 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5472 found="yes"
5473 fi
5474 fi
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 xorg_testset_save_CFLAGS="$CFLAGS"
5491
5492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 int i;
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 xorg_cv_cc_flag_unknown_warning_option=yes
5505 else
5506 xorg_cv_cc_flag_unknown_warning_option=no
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5513 CFLAGS="$xorg_testset_save_CFLAGS"
5514 fi
5515
5516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519 fi
5520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 int i;
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"; then :
5531 xorg_cv_cc_flag_unused_command_line_argument=yes
5532 else
5533 xorg_cv_cc_flag_unused_command_line_argument=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5540 CFLAGS="$xorg_testset_save_CFLAGS"
5541 fi
5542
5543 found="no"
5544
5545 if test $found = "no" ; then
5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548 fi
5549
5550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552 fi
5553
5554 CFLAGS="$CFLAGS -Wnested-externs"
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5557 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5558 cacheid=xorg_cv_cc_flag__Wnested_externs
5559 if eval \${$cacheid+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 int i;
5565 int
5566 main ()
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_link "$LINENO"; then :
5574 eval $cacheid=yes
5575 else
5576 eval $cacheid=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext \
5579 conftest$ac_exeext conftest.$ac_ext
5580 fi
5581
5582
5583 CFLAGS="$xorg_testset_save_CFLAGS"
5584
5585 eval supported=\$$cacheid
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5587 $as_echo "$supported" >&6; }
5588 if test "$supported" = "yes" ; then
5589 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5590 found="yes"
5591 fi
5592 fi
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608 xorg_testset_save_CFLAGS="$CFLAGS"
5609
5610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 int i;
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622 xorg_cv_cc_flag_unknown_warning_option=yes
5623 else
5624 xorg_cv_cc_flag_unknown_warning_option=no
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5631 CFLAGS="$xorg_testset_save_CFLAGS"
5632 fi
5633
5634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637 fi
5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 int i;
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 xorg_cv_cc_flag_unused_command_line_argument=yes
5650 else
5651 xorg_cv_cc_flag_unused_command_line_argument=no
5652 fi
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5658 CFLAGS="$xorg_testset_save_CFLAGS"
5659 fi
5660
5661 found="no"
5662
5663 if test $found = "no" ; then
5664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5666 fi
5667
5668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5670 fi
5671
5672 CFLAGS="$CFLAGS -Wbad-function-cast"
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5675 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5676 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5677 if eval \${$cacheid+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 int i;
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_link "$LINENO"; then :
5692 eval $cacheid=yes
5693 else
5694 eval $cacheid=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext \
5697 conftest$ac_exeext conftest.$ac_ext
5698 fi
5699
5700
5701 CFLAGS="$xorg_testset_save_CFLAGS"
5702
5703 eval supported=\$$cacheid
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5705 $as_echo "$supported" >&6; }
5706 if test "$supported" = "yes" ; then
5707 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5708 found="yes"
5709 fi
5710 fi
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 xorg_testset_save_CFLAGS="$CFLAGS"
5727
5728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 int i;
5738 _ACEOF
5739 if ac_fn_c_try_compile "$LINENO"; then :
5740 xorg_cv_cc_flag_unknown_warning_option=yes
5741 else
5742 xorg_cv_cc_flag_unknown_warning_option=no
5743 fi
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5749 CFLAGS="$xorg_testset_save_CFLAGS"
5750 fi
5751
5752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755 fi
5756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764 int i;
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 xorg_cv_cc_flag_unused_command_line_argument=yes
5768 else
5769 xorg_cv_cc_flag_unused_command_line_argument=no
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5776 CFLAGS="$xorg_testset_save_CFLAGS"
5777 fi
5778
5779 found="no"
5780
5781 if test $found = "no" ; then
5782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784 fi
5785
5786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5788 fi
5789
5790 CFLAGS="$CFLAGS -Wold-style-definition"
5791
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5793 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5794 cacheid=xorg_cv_cc_flag__Wold_style_definition
5795 if eval \${$cacheid+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int i;
5801 int
5802 main ()
5803 {
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_link "$LINENO"; then :
5810 eval $cacheid=yes
5811 else
5812 eval $cacheid=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5816 fi
5817
5818
5819 CFLAGS="$xorg_testset_save_CFLAGS"
5820
5821 eval supported=\$$cacheid
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5823 $as_echo "$supported" >&6; }
5824 if test "$supported" = "yes" ; then
5825 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5826 found="yes"
5827 fi
5828 fi
5829
5830 if test $found = "no" ; then
5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833 fi
5834
5835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837 fi
5838
5839 CFLAGS="$CFLAGS -fd"
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5842 $as_echo_n "checking if $CC supports -fd... " >&6; }
5843 cacheid=xorg_cv_cc_flag__fd
5844 if eval \${$cacheid+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849 int i;
5850 int
5851 main ()
5852 {
5853
5854 ;
5855 return 0;
5856 }
5857 _ACEOF
5858 if ac_fn_c_try_link "$LINENO"; then :
5859 eval $cacheid=yes
5860 else
5861 eval $cacheid=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5865 fi
5866
5867
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869
5870 eval supported=\$$cacheid
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5872 $as_echo "$supported" >&6; }
5873 if test "$supported" = "yes" ; then
5874 BASE_CFLAGS="$BASE_CFLAGS -fd"
5875 found="yes"
5876 fi
5877 fi
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 xorg_testset_save_CFLAGS="$CFLAGS"
5894
5895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 int i;
5905 _ACEOF
5906 if ac_fn_c_try_compile "$LINENO"; then :
5907 xorg_cv_cc_flag_unknown_warning_option=yes
5908 else
5909 xorg_cv_cc_flag_unknown_warning_option=no
5910 fi
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 fi
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5916 CFLAGS="$xorg_testset_save_CFLAGS"
5917 fi
5918
5919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922 fi
5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 int i;
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5934 xorg_cv_cc_flag_unused_command_line_argument=yes
5935 else
5936 xorg_cv_cc_flag_unused_command_line_argument=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5943 CFLAGS="$xorg_testset_save_CFLAGS"
5944 fi
5945
5946 found="no"
5947
5948 if test $found = "no" ; then
5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951 fi
5952
5953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5955 fi
5956
5957 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5960 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5961 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5962 if eval \${$cacheid+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 int
5969 main ()
5970 {
5971
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 if ac_fn_c_try_link "$LINENO"; then :
5977 eval $cacheid=yes
5978 else
5979 eval $cacheid=no
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5983 fi
5984
5985
5986 CFLAGS="$xorg_testset_save_CFLAGS"
5987
5988 eval supported=\$$cacheid
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5990 $as_echo "$supported" >&6; }
5991 if test "$supported" = "yes" ; then
5992 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5993 found="yes"
5994 fi
5995 fi
5996
5997
5998
5999
6000
6001 # This chunk adds additional warnings that could catch undesired effects.
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 xorg_testset_save_CFLAGS="$CFLAGS"
6016
6017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6020 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6021 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 int i;
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 xorg_cv_cc_flag_unknown_warning_option=yes
6030 else
6031 xorg_cv_cc_flag_unknown_warning_option=no
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6036 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6038 CFLAGS="$xorg_testset_save_CFLAGS"
6039 fi
6040
6041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 fi
6045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6047 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6048 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 int i;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 xorg_cv_cc_flag_unused_command_line_argument=yes
6057 else
6058 xorg_cv_cc_flag_unused_command_line_argument=no
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6063 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6065 CFLAGS="$xorg_testset_save_CFLAGS"
6066 fi
6067
6068 found="no"
6069
6070 if test $found = "no" ; then
6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073 fi
6074
6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6077 fi
6078
6079 CFLAGS="$CFLAGS -Wunused"
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6082 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6083 cacheid=xorg_cv_cc_flag__Wunused
6084 if eval \${$cacheid+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 int i;
6090 int
6091 main ()
6092 {
6093
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 if ac_fn_c_try_link "$LINENO"; then :
6099 eval $cacheid=yes
6100 else
6101 eval $cacheid=no
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
6105 fi
6106
6107
6108 CFLAGS="$xorg_testset_save_CFLAGS"
6109
6110 eval supported=\$$cacheid
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6112 $as_echo "$supported" >&6; }
6113 if test "$supported" = "yes" ; then
6114 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6115 found="yes"
6116 fi
6117 fi
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133 xorg_testset_save_CFLAGS="$CFLAGS"
6134
6135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6138 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6139 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 int i;
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 xorg_cv_cc_flag_unknown_warning_option=yes
6148 else
6149 xorg_cv_cc_flag_unknown_warning_option=no
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6154 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6156 CFLAGS="$xorg_testset_save_CFLAGS"
6157 fi
6158
6159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6162 fi
6163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6166 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 int i;
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 xorg_cv_cc_flag_unused_command_line_argument=yes
6175 else
6176 xorg_cv_cc_flag_unused_command_line_argument=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6181 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6183 CFLAGS="$xorg_testset_save_CFLAGS"
6184 fi
6185
6186 found="no"
6187
6188 if test $found = "no" ; then
6189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191 fi
6192
6193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6195 fi
6196
6197 CFLAGS="$CFLAGS -Wuninitialized"
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6200 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6201 cacheid=xorg_cv_cc_flag__Wuninitialized
6202 if eval \${$cacheid+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 int i;
6208 int
6209 main ()
6210 {
6211
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"; then :
6217 eval $cacheid=yes
6218 else
6219 eval $cacheid=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6223 fi
6224
6225
6226 CFLAGS="$xorg_testset_save_CFLAGS"
6227
6228 eval supported=\$$cacheid
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6230 $as_echo "$supported" >&6; }
6231 if test "$supported" = "yes" ; then
6232 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6233 found="yes"
6234 fi
6235 fi
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 xorg_testset_save_CFLAGS="$CFLAGS"
6252
6253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6256 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6257 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 int i;
6263 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"; then :
6265 xorg_cv_cc_flag_unknown_warning_option=yes
6266 else
6267 xorg_cv_cc_flag_unknown_warning_option=no
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6272 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6274 CFLAGS="$xorg_testset_save_CFLAGS"
6275 fi
6276
6277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 fi
6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6283 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6284 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 int i;
6290 _ACEOF
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292 xorg_cv_cc_flag_unused_command_line_argument=yes
6293 else
6294 xorg_cv_cc_flag_unused_command_line_argument=no
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6299 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6301 CFLAGS="$xorg_testset_save_CFLAGS"
6302 fi
6303
6304 found="no"
6305
6306 if test $found = "no" ; then
6307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6309 fi
6310
6311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6313 fi
6314
6315 CFLAGS="$CFLAGS -Wshadow"
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6318 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6319 cacheid=xorg_cv_cc_flag__Wshadow
6320 if eval \${$cacheid+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 int i;
6326 int
6327 main ()
6328 {
6329
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 if ac_fn_c_try_link "$LINENO"; then :
6335 eval $cacheid=yes
6336 else
6337 eval $cacheid=no
6338 fi
6339 rm -f core conftest.err conftest.$ac_objext \
6340 conftest$ac_exeext conftest.$ac_ext
6341 fi
6342
6343
6344 CFLAGS="$xorg_testset_save_CFLAGS"
6345
6346 eval supported=\$$cacheid
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6348 $as_echo "$supported" >&6; }
6349 if test "$supported" = "yes" ; then
6350 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6351 found="yes"
6352 fi
6353 fi
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369 xorg_testset_save_CFLAGS="$CFLAGS"
6370
6371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 int i;
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"; then :
6383 xorg_cv_cc_flag_unknown_warning_option=yes
6384 else
6385 xorg_cv_cc_flag_unknown_warning_option=no
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6392 CFLAGS="$xorg_testset_save_CFLAGS"
6393 fi
6394
6395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398 fi
6399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 int i;
6408 _ACEOF
6409 if ac_fn_c_try_compile "$LINENO"; then :
6410 xorg_cv_cc_flag_unused_command_line_argument=yes
6411 else
6412 xorg_cv_cc_flag_unused_command_line_argument=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6420 fi
6421
6422 found="no"
6423
6424 if test $found = "no" ; then
6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 fi
6428
6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431 fi
6432
6433 CFLAGS="$CFLAGS -Wmissing-noreturn"
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6436 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6437 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6438 if eval \${$cacheid+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 int i;
6444 int
6445 main ()
6446 {
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_link "$LINENO"; then :
6453 eval $cacheid=yes
6454 else
6455 eval $cacheid=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459 fi
6460
6461
6462 CFLAGS="$xorg_testset_save_CFLAGS"
6463
6464 eval supported=\$$cacheid
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6466 $as_echo "$supported" >&6; }
6467 if test "$supported" = "yes" ; then
6468 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6469 found="yes"
6470 fi
6471 fi
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 xorg_testset_save_CFLAGS="$CFLAGS"
6488
6489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 int i;
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"; then :
6501 xorg_cv_cc_flag_unknown_warning_option=yes
6502 else
6503 xorg_cv_cc_flag_unknown_warning_option=no
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6510 CFLAGS="$xorg_testset_save_CFLAGS"
6511 fi
6512
6513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 fi
6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 int i;
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 xorg_cv_cc_flag_unused_command_line_argument=yes
6529 else
6530 xorg_cv_cc_flag_unused_command_line_argument=no
6531 fi
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6537 CFLAGS="$xorg_testset_save_CFLAGS"
6538 fi
6539
6540 found="no"
6541
6542 if test $found = "no" ; then
6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545 fi
6546
6547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549 fi
6550
6551 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6554 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6555 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6556 if eval \${$cacheid+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 int
6563 main ()
6564 {
6565
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_link "$LINENO"; then :
6571 eval $cacheid=yes
6572 else
6573 eval $cacheid=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6577 fi
6578
6579
6580 CFLAGS="$xorg_testset_save_CFLAGS"
6581
6582 eval supported=\$$cacheid
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6584 $as_echo "$supported" >&6; }
6585 if test "$supported" = "yes" ; then
6586 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6587 found="yes"
6588 fi
6589 fi
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 xorg_testset_save_CFLAGS="$CFLAGS"
6606
6607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 int i;
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 xorg_cv_cc_flag_unknown_warning_option=yes
6620 else
6621 xorg_cv_cc_flag_unknown_warning_option=no
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6628 CFLAGS="$xorg_testset_save_CFLAGS"
6629 fi
6630
6631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634 fi
6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 int i;
6644 _ACEOF
6645 if ac_fn_c_try_compile "$LINENO"; then :
6646 xorg_cv_cc_flag_unused_command_line_argument=yes
6647 else
6648 xorg_cv_cc_flag_unused_command_line_argument=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6655 CFLAGS="$xorg_testset_save_CFLAGS"
6656 fi
6657
6658 found="no"
6659
6660 if test $found = "no" ; then
6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663 fi
6664
6665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6667 fi
6668
6669 CFLAGS="$CFLAGS -Wredundant-decls"
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6672 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6673 cacheid=xorg_cv_cc_flag__Wredundant_decls
6674 if eval \${$cacheid+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 int
6681 main ()
6682 {
6683
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 if ac_fn_c_try_link "$LINENO"; then :
6689 eval $cacheid=yes
6690 else
6691 eval $cacheid=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext \
6694 conftest$ac_exeext conftest.$ac_ext
6695 fi
6696
6697
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699
6700 eval supported=\$$cacheid
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6702 $as_echo "$supported" >&6; }
6703 if test "$supported" = "yes" ; then
6704 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6705 found="yes"
6706 fi
6707 fi
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723 xorg_testset_save_CFLAGS="$CFLAGS"
6724
6725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 int i;
6735 _ACEOF
6736 if ac_fn_c_try_compile "$LINENO"; then :
6737 xorg_cv_cc_flag_unknown_warning_option=yes
6738 else
6739 xorg_cv_cc_flag_unknown_warning_option=no
6740 fi
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 fi
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6746 CFLAGS="$xorg_testset_save_CFLAGS"
6747 fi
6748
6749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752 fi
6753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 int i;
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 xorg_cv_cc_flag_unused_command_line_argument=yes
6765 else
6766 xorg_cv_cc_flag_unused_command_line_argument=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6773 CFLAGS="$xorg_testset_save_CFLAGS"
6774 fi
6775
6776 found="no"
6777
6778 if test $found = "no" ; then
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 fi
6782
6783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785 fi
6786
6787 CFLAGS="$CFLAGS -Wlogical-op"
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6790 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6791 cacheid=xorg_cv_cc_flag__Wlogical_op
6792 if eval \${$cacheid+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 int
6799 main ()
6800 {
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_c_try_link "$LINENO"; then :
6807 eval $cacheid=yes
6808 else
6809 eval $cacheid=no
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 fi
6814
6815
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817
6818 eval supported=\$$cacheid
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6820 $as_echo "$supported" >&6; }
6821 if test "$supported" = "yes" ; then
6822 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6823 found="yes"
6824 fi
6825 fi
6826
6827
6828
6829 # These are currently disabled because they are noisy. They will be enabled
6830 # in the future once the codebase is sufficiently modernized to silence
6831 # them. For now, I don't want them to drown out the other warnings.
6832 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6833 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6834 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6835
6836 # Turn some warnings into errors, so we don't accidently get successful builds
6837 # when there are problems that should be fixed.
6838
6839 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 xorg_testset_save_CFLAGS="$CFLAGS"
6854
6855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6858 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6859 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 int i;
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 xorg_cv_cc_flag_unknown_warning_option=yes
6868 else
6869 xorg_cv_cc_flag_unknown_warning_option=no
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 fi
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6874 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6876 CFLAGS="$xorg_testset_save_CFLAGS"
6877 fi
6878
6879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6882 fi
6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6885 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6886 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int i;
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 xorg_cv_cc_flag_unused_command_line_argument=yes
6895 else
6896 xorg_cv_cc_flag_unused_command_line_argument=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6901 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904 fi
6905
6906 found="no"
6907
6908 if test $found = "no" ; then
6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911 fi
6912
6913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915 fi
6916
6917 CFLAGS="$CFLAGS -Werror=implicit"
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6920 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6921 cacheid=xorg_cv_cc_flag__Werror_implicit
6922 if eval \${$cacheid+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 int i;
6928 int
6929 main ()
6930 {
6931
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 if ac_fn_c_try_link "$LINENO"; then :
6937 eval $cacheid=yes
6938 else
6939 eval $cacheid=no
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
6943 fi
6944
6945
6946 CFLAGS="$xorg_testset_save_CFLAGS"
6947
6948 eval supported=\$$cacheid
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6950 $as_echo "$supported" >&6; }
6951 if test "$supported" = "yes" ; then
6952 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6953 found="yes"
6954 fi
6955 fi
6956
6957 if test $found = "no" ; then
6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961
6962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964 fi
6965
6966 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6969 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6970 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6971 if eval \${$cacheid+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 int i;
6977 int
6978 main ()
6979 {
6980
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
6986 eval $cacheid=yes
6987 else
6988 eval $cacheid=no
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 fi
6993
6994
6995 CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997 eval supported=\$$cacheid
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999 $as_echo "$supported" >&6; }
7000 if test "$supported" = "yes" ; then
7001 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7002 found="yes"
7003 fi
7004 fi
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020 xorg_testset_save_CFLAGS="$CFLAGS"
7021
7022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7025 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7026 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int i;
7032 _ACEOF
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034 xorg_cv_cc_flag_unknown_warning_option=yes
7035 else
7036 xorg_cv_cc_flag_unknown_warning_option=no
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7041 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7043 CFLAGS="$xorg_testset_save_CFLAGS"
7044 fi
7045
7046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7049 fi
7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7052 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7053 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 int i;
7059 _ACEOF
7060 if ac_fn_c_try_compile "$LINENO"; then :
7061 xorg_cv_cc_flag_unused_command_line_argument=yes
7062 else
7063 xorg_cv_cc_flag_unused_command_line_argument=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7068 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7070 CFLAGS="$xorg_testset_save_CFLAGS"
7071 fi
7072
7073 found="no"
7074
7075 if test $found = "no" ; then
7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078 fi
7079
7080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082 fi
7083
7084 CFLAGS="$CFLAGS -Werror=nonnull"
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7087 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7088 cacheid=xorg_cv_cc_flag__Werror_nonnull
7089 if eval \${$cacheid+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 int
7096 main ()
7097 {
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 eval $cacheid=yes
7105 else
7106 eval $cacheid=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 fi
7111
7112
7113 CFLAGS="$xorg_testset_save_CFLAGS"
7114
7115 eval supported=\$$cacheid
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7117 $as_echo "$supported" >&6; }
7118 if test "$supported" = "yes" ; then
7119 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7120 found="yes"
7121 fi
7122 fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 xorg_testset_save_CFLAGS="$CFLAGS"
7139
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7143 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7144 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 int i;
7150 _ACEOF
7151 if ac_fn_c_try_compile "$LINENO"; then :
7152 xorg_cv_cc_flag_unknown_warning_option=yes
7153 else
7154 xorg_cv_cc_flag_unknown_warning_option=no
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 fi
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7159 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7161 CFLAGS="$xorg_testset_save_CFLAGS"
7162 fi
7163
7164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 fi
7168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7170 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7171 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 int i;
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"; then :
7179 xorg_cv_cc_flag_unused_command_line_argument=yes
7180 else
7181 xorg_cv_cc_flag_unused_command_line_argument=no
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7186 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7188 CFLAGS="$xorg_testset_save_CFLAGS"
7189 fi
7190
7191 found="no"
7192
7193 if test $found = "no" ; then
7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196 fi
7197
7198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7200 fi
7201
7202 CFLAGS="$CFLAGS -Werror=init-self"
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7205 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7206 cacheid=xorg_cv_cc_flag__Werror_init_self
7207 if eval \${$cacheid+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 int i;
7213 int
7214 main ()
7215 {
7216
7217 ;
7218 return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_link "$LINENO"; then :
7222 eval $cacheid=yes
7223 else
7224 eval $cacheid=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228 fi
7229
7230
7231 CFLAGS="$xorg_testset_save_CFLAGS"
7232
7233 eval supported=\$$cacheid
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7235 $as_echo "$supported" >&6; }
7236 if test "$supported" = "yes" ; then
7237 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7238 found="yes"
7239 fi
7240 fi
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256 xorg_testset_save_CFLAGS="$CFLAGS"
7257
7258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7261 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7262 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 int i;
7268 _ACEOF
7269 if ac_fn_c_try_compile "$LINENO"; then :
7270 xorg_cv_cc_flag_unknown_warning_option=yes
7271 else
7272 xorg_cv_cc_flag_unknown_warning_option=no
7273 fi
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 fi
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7277 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7279 CFLAGS="$xorg_testset_save_CFLAGS"
7280 fi
7281
7282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285 fi
7286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7288 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7289 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 int i;
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 xorg_cv_cc_flag_unused_command_line_argument=yes
7298 else
7299 xorg_cv_cc_flag_unused_command_line_argument=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7304 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7306 CFLAGS="$xorg_testset_save_CFLAGS"
7307 fi
7308
7309 found="no"
7310
7311 if test $found = "no" ; then
7312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314 fi
7315
7316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318 fi
7319
7320 CFLAGS="$CFLAGS -Werror=main"
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7323 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7324 cacheid=xorg_cv_cc_flag__Werror_main
7325 if eval \${$cacheid+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 int
7332 main ()
7333 {
7334
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_link "$LINENO"; then :
7340 eval $cacheid=yes
7341 else
7342 eval $cacheid=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext \
7345 conftest$ac_exeext conftest.$ac_ext
7346 fi
7347
7348
7349 CFLAGS="$xorg_testset_save_CFLAGS"
7350
7351 eval supported=\$$cacheid
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7353 $as_echo "$supported" >&6; }
7354 if test "$supported" = "yes" ; then
7355 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7356 found="yes"
7357 fi
7358 fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374 xorg_testset_save_CFLAGS="$CFLAGS"
7375
7376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7379 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7380 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 int i;
7386 _ACEOF
7387 if ac_fn_c_try_compile "$LINENO"; then :
7388 xorg_cv_cc_flag_unknown_warning_option=yes
7389 else
7390 xorg_cv_cc_flag_unknown_warning_option=no
7391 fi
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7395 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7397 CFLAGS="$xorg_testset_save_CFLAGS"
7398 fi
7399
7400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403 fi
7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7406 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7407 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412 int i;
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 xorg_cv_cc_flag_unused_command_line_argument=yes
7416 else
7417 xorg_cv_cc_flag_unused_command_line_argument=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7422 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7424 CFLAGS="$xorg_testset_save_CFLAGS"
7425 fi
7426
7427 found="no"
7428
7429 if test $found = "no" ; then
7430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432 fi
7433
7434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436 fi
7437
7438 CFLAGS="$CFLAGS -Werror=missing-braces"
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7441 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7442 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7443 if eval \${$cacheid+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 int i;
7449 int
7450 main ()
7451 {
7452
7453 ;
7454 return 0;
7455 }
7456 _ACEOF
7457 if ac_fn_c_try_link "$LINENO"; then :
7458 eval $cacheid=yes
7459 else
7460 eval $cacheid=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext \
7463 conftest$ac_exeext conftest.$ac_ext
7464 fi
7465
7466
7467 CFLAGS="$xorg_testset_save_CFLAGS"
7468
7469 eval supported=\$$cacheid
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7471 $as_echo "$supported" >&6; }
7472 if test "$supported" = "yes" ; then
7473 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7474 found="yes"
7475 fi
7476 fi
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 xorg_testset_save_CFLAGS="$CFLAGS"
7493
7494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7498 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 int i;
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 xorg_cv_cc_flag_unknown_warning_option=yes
7507 else
7508 xorg_cv_cc_flag_unknown_warning_option=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7513 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7515 CFLAGS="$xorg_testset_save_CFLAGS"
7516 fi
7517
7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 fi
7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 int i;
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 xorg_cv_cc_flag_unused_command_line_argument=yes
7534 else
7535 xorg_cv_cc_flag_unused_command_line_argument=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7540 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7542 CFLAGS="$xorg_testset_save_CFLAGS"
7543 fi
7544
7545 found="no"
7546
7547 if test $found = "no" ; then
7548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7550 fi
7551
7552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 fi
7555
7556 CFLAGS="$CFLAGS -Werror=sequence-point"
7557
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7559 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7560 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7561 if eval \${$cacheid+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 int
7568 main ()
7569 {
7570
7571 ;
7572 return 0;
7573 }
7574 _ACEOF
7575 if ac_fn_c_try_link "$LINENO"; then :
7576 eval $cacheid=yes
7577 else
7578 eval $cacheid=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7582 fi
7583
7584
7585 CFLAGS="$xorg_testset_save_CFLAGS"
7586
7587 eval supported=\$$cacheid
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7589 $as_echo "$supported" >&6; }
7590 if test "$supported" = "yes" ; then
7591 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7592 found="yes"
7593 fi
7594 fi
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610 xorg_testset_save_CFLAGS="$CFLAGS"
7611
7612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7615 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7616 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 int i;
7622 _ACEOF
7623 if ac_fn_c_try_compile "$LINENO"; then :
7624 xorg_cv_cc_flag_unknown_warning_option=yes
7625 else
7626 xorg_cv_cc_flag_unknown_warning_option=no
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7631 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7633 CFLAGS="$xorg_testset_save_CFLAGS"
7634 fi
7635
7636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 fi
7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7642 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7643 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 int i;
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"; then :
7651 xorg_cv_cc_flag_unused_command_line_argument=yes
7652 else
7653 xorg_cv_cc_flag_unused_command_line_argument=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7658 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7660 CFLAGS="$xorg_testset_save_CFLAGS"
7661 fi
7662
7663 found="no"
7664
7665 if test $found = "no" ; then
7666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668 fi
7669
7670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7672 fi
7673
7674 CFLAGS="$CFLAGS -Werror=return-type"
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7677 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7678 cacheid=xorg_cv_cc_flag__Werror_return_type
7679 if eval \${$cacheid+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684 int i;
7685 int
7686 main ()
7687 {
7688
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 if ac_fn_c_try_link "$LINENO"; then :
7694 eval $cacheid=yes
7695 else
7696 eval $cacheid=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700 fi
7701
7702
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704
7705 eval supported=\$$cacheid
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7707 $as_echo "$supported" >&6; }
7708 if test "$supported" = "yes" ; then
7709 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7710 found="yes"
7711 fi
7712 fi
7713
7714 if test $found = "no" ; then
7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717 fi
7718
7719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721 fi
7722
7723 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7724
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7726 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7727 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7728 if eval \${$cacheid+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 int i;
7734 int
7735 main ()
7736 {
7737
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_link "$LINENO"; then :
7743 eval $cacheid=yes
7744 else
7745 eval $cacheid=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 fi
7750
7751
7752 CFLAGS="$xorg_testset_save_CFLAGS"
7753
7754 eval supported=\$$cacheid
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7756 $as_echo "$supported" >&6; }
7757 if test "$supported" = "yes" ; then
7758 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7759 found="yes"
7760 fi
7761 fi
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 xorg_testset_save_CFLAGS="$CFLAGS"
7778
7779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 int i;
7789 _ACEOF
7790 if ac_fn_c_try_compile "$LINENO"; then :
7791 xorg_cv_cc_flag_unknown_warning_option=yes
7792 else
7793 xorg_cv_cc_flag_unknown_warning_option=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7800 CFLAGS="$xorg_testset_save_CFLAGS"
7801 fi
7802
7803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806 fi
7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 int i;
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 xorg_cv_cc_flag_unused_command_line_argument=yes
7819 else
7820 xorg_cv_cc_flag_unused_command_line_argument=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7828 fi
7829
7830 found="no"
7831
7832 if test $found = "no" ; then
7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835 fi
7836
7837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7839 fi
7840
7841 CFLAGS="$CFLAGS -Werror=trigraphs"
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7844 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7845 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7846 if eval \${$cacheid+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 int i;
7852 int
7853 main ()
7854 {
7855
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 if ac_fn_c_try_link "$LINENO"; then :
7861 eval $cacheid=yes
7862 else
7863 eval $cacheid=no
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 fi
7868
7869
7870 CFLAGS="$xorg_testset_save_CFLAGS"
7871
7872 eval supported=\$$cacheid
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7874 $as_echo "$supported" >&6; }
7875 if test "$supported" = "yes" ; then
7876 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7877 found="yes"
7878 fi
7879 fi
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895 xorg_testset_save_CFLAGS="$CFLAGS"
7896
7897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 int i;
7907 _ACEOF
7908 if ac_fn_c_try_compile "$LINENO"; then :
7909 xorg_cv_cc_flag_unknown_warning_option=yes
7910 else
7911 xorg_cv_cc_flag_unknown_warning_option=no
7912 fi
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919 fi
7920
7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 fi
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 int i;
7934 _ACEOF
7935 if ac_fn_c_try_compile "$LINENO"; then :
7936 xorg_cv_cc_flag_unused_command_line_argument=yes
7937 else
7938 xorg_cv_cc_flag_unused_command_line_argument=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7945 CFLAGS="$xorg_testset_save_CFLAGS"
7946 fi
7947
7948 found="no"
7949
7950 if test $found = "no" ; then
7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953 fi
7954
7955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957 fi
7958
7959 CFLAGS="$CFLAGS -Werror=array-bounds"
7960
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7962 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7963 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7964 if eval \${$cacheid+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 int i;
7970 int
7971 main ()
7972 {
7973
7974 ;
7975 return 0;
7976 }
7977 _ACEOF
7978 if ac_fn_c_try_link "$LINENO"; then :
7979 eval $cacheid=yes
7980 else
7981 eval $cacheid=no
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 fi
7986
7987
7988 CFLAGS="$xorg_testset_save_CFLAGS"
7989
7990 eval supported=\$$cacheid
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7992 $as_echo "$supported" >&6; }
7993 if test "$supported" = "yes" ; then
7994 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7995 found="yes"
7996 fi
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013 xorg_testset_save_CFLAGS="$CFLAGS"
8014
8015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8018 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8019 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 int i;
8025 _ACEOF
8026 if ac_fn_c_try_compile "$LINENO"; then :
8027 xorg_cv_cc_flag_unknown_warning_option=yes
8028 else
8029 xorg_cv_cc_flag_unknown_warning_option=no
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8034 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8036 CFLAGS="$xorg_testset_save_CFLAGS"
8037 fi
8038
8039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 fi
8043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8045 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8046 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 int i;
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 xorg_cv_cc_flag_unused_command_line_argument=yes
8055 else
8056 xorg_cv_cc_flag_unused_command_line_argument=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8061 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8063 CFLAGS="$xorg_testset_save_CFLAGS"
8064 fi
8065
8066 found="no"
8067
8068 if test $found = "no" ; then
8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071 fi
8072
8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075 fi
8076
8077 CFLAGS="$CFLAGS -Werror=write-strings"
8078
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8080 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8081 cacheid=xorg_cv_cc_flag__Werror_write_strings
8082 if eval \${$cacheid+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 int i;
8088 int
8089 main ()
8090 {
8091
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"; then :
8097 eval $cacheid=yes
8098 else
8099 eval $cacheid=no
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 fi
8104
8105
8106 CFLAGS="$xorg_testset_save_CFLAGS"
8107
8108 eval supported=\$$cacheid
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8110 $as_echo "$supported" >&6; }
8111 if test "$supported" = "yes" ; then
8112 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8113 found="yes"
8114 fi
8115 fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131 xorg_testset_save_CFLAGS="$CFLAGS"
8132
8133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8137 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 int i;
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"; then :
8145 xorg_cv_cc_flag_unknown_warning_option=yes
8146 else
8147 xorg_cv_cc_flag_unknown_warning_option=no
8148 fi
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8152 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8154 CFLAGS="$xorg_testset_save_CFLAGS"
8155 fi
8156
8157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 fi
8161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8163 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8164 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 int i;
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 xorg_cv_cc_flag_unused_command_line_argument=yes
8173 else
8174 xorg_cv_cc_flag_unused_command_line_argument=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8179 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8181 CFLAGS="$xorg_testset_save_CFLAGS"
8182 fi
8183
8184 found="no"
8185
8186 if test $found = "no" ; then
8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 fi
8190
8191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193 fi
8194
8195 CFLAGS="$CFLAGS -Werror=address"
8196
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8198 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8199 cacheid=xorg_cv_cc_flag__Werror_address
8200 if eval \${$cacheid+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 int i;
8206 int
8207 main ()
8208 {
8209
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215 eval $cacheid=yes
8216 else
8217 eval $cacheid=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8221 fi
8222
8223
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225
8226 eval supported=\$$cacheid
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8228 $as_echo "$supported" >&6; }
8229 if test "$supported" = "yes" ; then
8230 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8231 found="yes"
8232 fi
8233 fi
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 xorg_testset_save_CFLAGS="$CFLAGS"
8250
8251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8254 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8255 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 int i;
8261 _ACEOF
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 xorg_cv_cc_flag_unknown_warning_option=yes
8264 else
8265 xorg_cv_cc_flag_unknown_warning_option=no
8266 fi
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8270 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8272 CFLAGS="$xorg_testset_save_CFLAGS"
8273 fi
8274
8275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278 fi
8279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8281 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8282 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 int i;
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"; then :
8290 xorg_cv_cc_flag_unused_command_line_argument=yes
8291 else
8292 xorg_cv_cc_flag_unused_command_line_argument=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8297 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8299 CFLAGS="$xorg_testset_save_CFLAGS"
8300 fi
8301
8302 found="no"
8303
8304 if test $found = "no" ; then
8305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8307 fi
8308
8309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8311 fi
8312
8313 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8316 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8317 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8318 if eval \${$cacheid+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 int
8325 main ()
8326 {
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"; then :
8333 eval $cacheid=yes
8334 else
8335 eval $cacheid=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 fi
8340
8341
8342 CFLAGS="$xorg_testset_save_CFLAGS"
8343
8344 eval supported=\$$cacheid
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8346 $as_echo "$supported" >&6; }
8347 if test "$supported" = "yes" ; then
8348 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8349 found="yes"
8350 fi
8351 fi
8352
8353 if test $found = "no" ; then
8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 fi
8357
8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 fi
8361
8362 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8365 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8366 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8367 if eval \${$cacheid+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 int i;
8373 int
8374 main ()
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_link "$LINENO"; then :
8382 eval $cacheid=yes
8383 else
8384 eval $cacheid=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 fi
8389
8390
8391 CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393 eval supported=\$$cacheid
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395 $as_echo "$supported" >&6; }
8396 if test "$supported" = "yes" ; then
8397 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8398 found="yes"
8399 fi
8400 fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416 xorg_testset_save_CFLAGS="$CFLAGS"
8417
8418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8421 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8422 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 int i;
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430 xorg_cv_cc_flag_unknown_warning_option=yes
8431 else
8432 xorg_cv_cc_flag_unknown_warning_option=no
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8437 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8439 CFLAGS="$xorg_testset_save_CFLAGS"
8440 fi
8441
8442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445 fi
8446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8448 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8449 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 int i;
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"; then :
8457 xorg_cv_cc_flag_unused_command_line_argument=yes
8458 else
8459 xorg_cv_cc_flag_unused_command_line_argument=no
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8464 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8466 CFLAGS="$xorg_testset_save_CFLAGS"
8467 fi
8468
8469 found="no"
8470
8471 if test $found = "no" ; then
8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474 fi
8475
8476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478 fi
8479
8480 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8481
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8483 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8484 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8485 if eval \${$cacheid+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 int i;
8491 int
8492 main ()
8493 {
8494
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"; then :
8500 eval $cacheid=yes
8501 else
8502 eval $cacheid=no
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 fi
8507
8508
8509 CFLAGS="$xorg_testset_save_CFLAGS"
8510
8511 eval supported=\$$cacheid
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8513 $as_echo "$supported" >&6; }
8514 if test "$supported" = "yes" ; then
8515 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8516 found="yes"
8517 fi
8518 fi
8519
8520 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8521 else
8522 { $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
8523 $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;}
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537 xorg_testset_save_CFLAGS="$CFLAGS"
8538
8539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 int i;
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"; then :
8551 xorg_cv_cc_flag_unknown_warning_option=yes
8552 else
8553 xorg_cv_cc_flag_unknown_warning_option=no
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8560 CFLAGS="$xorg_testset_save_CFLAGS"
8561 fi
8562
8563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566 fi
8567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575 int i;
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578 xorg_cv_cc_flag_unused_command_line_argument=yes
8579 else
8580 xorg_cv_cc_flag_unused_command_line_argument=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8587 CFLAGS="$xorg_testset_save_CFLAGS"
8588 fi
8589
8590 found="no"
8591
8592 if test $found = "no" ; then
8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595 fi
8596
8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8599 fi
8600
8601 CFLAGS="$CFLAGS -Wimplicit"
8602
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8604 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8605 cacheid=xorg_cv_cc_flag__Wimplicit
8606 if eval \${$cacheid+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 int
8613 main ()
8614 {
8615
8616 ;
8617 return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_link "$LINENO"; then :
8621 eval $cacheid=yes
8622 else
8623 eval $cacheid=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 fi
8628
8629
8630 CFLAGS="$xorg_testset_save_CFLAGS"
8631
8632 eval supported=\$$cacheid
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8634 $as_echo "$supported" >&6; }
8635 if test "$supported" = "yes" ; then
8636 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8637 found="yes"
8638 fi
8639 fi
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655 xorg_testset_save_CFLAGS="$CFLAGS"
8656
8657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 int i;
8667 _ACEOF
8668 if ac_fn_c_try_compile "$LINENO"; then :
8669 xorg_cv_cc_flag_unknown_warning_option=yes
8670 else
8671 xorg_cv_cc_flag_unknown_warning_option=no
8672 fi
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8678 CFLAGS="$xorg_testset_save_CFLAGS"
8679 fi
8680
8681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684 fi
8685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 int i;
8694 _ACEOF
8695 if ac_fn_c_try_compile "$LINENO"; then :
8696 xorg_cv_cc_flag_unused_command_line_argument=yes
8697 else
8698 xorg_cv_cc_flag_unused_command_line_argument=no
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8705 CFLAGS="$xorg_testset_save_CFLAGS"
8706 fi
8707
8708 found="no"
8709
8710 if test $found = "no" ; then
8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713 fi
8714
8715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8717 fi
8718
8719 CFLAGS="$CFLAGS -Wnonnull"
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8722 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8723 cacheid=xorg_cv_cc_flag__Wnonnull
8724 if eval \${$cacheid+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 int i;
8730 int
8731 main ()
8732 {
8733
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 eval $cacheid=yes
8740 else
8741 eval $cacheid=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 fi
8746
8747
8748 CFLAGS="$xorg_testset_save_CFLAGS"
8749
8750 eval supported=\$$cacheid
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8752 $as_echo "$supported" >&6; }
8753 if test "$supported" = "yes" ; then
8754 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8755 found="yes"
8756 fi
8757 fi
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773 xorg_testset_save_CFLAGS="$CFLAGS"
8774
8775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8778 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8779 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 int i;
8785 _ACEOF
8786 if ac_fn_c_try_compile "$LINENO"; then :
8787 xorg_cv_cc_flag_unknown_warning_option=yes
8788 else
8789 xorg_cv_cc_flag_unknown_warning_option=no
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8794 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8796 CFLAGS="$xorg_testset_save_CFLAGS"
8797 fi
8798
8799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 fi
8803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8805 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8806 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 int i;
8812 _ACEOF
8813 if ac_fn_c_try_compile "$LINENO"; then :
8814 xorg_cv_cc_flag_unused_command_line_argument=yes
8815 else
8816 xorg_cv_cc_flag_unused_command_line_argument=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 fi
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8821 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8823 CFLAGS="$xorg_testset_save_CFLAGS"
8824 fi
8825
8826 found="no"
8827
8828 if test $found = "no" ; then
8829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8831 fi
8832
8833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8835 fi
8836
8837 CFLAGS="$CFLAGS -Winit-self"
8838
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8840 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8841 cacheid=xorg_cv_cc_flag__Winit_self
8842 if eval \${$cacheid+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 int
8849 main ()
8850 {
8851
8852 ;
8853 return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_link "$LINENO"; then :
8857 eval $cacheid=yes
8858 else
8859 eval $cacheid=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 fi
8864
8865
8866 CFLAGS="$xorg_testset_save_CFLAGS"
8867
8868 eval supported=\$$cacheid
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8870 $as_echo "$supported" >&6; }
8871 if test "$supported" = "yes" ; then
8872 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8873 found="yes"
8874 fi
8875 fi
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891 xorg_testset_save_CFLAGS="$CFLAGS"
8892
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8896 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8897 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"; then :
8905 xorg_cv_cc_flag_unknown_warning_option=yes
8906 else
8907 xorg_cv_cc_flag_unknown_warning_option=no
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8912 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8914 CFLAGS="$xorg_testset_save_CFLAGS"
8915 fi
8916
8917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 fi
8921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8923 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8924 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 int i;
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932 xorg_cv_cc_flag_unused_command_line_argument=yes
8933 else
8934 xorg_cv_cc_flag_unused_command_line_argument=no
8935 fi
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8939 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8942 fi
8943
8944 found="no"
8945
8946 if test $found = "no" ; then
8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949 fi
8950
8951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8953 fi
8954
8955 CFLAGS="$CFLAGS -Wmain"
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8958 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8959 cacheid=xorg_cv_cc_flag__Wmain
8960 if eval \${$cacheid+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 int i;
8966 int
8967 main ()
8968 {
8969
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975 eval $cacheid=yes
8976 else
8977 eval $cacheid=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8981 fi
8982
8983
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985
8986 eval supported=\$$cacheid
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8988 $as_echo "$supported" >&6; }
8989 if test "$supported" = "yes" ; then
8990 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8991 found="yes"
8992 fi
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009 xorg_testset_save_CFLAGS="$CFLAGS"
9010
9011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 int i;
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"; then :
9023 xorg_cv_cc_flag_unknown_warning_option=yes
9024 else
9025 xorg_cv_cc_flag_unknown_warning_option=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9032 CFLAGS="$xorg_testset_save_CFLAGS"
9033 fi
9034
9035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 fi
9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 int i;
9048 _ACEOF
9049 if ac_fn_c_try_compile "$LINENO"; then :
9050 xorg_cv_cc_flag_unused_command_line_argument=yes
9051 else
9052 xorg_cv_cc_flag_unused_command_line_argument=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 fi
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9059 CFLAGS="$xorg_testset_save_CFLAGS"
9060 fi
9061
9062 found="no"
9063
9064 if test $found = "no" ; then
9065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067 fi
9068
9069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9071 fi
9072
9073 CFLAGS="$CFLAGS -Wmissing-braces"
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9076 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9077 cacheid=xorg_cv_cc_flag__Wmissing_braces
9078 if eval \${$cacheid+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 int
9085 main ()
9086 {
9087
9088 ;
9089 return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_c_try_link "$LINENO"; then :
9093 eval $cacheid=yes
9094 else
9095 eval $cacheid=no
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 fi
9100
9101
9102 CFLAGS="$xorg_testset_save_CFLAGS"
9103
9104 eval supported=\$$cacheid
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9106 $as_echo "$supported" >&6; }
9107 if test "$supported" = "yes" ; then
9108 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9109 found="yes"
9110 fi
9111 fi
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127 xorg_testset_save_CFLAGS="$CFLAGS"
9128
9129 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9132 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9133 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 int i;
9139 _ACEOF
9140 if ac_fn_c_try_compile "$LINENO"; then :
9141 xorg_cv_cc_flag_unknown_warning_option=yes
9142 else
9143 xorg_cv_cc_flag_unknown_warning_option=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9148 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9150 CFLAGS="$xorg_testset_save_CFLAGS"
9151 fi
9152
9153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 fi
9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9159 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9160 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 int i;
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168 xorg_cv_cc_flag_unused_command_line_argument=yes
9169 else
9170 xorg_cv_cc_flag_unused_command_line_argument=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9175 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9177 CFLAGS="$xorg_testset_save_CFLAGS"
9178 fi
9179
9180 found="no"
9181
9182 if test $found = "no" ; then
9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 fi
9186
9187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9189 fi
9190
9191 CFLAGS="$CFLAGS -Wsequence-point"
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9194 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9195 cacheid=xorg_cv_cc_flag__Wsequence_point
9196 if eval \${$cacheid+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int i;
9202 int
9203 main ()
9204 {
9205
9206 ;
9207 return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 eval $cacheid=yes
9212 else
9213 eval $cacheid=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 fi
9218
9219
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221
9222 eval supported=\$$cacheid
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9224 $as_echo "$supported" >&6; }
9225 if test "$supported" = "yes" ; then
9226 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9227 found="yes"
9228 fi
9229 fi
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245 xorg_testset_save_CFLAGS="$CFLAGS"
9246
9247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9250 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9251 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 int i;
9257 _ACEOF
9258 if ac_fn_c_try_compile "$LINENO"; then :
9259 xorg_cv_cc_flag_unknown_warning_option=yes
9260 else
9261 xorg_cv_cc_flag_unknown_warning_option=no
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9266 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9268 CFLAGS="$xorg_testset_save_CFLAGS"
9269 fi
9270
9271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274 fi
9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9277 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9278 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int i;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"; then :
9286 xorg_cv_cc_flag_unused_command_line_argument=yes
9287 else
9288 xorg_cv_cc_flag_unused_command_line_argument=no
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291 fi
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9293 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9295 CFLAGS="$xorg_testset_save_CFLAGS"
9296 fi
9297
9298 found="no"
9299
9300 if test $found = "no" ; then
9301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303 fi
9304
9305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307 fi
9308
9309 CFLAGS="$CFLAGS -Wreturn-type"
9310
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9312 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9313 cacheid=xorg_cv_cc_flag__Wreturn_type
9314 if eval \${$cacheid+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 int i;
9320 int
9321 main ()
9322 {
9323
9324 ;
9325 return 0;
9326 }
9327 _ACEOF
9328 if ac_fn_c_try_link "$LINENO"; then :
9329 eval $cacheid=yes
9330 else
9331 eval $cacheid=no
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 fi
9336
9337
9338 CFLAGS="$xorg_testset_save_CFLAGS"
9339
9340 eval supported=\$$cacheid
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9342 $as_echo "$supported" >&6; }
9343 if test "$supported" = "yes" ; then
9344 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9345 found="yes"
9346 fi
9347 fi
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363 xorg_testset_save_CFLAGS="$CFLAGS"
9364
9365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 int i;
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"; then :
9377 xorg_cv_cc_flag_unknown_warning_option=yes
9378 else
9379 xorg_cv_cc_flag_unknown_warning_option=no
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9386 CFLAGS="$xorg_testset_save_CFLAGS"
9387 fi
9388
9389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 fi
9393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 int i;
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"; then :
9404 xorg_cv_cc_flag_unused_command_line_argument=yes
9405 else
9406 xorg_cv_cc_flag_unused_command_line_argument=no
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 fi
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9413 CFLAGS="$xorg_testset_save_CFLAGS"
9414 fi
9415
9416 found="no"
9417
9418 if test $found = "no" ; then
9419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421 fi
9422
9423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9425 fi
9426
9427 CFLAGS="$CFLAGS -Wtrigraphs"
9428
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9430 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9431 cacheid=xorg_cv_cc_flag__Wtrigraphs
9432 if eval \${$cacheid+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 int i;
9438 int
9439 main ()
9440 {
9441
9442 ;
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_link "$LINENO"; then :
9447 eval $cacheid=yes
9448 else
9449 eval $cacheid=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
9453 fi
9454
9455
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457
9458 eval supported=\$$cacheid
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9460 $as_echo "$supported" >&6; }
9461 if test "$supported" = "yes" ; then
9462 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9463 found="yes"
9464 fi
9465 fi
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 xorg_testset_save_CFLAGS="$CFLAGS"
9482
9483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9486 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9487 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 int i;
9493 _ACEOF
9494 if ac_fn_c_try_compile "$LINENO"; then :
9495 xorg_cv_cc_flag_unknown_warning_option=yes
9496 else
9497 xorg_cv_cc_flag_unknown_warning_option=no
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9502 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9504 CFLAGS="$xorg_testset_save_CFLAGS"
9505 fi
9506
9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 fi
9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9513 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9514 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 int i;
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522 xorg_cv_cc_flag_unused_command_line_argument=yes
9523 else
9524 xorg_cv_cc_flag_unused_command_line_argument=no
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9529 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9531 CFLAGS="$xorg_testset_save_CFLAGS"
9532 fi
9533
9534 found="no"
9535
9536 if test $found = "no" ; then
9537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9539 fi
9540
9541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9543 fi
9544
9545 CFLAGS="$CFLAGS -Warray-bounds"
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9548 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9549 cacheid=xorg_cv_cc_flag__Warray_bounds
9550 if eval \${$cacheid+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int i;
9556 int
9557 main ()
9558 {
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_link "$LINENO"; then :
9565 eval $cacheid=yes
9566 else
9567 eval $cacheid=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571 fi
9572
9573
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575
9576 eval supported=\$$cacheid
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9578 $as_echo "$supported" >&6; }
9579 if test "$supported" = "yes" ; then
9580 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9581 found="yes"
9582 fi
9583 fi
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 xorg_testset_save_CFLAGS="$CFLAGS"
9600
9601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 int i;
9611 _ACEOF
9612 if ac_fn_c_try_compile "$LINENO"; then :
9613 xorg_cv_cc_flag_unknown_warning_option=yes
9614 else
9615 xorg_cv_cc_flag_unknown_warning_option=no
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9622 CFLAGS="$xorg_testset_save_CFLAGS"
9623 fi
9624
9625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 fi
9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 int i;
9638 _ACEOF
9639 if ac_fn_c_try_compile "$LINENO"; then :
9640 xorg_cv_cc_flag_unused_command_line_argument=yes
9641 else
9642 xorg_cv_cc_flag_unused_command_line_argument=no
9643 fi
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9649 CFLAGS="$xorg_testset_save_CFLAGS"
9650 fi
9651
9652 found="no"
9653
9654 if test $found = "no" ; then
9655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9657 fi
9658
9659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9661 fi
9662
9663 CFLAGS="$CFLAGS -Wwrite-strings"
9664
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9666 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9667 cacheid=xorg_cv_cc_flag__Wwrite_strings
9668 if eval \${$cacheid+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int i;
9674 int
9675 main ()
9676 {
9677
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_link "$LINENO"; then :
9683 eval $cacheid=yes
9684 else
9685 eval $cacheid=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 fi
9690
9691
9692 CFLAGS="$xorg_testset_save_CFLAGS"
9693
9694 eval supported=\$$cacheid
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9696 $as_echo "$supported" >&6; }
9697 if test "$supported" = "yes" ; then
9698 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9699 found="yes"
9700 fi
9701 fi
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717 xorg_testset_save_CFLAGS="$CFLAGS"
9718
9719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 int i;
9729 _ACEOF
9730 if ac_fn_c_try_compile "$LINENO"; then :
9731 xorg_cv_cc_flag_unknown_warning_option=yes
9732 else
9733 xorg_cv_cc_flag_unknown_warning_option=no
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9740 CFLAGS="$xorg_testset_save_CFLAGS"
9741 fi
9742
9743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 fi
9747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 int i;
9756 _ACEOF
9757 if ac_fn_c_try_compile "$LINENO"; then :
9758 xorg_cv_cc_flag_unused_command_line_argument=yes
9759 else
9760 xorg_cv_cc_flag_unused_command_line_argument=no
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 fi
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9767 CFLAGS="$xorg_testset_save_CFLAGS"
9768 fi
9769
9770 found="no"
9771
9772 if test $found = "no" ; then
9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775 fi
9776
9777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9779 fi
9780
9781 CFLAGS="$CFLAGS -Waddress"
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9784 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9785 cacheid=xorg_cv_cc_flag__Waddress
9786 if eval \${$cacheid+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 int i;
9792 int
9793 main ()
9794 {
9795
9796 ;
9797 return 0;
9798 }
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 eval $cacheid=yes
9802 else
9803 eval $cacheid=no
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 fi
9808
9809
9810 CFLAGS="$xorg_testset_save_CFLAGS"
9811
9812 eval supported=\$$cacheid
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9814 $as_echo "$supported" >&6; }
9815 if test "$supported" = "yes" ; then
9816 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9817 found="yes"
9818 fi
9819 fi
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835 xorg_testset_save_CFLAGS="$CFLAGS"
9836
9837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 int i;
9847 _ACEOF
9848 if ac_fn_c_try_compile "$LINENO"; then :
9849 xorg_cv_cc_flag_unknown_warning_option=yes
9850 else
9851 xorg_cv_cc_flag_unknown_warning_option=no
9852 fi
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9858 CFLAGS="$xorg_testset_save_CFLAGS"
9859 fi
9860
9861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864 fi
9865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 int i;
9874 _ACEOF
9875 if ac_fn_c_try_compile "$LINENO"; then :
9876 xorg_cv_cc_flag_unused_command_line_argument=yes
9877 else
9878 xorg_cv_cc_flag_unused_command_line_argument=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9885 CFLAGS="$xorg_testset_save_CFLAGS"
9886 fi
9887
9888 found="no"
9889
9890 if test $found = "no" ; then
9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893 fi
9894
9895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897 fi
9898
9899 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9900
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9902 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9903 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9904 if eval \${$cacheid+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 int i;
9910 int
9911 main ()
9912 {
9913
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_link "$LINENO"; then :
9919 eval $cacheid=yes
9920 else
9921 eval $cacheid=no
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 fi
9926
9927
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929
9930 eval supported=\$$cacheid
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9932 $as_echo "$supported" >&6; }
9933 if test "$supported" = "yes" ; then
9934 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9935 found="yes"
9936 fi
9937 fi
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953 xorg_testset_save_CFLAGS="$CFLAGS"
9954
9955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 int i;
9965 _ACEOF
9966 if ac_fn_c_try_compile "$LINENO"; then :
9967 xorg_cv_cc_flag_unknown_warning_option=yes
9968 else
9969 xorg_cv_cc_flag_unknown_warning_option=no
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 fi
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9976 CFLAGS="$xorg_testset_save_CFLAGS"
9977 fi
9978
9979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982 fi
9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 int i;
9992 _ACEOF
9993 if ac_fn_c_try_compile "$LINENO"; then :
9994 xorg_cv_cc_flag_unused_command_line_argument=yes
9995 else
9996 xorg_cv_cc_flag_unused_command_line_argument=no
9997 fi
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 fi
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10003 CFLAGS="$xorg_testset_save_CFLAGS"
10004 fi
10005
10006 found="no"
10007
10008 if test $found = "no" ; then
10009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011 fi
10012
10013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015 fi
10016
10017 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10020 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10021 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10022 if eval \${$cacheid+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 int
10029 main ()
10030 {
10031
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 if ac_fn_c_try_link "$LINENO"; then :
10037 eval $cacheid=yes
10038 else
10039 eval $cacheid=no
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 fi
10044
10045
10046 CFLAGS="$xorg_testset_save_CFLAGS"
10047
10048 eval supported=\$$cacheid
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10050 $as_echo "$supported" >&6; }
10051 if test "$supported" = "yes" ; then
10052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10053 found="yes"
10054 fi
10055 fi
10056
10057
10058 fi
10059
10060
10061
10062
10063
10064
10065
10066 CWARNFLAGS="$BASE_CFLAGS"
10067 if test "x$GCC" = xyes ; then
10068 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10069 fi
10070
10071
10072
10073
10074
10075
10076
10077
10078 # Check whether --enable-strict-compilation was given.
10079 if test "${enable_strict_compilation+set}" = set; then :
10080 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10081 else
10082 STRICT_COMPILE=no
10083 fi
10084
10085
10086
10087
10088
10089
10090 STRICT_CFLAGS=""
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 xorg_testset_save_CFLAGS="$CFLAGS"
10105
10106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10109 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10110 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115 int i;
10116 _ACEOF
10117 if ac_fn_c_try_compile "$LINENO"; then :
10118 xorg_cv_cc_flag_unknown_warning_option=yes
10119 else
10120 xorg_cv_cc_flag_unknown_warning_option=no
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123 fi
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10125 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10127 CFLAGS="$xorg_testset_save_CFLAGS"
10128 fi
10129
10130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133 fi
10134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10136 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10137 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10138 $as_echo_n "(cached) " >&6
10139 else
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 int i;
10143 _ACEOF
10144 if ac_fn_c_try_compile "$LINENO"; then :
10145 xorg_cv_cc_flag_unused_command_line_argument=yes
10146 else
10147 xorg_cv_cc_flag_unused_command_line_argument=no
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10152 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10154 CFLAGS="$xorg_testset_save_CFLAGS"
10155 fi
10156
10157 found="no"
10158
10159 if test $found = "no" ; then
10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10162 fi
10163
10164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10166 fi
10167
10168 CFLAGS="$CFLAGS -pedantic"
10169
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10171 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10172 cacheid=xorg_cv_cc_flag__pedantic
10173 if eval \${$cacheid+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 int i;
10179 int
10180 main ()
10181 {
10182
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 if ac_fn_c_try_link "$LINENO"; then :
10188 eval $cacheid=yes
10189 else
10190 eval $cacheid=no
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194 fi
10195
10196
10197 CFLAGS="$xorg_testset_save_CFLAGS"
10198
10199 eval supported=\$$cacheid
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10201 $as_echo "$supported" >&6; }
10202 if test "$supported" = "yes" ; then
10203 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10204 found="yes"
10205 fi
10206 fi
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 xorg_testset_save_CFLAGS="$CFLAGS"
10223
10224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10227 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10228 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 int i;
10234 _ACEOF
10235 if ac_fn_c_try_compile "$LINENO"; then :
10236 xorg_cv_cc_flag_unknown_warning_option=yes
10237 else
10238 xorg_cv_cc_flag_unknown_warning_option=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10243 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10245 CFLAGS="$xorg_testset_save_CFLAGS"
10246 fi
10247
10248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251 fi
10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10254 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10255 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 int i;
10261 _ACEOF
10262 if ac_fn_c_try_compile "$LINENO"; then :
10263 xorg_cv_cc_flag_unused_command_line_argument=yes
10264 else
10265 xorg_cv_cc_flag_unused_command_line_argument=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10270 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10272 CFLAGS="$xorg_testset_save_CFLAGS"
10273 fi
10274
10275 found="no"
10276
10277 if test $found = "no" ; then
10278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280 fi
10281
10282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10284 fi
10285
10286 CFLAGS="$CFLAGS -Werror"
10287
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10289 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10290 cacheid=xorg_cv_cc_flag__Werror
10291 if eval \${$cacheid+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 int
10298 main ()
10299 {
10300
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 if ac_fn_c_try_link "$LINENO"; then :
10306 eval $cacheid=yes
10307 else
10308 eval $cacheid=no
10309 fi
10310 rm -f core conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312 fi
10313
10314
10315 CFLAGS="$xorg_testset_save_CFLAGS"
10316
10317 eval supported=\$$cacheid
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10319 $as_echo "$supported" >&6; }
10320 if test "$supported" = "yes" ; then
10321 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10322 found="yes"
10323 fi
10324 fi
10325
10326 if test $found = "no" ; then
10327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329 fi
10330
10331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333 fi
10334
10335 CFLAGS="$CFLAGS -errwarn"
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10338 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10339 cacheid=xorg_cv_cc_flag__errwarn
10340 if eval \${$cacheid+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 eval $cacheid=yes
10356 else
10357 eval $cacheid=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 fi
10362
10363
10364 CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366 eval supported=\$$cacheid
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368 $as_echo "$supported" >&6; }
10369 if test "$supported" = "yes" ; then
10370 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10371 found="yes"
10372 fi
10373 fi
10374
10375
10376
10377 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10378 # activate it with -Werror, so we add it here explicitly.
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 xorg_testset_save_CFLAGS="$CFLAGS"
10393
10394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 int i;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 xorg_cv_cc_flag_unknown_warning_option=yes
10407 else
10408 xorg_cv_cc_flag_unknown_warning_option=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10415 CFLAGS="$xorg_testset_save_CFLAGS"
10416 fi
10417
10418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10421 fi
10422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 int i;
10431 _ACEOF
10432 if ac_fn_c_try_compile "$LINENO"; then :
10433 xorg_cv_cc_flag_unused_command_line_argument=yes
10434 else
10435 xorg_cv_cc_flag_unused_command_line_argument=no
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 fi
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10442 CFLAGS="$xorg_testset_save_CFLAGS"
10443 fi
10444
10445 found="no"
10446
10447 if test $found = "no" ; then
10448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10450 fi
10451
10452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10454 fi
10455
10456 CFLAGS="$CFLAGS -Werror=attributes"
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10459 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10460 cacheid=xorg_cv_cc_flag__Werror_attributes
10461 if eval \${$cacheid+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 int i;
10467 int
10468 main ()
10469 {
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"; then :
10476 eval $cacheid=yes
10477 else
10478 eval $cacheid=no
10479 fi
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 fi
10483
10484
10485 CFLAGS="$xorg_testset_save_CFLAGS"
10486
10487 eval supported=\$$cacheid
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10489 $as_echo "$supported" >&6; }
10490 if test "$supported" = "yes" ; then
10491 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10492 found="yes"
10493 fi
10494 fi
10495
10496
10497
10498 if test "x$STRICT_COMPILE" = "xyes"; then
10499 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10500 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10501 fi
10502
10503
10504
10505
10506
10507
10508 cat >>confdefs.h <<_ACEOF
10509 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10510 _ACEOF
10511
10512 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10513 if test "x$PVM" = "x"; then
10514 PVM="0"
10515 fi
10516
10517 cat >>confdefs.h <<_ACEOF
10518 #define PACKAGE_VERSION_MINOR $PVM
10519 _ACEOF
10520
10521 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10522 if test "x$PVP" = "x"; then
10523 PVP="0"
10524 fi
10525
10526 cat >>confdefs.h <<_ACEOF
10527 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10528 _ACEOF
10529
10530
10531
10532 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10533 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10534 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10535 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10536
10537
10538
10539
10540 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10541 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10542 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10543 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10544 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10545
10546
10547
10548
10549
10550
10551 if test x$APP_MAN_SUFFIX = x ; then
10552 APP_MAN_SUFFIX=1
10553 fi
10554 if test x$APP_MAN_DIR = x ; then
10555 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10556 fi
10557
10558 if test x$LIB_MAN_SUFFIX = x ; then
10559 LIB_MAN_SUFFIX=3
10560 fi
10561 if test x$LIB_MAN_DIR = x ; then
10562 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10563 fi
10564
10565 if test x$FILE_MAN_SUFFIX = x ; then
10566 case $host_os in
10567 solaris*) FILE_MAN_SUFFIX=4 ;;
10568 *) FILE_MAN_SUFFIX=5 ;;
10569 esac
10570 fi
10571 if test x$FILE_MAN_DIR = x ; then
10572 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10573 fi
10574
10575 if test x$MISC_MAN_SUFFIX = x ; then
10576 case $host_os in
10577 solaris*) MISC_MAN_SUFFIX=5 ;;
10578 *) MISC_MAN_SUFFIX=7 ;;
10579 esac
10580 fi
10581 if test x$MISC_MAN_DIR = x ; then
10582 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10583 fi
10584
10585 if test x$DRIVER_MAN_SUFFIX = x ; then
10586 case $host_os in
10587 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10588 *) DRIVER_MAN_SUFFIX=4 ;;
10589 esac
10590 fi
10591 if test x$DRIVER_MAN_DIR = x ; then
10592 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10593 fi
10594
10595 if test x$ADMIN_MAN_SUFFIX = x ; then
10596 case $host_os in
10597 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10598 *) ADMIN_MAN_SUFFIX=8 ;;
10599 esac
10600 fi
10601 if test x$ADMIN_MAN_DIR = x ; then
10602 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10603 fi
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619 XORG_MAN_PAGE="X Version 11"
10620
10621 MAN_SUBSTS="\
10622 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10623 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10624 -e 's|__xservername__|Xorg|g' \
10625 -e 's|__xconfigfile__|xorg.conf|g' \
10626 -e 's|__projectroot__|\$(prefix)|g' \
10627 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10628 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10629 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10630 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10631 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10632 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10633 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10634
10635
10636
10637 # Check whether --enable-silent-rules was given.
10638 if test "${enable_silent_rules+set}" = set; then :
10639 enableval=$enable_silent_rules;
10640 fi
10641
10642 case $enable_silent_rules in # (((
10643 yes) AM_DEFAULT_VERBOSITY=0;;
10644 no) AM_DEFAULT_VERBOSITY=1;;
10645 *) AM_DEFAULT_VERBOSITY=0;;
10646 esac
10647 am_make=${MAKE-make}
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10649 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10650 if ${am_cv_make_support_nested_variables+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if $as_echo 'TRUE=$(BAR$(V))
10654 BAR0=false
10655 BAR1=true
10656 V=1
10657 am__doit:
10658 @$(TRUE)
10659 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10660 am_cv_make_support_nested_variables=yes
10661 else
10662 am_cv_make_support_nested_variables=no
10663 fi
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10666 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10667 if test $am_cv_make_support_nested_variables = yes; then
10668 AM_V='$(V)'
10669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10670 else
10671 AM_V=$AM_DEFAULT_VERBOSITY
10672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10673 fi
10674 AM_BACKSLASH='\'
10675
10676
10677
10678 # Define the installation directory for the x11 performance compare scripts
10679 x11perfcompdir=$libdir/X11/x11perfcomp
10680
10681
10682 # Checks for programs run by the scripts we install
10683 # Extract the first word of "mktemp", so it can be a program name with args.
10684 set dummy mktemp; ac_word=$2
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686 $as_echo_n "checking for $ac_word... " >&6; }
10687 if ${ac_cv_path_MKTEMP+:} false; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 case $MKTEMP in
10691 [\\/]* | ?:[\\/]*)
10692 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
10693 ;;
10694 *)
10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10697 do
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10705 fi
10706 done
10707 done
10708 IFS=$as_save_IFS
10709
10710 ;;
10711 esac
10712 fi
10713 MKTEMP=$ac_cv_path_MKTEMP
10714 if test -n "$MKTEMP"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
10716 $as_echo "$MKTEMP" >&6; }
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721
10722
10723
10724 # Checks for pkg-config packages
10725
10726 pkg_failed=no
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
10728 $as_echo_n "checking for X11PERF... " >&6; }
10729
10730 if test -n "$X11PERF_CFLAGS"; then
10731 pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
10732 elif test -n "$PKG_CONFIG"; then
10733 if test -n "$PKG_CONFIG" && \
10734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
10735 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
10736 ac_status=$?
10737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738 test $ac_status = 0; }; then
10739 pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
10740 else
10741 pkg_failed=yes
10742 fi
10743 else
10744 pkg_failed=untried
10745 fi
10746 if test -n "$X11PERF_LIBS"; then
10747 pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
10748 elif test -n "$PKG_CONFIG"; then
10749 if test -n "$PKG_CONFIG" && \
10750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5
10751 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5
10752 ac_status=$?
10753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754 test $ac_status = 0; }; then
10755 pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.17" 2>/dev/null`
10756 else
10757 pkg_failed=yes
10758 fi
10759 else
10760 pkg_failed=untried
10761 fi
10762
10763
10764
10765 if test $pkg_failed = yes; then
10766
10767 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10768 _pkg_short_errors_supported=yes
10769 else
10770 _pkg_short_errors_supported=no
10771 fi
10772 if test $_pkg_short_errors_supported = yes; then
10773 X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu xproto >= 7.0.17" 2>&1`
10774 else
10775 X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu xproto >= 7.0.17" 2>&1`
10776 fi
10777 # Put the nasty error message in config.log where it belongs
10778 echo "$X11PERF_PKG_ERRORS" >&5
10779
10780 as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.17) were not met:
10781
10782 $X11PERF_PKG_ERRORS
10783
10784 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10785 installed software in a non-standard prefix.
10786
10787 Alternatively, you may set the environment variables X11PERF_CFLAGS
10788 and X11PERF_LIBS to avoid the need to call pkg-config.
10789 See the pkg-config man page for more details.
10790 " "$LINENO" 5
10791 elif test $pkg_failed = untried; then
10792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10794 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10795 is in your PATH or set the PKG_CONFIG environment variable to the full
10796 path to pkg-config.
10797
10798 Alternatively, you may set the environment variables X11PERF_CFLAGS
10799 and X11PERF_LIBS to avoid the need to call pkg-config.
10800 See the pkg-config man page for more details.
10801
10802 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10803 See \`config.log' for more details" "$LINENO" 5; }
10804 else
10805 X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
10806 X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; }
10809 :
10810 fi
10811
10812 # Check for Xrender library
10813
10814 pkg_failed=no
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
10816 $as_echo_n "checking for XRENDER... " >&6; }
10817
10818 if test -n "$XRENDER_CFLAGS"; then
10819 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
10820 elif test -n "$PKG_CONFIG"; then
10821 if test -n "$PKG_CONFIG" && \
10822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
10823 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
10824 ac_status=$?
10825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10826 test $ac_status = 0; }; then
10827 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
10828 else
10829 pkg_failed=yes
10830 fi
10831 else
10832 pkg_failed=untried
10833 fi
10834 if test -n "$XRENDER_LIBS"; then
10835 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
10836 elif test -n "$PKG_CONFIG"; then
10837 if test -n "$PKG_CONFIG" && \
10838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
10839 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
10840 ac_status=$?
10841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10842 test $ac_status = 0; }; then
10843 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
10844 else
10845 pkg_failed=yes
10846 fi
10847 else
10848 pkg_failed=untried
10849 fi
10850
10851
10852
10853 if test $pkg_failed = yes; then
10854
10855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10856 _pkg_short_errors_supported=yes
10857 else
10858 _pkg_short_errors_supported=no
10859 fi
10860 if test $_pkg_short_errors_supported = yes; then
10861 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1`
10862 else
10863 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1`
10864 fi
10865 # Put the nasty error message in config.log where it belongs
10866 echo "$XRENDER_PKG_ERRORS" >&5
10867
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 xrender_found=no
10871 elif test $pkg_failed = untried; then
10872 xrender_found=no
10873 else
10874 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
10875 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10877 $as_echo "yes" >&6; }
10878 xrender_found=yes
10879 fi
10880 case "$xrender_found" in
10881 yes)
10882
10883 $as_echo "#define XRENDER 1" >>confdefs.h
10884
10885 ;;
10886 esac
10887
10888 # Check for Xft library
10889
10890 pkg_failed=no
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
10892 $as_echo_n "checking for XFT... " >&6; }
10893
10894 if test -n "$XFT_CFLAGS"; then
10895 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
10896 elif test -n "$PKG_CONFIG"; then
10897 if test -n "$PKG_CONFIG" && \
10898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
10899 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
10900 ac_status=$?
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; }; then
10903 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
10904 else
10905 pkg_failed=yes
10906 fi
10907 else
10908 pkg_failed=untried
10909 fi
10910 if test -n "$XFT_LIBS"; then
10911 pkg_cv_XFT_LIBS="$XFT_LIBS"
10912 elif test -n "$PKG_CONFIG"; then
10913 if test -n "$PKG_CONFIG" && \
10914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
10915 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
10916 ac_status=$?
10917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10918 test $ac_status = 0; }; then
10919 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
10920 else
10921 pkg_failed=yes
10922 fi
10923 else
10924 pkg_failed=untried
10925 fi
10926
10927
10928
10929 if test $pkg_failed = yes; then
10930
10931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10932 _pkg_short_errors_supported=yes
10933 else
10934 _pkg_short_errors_supported=no
10935 fi
10936 if test $_pkg_short_errors_supported = yes; then
10937 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1`
10938 else
10939 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1`
10940 fi
10941 # Put the nasty error message in config.log where it belongs
10942 echo "$XFT_PKG_ERRORS" >&5
10943
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10946 xft_found=no
10947 elif test $pkg_failed = untried; then
10948 xft_found=no
10949 else
10950 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
10951 XFT_LIBS=$pkg_cv_XFT_LIBS
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10953 $as_echo "yes" >&6; }
10954 xft_found=yes
10955 fi
10956 case "$xft_found" in
10957 yes)
10958
10959 $as_echo "#define XFT 1" >>confdefs.h
10960
10961 ;;
10962 esac
10963
10964 # Check for MIT-SHM extension
10965
10966 pkg_failed=no
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
10968 $as_echo_n "checking for XEXT... " >&6; }
10969
10970 if test -n "$XEXT_CFLAGS"; then
10971 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
10972 elif test -n "$PKG_CONFIG"; then
10973 if test -n "$PKG_CONFIG" && \
10974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
10975 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
10976 ac_status=$?
10977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10978 test $ac_status = 0; }; then
10979 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
10980 else
10981 pkg_failed=yes
10982 fi
10983 else
10984 pkg_failed=untried
10985 fi
10986 if test -n "$XEXT_LIBS"; then
10987 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
10988 elif test -n "$PKG_CONFIG"; then
10989 if test -n "$PKG_CONFIG" && \
10990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
10991 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
10992 ac_status=$?
10993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10994 test $ac_status = 0; }; then
10995 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
10996 else
10997 pkg_failed=yes
10998 fi
10999 else
11000 pkg_failed=untried
11001 fi
11002
11003
11004
11005 if test $pkg_failed = yes; then
11006
11007 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11008 _pkg_short_errors_supported=yes
11009 else
11010 _pkg_short_errors_supported=no
11011 fi
11012 if test $_pkg_short_errors_supported = yes; then
11013 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
11014 else
11015 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
11016 fi
11017 # Put the nasty error message in config.log where it belongs
11018 echo "$XEXT_PKG_ERRORS" >&5
11019
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 xext_found=no
11023 elif test $pkg_failed = untried; then
11024 xext_found=no
11025 else
11026 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11027 XEXT_LIBS=$pkg_cv_XEXT_LIBS
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029 $as_echo "yes" >&6; }
11030 xext_found=yes
11031 fi
11032 case "$xext_found" in
11033 yes)
11034 save_LIBS="$LIBS"
11035 LIBS="$XEXT_LIBS $LIBS"
11036 for ac_func in XShmQueryExtension
11037 do :
11038 ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
11039 if test "x$ac_cv_func_XShmQueryExtension" = xyes; then :
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_XSHMQUERYEXTENSION 1
11042 _ACEOF
11043
11044 $as_echo "#define MITSHM 1" >>confdefs.h
11045
11046 fi
11047 done
11048
11049 LIBS="$save_LIBS"
11050 ;;
11051 esac
11052
11053 ac_config_files="$ac_config_files Makefile man/Makefile"
11054
11055 cat >confcache <<\_ACEOF
11056 # This file is a shell script that caches the results of configure
11057 # tests run on this system so they can be shared between configure
11058 # scripts and configure runs, see configure's option --config-cache.
11059 # It is not useful on other systems. If it contains results you don't
11060 # want to keep, you may remove or edit it.
11061 #
11062 # config.status only pays attention to the cache file if you give it
11063 # the --recheck option to rerun configure.
11064 #
11065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11067 # following values.
11068
11069 _ACEOF
11070
11071 # The following way of writing the cache mishandles newlines in values,
11072 # but we know of no workaround that is simple, portable, and efficient.
11073 # So, we kill variables containing newlines.
11074 # Ultrix sh set writes to stderr and can't be redirected directly,
11075 # and sets the high bit in the cache file unless we assign to the vars.
11076 (
11077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11078 eval ac_val=\$$ac_var
11079 case $ac_val in #(
11080 *${as_nl}*)
11081 case $ac_var in #(
11082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11084 esac
11085 case $ac_var in #(
11086 _ | IFS | as_nl) ;; #(
11087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11088 *) { eval $ac_var=; unset $ac_var;} ;;
11089 esac ;;
11090 esac
11091 done
11092
11093 (set) 2>&1 |
11094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11095 *${as_nl}ac_space=\ *)
11096 # `set' does not quote correctly, so add quotes: double-quote
11097 # substitution turns \\\\ into \\, and sed turns \\ into \.
11098 sed -n \
11099 "s/'/'\\\\''/g;
11100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11101 ;; #(
11102 *)
11103 # `set' quotes correctly as required by POSIX, so do not add quotes.
11104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11105 ;;
11106 esac |
11107 sort
11108 ) |
11109 sed '
11110 /^ac_cv_env_/b end
11111 t clear
11112 :clear
11113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11114 t end
11115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11116 :end' >>confcache
11117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11118 if test -w "$cache_file"; then
11119 if test "x$cache_file" != "x/dev/null"; then
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11121 $as_echo "$as_me: updating cache $cache_file" >&6;}
11122 if test ! -f "$cache_file" || test -h "$cache_file"; then
11123 cat confcache >"$cache_file"
11124 else
11125 case $cache_file in #(
11126 */* | ?:*)
11127 mv -f confcache "$cache_file"$$ &&
11128 mv -f "$cache_file"$$ "$cache_file" ;; #(
11129 *)
11130 mv -f confcache "$cache_file" ;;
11131 esac
11132 fi
11133 fi
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11136 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11137 fi
11138 fi
11139 rm -f confcache
11140
11141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11142 # Let make expand exec_prefix.
11143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11144
11145 DEFS=-DHAVE_CONFIG_H
11146
11147 ac_libobjs=
11148 ac_ltlibobjs=
11149 U=
11150 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11151 # 1. Remove the extension, and $U if already installed.
11152 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11153 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11154 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11155 # will be set to the directory where LIBOBJS objects are built.
11156 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11157 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11158 done
11159 LIBOBJS=$ac_libobjs
11160
11161 LTLIBOBJS=$ac_ltlibobjs
11162
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11165 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11166 if test -n "$am_sleep_pid"; then
11167 # Hide warnings about reused PIDs.
11168 wait $am_sleep_pid 2>/dev/null
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11171 $as_echo "done" >&6; }
11172 if test -n "$EXEEXT"; then
11173 am__EXEEXT_TRUE=
11174 am__EXEEXT_FALSE='#'
11175 else
11176 am__EXEEXT_TRUE='#'
11177 am__EXEEXT_FALSE=
11178 fi
11179
11180 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11181 as_fn_error $? "conditional \"AMDEP\" was never defined.
11182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11183 fi
11184 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11185 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11187 fi
11188
11189 : "${CONFIG_STATUS=./config.status}"
11190 ac_write_fail=0
11191 ac_clean_files_save=$ac_clean_files
11192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11194 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11195 as_write_fail=0
11196 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11197 #! $SHELL
11198 # Generated by $as_me.
11199 # Run this file to recreate the current configuration.
11200 # Compiler output produced by configure, useful for debugging
11201 # configure, is in config.log if it exists.
11202
11203 debug=false
11204 ac_cs_recheck=false
11205 ac_cs_silent=false
11206
11207 SHELL=\${CONFIG_SHELL-$SHELL}
11208 export SHELL
11209 _ASEOF
11210 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11211 ## -------------------- ##
11212 ## M4sh Initialization. ##
11213 ## -------------------- ##
11214
11215 # Be more Bourne compatible
11216 DUALCASE=1; export DUALCASE # for MKS sh
11217 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11218 emulate sh
11219 NULLCMD=:
11220 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11221 # is contrary to our usage. Disable this feature.
11222 alias -g '${1+"$@"}'='"$@"'
11223 setopt NO_GLOB_SUBST
11224 else
11225 case `(set -o) 2>/dev/null` in #(
11226 *posix*) :
11227 set -o posix ;; #(
11228 *) :
11229 ;;
11230 esac
11231 fi
11232
11233
11234 as_nl='
11235 '
11236 export as_nl
11237 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11238 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11239 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11241 # Prefer a ksh shell builtin over an external printf program on Solaris,
11242 # but without wasting forks for bash or zsh.
11243 if test -z "$BASH_VERSION$ZSH_VERSION" \
11244 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11245 as_echo='print -r --'
11246 as_echo_n='print -rn --'
11247 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11248 as_echo='printf %s\n'
11249 as_echo_n='printf %s'
11250 else
11251 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11252 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11253 as_echo_n='/usr/ucb/echo -n'
11254 else
11255 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11256 as_echo_n_body='eval
11257 arg=$1;
11258 case $arg in #(
11259 *"$as_nl"*)
11260 expr "X$arg" : "X\\(.*\\)$as_nl";
11261 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11262 esac;
11263 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11264 '
11265 export as_echo_n_body
11266 as_echo_n='sh -c $as_echo_n_body as_echo'
11267 fi
11268 export as_echo_body
11269 as_echo='sh -c $as_echo_body as_echo'
11270 fi
11271
11272 # The user is always right.
11273 if test "${PATH_SEPARATOR+set}" != set; then
11274 PATH_SEPARATOR=:
11275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11276 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11277 PATH_SEPARATOR=';'
11278 }
11279 fi
11280
11281
11282 # IFS
11283 # We need space, tab and new line, in precisely that order. Quoting is
11284 # there to prevent editors from complaining about space-tab.
11285 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11286 # splitting by setting IFS to empty value.)
11287 IFS=" "" $as_nl"
11288
11289 # Find who we are. Look in the path if we contain no directory separator.
11290 as_myself=
11291 case $0 in #((
11292 *[\\/]* ) as_myself=$0 ;;
11293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11295 do
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11299 done
11300 IFS=$as_save_IFS
11301
11302 ;;
11303 esac
11304 # We did not find ourselves, most probably we were run as `sh COMMAND'
11305 # in which case we are not to be found in the path.
11306 if test "x$as_myself" = x; then
11307 as_myself=$0
11308 fi
11309 if test ! -f "$as_myself"; then
11310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11311 exit 1
11312 fi
11313
11314 # Unset variables that we do not need and which cause bugs (e.g. in
11315 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11316 # suppresses any "Segmentation fault" message there. '((' could
11317 # trigger a bug in pdksh 5.2.14.
11318 for as_var in BASH_ENV ENV MAIL MAILPATH
11319 do eval test x\${$as_var+set} = xset \
11320 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11321 done
11322 PS1='$ '
11323 PS2='> '
11324 PS4='+ '
11325
11326 # NLS nuisances.
11327 LC_ALL=C
11328 export LC_ALL
11329 LANGUAGE=C
11330 export LANGUAGE
11331
11332 # CDPATH.
11333 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11334
11335
11336 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11337 # ----------------------------------------
11338 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11339 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11340 # script with STATUS, using 1 if that was 0.
11341 as_fn_error ()
11342 {
11343 as_status=$1; test $as_status -eq 0 && as_status=1
11344 if test "$4"; then
11345 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11347 fi
11348 $as_echo "$as_me: error: $2" >&2
11349 as_fn_exit $as_status
11350 } # as_fn_error
11351
11352
11353 # as_fn_set_status STATUS
11354 # -----------------------
11355 # Set $? to STATUS, without forking.
11356 as_fn_set_status ()
11357 {
11358 return $1
11359 } # as_fn_set_status
11360
11361 # as_fn_exit STATUS
11362 # -----------------
11363 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11364 as_fn_exit ()
11365 {
11366 set +e
11367 as_fn_set_status $1
11368 exit $1
11369 } # as_fn_exit
11370
11371 # as_fn_unset VAR
11372 # ---------------
11373 # Portably unset VAR.
11374 as_fn_unset ()
11375 {
11376 { eval $1=; unset $1;}
11377 }
11378 as_unset=as_fn_unset
11379 # as_fn_append VAR VALUE
11380 # ----------------------
11381 # Append the text in VALUE to the end of the definition contained in VAR. Take
11382 # advantage of any shell optimizations that allow amortized linear growth over
11383 # repeated appends, instead of the typical quadratic growth present in naive
11384 # implementations.
11385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11386 eval 'as_fn_append ()
11387 {
11388 eval $1+=\$2
11389 }'
11390 else
11391 as_fn_append ()
11392 {
11393 eval $1=\$$1\$2
11394 }
11395 fi # as_fn_append
11396
11397 # as_fn_arith ARG...
11398 # ------------------
11399 # Perform arithmetic evaluation on the ARGs, and store the result in the
11400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11401 # must be portable across $(()) and expr.
11402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11403 eval 'as_fn_arith ()
11404 {
11405 as_val=$(( $* ))
11406 }'
11407 else
11408 as_fn_arith ()
11409 {
11410 as_val=`expr "$@" || test $? -eq 1`
11411 }
11412 fi # as_fn_arith
11413
11414
11415 if expr a : '\(a\)' >/dev/null 2>&1 &&
11416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11417 as_expr=expr
11418 else
11419 as_expr=false
11420 fi
11421
11422 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11423 as_basename=basename
11424 else
11425 as_basename=false
11426 fi
11427
11428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11429 as_dirname=dirname
11430 else
11431 as_dirname=false
11432 fi
11433
11434 as_me=`$as_basename -- "$0" ||
11435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11436 X"$0" : 'X\(//\)$' \| \
11437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11438 $as_echo X/"$0" |
11439 sed '/^.*\/\([^/][^/]*\)\/*$/{
11440 s//\1/
11441 q
11442 }
11443 /^X\/\(\/\/\)$/{
11444 s//\1/
11445 q
11446 }
11447 /^X\/\(\/\).*/{
11448 s//\1/
11449 q
11450 }
11451 s/.*/./; q'`
11452
11453 # Avoid depending upon Character Ranges.
11454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11457 as_cr_digits='0123456789'
11458 as_cr_alnum=$as_cr_Letters$as_cr_digits
11459
11460 ECHO_C= ECHO_N= ECHO_T=
11461 case `echo -n x` in #(((((
11462 -n*)
11463 case `echo 'xy\c'` in
11464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11465 xy) ECHO_C='\c';;
11466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11467 ECHO_T=' ';;
11468 esac;;
11469 *)
11470 ECHO_N='-n';;
11471 esac
11472
11473 rm -f conf$$ conf$$.exe conf$$.file
11474 if test -d conf$$.dir; then
11475 rm -f conf$$.dir/conf$$.file
11476 else
11477 rm -f conf$$.dir
11478 mkdir conf$$.dir 2>/dev/null
11479 fi
11480 if (echo >conf$$.file) 2>/dev/null; then
11481 if ln -s conf$$.file conf$$ 2>/dev/null; then
11482 as_ln_s='ln -s'
11483 # ... but there are two gotchas:
11484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11486 # In both cases, we have to default to `cp -pR'.
11487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11488 as_ln_s='cp -pR'
11489 elif ln conf$$.file conf$$ 2>/dev/null; then
11490 as_ln_s=ln
11491 else
11492 as_ln_s='cp -pR'
11493 fi
11494 else
11495 as_ln_s='cp -pR'
11496 fi
11497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11498 rmdir conf$$.dir 2>/dev/null
11499
11500
11501 # as_fn_mkdir_p
11502 # -------------
11503 # Create "$as_dir" as a directory, including parents if necessary.
11504 as_fn_mkdir_p ()
11505 {
11506
11507 case $as_dir in #(
11508 -*) as_dir=./$as_dir;;
11509 esac
11510 test -d "$as_dir" || eval $as_mkdir_p || {
11511 as_dirs=
11512 while :; do
11513 case $as_dir in #(
11514 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11515 *) as_qdir=$as_dir;;
11516 esac
11517 as_dirs="'$as_qdir' $as_dirs"
11518 as_dir=`$as_dirname -- "$as_dir" ||
11519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11520 X"$as_dir" : 'X\(//\)[^/]' \| \
11521 X"$as_dir" : 'X\(//\)$' \| \
11522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11523 $as_echo X"$as_dir" |
11524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11525 s//\1/
11526 q
11527 }
11528 /^X\(\/\/\)[^/].*/{
11529 s//\1/
11530 q
11531 }
11532 /^X\(\/\/\)$/{
11533 s//\1/
11534 q
11535 }
11536 /^X\(\/\).*/{
11537 s//\1/
11538 q
11539 }
11540 s/.*/./; q'`
11541 test -d "$as_dir" && break
11542 done
11543 test -z "$as_dirs" || eval "mkdir $as_dirs"
11544 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11545
11546
11547 } # as_fn_mkdir_p
11548 if mkdir -p . 2>/dev/null; then
11549 as_mkdir_p='mkdir -p "$as_dir"'
11550 else
11551 test -d ./-p && rmdir ./-p
11552 as_mkdir_p=false
11553 fi
11554
11555
11556 # as_fn_executable_p FILE
11557 # -----------------------
11558 # Test if FILE is an executable regular file.
11559 as_fn_executable_p ()
11560 {
11561 test -f "$1" && test -x "$1"
11562 } # as_fn_executable_p
11563 as_test_x='test -x'
11564 as_executable_p=as_fn_executable_p
11565
11566 # Sed expression to map a string onto a valid CPP name.
11567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11568
11569 # Sed expression to map a string onto a valid variable name.
11570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11571
11572
11573 exec 6>&1
11574 ## ----------------------------------- ##
11575 ## Main body of $CONFIG_STATUS script. ##
11576 ## ----------------------------------- ##
11577 _ASEOF
11578 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11579
11580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11581 # Save the log message, to keep $0 and so on meaningful, and to
11582 # report actual input values of CONFIG_FILES etc. instead of their
11583 # values after options handling.
11584 ac_log="
11585 This file was extended by x11perf $as_me 1.6.0, which was
11586 generated by GNU Autoconf 2.69. Invocation command line was
11587
11588 CONFIG_FILES = $CONFIG_FILES
11589 CONFIG_HEADERS = $CONFIG_HEADERS
11590 CONFIG_LINKS = $CONFIG_LINKS
11591 CONFIG_COMMANDS = $CONFIG_COMMANDS
11592 $ $0 $@
11593
11594 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11595 "
11596
11597 _ACEOF
11598
11599 case $ac_config_files in *"
11600 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11601 esac
11602
11603 case $ac_config_headers in *"
11604 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11605 esac
11606
11607
11608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11609 # Files that config.status was made for.
11610 config_files="$ac_config_files"
11611 config_headers="$ac_config_headers"
11612 config_commands="$ac_config_commands"
11613
11614 _ACEOF
11615
11616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11617 ac_cs_usage="\
11618 \`$as_me' instantiates files and other configuration actions
11619 from templates according to the current configuration. Unless the files
11620 and actions are specified as TAGs, all are instantiated by default.
11621
11622 Usage: $0 [OPTION]... [TAG]...
11623
11624 -h, --help print this help, then exit
11625 -V, --version print version number and configuration settings, then exit
11626 --config print configuration, then exit
11627 -q, --quiet, --silent
11628 do not print progress messages
11629 -d, --debug don't remove temporary files
11630 --recheck update $as_me by reconfiguring in the same conditions
11631 --file=FILE[:TEMPLATE]
11632 instantiate the configuration file FILE
11633 --header=FILE[:TEMPLATE]
11634 instantiate the configuration header FILE
11635
11636 Configuration files:
11637 $config_files
11638
11639 Configuration headers:
11640 $config_headers
11641
11642 Configuration commands:
11643 $config_commands
11644
11645 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11646
11647 _ACEOF
11648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11649 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11650 ac_cs_version="\\
11651 x11perf config.status 1.6.0
11652 configured by $0, generated by GNU Autoconf 2.69,
11653 with options \\"\$ac_cs_config\\"
11654
11655 Copyright (C) 2012 Free Software Foundation, Inc.
11656 This config.status script is free software; the Free Software Foundation
11657 gives unlimited permission to copy, distribute and modify it."
11658
11659 ac_pwd='$ac_pwd'
11660 srcdir='$srcdir'
11661 INSTALL='$INSTALL'
11662 MKDIR_P='$MKDIR_P'
11663 AWK='$AWK'
11664 test -n "\$AWK" || AWK=awk
11665 _ACEOF
11666
11667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11668 # The default lists apply if the user does not specify any file.
11669 ac_need_defaults=:
11670 while test $# != 0
11671 do
11672 case $1 in
11673 --*=?*)
11674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11675 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11676 ac_shift=:
11677 ;;
11678 --*=)
11679 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11680 ac_optarg=
11681 ac_shift=:
11682 ;;
11683 *)
11684 ac_option=$1
11685 ac_optarg=$2
11686 ac_shift=shift
11687 ;;
11688 esac
11689
11690 case $ac_option in
11691 # Handling of the options.
11692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11693 ac_cs_recheck=: ;;
11694 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11695 $as_echo "$ac_cs_version"; exit ;;
11696 --config | --confi | --conf | --con | --co | --c )
11697 $as_echo "$ac_cs_config"; exit ;;
11698 --debug | --debu | --deb | --de | --d | -d )
11699 debug=: ;;
11700 --file | --fil | --fi | --f )
11701 $ac_shift
11702 case $ac_optarg in
11703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11704 '') as_fn_error $? "missing file argument" ;;
11705 esac
11706 as_fn_append CONFIG_FILES " '$ac_optarg'"
11707 ac_need_defaults=false;;
11708 --header | --heade | --head | --hea )
11709 $ac_shift
11710 case $ac_optarg in
11711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11712 esac
11713 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11714 ac_need_defaults=false;;
11715 --he | --h)
11716 # Conflict between --help and --header
11717 as_fn_error $? "ambiguous option: \`$1'
11718 Try \`$0 --help' for more information.";;
11719 --help | --hel | -h )
11720 $as_echo "$ac_cs_usage"; exit ;;
11721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11722 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11723 ac_cs_silent=: ;;
11724
11725 # This is an error.
11726 -*) as_fn_error $? "unrecognized option: \`$1'
11727 Try \`$0 --help' for more information." ;;
11728
11729 *) as_fn_append ac_config_targets " $1"
11730 ac_need_defaults=false ;;
11731
11732 esac
11733 shift
11734 done
11735
11736 ac_configure_extra_args=
11737
11738 if $ac_cs_silent; then
11739 exec 6>/dev/null
11740 ac_configure_extra_args="$ac_configure_extra_args --silent"
11741 fi
11742
11743 _ACEOF
11744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11745 if \$ac_cs_recheck; then
11746 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11747 shift
11748 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11749 CONFIG_SHELL='$SHELL'
11750 export CONFIG_SHELL
11751 exec "\$@"
11752 fi
11753
11754 _ACEOF
11755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11756 exec 5>>config.log
11757 {
11758 echo
11759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11760 ## Running $as_me. ##
11761 _ASBOX
11762 $as_echo "$ac_log"
11763 } >&5
11764
11765 _ACEOF
11766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11767 #
11768 # INIT-COMMANDS
11769 #
11770 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11771
11772 _ACEOF
11773
11774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11775
11776 # Handling of arguments.
11777 for ac_config_target in $ac_config_targets
11778 do
11779 case $ac_config_target in
11780 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11781 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11782 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11783 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11784
11785 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11786 esac
11787 done
11788
11789
11790 # If the user did not use the arguments to specify the items to instantiate,
11791 # then the envvar interface is used. Set only those that are not.
11792 # We use the long form for the default assignment because of an extremely
11793 # bizarre bug on SunOS 4.1.3.
11794 if $ac_need_defaults; then
11795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11798 fi
11799
11800 # Have a temporary directory for convenience. Make it in the build tree
11801 # simply because there is no reason against having it here, and in addition,
11802 # creating and moving files from /tmp can sometimes cause problems.
11803 # Hook for its removal unless debugging.
11804 # Note that there is a small window in which the directory will not be cleaned:
11805 # after its creation but before its name has been assigned to `$tmp'.
11806 $debug ||
11807 {
11808 tmp= ac_tmp=
11809 trap 'exit_status=$?
11810 : "${ac_tmp:=$tmp}"
11811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11812 ' 0
11813 trap 'as_fn_exit 1' 1 2 13 15
11814 }
11815 # Create a (secure) tmp directory for tmp files.
11816
11817 {
11818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11819 test -d "$tmp"
11820 } ||
11821 {
11822 tmp=./conf$$-$RANDOM
11823 (umask 077 && mkdir "$tmp")
11824 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11825 ac_tmp=$tmp
11826
11827 # Set up the scripts for CONFIG_FILES section.
11828 # No need to generate them if there are no CONFIG_FILES.
11829 # This happens for instance with `./config.status config.h'.
11830 if test -n "$CONFIG_FILES"; then
11831
11832
11833 ac_cr=`echo X | tr X '\015'`
11834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11835 # But we know of no other shell where ac_cr would be empty at this
11836 # point, so we can use a bashism as a fallback.
11837 if test "x$ac_cr" = x; then
11838 eval ac_cr=\$\'\\r\'
11839 fi
11840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11842 ac_cs_awk_cr='\\r'
11843 else
11844 ac_cs_awk_cr=$ac_cr
11845 fi
11846
11847 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11848 _ACEOF
11849
11850
11851 {
11852 echo "cat >conf$$subs.awk <<_ACEOF" &&
11853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11854 echo "_ACEOF"
11855 } >conf$$subs.sh ||
11856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11858 ac_delim='%!_!# '
11859 for ac_last_try in false false false false false :; do
11860 . ./conf$$subs.sh ||
11861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11862
11863 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11864 if test $ac_delim_n = $ac_delim_num; then
11865 break
11866 elif $ac_last_try; then
11867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11868 else
11869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11870 fi
11871 done
11872 rm -f conf$$subs.sh
11873
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11876 _ACEOF
11877 sed -n '
11878 h
11879 s/^/S["/; s/!.*/"]=/
11880 p
11881 g
11882 s/^[^!]*!//
11883 :repl
11884 t repl
11885 s/'"$ac_delim"'$//
11886 t delim
11887 :nl
11888 h
11889 s/\(.\{148\}\)..*/\1/
11890 t more1
11891 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11892 p
11893 n
11894 b repl
11895 :more1
11896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11897 p
11898 g
11899 s/.\{148\}//
11900 t nl
11901 :delim
11902 h
11903 s/\(.\{148\}\)..*/\1/
11904 t more2
11905 s/["\\]/\\&/g; s/^/"/; s/$/"/
11906 p
11907 b
11908 :more2
11909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11910 p
11911 g
11912 s/.\{148\}//
11913 t delim
11914 ' <conf$$subs.awk | sed '
11915 /^[^""]/{
11916 N
11917 s/\n//
11918 }
11919 ' >>$CONFIG_STATUS || ac_write_fail=1
11920 rm -f conf$$subs.awk
11921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11922 _ACAWK
11923 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11924 for (key in S) S_is_set[key] = 1
11925 FS = ""
11926
11927 }
11928 {
11929 line = $ 0
11930 nfields = split(line, field, "@")
11931 substed = 0
11932 len = length(field[1])
11933 for (i = 2; i < nfields; i++) {
11934 key = field[i]
11935 keylen = length(key)
11936 if (S_is_set[key]) {
11937 value = S[key]
11938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11939 len += length(value) + length(field[++i])
11940 substed = 1
11941 } else
11942 len += 1 + keylen
11943 }
11944
11945 print line
11946 }
11947
11948 _ACAWK
11949 _ACEOF
11950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11951 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11952 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11953 else
11954 cat
11955 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11956 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11957 _ACEOF
11958
11959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11961 # trailing colons and then remove the whole line if VPATH becomes empty
11962 # (actually we leave an empty line to preserve line numbers).
11963 if test "x$srcdir" = x.; then
11964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11965 h
11966 s///
11967 s/^/:/
11968 s/[ ]*$/:/
11969 s/:\$(srcdir):/:/g
11970 s/:\${srcdir}:/:/g
11971 s/:@srcdir@:/:/g
11972 s/^:*//
11973 s/:*$//
11974 x
11975 s/\(=[ ]*\).*/\1/
11976 G
11977 s/\n//
11978 s/^[^=]*=[ ]*$//
11979 }'
11980 fi
11981
11982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11983 fi # test -n "$CONFIG_FILES"
11984
11985 # Set up the scripts for CONFIG_HEADERS section.
11986 # No need to generate them if there are no CONFIG_HEADERS.
11987 # This happens for instance with `./config.status Makefile'.
11988 if test -n "$CONFIG_HEADERS"; then
11989 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11990 BEGIN {
11991 _ACEOF
11992
11993 # Transform confdefs.h into an awk script `defines.awk', embedded as
11994 # here-document in config.status, that substitutes the proper values into
11995 # config.h.in to produce config.h.
11996
11997 # Create a delimiter string that does not exist in confdefs.h, to ease
11998 # handling of long lines.
11999 ac_delim='%!_!# '
12000 for ac_last_try in false false :; do
12001 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12002 if test -z "$ac_tt"; then
12003 break
12004 elif $ac_last_try; then
12005 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12006 else
12007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12008 fi
12009 done
12010
12011 # For the awk script, D is an array of macro values keyed by name,
12012 # likewise P contains macro parameters if any. Preserve backslash
12013 # newline sequences.
12014
12015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12016 sed -n '
12017 s/.\{148\}/&'"$ac_delim"'/g
12018 t rset
12019 :rset
12020 s/^[ ]*#[ ]*define[ ][ ]*/ /
12021 t def
12022 d
12023 :def
12024 s/\\$//
12025 t bsnl
12026 s/["\\]/\\&/g
12027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12028 D["\1"]=" \3"/p
12029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12030 d
12031 :bsnl
12032 s/["\\]/\\&/g
12033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12034 D["\1"]=" \3\\\\\\n"\\/p
12035 t cont
12036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12037 t cont
12038 d
12039 :cont
12040 n
12041 s/.\{148\}/&'"$ac_delim"'/g
12042 t clear
12043 :clear
12044 s/\\$//
12045 t bsnlc
12046 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12047 d
12048 :bsnlc
12049 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12050 b cont
12051 ' <confdefs.h | sed '
12052 s/'"$ac_delim"'/"\\\
12053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12054
12055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12056 for (key in D) D_is_set[key] = 1
12057 FS = ""
12058 }
12059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12060 line = \$ 0
12061 split(line, arg, " ")
12062 if (arg[1] == "#") {
12063 defundef = arg[2]
12064 mac1 = arg[3]
12065 } else {
12066 defundef = substr(arg[1], 2)
12067 mac1 = arg[2]
12068 }
12069 split(mac1, mac2, "(") #)
12070 macro = mac2[1]
12071 prefix = substr(line, 1, index(line, defundef) - 1)
12072 if (D_is_set[macro]) {
12073 # Preserve the white space surrounding the "#".
12074 print prefix "define", macro P[macro] D[macro]
12075 next
12076 } else {
12077 # Replace #undef with comments. This is necessary, for example,
12078 # in the case of _POSIX_SOURCE, which is predefined and required
12079 # on some systems where configure will not decide to define it.
12080 if (defundef == "undef") {
12081 print "/*", prefix defundef, macro, "*/"
12082 next
12083 }
12084 }
12085 }
12086 { print }
12087 _ACAWK
12088 _ACEOF
12089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12090 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12091 fi # test -n "$CONFIG_HEADERS"
12092
12093
12094 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12095 shift
12096 for ac_tag
12097 do
12098 case $ac_tag in
12099 :[FHLC]) ac_mode=$ac_tag; continue;;
12100 esac
12101 case $ac_mode$ac_tag in
12102 :[FHL]*:*);;
12103 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12104 :[FH]-) ac_tag=-:-;;
12105 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12106 esac
12107 ac_save_IFS=$IFS
12108 IFS=:
12109 set x $ac_tag
12110 IFS=$ac_save_IFS
12111 shift
12112 ac_file=$1
12113 shift
12114
12115 case $ac_mode in
12116 :L) ac_source=$1;;
12117 :[FH])
12118 ac_file_inputs=
12119 for ac_f
12120 do
12121 case $ac_f in
12122 -) ac_f="$ac_tmp/stdin";;
12123 *) # Look for the file first in the build tree, then in the source tree
12124 # (if the path is not absolute). The absolute path cannot be DOS-style,
12125 # because $ac_f cannot contain `:'.
12126 test -f "$ac_f" ||
12127 case $ac_f in
12128 [\\/$]*) false;;
12129 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12130 esac ||
12131 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12132 esac
12133 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12134 as_fn_append ac_file_inputs " '$ac_f'"
12135 done
12136
12137 # Let's still pretend it is `configure' which instantiates (i.e., don't
12138 # use $as_me), people would be surprised to read:
12139 # /* config.h. Generated by config.status. */
12140 configure_input='Generated from '`
12141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12142 `' by configure.'
12143 if test x"$ac_file" != x-; then
12144 configure_input="$ac_file. $configure_input"
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12146 $as_echo "$as_me: creating $ac_file" >&6;}
12147 fi
12148 # Neutralize special characters interpreted by sed in replacement strings.
12149 case $configure_input in #(
12150 *\&* | *\|* | *\\* )
12151 ac_sed_conf_input=`$as_echo "$configure_input" |
12152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12153 *) ac_sed_conf_input=$configure_input;;
12154 esac
12155
12156 case $ac_tag in
12157 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12159 esac
12160 ;;
12161 esac
12162
12163 ac_dir=`$as_dirname -- "$ac_file" ||
12164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12165 X"$ac_file" : 'X\(//\)[^/]' \| \
12166 X"$ac_file" : 'X\(//\)$' \| \
12167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12168 $as_echo X"$ac_file" |
12169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12170 s//\1/
12171 q
12172 }
12173 /^X\(\/\/\)[^/].*/{
12174 s//\1/
12175 q
12176 }
12177 /^X\(\/\/\)$/{
12178 s//\1/
12179 q
12180 }
12181 /^X\(\/\).*/{
12182 s//\1/
12183 q
12184 }
12185 s/.*/./; q'`
12186 as_dir="$ac_dir"; as_fn_mkdir_p
12187 ac_builddir=.
12188
12189 case "$ac_dir" in
12190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12191 *)
12192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12193 # A ".." for each directory in $ac_dir_suffix.
12194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12195 case $ac_top_builddir_sub in
12196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12198 esac ;;
12199 esac
12200 ac_abs_top_builddir=$ac_pwd
12201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12202 # for backward compatibility:
12203 ac_top_builddir=$ac_top_build_prefix
12204
12205 case $srcdir in
12206 .) # We are building in place.
12207 ac_srcdir=.
12208 ac_top_srcdir=$ac_top_builddir_sub
12209 ac_abs_top_srcdir=$ac_pwd ;;
12210 [\\/]* | ?:[\\/]* ) # Absolute name.
12211 ac_srcdir=$srcdir$ac_dir_suffix;
12212 ac_top_srcdir=$srcdir
12213 ac_abs_top_srcdir=$srcdir ;;
12214 *) # Relative name.
12215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12216 ac_top_srcdir=$ac_top_build_prefix$srcdir
12217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12218 esac
12219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12220
12221
12222 case $ac_mode in
12223 :F)
12224 #
12225 # CONFIG_FILE
12226 #
12227
12228 case $INSTALL in
12229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12231 esac
12232 ac_MKDIR_P=$MKDIR_P
12233 case $MKDIR_P in
12234 [\\/$]* | ?:[\\/]* ) ;;
12235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12236 esac
12237 _ACEOF
12238
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12240 # If the template does not know about datarootdir, expand it.
12241 # FIXME: This hack should be removed a few years after 2.60.
12242 ac_datarootdir_hack=; ac_datarootdir_seen=
12243 ac_sed_dataroot='
12244 /datarootdir/ {
12245 p
12246 q
12247 }
12248 /@datadir@/p
12249 /@docdir@/p
12250 /@infodir@/p
12251 /@localedir@/p
12252 /@mandir@/p'
12253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12254 *datarootdir*) ac_datarootdir_seen=yes;;
12255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12258 _ACEOF
12259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12260 ac_datarootdir_hack='
12261 s&@datadir@&$datadir&g
12262 s&@docdir@&$docdir&g
12263 s&@infodir@&$infodir&g
12264 s&@localedir@&$localedir&g
12265 s&@mandir@&$mandir&g
12266 s&\\\${datarootdir}&$datarootdir&g' ;;
12267 esac
12268 _ACEOF
12269
12270 # Neutralize VPATH when `$srcdir' = `.'.
12271 # Shell code in configure.ac might set extrasub.
12272 # FIXME: do we really want to maintain this feature?
12273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12274 ac_sed_extra="$ac_vpsub
12275 $extrasub
12276 _ACEOF
12277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12278 :t
12279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12280 s|@configure_input@|$ac_sed_conf_input|;t t
12281 s&@top_builddir@&$ac_top_builddir_sub&;t t
12282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12283 s&@srcdir@&$ac_srcdir&;t t
12284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12285 s&@top_srcdir@&$ac_top_srcdir&;t t
12286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12287 s&@builddir@&$ac_builddir&;t t
12288 s&@abs_builddir@&$ac_abs_builddir&;t t
12289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12290 s&@INSTALL@&$ac_INSTALL&;t t
12291 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12292 $ac_datarootdir_hack
12293 "
12294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12295 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12296
12297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12298 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12300 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12302 which seems to be undefined. Please make sure it is defined" >&5
12303 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12304 which seems to be undefined. Please make sure it is defined" >&2;}
12305
12306 rm -f "$ac_tmp/stdin"
12307 case $ac_file in
12308 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12309 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12310 esac \
12311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12312 ;;
12313 :H)
12314 #
12315 # CONFIG_HEADER
12316 #
12317 if test x"$ac_file" != x-; then
12318 {
12319 $as_echo "/* $configure_input */" \
12320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12321 } >"$ac_tmp/config.h" \
12322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12323 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12325 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12326 else
12327 rm -f "$ac_file"
12328 mv "$ac_tmp/config.h" "$ac_file" \
12329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12330 fi
12331 else
12332 $as_echo "/* $configure_input */" \
12333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12334 || as_fn_error $? "could not create -" "$LINENO" 5
12335 fi
12336 # Compute "$ac_file"'s index in $config_headers.
12337 _am_arg="$ac_file"
12338 _am_stamp_count=1
12339 for _am_header in $config_headers :; do
12340 case $_am_header in
12341 $_am_arg | $_am_arg:* )
12342 break ;;
12343 * )
12344 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12345 esac
12346 done
12347 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12348 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12349 X"$_am_arg" : 'X\(//\)[^/]' \| \
12350 X"$_am_arg" : 'X\(//\)$' \| \
12351 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12352 $as_echo X"$_am_arg" |
12353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12354 s//\1/
12355 q
12356 }
12357 /^X\(\/\/\)[^/].*/{
12358 s//\1/
12359 q
12360 }
12361 /^X\(\/\/\)$/{
12362 s//\1/
12363 q
12364 }
12365 /^X\(\/\).*/{
12366 s//\1/
12367 q
12368 }
12369 s/.*/./; q'`/stamp-h$_am_stamp_count
12370 ;;
12371
12372 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12373 $as_echo "$as_me: executing $ac_file commands" >&6;}
12374 ;;
12375 esac
12376
12377
12378 case $ac_file$ac_mode in
12379 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12380 # Older Autoconf quotes --file arguments for eval, but not when files
12381 # are listed without --file. Let's play safe and only enable the eval
12382 # if we detect the quoting.
12383 case $CONFIG_FILES in
12384 *\'*) eval set x "$CONFIG_FILES" ;;
12385 *) set x $CONFIG_FILES ;;
12386 esac
12387 shift
12388 for mf
12389 do
12390 # Strip MF so we end up with the name of the file.
12391 mf=`echo "$mf" | sed -e 's/:.*$//'`
12392 # Check whether this is an Automake generated Makefile or not.
12393 # We used to match only the files named 'Makefile.in', but
12394 # some people rename them; so instead we look at the file content.
12395 # Grep'ing the first line is not enough: some people post-process
12396 # each Makefile.in and add a new line on top of each file to say so.
12397 # Grep'ing the whole file is not good either: AIX grep has a line
12398 # limit of 2048, but all sed's we know have understand at least 4000.
12399 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12400 dirpart=`$as_dirname -- "$mf" ||
12401 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12402 X"$mf" : 'X\(//\)[^/]' \| \
12403 X"$mf" : 'X\(//\)$' \| \
12404 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12405 $as_echo X"$mf" |
12406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12407 s//\1/
12408 q
12409 }
12410 /^X\(\/\/\)[^/].*/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\/\)$/{
12415 s//\1/
12416 q
12417 }
12418 /^X\(\/\).*/{
12419 s//\1/
12420 q
12421 }
12422 s/.*/./; q'`
12423 else
12424 continue
12425 fi
12426 # Extract the definition of DEPDIR, am__include, and am__quote
12427 # from the Makefile without running 'make'.
12428 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12429 test -z "$DEPDIR" && continue
12430 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12431 test -z "$am__include" && continue
12432 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12433 # Find all dependency output files, they are included files with
12434 # $(DEPDIR) in their names. We invoke sed twice because it is the
12435 # simplest approach to changing $(DEPDIR) to its actual value in the
12436 # expansion.
12437 for file in `sed -n "
12438 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12439 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12440 # Make sure the directory exists.
12441 test -f "$dirpart/$file" && continue
12442 fdir=`$as_dirname -- "$file" ||
12443 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12444 X"$file" : 'X\(//\)[^/]' \| \
12445 X"$file" : 'X\(//\)$' \| \
12446 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12447 $as_echo X"$file" |
12448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12449 s//\1/
12450 q
12451 }
12452 /^X\(\/\/\)[^/].*/{
12453 s//\1/
12454 q
12455 }
12456 /^X\(\/\/\)$/{
12457 s//\1/
12458 q
12459 }
12460 /^X\(\/\).*/{
12461 s//\1/
12462 q
12463 }
12464 s/.*/./; q'`
12465 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12466 # echo "creating $dirpart/$file"
12467 echo '# dummy' > "$dirpart/$file"
12468 done
12469 done
12470 }
12471 ;;
12472
12473 esac
12474 done # for ac_tag
12475
12476
12477 as_fn_exit 0
12478 _ACEOF
12479 ac_clean_files=$ac_clean_files_save
12480
12481 test $ac_write_fail = 0 ||
12482 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12483
12484
12485 # configure is writing to config.log, and then calls config.status.
12486 # config.status does its own redirection, appending to config.log.
12487 # Unfortunately, on DOS this fails, as config.log is still kept open
12488 # by configure, so config.status won't be able to write to it; its
12489 # output is simply discarded. So we exec the FD to /dev/null,
12490 # effectively closing config.log, so it can be properly (re)opened and
12491 # appended to by config.status. When coming back to configure, we
12492 # need to make the FD available again.
12493 if test "$no_create" != yes; then
12494 ac_cs_success=:
12495 ac_config_status_args=
12496 test "$silent" = yes &&
12497 ac_config_status_args="$ac_config_status_args --quiet"
12498 exec 5>/dev/null
12499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12500 exec 5>>config.log
12501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12502 # would make configure fail if this is the last instruction.
12503 $ac_cs_success || as_fn_exit 1
12504 fi
12505 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12507 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12508 fi
12509
12510