configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xsm 1.0.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xsm'
583 PACKAGE_TARNAME='xsm'
584 PACKAGE_VERSION='1.0.4'
585 PACKAGE_STRING='xsm 1.0.4'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 XSM_LIBS
632 XSM_CFLAGS
633 RSH
634 MAN_SUBSTS
635 XORG_MAN_PAGE
636 ADMIN_MAN_DIR
637 DRIVER_MAN_DIR
638 MISC_MAN_DIR
639 FILE_MAN_DIR
640 LIB_MAN_DIR
641 APP_MAN_DIR
642 ADMIN_MAN_SUFFIX
643 DRIVER_MAN_SUFFIX
644 MISC_MAN_SUFFIX
645 FILE_MAN_SUFFIX
646 LIB_MAN_SUFFIX
647 APP_MAN_SUFFIX
648 SED
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 INSTALL_CMD
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 CHANGELOG_CMD
662 STRICT_CFLAGS
663 CWARNFLAGS
664 BASE_CFLAGS
665 EGREP
666 GREP
667 CPP
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 AM_BACKSLASH
686 AM_DEFAULT_VERBOSITY
687 AM_DEFAULT_V
688 AM_V
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 target_alias
713 host_alias
714 build_alias
715 LIBS
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 DEFS
720 mandir
721 localedir
722 libdir
723 psdir
724 pdfdir
725 dvidir
726 htmldir
727 infodir
728 docdir
729 oldincludedir
730 includedir
731 localstatedir
732 sharedstatedir
733 sysconfdir
734 datadir
735 datarootdir
736 libexecdir
737 sbindir
738 bindir
739 program_transform_name
740 prefix
741 exec_prefix
742 PACKAGE_URL
743 PACKAGE_BUGREPORT
744 PACKAGE_STRING
745 PACKAGE_VERSION
746 PACKAGE_TARNAME
747 PACKAGE_NAME
748 PATH_SEPARATOR
749 SHELL'
750 ac_subst_files=''
751 ac_user_opts='
752 enable_option_checking
753 enable_silent_rules
754 enable_dependency_tracking
755 enable_selective_werror
756 enable_strict_compilation
757 with_rsh
758 with_appdefaultdir
759 '
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
763 CC
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP
769 PKG_CONFIG
770 PKG_CONFIG_PATH
771 PKG_CONFIG_LIBDIR
772 XSM_CFLAGS
773 XSM_LIBS'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
833 fi
834
835 case $ac_option in
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *=) ac_optarg= ;;
838 *) ac_optarg=yes ;;
839 esac
840
841 # Accept the important Cygnus configure options, so we can diagnose typos.
842
843 case $ac_dashdash$ac_option in
844 --)
845 ac_dashdash=yes ;;
846
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 bindir=$ac_optarg ;;
851
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
856
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
863
864 --config-cache | -C)
865 cache_file=config.cache ;;
866
867 -datadir | --datadir | --datadi | --datad)
868 ac_prev=datadir ;;
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
871
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
878
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
894
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
899
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
904
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=\$ac_optarg ;;
920
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
929
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
933
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
940
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
945
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
951
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
958
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
963
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 libdir=$ac_optarg ;;
968
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
975
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
980
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
987
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 mandir=$ac_optarg ;;
992
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
996
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
999 no_create=yes ;;
1000
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1004
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1013
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1018
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1025
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1032
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1049
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1054
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1059
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1063
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
1068 sbindir=$ac_optarg ;;
1069
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
1079 sharedstatedir=$ac_optarg ;;
1080
1081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
1084 site=$ac_optarg ;;
1085
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1090
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1097
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1102
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1105
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1108
1109 -with-* | --with-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=\$ac_optarg ;;
1124
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=no ;;
1140
1141 --x)
1142 # Obsolete; use --with-x.
1143 with_x=yes ;;
1144
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1151
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1158
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1161 ;;
1162
1163 *=*)
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169 esac
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1172
1173 *)
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 ;;
1180
1181 esac
1182 done
1183
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1187 fi
1188
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1191 no) ;;
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1202 do
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 as_fn_error $? "working directory cannot be determined"
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$as_myself" ||
1253 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$as_myself" : 'X\(//\)[^/]' \| \
1255 X"$as_myself" : 'X\(//\)$' \| \
1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257 $as_echo X"$as_myself" |
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)[^/].*/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\).*/{
1271 s//\1/
1272 q
1273 }
1274 s/.*/./; q'`
1275 srcdir=$ac_confdir
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 srcdir=..
1278 fi
1279 else
1280 ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 fi
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 ac_abs_confdir=`(
1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1313 cat <<_ACEOF
1314 \`configure' configures xsm 1.0.4 to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking ...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/xsm]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of xsm 1.0.4:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-silent-rules less verbose build output (undo: "make V=1")
1393 --disable-silent-rules verbose build output (undo: "make V=0")
1394 --enable-dependency-tracking
1395 do not reject slow dependency extractors
1396 --disable-dependency-tracking
1397 speeds up one-time build
1398 --disable-selective-werror
1399 Turn off selective compiler errors. (default:
1400 enabled)
1401 --enable-strict-compilation
1402 Enable all warnings from compiler and make them
1403 errors (default: disabled)
1404
1405 Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-rsh=PATH Rsh command to use (default: $bindir/ssh)
1409 --with-appdefaultdir=<pathname>
1410 specify directory for app-defaults files (default is
1411 autodetected)
1412
1413 Some influential environment variables:
1414 CC C compiler command
1415 CFLAGS C compiler flags
1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1417 nonstandard directory <lib dir>
1418 LIBS libraries to pass to the linker, e.g. -l<library>
1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420 you have headers in a nonstandard directory <include dir>
1421 CPP C preprocessor
1422 PKG_CONFIG path to pkg-config utility
1423 PKG_CONFIG_PATH
1424 directories to add to pkg-config's search path
1425 PKG_CONFIG_LIBDIR
1426 path overriding pkg-config's built-in search path
1427 XSM_CFLAGS C compiler flags for XSM, overriding pkg-config
1428 XSM_LIBS linker flags for XSM, overriding pkg-config
1429
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1432
1433 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 continue
1444 ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463 .) # We are building in place.
1464 ac_srcdir=.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1486 else
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1490 done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495 cat <<\_ACEOF
1496 xsm configure 1.0.4
1497 generated by GNU Autoconf 2.69
1498
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503 exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1530 fi
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542 fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1549 # ---------------------------------------------
1550 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1551 # accordingly.
1552 ac_fn_c_check_decl ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 as_decl_name=`echo $2|sed 's/ *(.*//'`
1556 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1558 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1559 if eval \${$3+:} false; then :
1560 $as_echo_n "(cached) " >&6
1561 else
1562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1563 /* end confdefs.h. */
1564 $4
1565 int
1566 main ()
1567 {
1568 #ifndef $as_decl_name
1569 #ifdef __cplusplus
1570 (void) $as_decl_use;
1571 #else
1572 (void) $as_decl_name;
1573 #endif
1574 #endif
1575
1576 ;
1577 return 0;
1578 }
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581 eval "$3=yes"
1582 else
1583 eval "$3=no"
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 fi
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591
1592 } # ac_fn_c_check_decl
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } > conftest.i && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=$ac_status
1666 fi
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_run
1672
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 eval "$3=yes"
1692 else
1693 eval "$3=no"
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 fi
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702 } # ac_fn_c_check_header_compile
1703
1704 # ac_fn_c_try_link LINENO
1705 # -----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_link ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext conftest$ac_exeext
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest$ac_exeext && {
1730 test "$cross_compiling" = yes ||
1731 test -x conftest$ac_exeext
1732 }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739 fi
1740 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742 # interfere with the next link command; also delete a directory that is
1743 # left behind by Apple's compiler. We do this before executing the actions.
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_link
1749
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1765 #define $2 innocuous_$2
1766
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char $2 (); below.
1769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770 <limits.h> exists even on freestanding compilers. */
1771
1772 #ifdef __STDC__
1773 # include <limits.h>
1774 #else
1775 # include <assert.h>
1776 #endif
1777
1778 #undef $2
1779
1780 /* Override any GCC internal prototype to avoid an error.
1781 Use char because int might match the return type of a GCC
1782 builtin and then its argument prototype would still apply. */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1793
1794 int
1795 main ()
1796 {
1797 return $2 ();
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext \
1808 conftest$ac_exeext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_func
1816 cat >config.log <<_ACEOF
1817 This file contains any messages produced by compilers while
1818 running configure, to aid debugging if configure makes a mistake.
1819
1820 It was created by xsm $as_me 1.0.4, which was
1821 generated by GNU Autoconf 2.69. Invocation command line was
1822
1823 $ $0 $@
1824
1825 _ACEOF
1826 exec 5>>config.log
1827 {
1828 cat <<_ASUNAME
1829 ## --------- ##
1830 ## Platform. ##
1831 ## --------- ##
1832
1833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841
1842 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1843 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1845 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1846 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1847 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1848 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1849
1850 _ASUNAME
1851
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 $as_echo "PATH: $as_dir"
1858 done
1859 IFS=$as_save_IFS
1860
1861 } >&5
1862
1863 cat >&5 <<_ACEOF
1864
1865
1866 ## ----------- ##
1867 ## Core tests. ##
1868 ## ----------- ##
1869
1870 _ACEOF
1871
1872
1873 # Keep a trace of the command line.
1874 # Strip out --no-create and --no-recursion so they do not pile up.
1875 # Strip out --silent because we don't want to record it for future runs.
1876 # Also quote any args containing shell meta-characters.
1877 # Make two passes to allow for proper duplicate-argument suppression.
1878 ac_configure_args=
1879 ac_configure_args0=
1880 ac_configure_args1=
1881 ac_must_keep_next=false
1882 for ac_pass in 1 2
1883 do
1884 for ac_arg
1885 do
1886 case $ac_arg in
1887 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1889 | -silent | --silent | --silen | --sile | --sil)
1890 continue ;;
1891 *\'*)
1892 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 esac
1894 case $ac_pass in
1895 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896 2)
1897 as_fn_append ac_configure_args1 " '$ac_arg'"
1898 if test $ac_must_keep_next = true; then
1899 ac_must_keep_next=false # Got value, back to normal.
1900 else
1901 case $ac_arg in
1902 *=* | --config-cache | -C | -disable-* | --disable-* \
1903 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1904 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1905 | -with-* | --with-* | -without-* | --without-* | --x)
1906 case "$ac_configure_args0 " in
1907 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1908 esac
1909 ;;
1910 -* ) ac_must_keep_next=true ;;
1911 esac
1912 fi
1913 as_fn_append ac_configure_args " '$ac_arg'"
1914 ;;
1915 esac
1916 done
1917 done
1918 { ac_configure_args0=; unset ac_configure_args0;}
1919 { ac_configure_args1=; unset ac_configure_args1;}
1920
1921 # When interrupted or exit'd, cleanup temporary files, and complete
1922 # config.log. We remove comments because anyway the quotes in there
1923 # would cause problems or look ugly.
1924 # WARNING: Use '\'' to represent an apostrophe within the trap.
1925 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1926 trap 'exit_status=$?
1927 # Save into config.log some information that might help in debugging.
1928 {
1929 echo
1930
1931 $as_echo "## ---------------- ##
1932 ## Cache variables. ##
1933 ## ---------------- ##"
1934 echo
1935 # The following way of writing the cache mishandles newlines in values,
1936 (
1937 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1938 eval ac_val=\$$ac_var
1939 case $ac_val in #(
1940 *${as_nl}*)
1941 case $ac_var in #(
1942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1943 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1944 esac
1945 case $ac_var in #(
1946 _ | IFS | as_nl) ;; #(
1947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1948 *) { eval $ac_var=; unset $ac_var;} ;;
1949 esac ;;
1950 esac
1951 done
1952 (set) 2>&1 |
1953 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1954 *${as_nl}ac_space=\ *)
1955 sed -n \
1956 "s/'\''/'\''\\\\'\'''\''/g;
1957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1958 ;; #(
1959 *)
1960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1961 ;;
1962 esac |
1963 sort
1964 )
1965 echo
1966
1967 $as_echo "## ----------------- ##
1968 ## Output variables. ##
1969 ## ----------------- ##"
1970 echo
1971 for ac_var in $ac_subst_vars
1972 do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 $as_echo "$ac_var='\''$ac_val'\''"
1978 done | sort
1979 echo
1980
1981 if test -n "$ac_subst_files"; then
1982 $as_echo "## ------------------- ##
1983 ## File substitutions. ##
1984 ## ------------------- ##"
1985 echo
1986 for ac_var in $ac_subst_files
1987 do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in
1990 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 esac
1992 $as_echo "$ac_var='\''$ac_val'\''"
1993 done | sort
1994 echo
1995 fi
1996
1997 if test -s confdefs.h; then
1998 $as_echo "## ----------- ##
1999 ## confdefs.h. ##
2000 ## ----------- ##"
2001 echo
2002 cat confdefs.h
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
2008 } >&5
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011 exit $exit_status
2012 ' 0
2013 for ac_signal in 1 2 13 15; do
2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2015 done
2016 ac_signal=0
2017
2018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2019 rm -f -r conftest* confdefs.h
2020
2021 $as_echo "/* confdefs.h */" > confdefs.h
2022
2023 # Predefined preprocessor variables.
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_NAME "$PACKAGE_NAME"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_STRING "$PACKAGE_STRING"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_URL "$PACKAGE_URL"
2047 _ACEOF
2048
2049
2050 # Let the site file select an alternate cache file if it wants to.
2051 # Prefer an explicitly selected file to automatically selected ones.
2052 ac_site_file1=NONE
2053 ac_site_file2=NONE
2054 if test -n "$CONFIG_SITE"; then
2055 # We do not want a PATH search for config.site.
2056 case $CONFIG_SITE in #((
2057 -*) ac_site_file1=./$CONFIG_SITE;;
2058 */*) ac_site_file1=$CONFIG_SITE;;
2059 *) ac_site_file1=./$CONFIG_SITE;;
2060 esac
2061 elif test "x$prefix" != xNONE; then
2062 ac_site_file1=$prefix/share/config.site
2063 ac_site_file2=$prefix/etc/config.site
2064 else
2065 ac_site_file1=$ac_default_prefix/share/config.site
2066 ac_site_file2=$ac_default_prefix/etc/config.site
2067 fi
2068 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2069 do
2070 test "x$ac_site_file" = xNONE && continue
2071 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2073 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2074 sed 's/^/| /' "$ac_site_file" >&5
2075 . "$ac_site_file" \
2076 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078 as_fn_error $? "failed to load site script $ac_site_file
2079 See \`config.log' for more details" "$LINENO" 5; }
2080 fi
2081 done
2082
2083 if test -r "$cache_file"; then
2084 # Some versions of bash will fail to source /dev/null (special files
2085 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2086 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2088 $as_echo "$as_me: loading cache $cache_file" >&6;}
2089 case $cache_file in
2090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2091 *) . "./$cache_file";;
2092 esac
2093 fi
2094 else
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2096 $as_echo "$as_me: creating cache $cache_file" >&6;}
2097 >$cache_file
2098 fi
2099
2100 # Check that the precious variables saved in the cache have kept the same
2101 # value.
2102 ac_cache_corrupted=false
2103 for ac_var in $ac_precious_vars; do
2104 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2105 eval ac_new_set=\$ac_env_${ac_var}_set
2106 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2107 eval ac_new_val=\$ac_env_${ac_var}_value
2108 case $ac_old_set,$ac_new_set in
2109 set,)
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2111 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2112 ac_cache_corrupted=: ;;
2113 ,set)
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2115 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2116 ac_cache_corrupted=: ;;
2117 ,);;
2118 *)
2119 if test "x$ac_old_val" != "x$ac_new_val"; then
2120 # differences in whitespace do not lead to failure.
2121 ac_old_val_w=`echo x $ac_old_val`
2122 ac_new_val_w=`echo x $ac_new_val`
2123 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2125 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2126 ac_cache_corrupted=:
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2129 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2130 eval $ac_var=\$ac_old_val
2131 fi
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2133 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2135 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2136 fi;;
2137 esac
2138 # Pass precious variables to config.status.
2139 if test "$ac_new_set" = set; then
2140 case $ac_new_val in
2141 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 *) ac_arg=$ac_var=$ac_new_val ;;
2143 esac
2144 case " $ac_configure_args " in
2145 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2146 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2147 esac
2148 fi
2149 done
2150 if $ac_cache_corrupted; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2154 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2155 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2156 fi
2157 ## -------------------- ##
2158 ## Main body of script. ##
2159 ## -------------------- ##
2160
2161 ac_ext=c
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166
2167
2168
2169 ac_config_headers="$ac_config_headers config.h"
2170
2171
2172 # Initialize Automake
2173 am__api_version='1.15'
2174
2175 ac_aux_dir=
2176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177 if test -f "$ac_dir/install-sh"; then
2178 ac_aux_dir=$ac_dir
2179 ac_install_sh="$ac_aux_dir/install-sh -c"
2180 break
2181 elif test -f "$ac_dir/install.sh"; then
2182 ac_aux_dir=$ac_dir
2183 ac_install_sh="$ac_aux_dir/install.sh -c"
2184 break
2185 elif test -f "$ac_dir/shtool"; then
2186 ac_aux_dir=$ac_dir
2187 ac_install_sh="$ac_aux_dir/shtool install -c"
2188 break
2189 fi
2190 done
2191 if test -z "$ac_aux_dir"; then
2192 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193 fi
2194
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202
2203
2204 # Find a good install program. We prefer a C program (faster),
2205 # so one script is as good as another. But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2210 # AIX /bin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 # Reject install programs that cannot install multiple files.
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2220 if test -z "$INSTALL"; then
2221 if ${ac_cv_path_install+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in #((
2231 ./ | .// | /[cC]/* | \
2232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234 /usr/ucb/* ) ;;
2235 *)
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2238 # by default.
2239 for ac_prog in ginstall scoinst install; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2242 if test $ac_prog = install &&
2243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # AIX install. It has an incompatible calling convention.
2245 :
2246 elif test $ac_prog = install &&
2247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # program-specific install script used by HP pwplus--don't use.
2249 :
2250 else
2251 rm -rf conftest.one conftest.two conftest.dir
2252 echo one > conftest.one
2253 echo two > conftest.two
2254 mkdir conftest.dir
2255 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256 test -s conftest.one && test -s conftest.two &&
2257 test -s conftest.dir/conftest.one &&
2258 test -s conftest.dir/conftest.two
2259 then
2260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261 break 3
2262 fi
2263 fi
2264 fi
2265 done
2266 done
2267 ;;
2268 esac
2269
2270 done
2271 IFS=$as_save_IFS
2272
2273 rm -rf conftest.one conftest.two conftest.dir
2274
2275 fi
2276 if test "${ac_cv_path_install+set}" = set; then
2277 INSTALL=$ac_cv_path_install
2278 else
2279 # As a last resort, use the slow shell script. Don't cache a
2280 # value for INSTALL within a source directory, because that will
2281 # break other packages using the cache if that directory is
2282 # removed, or if the value is a relative name.
2283 INSTALL=$ac_install_sh
2284 fi
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287 $as_echo "$INSTALL" >&6; }
2288
2289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290 # It thinks the first close brace ends the variable substitution.
2291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292
2293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294
2295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298 $as_echo_n "checking whether build environment is sane... " >&6; }
2299 # Reject unsafe characters in $srcdir or the absolute working directory
2300 # name. Accept space and tab only in the latter.
2301 am_lf='
2302 '
2303 case `pwd` in
2304 *[\\\"\#\$\&\'\`$am_lf]*)
2305 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2306 esac
2307 case $srcdir in
2308 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2309 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2310 esac
2311
2312 # Do 'set' in a subshell so we don't clobber the current shell's
2313 # arguments. Must try -L first in case configure is actually a
2314 # symlink; some systems play weird games with the mod time of symlinks
2315 # (eg FreeBSD returns the mod time of the symlink's containing
2316 # directory).
2317 if (
2318 am_has_slept=no
2319 for am_try in 1 2; do
2320 echo "timestamp, slept: $am_has_slept" > conftest.file
2321 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322 if test "$*" = "X"; then
2323 # -L didn't work.
2324 set X `ls -t "$srcdir/configure" conftest.file`
2325 fi
2326 if test "$*" != "X $srcdir/configure conftest.file" \
2327 && test "$*" != "X conftest.file $srcdir/configure"; then
2328
2329 # If neither matched, then we have a broken ls. This can happen
2330 # if, for instance, CONFIG_SHELL is bash and it inherits a
2331 # broken ls alias from the environment. This has actually
2332 # happened. Such a system could not be considered "sane".
2333 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2334 alias in your environment" "$LINENO" 5
2335 fi
2336 if test "$2" = conftest.file || test $am_try -eq 2; then
2337 break
2338 fi
2339 # Just in case.
2340 sleep 1
2341 am_has_slept=yes
2342 done
2343 test "$2" = conftest.file
2344 )
2345 then
2346 # Ok.
2347 :
2348 else
2349 as_fn_error $? "newly created file is older than distributed files!
2350 Check your system clock" "$LINENO" 5
2351 fi
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2353 $as_echo "yes" >&6; }
2354 # If we didn't sleep, we still need to ensure time stamps of config.status and
2355 # generated files are strictly newer.
2356 am_sleep_pid=
2357 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2358 ( sleep 1 ) &
2359 am_sleep_pid=$!
2360 fi
2361
2362 rm -f conftest.file
2363
2364 test "$program_prefix" != NONE &&
2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374 # Expand $ac_aux_dir to an absolute path.
2375 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2376
2377 if test x"${MISSING+set}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381 *)
2382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383 esac
2384 fi
2385 # Use eval to expand $SHELL
2386 if eval "$MISSING --is-lightweight"; then
2387 am_missing_run="$MISSING "
2388 else
2389 am_missing_run=
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2391 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2392 fi
2393
2394 if test x"${install_sh+set}" != xset; then
2395 case $am_aux_dir in
2396 *\ * | *\ *)
2397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398 *)
2399 install_sh="\${SHELL} $am_aux_dir/install-sh"
2400 esac
2401 fi
2402
2403 # Installed binaries are usually stripped using 'strip' when the user
2404 # run "make install-strip". However 'strip' might not be the right
2405 # tool to use in cross-compilation environments, therefore Automake
2406 # will honor the 'STRIP' environment variable to overrule this program.
2407 if test "$cross_compiling" != no; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}strip; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_STRIP+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$STRIP"; then
2417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 STRIP=$ac_cv_prog_STRIP
2437 if test -n "$STRIP"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2439 $as_echo "$STRIP" >&6; }
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446 fi
2447 if test -z "$ac_cv_prog_STRIP"; then
2448 ac_ct_STRIP=$STRIP
2449 # Extract the first word of "strip", so it can be a program name with args.
2450 set dummy strip; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test -n "$ac_ct_STRIP"; then
2457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466 ac_cv_prog_ac_ct_STRIP="strip"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477 if test -n "$ac_ct_STRIP"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2479 $as_echo "$ac_ct_STRIP" >&6; }
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485 if test "x$ac_ct_STRIP" = x; then
2486 STRIP=":"
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 STRIP=$ac_ct_STRIP
2495 fi
2496 else
2497 STRIP="$ac_cv_prog_STRIP"
2498 fi
2499
2500 fi
2501 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2504 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505 if test -z "$MKDIR_P"; then
2506 if ${ac_cv_path_mkdir+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_prog in mkdir gmkdir; do
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518 'mkdir (GNU coreutils) '* | \
2519 'mkdir (coreutils) '* | \
2520 'mkdir (fileutils) '4.1*)
2521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522 break 3;;
2523 esac
2524 done
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530
2531 test -d ./--version && rmdir ./--version
2532 if test "${ac_cv_path_mkdir+set}" = set; then
2533 MKDIR_P="$ac_cv_path_mkdir -p"
2534 else
2535 # As a last resort, use the slow shell script. Don't cache a
2536 # value for MKDIR_P within a source directory, because that will
2537 # break other packages using the cache if that directory is
2538 # removed, or if the value is a relative name.
2539 MKDIR_P="$ac_install_sh -d"
2540 fi
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2543 $as_echo "$MKDIR_P" >&6; }
2544
2545 for ac_prog in gawk mawk nawk awk
2546 do
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_AWK+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$AWK"; then
2555 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_AWK="$ac_prog"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 AWK=$ac_cv_prog_AWK
2575 if test -n "$AWK"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2577 $as_echo "$AWK" >&6; }
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584 test -n "$AWK" && break
2585 done
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2588 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2589 set x ${MAKE-make}
2590 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2591 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 cat >conftest.make <<\_ACEOF
2595 SHELL = /bin/sh
2596 all:
2597 @echo '@@@%%%=$(MAKE)=@@@%%%'
2598 _ACEOF
2599 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2600 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2601 *@@@%%%=?*=@@@%%%*)
2602 eval ac_cv_prog_make_${ac_make}_set=yes;;
2603 *)
2604 eval ac_cv_prog_make_${ac_make}_set=no;;
2605 esac
2606 rm -f conftest.make
2607 fi
2608 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2611 SET_MAKE=
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615 SET_MAKE="MAKE=${MAKE-make}"
2616 fi
2617
2618 rm -rf .tst 2>/dev/null
2619 mkdir .tst 2>/dev/null
2620 if test -d .tst; then
2621 am__leading_dot=.
2622 else
2623 am__leading_dot=_
2624 fi
2625 rmdir .tst 2>/dev/null
2626
2627 # Check whether --enable-silent-rules was given.
2628 if test "${enable_silent_rules+set}" = set; then :
2629 enableval=$enable_silent_rules;
2630 fi
2631
2632 case $enable_silent_rules in # (((
2633 yes) AM_DEFAULT_VERBOSITY=0;;
2634 no) AM_DEFAULT_VERBOSITY=1;;
2635 *) AM_DEFAULT_VERBOSITY=1;;
2636 esac
2637 am_make=${MAKE-make}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2639 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2640 if ${am_cv_make_support_nested_variables+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if $as_echo 'TRUE=$(BAR$(V))
2644 BAR0=false
2645 BAR1=true
2646 V=1
2647 am__doit:
2648 @$(TRUE)
2649 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2650 am_cv_make_support_nested_variables=yes
2651 else
2652 am_cv_make_support_nested_variables=no
2653 fi
2654 fi
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2656 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2657 if test $am_cv_make_support_nested_variables = yes; then
2658 AM_V='$(V)'
2659 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2660 else
2661 AM_V=$AM_DEFAULT_VERBOSITY
2662 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2663 fi
2664 AM_BACKSLASH='\'
2665
2666 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2667 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2668 # is not polluted with repeated "-I."
2669 am__isrc=' -I$(srcdir)'
2670 # test to see if srcdir already configured
2671 if test -f $srcdir/config.status; then
2672 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2673 fi
2674 fi
2675
2676 # test whether we have cygpath
2677 if test -z "$CYGPATH_W"; then
2678 if (cygpath --version) >/dev/null 2>/dev/null; then
2679 CYGPATH_W='cygpath -w'
2680 else
2681 CYGPATH_W=echo
2682 fi
2683 fi
2684
2685
2686 # Define the identity of the package.
2687 PACKAGE='xsm'
2688 VERSION='1.0.4'
2689
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE "$PACKAGE"
2693 _ACEOF
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define VERSION "$VERSION"
2698 _ACEOF
2699
2700 # Some tools Automake needs.
2701
2702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2703
2704
2705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2706
2707
2708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2709
2710
2711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2712
2713
2714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2715
2716 # For better backward compatibility. To be removed once Automake 1.9.x
2717 # dies out for good. For more background, see:
2718 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2719 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2720 mkdir_p='$(MKDIR_P)'
2721
2722 # We need awk for the "check" target (and possibly the TAP driver). The
2723 # system "awk" is bad on some platforms.
2724 # Always define AMTAR for backward compatibility. Yes, it's still used
2725 # in the wild :-( We should find a proper way to deprecate it ...
2726 AMTAR='$${TAR-tar}'
2727
2728
2729 # We'll loop over all known methods to create a tar archive until one works.
2730 _am_tools='gnutar pax cpio none'
2731
2732 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2733
2734
2735
2736
2737
2738
2739 # POSIX will say in a future version that running "rm -f" with no argument
2740 # is OK; and we want to be able to make that assumption in our Makefile
2741 # recipes. So use an aggressive probe to check that the usage we want is
2742 # actually supported "in the wild" to an acceptable degree.
2743 # See automake bug#10828.
2744 # To make any issue more visible, cause the running configure to be aborted
2745 # by default if the 'rm' program in use doesn't match our expectations; the
2746 # user can still override this though.
2747 if rm -f && rm -fr && rm -rf; then : OK; else
2748 cat >&2 <<'END'
2749 Oops!
2750
2751 Your 'rm' program seems unable to run without file operands specified
2752 on the command line, even when the '-f' option is present. This is contrary
2753 to the behaviour of most rm programs out there, and not conforming with
2754 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2755
2756 Please tell bug-automake@gnu.org about your system, including the value
2757 of your $PATH and any error possibly output before this message. This
2758 can help us improve future automake versions.
2759
2760 END
2761 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2762 echo 'Configuration will proceed anyway, since you have set the' >&2
2763 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2764 echo >&2
2765 else
2766 cat >&2 <<'END'
2767 Aborting the configuration process, to ensure you take notice of the issue.
2768
2769 You can download and install GNU coreutils to get an 'rm' implementation
2770 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2771
2772 If you want to complete the configuration process using your problematic
2773 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2774 to "yes", and re-run configure.
2775
2776 END
2777 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2778 fi
2779 fi
2780
2781
2782 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794 DEPDIR="${am__leading_dot}deps"
2795
2796 ac_config_commands="$ac_config_commands depfiles"
2797
2798
2799 am_make=${MAKE-make}
2800 cat > confinc << 'END'
2801 am__doit:
2802 @echo this is the am__doit target
2803 .PHONY: am__doit
2804 END
2805 # If we don't find an include directive, just comment out the code.
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2807 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2808 am__include="#"
2809 am__quote=
2810 _am_result=none
2811 # First try GNU make style include.
2812 echo "include confinc" > confmf
2813 # Ignore all kinds of additional output from 'make'.
2814 case `$am_make -s -f confmf 2> /dev/null` in #(
2815 *the\ am__doit\ target*)
2816 am__include=include
2817 am__quote=
2818 _am_result=GNU
2819 ;;
2820 esac
2821 # Now try BSD make style include.
2822 if test "$am__include" = "#"; then
2823 echo '.include "confinc"' > confmf
2824 case `$am_make -s -f confmf 2> /dev/null` in #(
2825 *the\ am__doit\ target*)
2826 am__include=.include
2827 am__quote="\""
2828 _am_result=BSD
2829 ;;
2830 esac
2831 fi
2832
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2835 $as_echo "$_am_result" >&6; }
2836 rm -f confinc confmf
2837
2838 # Check whether --enable-dependency-tracking was given.
2839 if test "${enable_dependency_tracking+set}" = set; then :
2840 enableval=$enable_dependency_tracking;
2841 fi
2842
2843 if test "x$enable_dependency_tracking" != xno; then
2844 am_depcomp="$ac_aux_dir/depcomp"
2845 AMDEPBACKSLASH='\'
2846 am__nodep='_no'
2847 fi
2848 if test "x$enable_dependency_tracking" != xno; then
2849 AMDEP_TRUE=
2850 AMDEP_FALSE='#'
2851 else
2852 AMDEP_TRUE='#'
2853 AMDEP_FALSE=
2854 fi
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$ac_cv_prog_CC"; then
2902 ac_ct_CC=$CC
2903 # Extract the first word of "gcc", so it can be a program name with args.
2904 set dummy gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_CC="gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933 $as_echo "$ac_ct_CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939 if test "x$ac_ct_CC" = x; then
2940 CC=""
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948 CC=$ac_ct_CC
2949 fi
2950 else
2951 CC="$ac_cv_prog_CC"
2952 fi
2953
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}cc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="${ac_tool_prefix}cc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 fi
2995 if test -z "$CC"; then
2996 # Extract the first word of "cc", so it can be a program name with args.
2997 set dummy cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 ac_prog_rejected=no
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3015 ac_prog_rejected=yes
3016 continue
3017 fi
3018 ac_cv_prog_CC="cc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 if test $ac_prog_rejected = yes; then
3027 # We found a bogon in the path, so make sure we never use it.
3028 set dummy $ac_cv_prog_CC
3029 shift
3030 if test $# != 0; then
3031 # We chose a different compiler from the bogus one.
3032 # However, it has the same basename, so the bogon will be chosen
3033 # first if we set CC to just the basename; use the full file name.
3034 shift
3035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3036 fi
3037 fi
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 fi
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 for ac_prog in cl.exe
3054 do
3055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076 done
3077 done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092 test -n "$CC" && break
3093 done
3094 fi
3095 if test -z "$CC"; then
3096 ac_ct_CC=$CC
3097 for ac_prog in cl.exe
3098 do
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100 set dummy $ac_prog; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$ac_ct_CC"; then
3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_CC="$ac_prog"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129 $as_echo "$ac_ct_CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 test -n "$ac_ct_CC" && break
3137 done
3138
3139 if test "x$ac_ct_CC" = x; then
3140 CC=""
3141 else
3142 case $cross_compiling:$ac_tool_warned in
3143 yes:)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148 CC=$ac_ct_CC
3149 fi
3150 fi
3151
3152 fi
3153
3154
3155 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "no acceptable C compiler found in \$PATH
3158 See \`config.log' for more details" "$LINENO" 5; }
3159
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3162 set X $ac_compile
3163 ac_compiler=$2
3164 for ac_option in --version -v -V -qversion; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3173 ac_status=$?
3174 if test -s conftest.err; then
3175 sed '10a\
3176 ... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
3179 fi
3180 rm -f conftest.er1 conftest.err
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183 done
3184
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187
3188 int
3189 main ()
3190 {
3191
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 ac_clean_files_save=$ac_clean_files
3197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3198 # Try to create an executable without -o first, disregard a.out.
3199 # It will help us diagnose broken compilers, and finding out an intuition
3200 # of exeext.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3202 $as_echo_n "checking whether the C compiler works... " >&6; }
3203 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3204
3205 # The possible output files:
3206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207
3208 ac_rmfiles=
3209 for ac_file in $ac_files
3210 do
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214 esac
3215 done
3216 rm -f $ac_rmfiles
3217
3218 if { { ac_try="$ac_link_default"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link_default") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3233 # Autoconf.
3234 for ac_file in $ac_files ''
3235 do
3236 test -f "$ac_file" || continue
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3239 ;;
3240 [ab].out )
3241 # We found the default executable, but exeext='' is most
3242 # certainly right.
3243 break;;
3244 *.* )
3245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3246 then :; else
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248 fi
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3253 # actually working.
3254 break;;
3255 * )
3256 break;;
3257 esac
3258 done
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260
3261 else
3262 ac_file=''
3263 fi
3264 if test -z "$ac_file"; then :
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error 77 "C compiler cannot create executables
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3279 $as_echo_n "checking for C compiler default output file name... " >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281 $as_echo "$ac_file" >&6; }
3282 ac_exeext=$ac_cv_exeext
3283
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3287 $as_echo_n "checking for suffix of executables... " >&6; }
3288 if { { ac_try="$ac_link"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 # `rm'.
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 break;;
3309 * ) break;;
3310 esac
3311 done
3312 else
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 fi
3318 rm -f conftest conftest$ac_cv_exeext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3320 $as_echo "$ac_cv_exeext" >&6; }
3321
3322 rm -f conftest.$ac_ext
3323 EXEEXT=$ac_cv_exeext
3324 ac_exeext=$EXEEXT
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327 #include <stdio.h>
3328 int
3329 main ()
3330 {
3331 FILE *f = fopen ("conftest.out", "w");
3332 return ferror (f) || fclose (f) != 0;
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 ac_clean_files="$ac_clean_files conftest.out"
3339 # Check that the compiler produces executables we can run. If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 if test "$cross_compiling" != yes; then
3344 { { ac_try="$ac_link"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_link") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 if { ac_try='./conftest$ac_cv_exeext'
3356 { { case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_try") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; }; then
3366 cross_compiling=no
3367 else
3368 if test "$cross_compiling" = maybe; then
3369 cross_compiling=yes
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot run C compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details" "$LINENO" 5; }
3376 fi
3377 fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3381
3382 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if ${ac_cv_objext+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391
3392 int
3393 main ()
3394 {
3395
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.o conftest.obj
3401 if { { ac_try="$ac_compile"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compile") 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 for ac_file in conftest.o conftest.obj conftest.*; do
3413 test -f "$ac_file" || continue;
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3417 break;;
3418 esac
3419 done
3420 else
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of object files: cannot compile
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 fi
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3432 $as_echo "$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3434 ac_objext=$OBJEXT
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3436 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3437 if ${ac_cv_c_compiler_gnu+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446 #ifndef __GNUC__
3447 choke me
3448 #endif
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_compiler_gnu=yes
3456 else
3457 ac_compiler_gnu=no
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3466 GCC=yes
3467 else
3468 GCC=
3469 fi
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3474 if ${ac_cv_prog_cc_g+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3479 ac_cv_prog_cc_g=no
3480 CFLAGS="-g"
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_prog_cc_g=yes
3494 else
3495 CFLAGS=""
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498
3499 int
3500 main ()
3501 {
3502
3503 ;
3504 return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508
3509 else
3510 ac_c_werror_flag=$ac_save_c_werror_flag
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_g=yes
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_c_werror_flag=$ac_save_c_werror_flag
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3534 $as_echo "$ac_cv_prog_cc_g" >&6; }
3535 if test "$ac_test_CFLAGS" = set; then
3536 CFLAGS=$ac_save_CFLAGS
3537 elif test $ac_cv_prog_cc_g = yes; then
3538 if test "$GCC" = yes; then
3539 CFLAGS="-g -O2"
3540 else
3541 CFLAGS="-g"
3542 fi
3543 else
3544 if test "$GCC" = yes; then
3545 CFLAGS="-O2"
3546 else
3547 CFLAGS=
3548 fi
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3551 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3552 if ${ac_cv_prog_cc_c89+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 ac_cv_prog_cc_c89=no
3556 ac_save_CC=$CC
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 #include <stdarg.h>
3560 #include <stdio.h>
3561 struct stat;
3562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3563 struct buf { int x; };
3564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3565 static char *e (p, i)
3566 char **p;
3567 int i;
3568 {
3569 return p[i];
3570 }
3571 static char *f (char * (*g) (char **, int), char **p, ...)
3572 {
3573 char *s;
3574 va_list v;
3575 va_start (v,p);
3576 s = g (p, va_arg (v,int));
3577 va_end (v);
3578 return s;
3579 }
3580
3581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3582 function prototypes and stuff, but not '\xHH' hex character constants.
3583 These don't provoke an error unfortunately, instead are silently treated
3584 as 'x'. The following induces an error, until -std is added to get
3585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3586 array size at least. It's necessary to write '\x00'==0 to get something
3587 that's true only with -std. */
3588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589
3590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3591 inside strings and character constants. */
3592 #define FOO(x) 'x'
3593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594
3595 int test (int i, double x);
3596 struct s1 {int (*f) (int a);};
3597 struct s2 {int (*f) (double a);};
3598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3599 int argc;
3600 char **argv;
3601 int
3602 main ()
3603 {
3604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3610 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 do
3612 CC="$ac_save_CC $ac_arg"
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_prog_cc_c89=$ac_arg
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext
3617 test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 done
3619 rm -f conftest.$ac_ext
3620 CC=$ac_save_CC
3621
3622 fi
3623 # AC_CACHE_VAL
3624 case "x$ac_cv_prog_cc_c89" in
3625 x)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3627 $as_echo "none needed" >&6; } ;;
3628 xno)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3630 $as_echo "unsupported" >&6; } ;;
3631 *)
3632 CC="$CC $ac_cv_prog_cc_c89"
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635 esac
3636 if test "x$ac_cv_prog_cc_c89" != xno; then :
3637
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3652 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3653 if ${am_cv_prog_cc_c_o+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 # Make sure it works both with $CC and with simple cc.
3668 # Following AC_PROG_CC_C_O, we do the test twice because some
3669 # compilers refuse to overwrite an existing .o file with -o,
3670 # though they will create one.
3671 am_cv_prog_cc_c_o=yes
3672 for am_i in 1 2; do
3673 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3674 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } \
3678 && test -f conftest2.$ac_objext; then
3679 : OK
3680 else
3681 am_cv_prog_cc_c_o=no
3682 break
3683 fi
3684 done
3685 rm -f core conftest*
3686 unset am_i
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3689 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3690 if test "$am_cv_prog_cc_c_o" != yes; then
3691 # Losing compiler, so override with the script.
3692 # FIXME: It is wrong to rewrite CC.
3693 # But if we don't then we get into trouble of one sort or another.
3694 # A longer-term fix would be to have automake use am__CC in this case,
3695 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3696 CC="$am_aux_dir/compile $CC"
3697 fi
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704
3705 depcc="$CC" am_compiler_list=
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3708 $as_echo_n "checking dependency style of $depcc... " >&6; }
3709 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3713 # We make a subdir and do the tests there. Otherwise we can end up
3714 # making bogus files that we don't know about and never remove. For
3715 # instance it was reported that on HP-UX the gcc test will end up
3716 # making a dummy file named 'D' -- because '-MD' means "put the output
3717 # in D".
3718 rm -rf conftest.dir
3719 mkdir conftest.dir
3720 # Copy depcomp to subdir because otherwise we won't find it if we're
3721 # using a relative directory.
3722 cp "$am_depcomp" conftest.dir
3723 cd conftest.dir
3724 # We will build objects and dependencies in a subdirectory because
3725 # it helps to detect inapplicable dependency modes. For instance
3726 # both Tru64's cc and ICC support -MD to output dependencies as a
3727 # side effect of compilation, but ICC will put the dependencies in
3728 # the current directory while Tru64 will put them in the object
3729 # directory.
3730 mkdir sub
3731
3732 am_cv_CC_dependencies_compiler_type=none
3733 if test "$am_compiler_list" = ""; then
3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3735 fi
3736 am__universal=false
3737 case " $depcc " in #(
3738 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3739 esac
3740
3741 for depmode in $am_compiler_list; do
3742 # Setup a source with many dependencies, because some compilers
3743 # like to wrap large dependency lists on column 80 (with \), and
3744 # we should not choose a depcomp mode which is confused by this.
3745 #
3746 # We need to recreate these files for each test, as the compiler may
3747 # overwrite some of them when testing with obscure command lines.
3748 # This happens at least with the AIX C compiler.
3749 : > sub/conftest.c
3750 for i in 1 2 3 4 5 6; do
3751 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3752 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3753 # Solaris 10 /bin/sh.
3754 echo '/* dummy */' > sub/conftst$i.h
3755 done
3756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3757
3758 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3759 # mode. It turns out that the SunPro C++ compiler does not properly
3760 # handle '-M -o', and we need to detect this. Also, some Intel
3761 # versions had trouble with output in subdirs.
3762 am__obj=sub/conftest.${OBJEXT-o}
3763 am__minus_obj="-o $am__obj"
3764 case $depmode in
3765 gcc)
3766 # This depmode causes a compiler race in universal mode.
3767 test "$am__universal" = false || continue
3768 ;;
3769 nosideeffect)
3770 # After this tag, mechanisms are not by side-effect, so they'll
3771 # only be used when explicitly requested.
3772 if test "x$enable_dependency_tracking" = xyes; then
3773 continue
3774 else
3775 break
3776 fi
3777 ;;
3778 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3779 # This compiler won't grok '-c -o', but also, the minuso test has
3780 # not run yet. These depmodes are late enough in the game, and
3781 # so weak that their functioning should not be impacted.
3782 am__obj=conftest.${OBJEXT-o}
3783 am__minus_obj=
3784 ;;
3785 none) break ;;
3786 esac
3787 if depmode=$depmode \
3788 source=sub/conftest.c object=$am__obj \
3789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3790 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3791 >/dev/null 2>conftest.err &&
3792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3794 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3796 # icc doesn't choke on unknown options, it will just issue warnings
3797 # or remarks (even with -Werror). So we grep stderr for any message
3798 # that says an option was ignored or not supported.
3799 # When given -MP, icc 7.0 and 7.1 complain thusly:
3800 # icc: Command line warning: ignoring option '-M'; no argument required
3801 # The diagnosis changed in icc 8.0:
3802 # icc: Command line remark: option '-MP' not supported
3803 if (grep 'ignoring option' conftest.err ||
3804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3805 am_cv_CC_dependencies_compiler_type=$depmode
3806 break
3807 fi
3808 fi
3809 done
3810
3811 cd ..
3812 rm -rf conftest.dir
3813 else
3814 am_cv_CC_dependencies_compiler_type=none
3815 fi
3816
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3819 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821
3822 if
3823 test "x$enable_dependency_tracking" != xno \
3824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3825 am__fastdepCC_TRUE=
3826 am__fastdepCC_FALSE='#'
3827 else
3828 am__fastdepCC_TRUE='#'
3829 am__fastdepCC_FALSE=
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3835 if ${ac_cv_prog_cc_c99+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c99=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdarg.h>
3843 #include <stdbool.h>
3844 #include <stdlib.h>
3845 #include <wchar.h>
3846 #include <stdio.h>
3847
3848 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3849 #define debug(...) fprintf (stderr, __VA_ARGS__)
3850 #define showlist(...) puts (#__VA_ARGS__)
3851 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3852 static void
3853 test_varargs_macros (void)
3854 {
3855 int x = 1234;
3856 int y = 5678;
3857 debug ("Flag");
3858 debug ("X = %d\n", x);
3859 showlist (The first, second, and third items.);
3860 report (x>y, "x is %d but y is %d", x, y);
3861 }
3862
3863 // Check long long types.
3864 #define BIG64 18446744073709551615ull
3865 #define BIG32 4294967295ul
3866 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3867 #if !BIG_OK
3868 your preprocessor is broken;
3869 #endif
3870 #if BIG_OK
3871 #else
3872 your preprocessor is broken;
3873 #endif
3874 static long long int bignum = -9223372036854775807LL;
3875 static unsigned long long int ubignum = BIG64;
3876
3877 struct incomplete_array
3878 {
3879 int datasize;
3880 double data[];
3881 };
3882
3883 struct named_init {
3884 int number;
3885 const wchar_t *name;
3886 double average;
3887 };
3888
3889 typedef const char *ccp;
3890
3891 static inline int
3892 test_restrict (ccp restrict text)
3893 {
3894 // See if C++-style comments work.
3895 // Iterate through items via the restricted pointer.
3896 // Also check for declarations in for loops.
3897 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3898 continue;
3899 return 0;
3900 }
3901
3902 // Check varargs and va_copy.
3903 static void
3904 test_varargs (const char *format, ...)
3905 {
3906 va_list args;
3907 va_start (args, format);
3908 va_list args_copy;
3909 va_copy (args_copy, args);
3910
3911 const char *str;
3912 int number;
3913 float fnumber;
3914
3915 while (*format)
3916 {
3917 switch (*format++)
3918 {
3919 case 's': // string
3920 str = va_arg (args_copy, const char *);
3921 break;
3922 case 'd': // int
3923 number = va_arg (args_copy, int);
3924 break;
3925 case 'f': // float
3926 fnumber = va_arg (args_copy, double);
3927 break;
3928 default:
3929 break;
3930 }
3931 }
3932 va_end (args_copy);
3933 va_end (args);
3934 }
3935
3936 int
3937 main ()
3938 {
3939
3940 // Check bool.
3941 _Bool success = false;
3942
3943 // Check restrict.
3944 if (test_restrict ("String literal") == 0)
3945 success = true;
3946 char *restrict newvar = "Another string";
3947
3948 // Check varargs.
3949 test_varargs ("s, d' f .", "string", 65, 34.234);
3950 test_varargs_macros ();
3951
3952 // Check flexible array members.
3953 struct incomplete_array *ia =
3954 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3955 ia->datasize = 10;
3956 for (int i = 0; i < ia->datasize; ++i)
3957 ia->data[i] = i * 1.234;
3958
3959 // Check named initializers.
3960 struct named_init ni = {
3961 .number = 34,
3962 .name = L"Test wide string",
3963 .average = 543.34343,
3964 };
3965
3966 ni.number = 58;
3967
3968 int dynamic_array[ni.number];
3969 dynamic_array[ni.number - 1] = 543;
3970
3971 // work around unused variable warnings
3972 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3973 || dynamic_array[ni.number - 1] != 543);
3974
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3980 do
3981 CC="$ac_save_CC $ac_arg"
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_cv_prog_cc_c99=$ac_arg
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext
3986 test "x$ac_cv_prog_cc_c99" != "xno" && break
3987 done
3988 rm -f conftest.$ac_ext
3989 CC=$ac_save_CC
3990
3991 fi
3992 # AC_CACHE_VAL
3993 case "x$ac_cv_prog_cc_c99" in
3994 x)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3996 $as_echo "none needed" >&6; } ;;
3997 xno)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3999 $as_echo "unsupported" >&6; } ;;
4000 *)
4001 CC="$CC $ac_cv_prog_cc_c99"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4003 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4004 esac
4005 if test "x$ac_cv_prog_cc_c99" != xno; then :
4006
4007 fi
4008
4009
4010
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4018 # On Suns, sometimes $CPP names a directory.
4019 if test -n "$CPP" && test -d "$CPP"; then
4020 CPP=
4021 fi
4022 if test -z "$CPP"; then
4023 if ${ac_cv_prog_CPP+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 # Double quotes because CPP needs to be expanded
4027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4028 do
4029 ac_preproc_ok=false
4030 for ac_c_preproc_warn_flag in '' yes
4031 do
4032 # Use a header file that comes with gcc, so configuring glibc
4033 # with a fresh cross-compiler works.
4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4035 # <limits.h> exists even on freestanding compilers.
4036 # On the NeXT, cc -E runs the code through the compiler's parser,
4037 # not just through cpp. "Syntax error" is here to catch this case.
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045 Syntax error
4046 _ACEOF
4047 if ac_fn_c_try_cpp "$LINENO"; then :
4048
4049 else
4050 # Broken: fails on valid input.
4051 continue
4052 fi
4053 rm -f conftest.err conftest.i conftest.$ac_ext
4054
4055 # OK, works on sane cases. Now check whether nonexistent headers
4056 # can be detected and how.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <ac_nonexistent.h>
4060 _ACEOF
4061 if ac_fn_c_try_cpp "$LINENO"; then :
4062 # Broken: success on invalid input.
4063 continue
4064 else
4065 # Passes both tests.
4066 ac_preproc_ok=:
4067 break
4068 fi
4069 rm -f conftest.err conftest.i conftest.$ac_ext
4070
4071 done
4072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073 rm -f conftest.i conftest.err conftest.$ac_ext
4074 if $ac_preproc_ok; then :
4075 break
4076 fi
4077
4078 done
4079 ac_cv_prog_CPP=$CPP
4080
4081 fi
4082 CPP=$ac_cv_prog_CPP
4083 else
4084 ac_cv_prog_CPP=$CPP
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4087 $as_echo "$CPP" >&6; }
4088 ac_preproc_ok=false
4089 for ac_c_preproc_warn_flag in '' yes
4090 do
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #ifdef __STDC__
4100 # include <limits.h>
4101 #else
4102 # include <assert.h>
4103 #endif
4104 Syntax error
4105 _ACEOF
4106 if ac_fn_c_try_cpp "$LINENO"; then :
4107
4108 else
4109 # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.i conftest.$ac_ext
4113
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 #include <ac_nonexistent.h>
4119 _ACEOF
4120 if ac_fn_c_try_cpp "$LINENO"; then :
4121 # Broken: success on invalid input.
4122 continue
4123 else
4124 # Passes both tests.
4125 ac_preproc_ok=:
4126 break
4127 fi
4128 rm -f conftest.err conftest.i conftest.$ac_ext
4129
4130 done
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.i conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then :
4134
4135 else
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4139 See \`config.log' for more details" "$LINENO" 5; }
4140 fi
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4151 if ${ac_cv_path_GREP+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -z "$GREP"; then
4155 ac_path_GREP_found=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_prog in grep ggrep; do
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4165 as_fn_executable_p "$ac_path_GREP" || continue
4166 # Check for GNU ac_path_GREP and select it if it is found.
4167 # Check for GNU $ac_path_GREP
4168 case `"$ac_path_GREP" --version 2>&1` in
4169 *GNU*)
4170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4171 *)
4172 ac_count=0
4173 $as_echo_n 0123456789 >"conftest.in"
4174 while :
4175 do
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'GREP' >> "conftest.nl"
4180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182 as_fn_arith $ac_count + 1 && ac_count=$as_val
4183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_GREP="$ac_path_GREP"
4186 ac_path_GREP_max=$ac_count
4187 fi
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4190 done
4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192 esac
4193
4194 $ac_path_GREP_found && break 3
4195 done
4196 done
4197 done
4198 IFS=$as_save_IFS
4199 if test -z "$ac_cv_path_GREP"; then
4200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 fi
4202 else
4203 ac_cv_path_GREP=$GREP
4204 fi
4205
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4208 $as_echo "$ac_cv_path_GREP" >&6; }
4209 GREP="$ac_cv_path_GREP"
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4213 $as_echo_n "checking for egrep... " >&6; }
4214 if ${ac_cv_path_EGREP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4218 then ac_cv_path_EGREP="$GREP -E"
4219 else
4220 if test -z "$EGREP"; then
4221 ac_path_EGREP_found=false
4222 # Loop through the user's path and test for each of PROGNAME-LIST
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_prog in egrep; do
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4231 as_fn_executable_p "$ac_path_EGREP" || continue
4232 # Check for GNU ac_path_EGREP and select it if it is found.
4233 # Check for GNU $ac_path_EGREP
4234 case `"$ac_path_EGREP" --version 2>&1` in
4235 *GNU*)
4236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4237 *)
4238 ac_count=0
4239 $as_echo_n 0123456789 >"conftest.in"
4240 while :
4241 do
4242 cat "conftest.in" "conftest.in" >"conftest.tmp"
4243 mv "conftest.tmp" "conftest.in"
4244 cp "conftest.in" "conftest.nl"
4245 $as_echo 'EGREP' >> "conftest.nl"
4246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248 as_fn_arith $ac_count + 1 && ac_count=$as_val
4249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4250 # Best one so far, save it but keep looking for a better one
4251 ac_cv_path_EGREP="$ac_path_EGREP"
4252 ac_path_EGREP_max=$ac_count
4253 fi
4254 # 10*(2^10) chars as input seems more than enough
4255 test $ac_count -gt 10 && break
4256 done
4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258 esac
4259
4260 $ac_path_EGREP_found && break 3
4261 done
4262 done
4263 done
4264 IFS=$as_save_IFS
4265 if test -z "$ac_cv_path_EGREP"; then
4266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267 fi
4268 else
4269 ac_cv_path_EGREP=$EGREP
4270 fi
4271
4272 fi
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4275 $as_echo "$ac_cv_path_EGREP" >&6; }
4276 EGREP="$ac_cv_path_EGREP"
4277
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4280 $as_echo_n "checking for ANSI C header files... " >&6; }
4281 if ${ac_cv_header_stdc+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <stdlib.h>
4287 #include <stdarg.h>
4288 #include <string.h>
4289 #include <float.h>
4290
4291 int
4292 main ()
4293 {
4294
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 ac_cv_header_stdc=yes
4301 else
4302 ac_cv_header_stdc=no
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305
4306 if test $ac_cv_header_stdc = yes; then
4307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310 #include <string.h>
4311
4312 _ACEOF
4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314 $EGREP "memchr" >/dev/null 2>&1; then :
4315
4316 else
4317 ac_cv_header_stdc=no
4318 fi
4319 rm -f conftest*
4320
4321 fi
4322
4323 if test $ac_cv_header_stdc = yes; then
4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <stdlib.h>
4328
4329 _ACEOF
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331 $EGREP "free" >/dev/null 2>&1; then :
4332
4333 else
4334 ac_cv_header_stdc=no
4335 fi
4336 rm -f conftest*
4337
4338 fi
4339
4340 if test $ac_cv_header_stdc = yes; then
4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342 if test "$cross_compiling" = yes; then :
4343 :
4344 else
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ctype.h>
4348 #include <stdlib.h>
4349 #if ((' ' & 0x0FF) == 0x020)
4350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352 #else
4353 # define ISLOWER(c) \
4354 (('a' <= (c) && (c) <= 'i') \
4355 || ('j' <= (c) && (c) <= 'r') \
4356 || ('s' <= (c) && (c) <= 'z'))
4357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4358 #endif
4359
4360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361 int
4362 main ()
4363 {
4364 int i;
4365 for (i = 0; i < 256; i++)
4366 if (XOR (islower (i), ISLOWER (i))
4367 || toupper (i) != TOUPPER (i))
4368 return 2;
4369 return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_run "$LINENO"; then :
4373
4374 else
4375 ac_cv_header_stdc=no
4376 fi
4377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4378 conftest.$ac_objext conftest.beam conftest.$ac_ext
4379 fi
4380
4381 fi
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4384 $as_echo "$ac_cv_header_stdc" >&6; }
4385 if test $ac_cv_header_stdc = yes; then
4386
4387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4388
4389 fi
4390
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393 inttypes.h stdint.h unistd.h
4394 do :
4395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4397 "
4398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4399 cat >>confdefs.h <<_ACEOF
4400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401 _ACEOF
4402
4403 fi
4404
4405 done
4406
4407
4408
4409
4410
4411
4412 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4413 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4414 CLANGCC="yes"
4415 else
4416 CLANGCC="no"
4417 fi
4418
4419 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4420 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4421 INTELCC="yes"
4422 else
4423 INTELCC="no"
4424 fi
4425
4426 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4427 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4428 SUNCC="yes"
4429 else
4430 SUNCC="no"
4431 fi
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4442 if test -n "$ac_tool_prefix"; then
4443 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4444 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 case $PKG_CONFIG in
4451 [\\/]* | ?:[\\/]*)
4452 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4453 ;;
4454 *)
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470 ;;
4471 esac
4472 fi
4473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4474 if test -n "$PKG_CONFIG"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4476 $as_echo "$PKG_CONFIG" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482
4483 fi
4484 if test -z "$ac_cv_path_PKG_CONFIG"; then
4485 ac_pt_PKG_CONFIG=$PKG_CONFIG
4486 # Extract the first word of "pkg-config", so it can be a program name with args.
4487 set dummy pkg-config; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 case $ac_pt_PKG_CONFIG in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 ;;
4514 esac
4515 fi
4516 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4517 if test -n "$ac_pt_PKG_CONFIG"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4519 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524
4525 if test "x$ac_pt_PKG_CONFIG" = x; then
4526 PKG_CONFIG=""
4527 else
4528 case $cross_compiling:$ac_tool_warned in
4529 yes:)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4532 ac_tool_warned=yes ;;
4533 esac
4534 PKG_CONFIG=$ac_pt_PKG_CONFIG
4535 fi
4536 else
4537 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4538 fi
4539
4540 fi
4541 if test -n "$PKG_CONFIG"; then
4542 _pkg_min_version=0.9.0
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4544 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4545 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 PKG_CONFIG=""
4552 fi
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 2.0 - 11 use SysV man page sections
10568 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10569 *) FILE_MAN_SUFFIX=5 ;;
10570 esac
10571 fi
10572 if test x$FILE_MAN_DIR = x ; then
10573 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10574 fi
10575
10576 if test x$MISC_MAN_SUFFIX = x ; then
10577 case $host_os in
10578 # Solaris 2.0 - 11 use SysV man page sections
10579 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10580 *) MISC_MAN_SUFFIX=7 ;;
10581 esac
10582 fi
10583 if test x$MISC_MAN_DIR = x ; then
10584 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10585 fi
10586
10587 if test x$DRIVER_MAN_SUFFIX = x ; then
10588 case $host_os in
10589 # Solaris 2.0 - 11 use SysV man page sections
10590 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10591 *) DRIVER_MAN_SUFFIX=4 ;;
10592 esac
10593 fi
10594 if test x$DRIVER_MAN_DIR = x ; then
10595 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10596 fi
10597
10598 if test x$ADMIN_MAN_SUFFIX = x ; then
10599 case $host_os in
10600 # Solaris 2.0 - 11 use SysV man page sections
10601 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10602 *) ADMIN_MAN_SUFFIX=8 ;;
10603 esac
10604 fi
10605 if test x$ADMIN_MAN_DIR = x ; then
10606 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10607 fi
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623 XORG_MAN_PAGE="X Version 11"
10624
10625 MAN_SUBSTS="\
10626 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10627 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10628 -e 's|__xservername__|Xorg|g' \
10629 -e 's|__xconfigfile__|xorg.conf|g' \
10630 -e 's|__projectroot__|\$(prefix)|g' \
10631 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10632 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10633 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10634 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10635 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10636 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10637 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10638
10639
10640
10641 # Check whether --enable-silent-rules was given.
10642 if test "${enable_silent_rules+set}" = set; then :
10643 enableval=$enable_silent_rules;
10644 fi
10645
10646 case $enable_silent_rules in # (((
10647 yes) AM_DEFAULT_VERBOSITY=0;;
10648 no) AM_DEFAULT_VERBOSITY=1;;
10649 *) AM_DEFAULT_VERBOSITY=0;;
10650 esac
10651 am_make=${MAKE-make}
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10653 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10654 if ${am_cv_make_support_nested_variables+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 if $as_echo 'TRUE=$(BAR$(V))
10658 BAR0=false
10659 BAR1=true
10660 V=1
10661 am__doit:
10662 @$(TRUE)
10663 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10664 am_cv_make_support_nested_variables=yes
10665 else
10666 am_cv_make_support_nested_variables=no
10667 fi
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10670 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10671 if test $am_cv_make_support_nested_variables = yes; then
10672 AM_V='$(V)'
10673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10674 else
10675 AM_V=$AM_DEFAULT_VERBOSITY
10676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10677 fi
10678 AM_BACKSLASH='\'
10679
10680
10681
10682
10683 # Check whether --with-rsh was given.
10684 if test "${with_rsh+set}" = set; then :
10685 withval=$with_rsh; rsh="$withval"
10686 else
10687 rsh=${bindir}/ssh
10688 fi
10689
10690 RSH=$rsh
10691
10692
10693 for ac_func in mkstemp putenv
10694 do :
10695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10698 cat >>confdefs.h <<_ACEOF
10699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10700 _ACEOF
10701
10702 fi
10703 done
10704
10705
10706 # Checks for pkg-config packages
10707
10708 pkg_failed=no
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSM" >&5
10710 $as_echo_n "checking for XSM... " >&6; }
10711
10712 if test -n "$XSM_CFLAGS"; then
10713 pkg_cv_XSM_CFLAGS="$XSM_CFLAGS"
10714 elif test -n "$PKG_CONFIG"; then
10715 if test -n "$PKG_CONFIG" && \
10716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7\""; } >&5
10717 ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7") 2>&5
10718 ac_status=$?
10719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10720 test $ac_status = 0; }; then
10721 pkg_cv_XSM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt > 1.0.99 ice sm xaw7" 2>/dev/null`
10722 test "x$?" != "x0" && pkg_failed=yes
10723 else
10724 pkg_failed=yes
10725 fi
10726 else
10727 pkg_failed=untried
10728 fi
10729 if test -n "$XSM_LIBS"; then
10730 pkg_cv_XSM_LIBS="$XSM_LIBS"
10731 elif test -n "$PKG_CONFIG"; then
10732 if test -n "$PKG_CONFIG" && \
10733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt > 1.0.99 ice sm xaw7\""; } >&5
10734 ($PKG_CONFIG --exists --print-errors "x11 xt > 1.0.99 ice sm xaw7") 2>&5
10735 ac_status=$?
10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737 test $ac_status = 0; }; then
10738 pkg_cv_XSM_LIBS=`$PKG_CONFIG --libs "x11 xt > 1.0.99 ice sm xaw7" 2>/dev/null`
10739 test "x$?" != "x0" && pkg_failed=yes
10740 else
10741 pkg_failed=yes
10742 fi
10743 else
10744 pkg_failed=untried
10745 fi
10746
10747
10748
10749 if test $pkg_failed = yes; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10752
10753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10754 _pkg_short_errors_supported=yes
10755 else
10756 _pkg_short_errors_supported=no
10757 fi
10758 if test $_pkg_short_errors_supported = yes; then
10759 XSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7" 2>&1`
10760 else
10761 XSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt > 1.0.99 ice sm xaw7" 2>&1`
10762 fi
10763 # Put the nasty error message in config.log where it belongs
10764 echo "$XSM_PKG_ERRORS" >&5
10765
10766 as_fn_error $? "Package requirements (x11 xt > 1.0.99 ice sm xaw7) were not met:
10767
10768 $XSM_PKG_ERRORS
10769
10770 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10771 installed software in a non-standard prefix.
10772
10773 Alternatively, you may set the environment variables XSM_CFLAGS
10774 and XSM_LIBS to avoid the need to call pkg-config.
10775 See the pkg-config man page for more details." "$LINENO" 5
10776 elif test $pkg_failed = untried; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10781 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10782 is in your PATH or set the PKG_CONFIG environment variable to the full
10783 path to pkg-config.
10784
10785 Alternatively, you may set the environment variables XSM_CFLAGS
10786 and XSM_LIBS to avoid the need to call pkg-config.
10787 See the pkg-config man page for more details.
10788
10789 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10790 See \`config.log' for more details" "$LINENO" 5; }
10791 else
10792 XSM_CFLAGS=$pkg_cv_XSM_CFLAGS
10793 XSM_LIBS=$pkg_cv_XSM_LIBS
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; }
10796
10797 fi
10798
10799 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10800
10801 # Check whether --with-appdefaultdir was given.
10802 if test "${with_appdefaultdir+set}" = set; then :
10803 withval=$with_appdefaultdir; appdefaultdir="$withval"
10804 else
10805 appdefaultdir="${xt_appdefaultdir}"
10806 fi
10807
10808
10809
10810
10811 ac_config_files="$ac_config_files Makefile man/Makefile"
10812
10813 cat >confcache <<\_ACEOF
10814 # This file is a shell script that caches the results of configure
10815 # tests run on this system so they can be shared between configure
10816 # scripts and configure runs, see configure's option --config-cache.
10817 # It is not useful on other systems. If it contains results you don't
10818 # want to keep, you may remove or edit it.
10819 #
10820 # config.status only pays attention to the cache file if you give it
10821 # the --recheck option to rerun configure.
10822 #
10823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10825 # following values.
10826
10827 _ACEOF
10828
10829 # The following way of writing the cache mishandles newlines in values,
10830 # but we know of no workaround that is simple, portable, and efficient.
10831 # So, we kill variables containing newlines.
10832 # Ultrix sh set writes to stderr and can't be redirected directly,
10833 # and sets the high bit in the cache file unless we assign to the vars.
10834 (
10835 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10836 eval ac_val=\$$ac_var
10837 case $ac_val in #(
10838 *${as_nl}*)
10839 case $ac_var in #(
10840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10842 esac
10843 case $ac_var in #(
10844 _ | IFS | as_nl) ;; #(
10845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10846 *) { eval $ac_var=; unset $ac_var;} ;;
10847 esac ;;
10848 esac
10849 done
10850
10851 (set) 2>&1 |
10852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10853 *${as_nl}ac_space=\ *)
10854 # `set' does not quote correctly, so add quotes: double-quote
10855 # substitution turns \\\\ into \\, and sed turns \\ into \.
10856 sed -n \
10857 "s/'/'\\\\''/g;
10858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10859 ;; #(
10860 *)
10861 # `set' quotes correctly as required by POSIX, so do not add quotes.
10862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10863 ;;
10864 esac |
10865 sort
10866 ) |
10867 sed '
10868 /^ac_cv_env_/b end
10869 t clear
10870 :clear
10871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10872 t end
10873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10874 :end' >>confcache
10875 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10876 if test -w "$cache_file"; then
10877 if test "x$cache_file" != "x/dev/null"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10879 $as_echo "$as_me: updating cache $cache_file" >&6;}
10880 if test ! -f "$cache_file" || test -h "$cache_file"; then
10881 cat confcache >"$cache_file"
10882 else
10883 case $cache_file in #(
10884 */* | ?:*)
10885 mv -f confcache "$cache_file"$$ &&
10886 mv -f "$cache_file"$$ "$cache_file" ;; #(
10887 *)
10888 mv -f confcache "$cache_file" ;;
10889 esac
10890 fi
10891 fi
10892 else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10894 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10895 fi
10896 fi
10897 rm -f confcache
10898
10899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10900 # Let make expand exec_prefix.
10901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10902
10903 DEFS=-DHAVE_CONFIG_H
10904
10905 ac_libobjs=
10906 ac_ltlibobjs=
10907 U=
10908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10909 # 1. Remove the extension, and $U if already installed.
10910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10911 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10913 # will be set to the directory where LIBOBJS objects are built.
10914 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10915 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10916 done
10917 LIBOBJS=$ac_libobjs
10918
10919 LTLIBOBJS=$ac_ltlibobjs
10920
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10923 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10924 if test -n "$am_sleep_pid"; then
10925 # Hide warnings about reused PIDs.
10926 wait $am_sleep_pid 2>/dev/null
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10929 $as_echo "done" >&6; }
10930 if test -n "$EXEEXT"; then
10931 am__EXEEXT_TRUE=
10932 am__EXEEXT_FALSE='#'
10933 else
10934 am__EXEEXT_TRUE='#'
10935 am__EXEEXT_FALSE=
10936 fi
10937
10938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10939 as_fn_error $? "conditional \"AMDEP\" was never defined.
10940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10941 fi
10942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10943 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10945 fi
10946
10947 : "${CONFIG_STATUS=./config.status}"
10948 ac_write_fail=0
10949 ac_clean_files_save=$ac_clean_files
10950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10952 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10953 as_write_fail=0
10954 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10955 #! $SHELL
10956 # Generated by $as_me.
10957 # Run this file to recreate the current configuration.
10958 # Compiler output produced by configure, useful for debugging
10959 # configure, is in config.log if it exists.
10960
10961 debug=false
10962 ac_cs_recheck=false
10963 ac_cs_silent=false
10964
10965 SHELL=\${CONFIG_SHELL-$SHELL}
10966 export SHELL
10967 _ASEOF
10968 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10969 ## -------------------- ##
10970 ## M4sh Initialization. ##
10971 ## -------------------- ##
10972
10973 # Be more Bourne compatible
10974 DUALCASE=1; export DUALCASE # for MKS sh
10975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10976 emulate sh
10977 NULLCMD=:
10978 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10979 # is contrary to our usage. Disable this feature.
10980 alias -g '${1+"$@"}'='"$@"'
10981 setopt NO_GLOB_SUBST
10982 else
10983 case `(set -o) 2>/dev/null` in #(
10984 *posix*) :
10985 set -o posix ;; #(
10986 *) :
10987 ;;
10988 esac
10989 fi
10990
10991
10992 as_nl='
10993 '
10994 export as_nl
10995 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10996 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10999 # Prefer a ksh shell builtin over an external printf program on Solaris,
11000 # but without wasting forks for bash or zsh.
11001 if test -z "$BASH_VERSION$ZSH_VERSION" \
11002 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11003 as_echo='print -r --'
11004 as_echo_n='print -rn --'
11005 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11006 as_echo='printf %s\n'
11007 as_echo_n='printf %s'
11008 else
11009 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11010 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11011 as_echo_n='/usr/ucb/echo -n'
11012 else
11013 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11014 as_echo_n_body='eval
11015 arg=$1;
11016 case $arg in #(
11017 *"$as_nl"*)
11018 expr "X$arg" : "X\\(.*\\)$as_nl";
11019 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11020 esac;
11021 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11022 '
11023 export as_echo_n_body
11024 as_echo_n='sh -c $as_echo_n_body as_echo'
11025 fi
11026 export as_echo_body
11027 as_echo='sh -c $as_echo_body as_echo'
11028 fi
11029
11030 # The user is always right.
11031 if test "${PATH_SEPARATOR+set}" != set; then
11032 PATH_SEPARATOR=:
11033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11034 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11035 PATH_SEPARATOR=';'
11036 }
11037 fi
11038
11039
11040 # IFS
11041 # We need space, tab and new line, in precisely that order. Quoting is
11042 # there to prevent editors from complaining about space-tab.
11043 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11044 # splitting by setting IFS to empty value.)
11045 IFS=" "" $as_nl"
11046
11047 # Find who we are. Look in the path if we contain no directory separator.
11048 as_myself=
11049 case $0 in #((
11050 *[\\/]* ) as_myself=$0 ;;
11051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052 for as_dir in $PATH
11053 do
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
11056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11057 done
11058 IFS=$as_save_IFS
11059
11060 ;;
11061 esac
11062 # We did not find ourselves, most probably we were run as `sh COMMAND'
11063 # in which case we are not to be found in the path.
11064 if test "x$as_myself" = x; then
11065 as_myself=$0
11066 fi
11067 if test ! -f "$as_myself"; then
11068 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11069 exit 1
11070 fi
11071
11072 # Unset variables that we do not need and which cause bugs (e.g. in
11073 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11074 # suppresses any "Segmentation fault" message there. '((' could
11075 # trigger a bug in pdksh 5.2.14.
11076 for as_var in BASH_ENV ENV MAIL MAILPATH
11077 do eval test x\${$as_var+set} = xset \
11078 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11079 done
11080 PS1='$ '
11081 PS2='> '
11082 PS4='+ '
11083
11084 # NLS nuisances.
11085 LC_ALL=C
11086 export LC_ALL
11087 LANGUAGE=C
11088 export LANGUAGE
11089
11090 # CDPATH.
11091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11092
11093
11094 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11095 # ----------------------------------------
11096 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11097 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11098 # script with STATUS, using 1 if that was 0.
11099 as_fn_error ()
11100 {
11101 as_status=$1; test $as_status -eq 0 && as_status=1
11102 if test "$4"; then
11103 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11104 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11105 fi
11106 $as_echo "$as_me: error: $2" >&2
11107 as_fn_exit $as_status
11108 } # as_fn_error
11109
11110
11111 # as_fn_set_status STATUS
11112 # -----------------------
11113 # Set $? to STATUS, without forking.
11114 as_fn_set_status ()
11115 {
11116 return $1
11117 } # as_fn_set_status
11118
11119 # as_fn_exit STATUS
11120 # -----------------
11121 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11122 as_fn_exit ()
11123 {
11124 set +e
11125 as_fn_set_status $1
11126 exit $1
11127 } # as_fn_exit
11128
11129 # as_fn_unset VAR
11130 # ---------------
11131 # Portably unset VAR.
11132 as_fn_unset ()
11133 {
11134 { eval $1=; unset $1;}
11135 }
11136 as_unset=as_fn_unset
11137 # as_fn_append VAR VALUE
11138 # ----------------------
11139 # Append the text in VALUE to the end of the definition contained in VAR. Take
11140 # advantage of any shell optimizations that allow amortized linear growth over
11141 # repeated appends, instead of the typical quadratic growth present in naive
11142 # implementations.
11143 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11144 eval 'as_fn_append ()
11145 {
11146 eval $1+=\$2
11147 }'
11148 else
11149 as_fn_append ()
11150 {
11151 eval $1=\$$1\$2
11152 }
11153 fi # as_fn_append
11154
11155 # as_fn_arith ARG...
11156 # ------------------
11157 # Perform arithmetic evaluation on the ARGs, and store the result in the
11158 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11159 # must be portable across $(()) and expr.
11160 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11161 eval 'as_fn_arith ()
11162 {
11163 as_val=$(( $* ))
11164 }'
11165 else
11166 as_fn_arith ()
11167 {
11168 as_val=`expr "$@" || test $? -eq 1`
11169 }
11170 fi # as_fn_arith
11171
11172
11173 if expr a : '\(a\)' >/dev/null 2>&1 &&
11174 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11175 as_expr=expr
11176 else
11177 as_expr=false
11178 fi
11179
11180 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11181 as_basename=basename
11182 else
11183 as_basename=false
11184 fi
11185
11186 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11187 as_dirname=dirname
11188 else
11189 as_dirname=false
11190 fi
11191
11192 as_me=`$as_basename -- "$0" ||
11193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11194 X"$0" : 'X\(//\)$' \| \
11195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11196 $as_echo X/"$0" |
11197 sed '/^.*\/\([^/][^/]*\)\/*$/{
11198 s//\1/
11199 q
11200 }
11201 /^X\/\(\/\/\)$/{
11202 s//\1/
11203 q
11204 }
11205 /^X\/\(\/\).*/{
11206 s//\1/
11207 q
11208 }
11209 s/.*/./; q'`
11210
11211 # Avoid depending upon Character Ranges.
11212 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11213 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11214 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11215 as_cr_digits='0123456789'
11216 as_cr_alnum=$as_cr_Letters$as_cr_digits
11217
11218 ECHO_C= ECHO_N= ECHO_T=
11219 case `echo -n x` in #(((((
11220 -n*)
11221 case `echo 'xy\c'` in
11222 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11223 xy) ECHO_C='\c';;
11224 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11225 ECHO_T=' ';;
11226 esac;;
11227 *)
11228 ECHO_N='-n';;
11229 esac
11230
11231 rm -f conf$$ conf$$.exe conf$$.file
11232 if test -d conf$$.dir; then
11233 rm -f conf$$.dir/conf$$.file
11234 else
11235 rm -f conf$$.dir
11236 mkdir conf$$.dir 2>/dev/null
11237 fi
11238 if (echo >conf$$.file) 2>/dev/null; then
11239 if ln -s conf$$.file conf$$ 2>/dev/null; then
11240 as_ln_s='ln -s'
11241 # ... but there are two gotchas:
11242 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11243 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11244 # In both cases, we have to default to `cp -pR'.
11245 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11246 as_ln_s='cp -pR'
11247 elif ln conf$$.file conf$$ 2>/dev/null; then
11248 as_ln_s=ln
11249 else
11250 as_ln_s='cp -pR'
11251 fi
11252 else
11253 as_ln_s='cp -pR'
11254 fi
11255 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11256 rmdir conf$$.dir 2>/dev/null
11257
11258
11259 # as_fn_mkdir_p
11260 # -------------
11261 # Create "$as_dir" as a directory, including parents if necessary.
11262 as_fn_mkdir_p ()
11263 {
11264
11265 case $as_dir in #(
11266 -*) as_dir=./$as_dir;;
11267 esac
11268 test -d "$as_dir" || eval $as_mkdir_p || {
11269 as_dirs=
11270 while :; do
11271 case $as_dir in #(
11272 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11273 *) as_qdir=$as_dir;;
11274 esac
11275 as_dirs="'$as_qdir' $as_dirs"
11276 as_dir=`$as_dirname -- "$as_dir" ||
11277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11278 X"$as_dir" : 'X\(//\)[^/]' \| \
11279 X"$as_dir" : 'X\(//\)$' \| \
11280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11281 $as_echo X"$as_dir" |
11282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11283 s//\1/
11284 q
11285 }
11286 /^X\(\/\/\)[^/].*/{
11287 s//\1/
11288 q
11289 }
11290 /^X\(\/\/\)$/{
11291 s//\1/
11292 q
11293 }
11294 /^X\(\/\).*/{
11295 s//\1/
11296 q
11297 }
11298 s/.*/./; q'`
11299 test -d "$as_dir" && break
11300 done
11301 test -z "$as_dirs" || eval "mkdir $as_dirs"
11302 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11303
11304
11305 } # as_fn_mkdir_p
11306 if mkdir -p . 2>/dev/null; then
11307 as_mkdir_p='mkdir -p "$as_dir"'
11308 else
11309 test -d ./-p && rmdir ./-p
11310 as_mkdir_p=false
11311 fi
11312
11313
11314 # as_fn_executable_p FILE
11315 # -----------------------
11316 # Test if FILE is an executable regular file.
11317 as_fn_executable_p ()
11318 {
11319 test -f "$1" && test -x "$1"
11320 } # as_fn_executable_p
11321 as_test_x='test -x'
11322 as_executable_p=as_fn_executable_p
11323
11324 # Sed expression to map a string onto a valid CPP name.
11325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11326
11327 # Sed expression to map a string onto a valid variable name.
11328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11329
11330
11331 exec 6>&1
11332 ## ----------------------------------- ##
11333 ## Main body of $CONFIG_STATUS script. ##
11334 ## ----------------------------------- ##
11335 _ASEOF
11336 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11337
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 # Save the log message, to keep $0 and so on meaningful, and to
11340 # report actual input values of CONFIG_FILES etc. instead of their
11341 # values after options handling.
11342 ac_log="
11343 This file was extended by xsm $as_me 1.0.4, which was
11344 generated by GNU Autoconf 2.69. Invocation command line was
11345
11346 CONFIG_FILES = $CONFIG_FILES
11347 CONFIG_HEADERS = $CONFIG_HEADERS
11348 CONFIG_LINKS = $CONFIG_LINKS
11349 CONFIG_COMMANDS = $CONFIG_COMMANDS
11350 $ $0 $@
11351
11352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11353 "
11354
11355 _ACEOF
11356
11357 case $ac_config_files in *"
11358 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11359 esac
11360
11361 case $ac_config_headers in *"
11362 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11363 esac
11364
11365
11366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11367 # Files that config.status was made for.
11368 config_files="$ac_config_files"
11369 config_headers="$ac_config_headers"
11370 config_commands="$ac_config_commands"
11371
11372 _ACEOF
11373
11374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375 ac_cs_usage="\
11376 \`$as_me' instantiates files and other configuration actions
11377 from templates according to the current configuration. Unless the files
11378 and actions are specified as TAGs, all are instantiated by default.
11379
11380 Usage: $0 [OPTION]... [TAG]...
11381
11382 -h, --help print this help, then exit
11383 -V, --version print version number and configuration settings, then exit
11384 --config print configuration, then exit
11385 -q, --quiet, --silent
11386 do not print progress messages
11387 -d, --debug don't remove temporary files
11388 --recheck update $as_me by reconfiguring in the same conditions
11389 --file=FILE[:TEMPLATE]
11390 instantiate the configuration file FILE
11391 --header=FILE[:TEMPLATE]
11392 instantiate the configuration header FILE
11393
11394 Configuration files:
11395 $config_files
11396
11397 Configuration headers:
11398 $config_headers
11399
11400 Configuration commands:
11401 $config_commands
11402
11403 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11404
11405 _ACEOF
11406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11407 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11408 ac_cs_version="\\
11409 xsm config.status 1.0.4
11410 configured by $0, generated by GNU Autoconf 2.69,
11411 with options \\"\$ac_cs_config\\"
11412
11413 Copyright (C) 2012 Free Software Foundation, Inc.
11414 This config.status script is free software; the Free Software Foundation
11415 gives unlimited permission to copy, distribute and modify it."
11416
11417 ac_pwd='$ac_pwd'
11418 srcdir='$srcdir'
11419 INSTALL='$INSTALL'
11420 MKDIR_P='$MKDIR_P'
11421 AWK='$AWK'
11422 test -n "\$AWK" || AWK=awk
11423 _ACEOF
11424
11425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11426 # The default lists apply if the user does not specify any file.
11427 ac_need_defaults=:
11428 while test $# != 0
11429 do
11430 case $1 in
11431 --*=?*)
11432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11434 ac_shift=:
11435 ;;
11436 --*=)
11437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11438 ac_optarg=
11439 ac_shift=:
11440 ;;
11441 *)
11442 ac_option=$1
11443 ac_optarg=$2
11444 ac_shift=shift
11445 ;;
11446 esac
11447
11448 case $ac_option in
11449 # Handling of the options.
11450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11451 ac_cs_recheck=: ;;
11452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11453 $as_echo "$ac_cs_version"; exit ;;
11454 --config | --confi | --conf | --con | --co | --c )
11455 $as_echo "$ac_cs_config"; exit ;;
11456 --debug | --debu | --deb | --de | --d | -d )
11457 debug=: ;;
11458 --file | --fil | --fi | --f )
11459 $ac_shift
11460 case $ac_optarg in
11461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11462 '') as_fn_error $? "missing file argument" ;;
11463 esac
11464 as_fn_append CONFIG_FILES " '$ac_optarg'"
11465 ac_need_defaults=false;;
11466 --header | --heade | --head | --hea )
11467 $ac_shift
11468 case $ac_optarg in
11469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11470 esac
11471 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11472 ac_need_defaults=false;;
11473 --he | --h)
11474 # Conflict between --help and --header
11475 as_fn_error $? "ambiguous option: \`$1'
11476 Try \`$0 --help' for more information.";;
11477 --help | --hel | -h )
11478 $as_echo "$ac_cs_usage"; exit ;;
11479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11481 ac_cs_silent=: ;;
11482
11483 # This is an error.
11484 -*) as_fn_error $? "unrecognized option: \`$1'
11485 Try \`$0 --help' for more information." ;;
11486
11487 *) as_fn_append ac_config_targets " $1"
11488 ac_need_defaults=false ;;
11489
11490 esac
11491 shift
11492 done
11493
11494 ac_configure_extra_args=
11495
11496 if $ac_cs_silent; then
11497 exec 6>/dev/null
11498 ac_configure_extra_args="$ac_configure_extra_args --silent"
11499 fi
11500
11501 _ACEOF
11502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11503 if \$ac_cs_recheck; then
11504 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11505 shift
11506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11507 CONFIG_SHELL='$SHELL'
11508 export CONFIG_SHELL
11509 exec "\$@"
11510 fi
11511
11512 _ACEOF
11513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11514 exec 5>>config.log
11515 {
11516 echo
11517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11518 ## Running $as_me. ##
11519 _ASBOX
11520 $as_echo "$ac_log"
11521 } >&5
11522
11523 _ACEOF
11524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11525 #
11526 # INIT-COMMANDS
11527 #
11528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11529
11530 _ACEOF
11531
11532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11533
11534 # Handling of arguments.
11535 for ac_config_target in $ac_config_targets
11536 do
11537 case $ac_config_target in
11538 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11539 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11541 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11542
11543 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11544 esac
11545 done
11546
11547
11548 # If the user did not use the arguments to specify the items to instantiate,
11549 # then the envvar interface is used. Set only those that are not.
11550 # We use the long form for the default assignment because of an extremely
11551 # bizarre bug on SunOS 4.1.3.
11552 if $ac_need_defaults; then
11553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11554 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11555 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11556 fi
11557
11558 # Have a temporary directory for convenience. Make it in the build tree
11559 # simply because there is no reason against having it here, and in addition,
11560 # creating and moving files from /tmp can sometimes cause problems.
11561 # Hook for its removal unless debugging.
11562 # Note that there is a small window in which the directory will not be cleaned:
11563 # after its creation but before its name has been assigned to `$tmp'.
11564 $debug ||
11565 {
11566 tmp= ac_tmp=
11567 trap 'exit_status=$?
11568 : "${ac_tmp:=$tmp}"
11569 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11570 ' 0
11571 trap 'as_fn_exit 1' 1 2 13 15
11572 }
11573 # Create a (secure) tmp directory for tmp files.
11574
11575 {
11576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11577 test -d "$tmp"
11578 } ||
11579 {
11580 tmp=./conf$$-$RANDOM
11581 (umask 077 && mkdir "$tmp")
11582 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11583 ac_tmp=$tmp
11584
11585 # Set up the scripts for CONFIG_FILES section.
11586 # No need to generate them if there are no CONFIG_FILES.
11587 # This happens for instance with `./config.status config.h'.
11588 if test -n "$CONFIG_FILES"; then
11589
11590
11591 ac_cr=`echo X | tr X '\015'`
11592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11593 # But we know of no other shell where ac_cr would be empty at this
11594 # point, so we can use a bashism as a fallback.
11595 if test "x$ac_cr" = x; then
11596 eval ac_cr=\$\'\\r\'
11597 fi
11598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11600 ac_cs_awk_cr='\\r'
11601 else
11602 ac_cs_awk_cr=$ac_cr
11603 fi
11604
11605 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11606 _ACEOF
11607
11608
11609 {
11610 echo "cat >conf$$subs.awk <<_ACEOF" &&
11611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11612 echo "_ACEOF"
11613 } >conf$$subs.sh ||
11614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11616 ac_delim='%!_!# '
11617 for ac_last_try in false false false false false :; do
11618 . ./conf$$subs.sh ||
11619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11620
11621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11622 if test $ac_delim_n = $ac_delim_num; then
11623 break
11624 elif $ac_last_try; then
11625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11626 else
11627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11628 fi
11629 done
11630 rm -f conf$$subs.sh
11631
11632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11634 _ACEOF
11635 sed -n '
11636 h
11637 s/^/S["/; s/!.*/"]=/
11638 p
11639 g
11640 s/^[^!]*!//
11641 :repl
11642 t repl
11643 s/'"$ac_delim"'$//
11644 t delim
11645 :nl
11646 h
11647 s/\(.\{148\}\)..*/\1/
11648 t more1
11649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11650 p
11651 n
11652 b repl
11653 :more1
11654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11655 p
11656 g
11657 s/.\{148\}//
11658 t nl
11659 :delim
11660 h
11661 s/\(.\{148\}\)..*/\1/
11662 t more2
11663 s/["\\]/\\&/g; s/^/"/; s/$/"/
11664 p
11665 b
11666 :more2
11667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11668 p
11669 g
11670 s/.\{148\}//
11671 t delim
11672 ' <conf$$subs.awk | sed '
11673 /^[^""]/{
11674 N
11675 s/\n//
11676 }
11677 ' >>$CONFIG_STATUS || ac_write_fail=1
11678 rm -f conf$$subs.awk
11679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11680 _ACAWK
11681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11682 for (key in S) S_is_set[key] = 1
11683 FS = ""
11684
11685 }
11686 {
11687 line = $ 0
11688 nfields = split(line, field, "@")
11689 substed = 0
11690 len = length(field[1])
11691 for (i = 2; i < nfields; i++) {
11692 key = field[i]
11693 keylen = length(key)
11694 if (S_is_set[key]) {
11695 value = S[key]
11696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11697 len += length(value) + length(field[++i])
11698 substed = 1
11699 } else
11700 len += 1 + keylen
11701 }
11702
11703 print line
11704 }
11705
11706 _ACAWK
11707 _ACEOF
11708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11710 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11711 else
11712 cat
11713 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11714 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11715 _ACEOF
11716
11717 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11718 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11719 # trailing colons and then remove the whole line if VPATH becomes empty
11720 # (actually we leave an empty line to preserve line numbers).
11721 if test "x$srcdir" = x.; then
11722 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11723 h
11724 s///
11725 s/^/:/
11726 s/[ ]*$/:/
11727 s/:\$(srcdir):/:/g
11728 s/:\${srcdir}:/:/g
11729 s/:@srcdir@:/:/g
11730 s/^:*//
11731 s/:*$//
11732 x
11733 s/\(=[ ]*\).*/\1/
11734 G
11735 s/\n//
11736 s/^[^=]*=[ ]*$//
11737 }'
11738 fi
11739
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741 fi # test -n "$CONFIG_FILES"
11742
11743 # Set up the scripts for CONFIG_HEADERS section.
11744 # No need to generate them if there are no CONFIG_HEADERS.
11745 # This happens for instance with `./config.status Makefile'.
11746 if test -n "$CONFIG_HEADERS"; then
11747 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11748 BEGIN {
11749 _ACEOF
11750
11751 # Transform confdefs.h into an awk script `defines.awk', embedded as
11752 # here-document in config.status, that substitutes the proper values into
11753 # config.h.in to produce config.h.
11754
11755 # Create a delimiter string that does not exist in confdefs.h, to ease
11756 # handling of long lines.
11757 ac_delim='%!_!# '
11758 for ac_last_try in false false :; do
11759 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11760 if test -z "$ac_tt"; then
11761 break
11762 elif $ac_last_try; then
11763 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11764 else
11765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11766 fi
11767 done
11768
11769 # For the awk script, D is an array of macro values keyed by name,
11770 # likewise P contains macro parameters if any. Preserve backslash
11771 # newline sequences.
11772
11773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11774 sed -n '
11775 s/.\{148\}/&'"$ac_delim"'/g
11776 t rset
11777 :rset
11778 s/^[ ]*#[ ]*define[ ][ ]*/ /
11779 t def
11780 d
11781 :def
11782 s/\\$//
11783 t bsnl
11784 s/["\\]/\\&/g
11785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11786 D["\1"]=" \3"/p
11787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11788 d
11789 :bsnl
11790 s/["\\]/\\&/g
11791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11792 D["\1"]=" \3\\\\\\n"\\/p
11793 t cont
11794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11795 t cont
11796 d
11797 :cont
11798 n
11799 s/.\{148\}/&'"$ac_delim"'/g
11800 t clear
11801 :clear
11802 s/\\$//
11803 t bsnlc
11804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11805 d
11806 :bsnlc
11807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11808 b cont
11809 ' <confdefs.h | sed '
11810 s/'"$ac_delim"'/"\\\
11811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11812
11813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11814 for (key in D) D_is_set[key] = 1
11815 FS = ""
11816 }
11817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11818 line = \$ 0
11819 split(line, arg, " ")
11820 if (arg[1] == "#") {
11821 defundef = arg[2]
11822 mac1 = arg[3]
11823 } else {
11824 defundef = substr(arg[1], 2)
11825 mac1 = arg[2]
11826 }
11827 split(mac1, mac2, "(") #)
11828 macro = mac2[1]
11829 prefix = substr(line, 1, index(line, defundef) - 1)
11830 if (D_is_set[macro]) {
11831 # Preserve the white space surrounding the "#".
11832 print prefix "define", macro P[macro] D[macro]
11833 next
11834 } else {
11835 # Replace #undef with comments. This is necessary, for example,
11836 # in the case of _POSIX_SOURCE, which is predefined and required
11837 # on some systems where configure will not decide to define it.
11838 if (defundef == "undef") {
11839 print "/*", prefix defundef, macro, "*/"
11840 next
11841 }
11842 }
11843 }
11844 { print }
11845 _ACAWK
11846 _ACEOF
11847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11848 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11849 fi # test -n "$CONFIG_HEADERS"
11850
11851
11852 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11853 shift
11854 for ac_tag
11855 do
11856 case $ac_tag in
11857 :[FHLC]) ac_mode=$ac_tag; continue;;
11858 esac
11859 case $ac_mode$ac_tag in
11860 :[FHL]*:*);;
11861 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11862 :[FH]-) ac_tag=-:-;;
11863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11864 esac
11865 ac_save_IFS=$IFS
11866 IFS=:
11867 set x $ac_tag
11868 IFS=$ac_save_IFS
11869 shift
11870 ac_file=$1
11871 shift
11872
11873 case $ac_mode in
11874 :L) ac_source=$1;;
11875 :[FH])
11876 ac_file_inputs=
11877 for ac_f
11878 do
11879 case $ac_f in
11880 -) ac_f="$ac_tmp/stdin";;
11881 *) # Look for the file first in the build tree, then in the source tree
11882 # (if the path is not absolute). The absolute path cannot be DOS-style,
11883 # because $ac_f cannot contain `:'.
11884 test -f "$ac_f" ||
11885 case $ac_f in
11886 [\\/$]*) false;;
11887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11888 esac ||
11889 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11890 esac
11891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11892 as_fn_append ac_file_inputs " '$ac_f'"
11893 done
11894
11895 # Let's still pretend it is `configure' which instantiates (i.e., don't
11896 # use $as_me), people would be surprised to read:
11897 # /* config.h. Generated by config.status. */
11898 configure_input='Generated from '`
11899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11900 `' by configure.'
11901 if test x"$ac_file" != x-; then
11902 configure_input="$ac_file. $configure_input"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11904 $as_echo "$as_me: creating $ac_file" >&6;}
11905 fi
11906 # Neutralize special characters interpreted by sed in replacement strings.
11907 case $configure_input in #(
11908 *\&* | *\|* | *\\* )
11909 ac_sed_conf_input=`$as_echo "$configure_input" |
11910 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11911 *) ac_sed_conf_input=$configure_input;;
11912 esac
11913
11914 case $ac_tag in
11915 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11917 esac
11918 ;;
11919 esac
11920
11921 ac_dir=`$as_dirname -- "$ac_file" ||
11922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923 X"$ac_file" : 'X\(//\)[^/]' \| \
11924 X"$ac_file" : 'X\(//\)$' \| \
11925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11926 $as_echo X"$ac_file" |
11927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11928 s//\1/
11929 q
11930 }
11931 /^X\(\/\/\)[^/].*/{
11932 s//\1/
11933 q
11934 }
11935 /^X\(\/\/\)$/{
11936 s//\1/
11937 q
11938 }
11939 /^X\(\/\).*/{
11940 s//\1/
11941 q
11942 }
11943 s/.*/./; q'`
11944 as_dir="$ac_dir"; as_fn_mkdir_p
11945 ac_builddir=.
11946
11947 case "$ac_dir" in
11948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11949 *)
11950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11951 # A ".." for each directory in $ac_dir_suffix.
11952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11953 case $ac_top_builddir_sub in
11954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11956 esac ;;
11957 esac
11958 ac_abs_top_builddir=$ac_pwd
11959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11960 # for backward compatibility:
11961 ac_top_builddir=$ac_top_build_prefix
11962
11963 case $srcdir in
11964 .) # We are building in place.
11965 ac_srcdir=.
11966 ac_top_srcdir=$ac_top_builddir_sub
11967 ac_abs_top_srcdir=$ac_pwd ;;
11968 [\\/]* | ?:[\\/]* ) # Absolute name.
11969 ac_srcdir=$srcdir$ac_dir_suffix;
11970 ac_top_srcdir=$srcdir
11971 ac_abs_top_srcdir=$srcdir ;;
11972 *) # Relative name.
11973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11974 ac_top_srcdir=$ac_top_build_prefix$srcdir
11975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11976 esac
11977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11978
11979
11980 case $ac_mode in
11981 :F)
11982 #
11983 # CONFIG_FILE
11984 #
11985
11986 case $INSTALL in
11987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11988 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11989 esac
11990 ac_MKDIR_P=$MKDIR_P
11991 case $MKDIR_P in
11992 [\\/$]* | ?:[\\/]* ) ;;
11993 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11994 esac
11995 _ACEOF
11996
11997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11998 # If the template does not know about datarootdir, expand it.
11999 # FIXME: This hack should be removed a few years after 2.60.
12000 ac_datarootdir_hack=; ac_datarootdir_seen=
12001 ac_sed_dataroot='
12002 /datarootdir/ {
12003 p
12004 q
12005 }
12006 /@datadir@/p
12007 /@docdir@/p
12008 /@infodir@/p
12009 /@localedir@/p
12010 /@mandir@/p'
12011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12012 *datarootdir*) ac_datarootdir_seen=yes;;
12013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12016 _ACEOF
12017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018 ac_datarootdir_hack='
12019 s&@datadir@&$datadir&g
12020 s&@docdir@&$docdir&g
12021 s&@infodir@&$infodir&g
12022 s&@localedir@&$localedir&g
12023 s&@mandir@&$mandir&g
12024 s&\\\${datarootdir}&$datarootdir&g' ;;
12025 esac
12026 _ACEOF
12027
12028 # Neutralize VPATH when `$srcdir' = `.'.
12029 # Shell code in configure.ac might set extrasub.
12030 # FIXME: do we really want to maintain this feature?
12031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12032 ac_sed_extra="$ac_vpsub
12033 $extrasub
12034 _ACEOF
12035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12036 :t
12037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12038 s|@configure_input@|$ac_sed_conf_input|;t t
12039 s&@top_builddir@&$ac_top_builddir_sub&;t t
12040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12041 s&@srcdir@&$ac_srcdir&;t t
12042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12043 s&@top_srcdir@&$ac_top_srcdir&;t t
12044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12045 s&@builddir@&$ac_builddir&;t t
12046 s&@abs_builddir@&$ac_abs_builddir&;t t
12047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12048 s&@INSTALL@&$ac_INSTALL&;t t
12049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12050 $ac_datarootdir_hack
12051 "
12052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12053 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12054
12055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12056 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12058 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12060 which seems to be undefined. Please make sure it is defined" >&5
12061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12062 which seems to be undefined. Please make sure it is defined" >&2;}
12063
12064 rm -f "$ac_tmp/stdin"
12065 case $ac_file in
12066 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12067 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12068 esac \
12069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12070 ;;
12071 :H)
12072 #
12073 # CONFIG_HEADER
12074 #
12075 if test x"$ac_file" != x-; then
12076 {
12077 $as_echo "/* $configure_input */" \
12078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12079 } >"$ac_tmp/config.h" \
12080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12081 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12083 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12084 else
12085 rm -f "$ac_file"
12086 mv "$ac_tmp/config.h" "$ac_file" \
12087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12088 fi
12089 else
12090 $as_echo "/* $configure_input */" \
12091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12092 || as_fn_error $? "could not create -" "$LINENO" 5
12093 fi
12094 # Compute "$ac_file"'s index in $config_headers.
12095 _am_arg="$ac_file"
12096 _am_stamp_count=1
12097 for _am_header in $config_headers :; do
12098 case $_am_header in
12099 $_am_arg | $_am_arg:* )
12100 break ;;
12101 * )
12102 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12103 esac
12104 done
12105 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12106 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12107 X"$_am_arg" : 'X\(//\)[^/]' \| \
12108 X"$_am_arg" : 'X\(//\)$' \| \
12109 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12110 $as_echo X"$_am_arg" |
12111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12112 s//\1/
12113 q
12114 }
12115 /^X\(\/\/\)[^/].*/{
12116 s//\1/
12117 q
12118 }
12119 /^X\(\/\/\)$/{
12120 s//\1/
12121 q
12122 }
12123 /^X\(\/\).*/{
12124 s//\1/
12125 q
12126 }
12127 s/.*/./; q'`/stamp-h$_am_stamp_count
12128 ;;
12129
12130 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12131 $as_echo "$as_me: executing $ac_file commands" >&6;}
12132 ;;
12133 esac
12134
12135
12136 case $ac_file$ac_mode in
12137 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12138 # Older Autoconf quotes --file arguments for eval, but not when files
12139 # are listed without --file. Let's play safe and only enable the eval
12140 # if we detect the quoting.
12141 case $CONFIG_FILES in
12142 *\'*) eval set x "$CONFIG_FILES" ;;
12143 *) set x $CONFIG_FILES ;;
12144 esac
12145 shift
12146 for mf
12147 do
12148 # Strip MF so we end up with the name of the file.
12149 mf=`echo "$mf" | sed -e 's/:.*$//'`
12150 # Check whether this is an Automake generated Makefile or not.
12151 # We used to match only the files named 'Makefile.in', but
12152 # some people rename them; so instead we look at the file content.
12153 # Grep'ing the first line is not enough: some people post-process
12154 # each Makefile.in and add a new line on top of each file to say so.
12155 # Grep'ing the whole file is not good either: AIX grep has a line
12156 # limit of 2048, but all sed's we know have understand at least 4000.
12157 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12158 dirpart=`$as_dirname -- "$mf" ||
12159 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12160 X"$mf" : 'X\(//\)[^/]' \| \
12161 X"$mf" : 'X\(//\)$' \| \
12162 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12163 $as_echo X"$mf" |
12164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12165 s//\1/
12166 q
12167 }
12168 /^X\(\/\/\)[^/].*/{
12169 s//\1/
12170 q
12171 }
12172 /^X\(\/\/\)$/{
12173 s//\1/
12174 q
12175 }
12176 /^X\(\/\).*/{
12177 s//\1/
12178 q
12179 }
12180 s/.*/./; q'`
12181 else
12182 continue
12183 fi
12184 # Extract the definition of DEPDIR, am__include, and am__quote
12185 # from the Makefile without running 'make'.
12186 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12187 test -z "$DEPDIR" && continue
12188 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12189 test -z "$am__include" && continue
12190 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12191 # Find all dependency output files, they are included files with
12192 # $(DEPDIR) in their names. We invoke sed twice because it is the
12193 # simplest approach to changing $(DEPDIR) to its actual value in the
12194 # expansion.
12195 for file in `sed -n "
12196 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12197 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12198 # Make sure the directory exists.
12199 test -f "$dirpart/$file" && continue
12200 fdir=`$as_dirname -- "$file" ||
12201 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12202 X"$file" : 'X\(//\)[^/]' \| \
12203 X"$file" : 'X\(//\)$' \| \
12204 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12205 $as_echo X"$file" |
12206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12207 s//\1/
12208 q
12209 }
12210 /^X\(\/\/\)[^/].*/{
12211 s//\1/
12212 q
12213 }
12214 /^X\(\/\/\)$/{
12215 s//\1/
12216 q
12217 }
12218 /^X\(\/\).*/{
12219 s//\1/
12220 q
12221 }
12222 s/.*/./; q'`
12223 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12224 # echo "creating $dirpart/$file"
12225 echo '# dummy' > "$dirpart/$file"
12226 done
12227 done
12228 }
12229 ;;
12230
12231 esac
12232 done # for ac_tag
12233
12234
12235 as_fn_exit 0
12236 _ACEOF
12237 ac_clean_files=$ac_clean_files_save
12238
12239 test $ac_write_fail = 0 ||
12240 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12241
12242
12243 # configure is writing to config.log, and then calls config.status.
12244 # config.status does its own redirection, appending to config.log.
12245 # Unfortunately, on DOS this fails, as config.log is still kept open
12246 # by configure, so config.status won't be able to write to it; its
12247 # output is simply discarded. So we exec the FD to /dev/null,
12248 # effectively closing config.log, so it can be properly (re)opened and
12249 # appended to by config.status. When coming back to configure, we
12250 # need to make the FD available again.
12251 if test "$no_create" != yes; then
12252 ac_cs_success=:
12253 ac_config_status_args=
12254 test "$silent" = yes &&
12255 ac_config_status_args="$ac_config_status_args --quiet"
12256 exec 5>/dev/null
12257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12258 exec 5>>config.log
12259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12260 # would make configure fail if this is the last instruction.
12261 $ac_cs_success || as_fn_exit 1
12262 fi
12263 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12265 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12266 fi
12267
12268