configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for smproxy 1.0.6.
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='smproxy'
583 PACKAGE_TARNAME='smproxy'
584 PACKAGE_VERSION='1.0.6'
585 PACKAGE_STRING='smproxy 1.0.6'
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 SMPROXY_LIBS
631 SMPROXY_CFLAGS
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 SED
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 INSTALL_CMD
656 PKG_CONFIG
657 CHANGELOG_CMD
658 STRICT_CFLAGS
659 CWARNFLAGS
660 BASE_CFLAGS
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_silent_rules
750 enable_dependency_tracking
751 enable_selective_werror
752 enable_strict_compilation
753 '
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 PKG_CONFIG
764 SMPROXY_CFLAGS
765 SMPROXY_LIBS'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *=) ac_optarg= ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 ;;
1172
1173 esac
1174 done
1175
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1179 fi
1180
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194 do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224 fi
1225
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229 test "$silent" = yes && exec 6>/dev/null
1230
1231
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271 else
1272 ac_srcdir_defaulted=no
1273 fi
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 fi
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures smproxy 1.0.6 to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/smproxy]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1360
1361 cat <<\_ACEOF
1362
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of smproxy 1.0.6:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-silent-rules less verbose build output (undo: "make V=1")
1385 --disable-silent-rules verbose build output (undo: "make V=0")
1386 --enable-dependency-tracking
1387 do not reject slow dependency extractors
1388 --disable-dependency-tracking
1389 speeds up one-time build
1390 --disable-selective-werror
1391 Turn off selective compiler errors. (default:
1392 enabled)
1393 --enable-strict-compilation
1394 Enable all warnings from compiler and make them
1395 errors (default: disabled)
1396
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1405 CPP C preprocessor
1406 PKG_CONFIG path to pkg-config utility
1407 SMPROXY_CFLAGS
1408 C compiler flags for SMPROXY, overriding pkg-config
1409 SMPROXY_LIBS
1410 linker flags for SMPROXY, overriding pkg-config
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 smproxy configure 1.0.6
1479 generated by GNU Autoconf 2.69
1480
1481 Copyright (C) 2012 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1512 fi
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1
1524 fi
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_try_cpp LINENO
1531 # ----------------------
1532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_cpp ()
1534 {
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 if { { ac_try="$ac_cpp conftest.$ac_ext"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } > conftest.i && {
1552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 }; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_cpp
1566
1567 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1568 # -------------------------------------------------------
1569 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1570 # the include files in INCLUDES and setting the cache variable VAR
1571 # accordingly.
1572 ac_fn_c_check_header_mongrel ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if eval \${$3+:} false; then :
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 $as_echo_n "checking for $2... " >&6; }
1578 if eval \${$3+:} false; then :
1579 $as_echo_n "(cached) " >&6
1580 fi
1581 eval ac_res=\$$3
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583 $as_echo "$ac_res" >&6; }
1584 else
1585 # Is the header compilable?
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1587 $as_echo_n "checking $2 usability... " >&6; }
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 $4
1591 #include <$2>
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"; then :
1594 ac_header_compiler=yes
1595 else
1596 ac_header_compiler=no
1597 fi
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1600 $as_echo "$ac_header_compiler" >&6; }
1601
1602 # Is the header present?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1604 $as_echo_n "checking $2 presence... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_cpp "$LINENO"; then :
1610 ac_header_preproc=yes
1611 else
1612 ac_header_preproc=no
1613 fi
1614 rm -f conftest.err conftest.i conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1616 $as_echo "$ac_header_preproc" >&6; }
1617
1618 # So? What about this header?
1619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1620 yes:no: )
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1622 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 ;;
1626 no:yes:* )
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1628 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1630 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1632 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1634 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 ( $as_echo "## ---------------------------------------------------------------------- ##
1638 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1639 ## ---------------------------------------------------------------------- ##"
1640 ) | sed "s/^/$as_me: WARNING: /" >&2
1641 ;;
1642 esac
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 eval "$3=\$ac_header_compiler"
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_c_check_header_mongrel
1657
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1662 ac_fn_c_try_run ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=$ac_status
1693 fi
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_run
1699
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711 else
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718 eval "$3=yes"
1719 else
1720 eval "$3=no"
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 fi
1724 eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729 } # ac_fn_c_check_header_compile
1730
1731 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1732 # ---------------------------------------------
1733 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1734 # accordingly.
1735 ac_fn_c_check_decl ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 as_decl_name=`echo $2|sed 's/ *(.*//'`
1739 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1741 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 int
1749 main ()
1750 {
1751 #ifndef $as_decl_name
1752 #ifdef __cplusplus
1753 (void) $as_decl_use;
1754 #else
1755 (void) $as_decl_name;
1756 #endif
1757 #endif
1758
1759 ;
1760 return 0;
1761 }
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 eval "$3=yes"
1765 else
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_decl
1776
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 test -x conftest$ac_exeext
1805 }; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812 fi
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1820
1821 } # ac_fn_c_try_link
1822
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838 #define $2 innocuous_$2
1839
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1844
1845 #ifdef __STDC__
1846 # include <limits.h>
1847 #else
1848 # include <assert.h>
1849 #endif
1850
1851 #undef $2
1852
1853 /* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856 #ifdef __cplusplus
1857 extern "C"
1858 #endif
1859 char $2 ();
1860 /* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863 #if defined __stub_$2 || defined __stub___$2
1864 choke me
1865 #endif
1866
1867 int
1868 main ()
1869 {
1870 return $2 ();
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_func
1889 cat >config.log <<_ACEOF
1890 This file contains any messages produced by compilers while
1891 running configure, to aid debugging if configure makes a mistake.
1892
1893 It was created by smproxy $as_me 1.0.6, which was
1894 generated by GNU Autoconf 2.69. Invocation command line was
1895
1896 $ $0 $@
1897
1898 _ACEOF
1899 exec 5>>config.log
1900 {
1901 cat <<_ASUNAME
1902 ## --------- ##
1903 ## Platform. ##
1904 ## --------- ##
1905
1906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911
1912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914
1915 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1916 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1919 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1920 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1921 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1922
1923 _ASUNAME
1924
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 $as_echo "PATH: $as_dir"
1931 done
1932 IFS=$as_save_IFS
1933
1934 } >&5
1935
1936 cat >&5 <<_ACEOF
1937
1938
1939 ## ----------- ##
1940 ## Core tests. ##
1941 ## ----------- ##
1942
1943 _ACEOF
1944
1945
1946 # Keep a trace of the command line.
1947 # Strip out --no-create and --no-recursion so they do not pile up.
1948 # Strip out --silent because we don't want to record it for future runs.
1949 # Also quote any args containing shell meta-characters.
1950 # Make two passes to allow for proper duplicate-argument suppression.
1951 ac_configure_args=
1952 ac_configure_args0=
1953 ac_configure_args1=
1954 ac_must_keep_next=false
1955 for ac_pass in 1 2
1956 do
1957 for ac_arg
1958 do
1959 case $ac_arg in
1960 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962 | -silent | --silent | --silen | --sile | --sil)
1963 continue ;;
1964 *\'*)
1965 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 esac
1967 case $ac_pass in
1968 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1969 2)
1970 as_fn_append ac_configure_args1 " '$ac_arg'"
1971 if test $ac_must_keep_next = true; then
1972 ac_must_keep_next=false # Got value, back to normal.
1973 else
1974 case $ac_arg in
1975 *=* | --config-cache | -C | -disable-* | --disable-* \
1976 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978 | -with-* | --with-* | -without-* | --without-* | --x)
1979 case "$ac_configure_args0 " in
1980 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981 esac
1982 ;;
1983 -* ) ac_must_keep_next=true ;;
1984 esac
1985 fi
1986 as_fn_append ac_configure_args " '$ac_arg'"
1987 ;;
1988 esac
1989 done
1990 done
1991 { ac_configure_args0=; unset ac_configure_args0;}
1992 { ac_configure_args1=; unset ac_configure_args1;}
1993
1994 # When interrupted or exit'd, cleanup temporary files, and complete
1995 # config.log. We remove comments because anyway the quotes in there
1996 # would cause problems or look ugly.
1997 # WARNING: Use '\'' to represent an apostrophe within the trap.
1998 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999 trap 'exit_status=$?
2000 # Save into config.log some information that might help in debugging.
2001 {
2002 echo
2003
2004 $as_echo "## ---------------- ##
2005 ## Cache variables. ##
2006 ## ---------------- ##"
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
2009 (
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
2025 (set) 2>&1 |
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2028 sed -n \
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
2032 *)
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034 ;;
2035 esac |
2036 sort
2037 )
2038 echo
2039
2040 $as_echo "## ----------------- ##
2041 ## Output variables. ##
2042 ## ----------------- ##"
2043 echo
2044 for ac_var in $ac_subst_vars
2045 do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in
2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 esac
2050 $as_echo "$ac_var='\''$ac_val'\''"
2051 done | sort
2052 echo
2053
2054 if test -n "$ac_subst_files"; then
2055 $as_echo "## ------------------- ##
2056 ## File substitutions. ##
2057 ## ------------------- ##"
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 $as_echo "## ----------- ##
2072 ## confdefs.h. ##
2073 ## ----------- ##"
2074 echo
2075 cat confdefs.h
2076 echo
2077 fi
2078 test "$ac_signal" != 0 &&
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
2081 } >&5
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084 exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 $as_echo "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2120 _ACEOF
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 ac_site_file1=NONE
2126 ac_site_file2=NONE
2127 if test -n "$CONFIG_SITE"; then
2128 # We do not want a PATH search for config.site.
2129 case $CONFIG_SITE in #((
2130 -*) ac_site_file1=./$CONFIG_SITE;;
2131 */*) ac_site_file1=$CONFIG_SITE;;
2132 *) ac_site_file1=./$CONFIG_SITE;;
2133 esac
2134 elif test "x$prefix" != xNONE; then
2135 ac_site_file1=$prefix/share/config.site
2136 ac_site_file2=$prefix/etc/config.site
2137 else
2138 ac_site_file1=$ac_default_prefix/share/config.site
2139 ac_site_file2=$ac_default_prefix/etc/config.site
2140 fi
2141 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2142 do
2143 test "x$ac_site_file" = xNONE && continue
2144 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147 sed 's/^/| /' "$ac_site_file" >&5
2148 . "$ac_site_file" \
2149 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 as_fn_error $? "failed to load site script $ac_site_file
2152 See \`config.log' for more details" "$LINENO" 5; }
2153 fi
2154 done
2155
2156 if test -r "$cache_file"; then
2157 # Some versions of bash will fail to source /dev/null (special files
2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161 $as_echo "$as_me: loading cache $cache_file" >&6;}
2162 case $cache_file in
2163 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164 *) . "./$cache_file";;
2165 esac
2166 fi
2167 else
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169 $as_echo "$as_me: creating cache $cache_file" >&6;}
2170 >$cache_file
2171 fi
2172
2173 # Check that the precious variables saved in the cache have kept the same
2174 # value.
2175 ac_cache_corrupted=false
2176 for ac_var in $ac_precious_vars; do
2177 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2178 eval ac_new_set=\$ac_env_${ac_var}_set
2179 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2180 eval ac_new_val=\$ac_env_${ac_var}_value
2181 case $ac_old_set,$ac_new_set in
2182 set,)
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2186 ,set)
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2189 ac_cache_corrupted=: ;;
2190 ,);;
2191 *)
2192 if test "x$ac_old_val" != "x$ac_new_val"; then
2193 # differences in whitespace do not lead to failure.
2194 ac_old_val_w=`echo x $ac_old_val`
2195 ac_new_val_w=`echo x $ac_new_val`
2196 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2199 ac_cache_corrupted=:
2200 else
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2203 eval $ac_var=\$ac_old_val
2204 fi
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2209 fi;;
2210 esac
2211 # Pass precious variables to config.status.
2212 if test "$ac_new_set" = set; then
2213 case $ac_new_val in
2214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 *) ac_arg=$ac_var=$ac_new_val ;;
2216 esac
2217 case " $ac_configure_args " in
2218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2219 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220 esac
2221 fi
2222 done
2223 if $ac_cache_corrupted; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2228 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2229 fi
2230 ## -------------------- ##
2231 ## Main body of script. ##
2232 ## -------------------- ##
2233
2234 ac_ext=c
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239
2240
2241
2242 ac_config_headers="$ac_config_headers config.h"
2243
2244
2245 # Initialize Automake
2246 am__api_version='1.15'
2247
2248 ac_aux_dir=
2249 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250 if test -f "$ac_dir/install-sh"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/install-sh -c"
2253 break
2254 elif test -f "$ac_dir/install.sh"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/install.sh -c"
2257 break
2258 elif test -f "$ac_dir/shtool"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/shtool install -c"
2261 break
2262 fi
2263 done
2264 if test -z "$ac_aux_dir"; then
2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2266 fi
2267
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2275
2276
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2283 # AIX /bin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if ${ac_cv_path_install+:} false; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in #((
2304 ./ | .// | /[cC]/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2307 /usr/ucb/* ) ;;
2308 *)
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2311 # by default.
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2318 :
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2322 :
2323 else
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2327 mkdir conftest.dir
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2332 then
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334 break 3
2335 fi
2336 fi
2337 fi
2338 done
2339 done
2340 ;;
2341 esac
2342
2343 done
2344 IFS=$as_save_IFS
2345
2346 rm -rf conftest.one conftest.two conftest.dir
2347
2348 fi
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2351 else
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2357 fi
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2361
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Reject unsafe characters in $srcdir or the absolute working directory
2373 # name. Accept space and tab only in the latter.
2374 am_lf='
2375 '
2376 case `pwd` in
2377 *[\\\"\#\$\&\'\`$am_lf]*)
2378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2379 esac
2380 case $srcdir in
2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2383 esac
2384
2385 # Do 'set' in a subshell so we don't clobber the current shell's
2386 # arguments. Must try -L first in case configure is actually a
2387 # symlink; some systems play weird games with the mod time of symlinks
2388 # (eg FreeBSD returns the mod time of the symlink's containing
2389 # directory).
2390 if (
2391 am_has_slept=no
2392 for am_try in 1 2; do
2393 echo "timestamp, slept: $am_has_slept" > conftest.file
2394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395 if test "$*" = "X"; then
2396 # -L didn't work.
2397 set X `ls -t "$srcdir/configure" conftest.file`
2398 fi
2399 if test "$*" != "X $srcdir/configure conftest.file" \
2400 && test "$*" != "X conftest.file $srcdir/configure"; then
2401
2402 # If neither matched, then we have a broken ls. This can happen
2403 # if, for instance, CONFIG_SHELL is bash and it inherits a
2404 # broken ls alias from the environment. This has actually
2405 # happened. Such a system could not be considered "sane".
2406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2407 alias in your environment" "$LINENO" 5
2408 fi
2409 if test "$2" = conftest.file || test $am_try -eq 2; then
2410 break
2411 fi
2412 # Just in case.
2413 sleep 1
2414 am_has_slept=yes
2415 done
2416 test "$2" = conftest.file
2417 )
2418 then
2419 # Ok.
2420 :
2421 else
2422 as_fn_error $? "newly created file is older than distributed files!
2423 Check your system clock" "$LINENO" 5
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426 $as_echo "yes" >&6; }
2427 # If we didn't sleep, we still need to ensure time stamps of config.status and
2428 # generated files are strictly newer.
2429 am_sleep_pid=
2430 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2431 ( sleep 1 ) &
2432 am_sleep_pid=$!
2433 fi
2434
2435 rm -f conftest.file
2436
2437 test "$program_prefix" != NONE &&
2438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446
2447 # Expand $ac_aux_dir to an absolute path.
2448 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2449
2450 if test x"${MISSING+set}" != xset; then
2451 case $am_aux_dir in
2452 *\ * | *\ *)
2453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2454 *)
2455 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456 esac
2457 fi
2458 # Use eval to expand $SHELL
2459 if eval "$MISSING --is-lightweight"; then
2460 am_missing_run="$MISSING "
2461 else
2462 am_missing_run=
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2464 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2465 fi
2466
2467 if test x"${install_sh+set}" != xset; then
2468 case $am_aux_dir in
2469 *\ * | *\ *)
2470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2471 *)
2472 install_sh="\${SHELL} $am_aux_dir/install-sh"
2473 esac
2474 fi
2475
2476 # Installed binaries are usually stripped using 'strip' when the user
2477 # run "make install-strip". However 'strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the 'STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_STRIP+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512 $as_echo "$STRIP" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_STRIP"; then
2521 ac_ct_STRIP=$STRIP
2522 # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$ac_ct_STRIP"; then
2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_STRIP="strip"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552 $as_echo "$ac_ct_STRIP" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558 if test "x$ac_ct_STRIP" = x; then
2559 STRIP=":"
2560 else
2561 case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567 STRIP=$ac_ct_STRIP
2568 fi
2569 else
2570 STRIP="$ac_cv_prog_STRIP"
2571 fi
2572
2573 fi
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578 if test -z "$MKDIR_P"; then
2579 if ${ac_cv_path_mkdir+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in mkdir gmkdir; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591 'mkdir (GNU coreutils) '* | \
2592 'mkdir (coreutils) '* | \
2593 'mkdir (fileutils) '4.1*)
2594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2595 break 3;;
2596 esac
2597 done
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603
2604 test -d ./--version && rmdir ./--version
2605 if test "${ac_cv_path_mkdir+set}" = set; then
2606 MKDIR_P="$ac_cv_path_mkdir -p"
2607 else
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for MKDIR_P within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 MKDIR_P="$ac_install_sh -d"
2613 fi
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616 $as_echo "$MKDIR_P" >&6; }
2617
2618 for ac_prog in gawk mawk nawk awk
2619 do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_AWK+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$AWK"; then
2628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_AWK="$ac_prog"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 AWK=$ac_cv_prog_AWK
2648 if test -n "$AWK"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650 $as_echo "$AWK" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657 test -n "$AWK" && break
2658 done
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2662 set x ${MAKE-make}
2663 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 cat >conftest.make <<\_ACEOF
2668 SHELL = /bin/sh
2669 all:
2670 @echo '@@@%%%=$(MAKE)=@@@%%%'
2671 _ACEOF
2672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2674 *@@@%%%=?*=@@@%%%*)
2675 eval ac_cv_prog_make_${ac_make}_set=yes;;
2676 *)
2677 eval ac_cv_prog_make_${ac_make}_set=no;;
2678 esac
2679 rm -f conftest.make
2680 fi
2681 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2684 SET_MAKE=
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 SET_MAKE="MAKE=${MAKE-make}"
2689 fi
2690
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2694 am__leading_dot=.
2695 else
2696 am__leading_dot=_
2697 fi
2698 rmdir .tst 2>/dev/null
2699
2700 # Check whether --enable-silent-rules was given.
2701 if test "${enable_silent_rules+set}" = set; then :
2702 enableval=$enable_silent_rules;
2703 fi
2704
2705 case $enable_silent_rules in # (((
2706 yes) AM_DEFAULT_VERBOSITY=0;;
2707 no) AM_DEFAULT_VERBOSITY=1;;
2708 *) AM_DEFAULT_VERBOSITY=1;;
2709 esac
2710 am_make=${MAKE-make}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2712 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2713 if ${am_cv_make_support_nested_variables+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if $as_echo 'TRUE=$(BAR$(V))
2717 BAR0=false
2718 BAR1=true
2719 V=1
2720 am__doit:
2721 @$(TRUE)
2722 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2723 am_cv_make_support_nested_variables=yes
2724 else
2725 am_cv_make_support_nested_variables=no
2726 fi
2727 fi
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2729 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2730 if test $am_cv_make_support_nested_variables = yes; then
2731 AM_V='$(V)'
2732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2733 else
2734 AM_V=$AM_DEFAULT_VERBOSITY
2735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2736 fi
2737 AM_BACKSLASH='\'
2738
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741 # is not polluted with repeated "-I."
2742 am__isrc=' -I$(srcdir)'
2743 # test to see if srcdir already configured
2744 if test -f $srcdir/config.status; then
2745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2746 fi
2747 fi
2748
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751 if (cygpath --version) >/dev/null 2>/dev/null; then
2752 CYGPATH_W='cygpath -w'
2753 else
2754 CYGPATH_W=echo
2755 fi
2756 fi
2757
2758
2759 # Define the identity of the package.
2760 PACKAGE='smproxy'
2761 VERSION='1.0.6'
2762
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE "$PACKAGE"
2766 _ACEOF
2767
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define VERSION "$VERSION"
2771 _ACEOF
2772
2773 # Some tools Automake needs.
2774
2775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2776
2777
2778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2779
2780
2781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2782
2783
2784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2785
2786
2787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2788
2789 # For better backward compatibility. To be removed once Automake 1.9.x
2790 # dies out for good. For more background, see:
2791 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793 mkdir_p='$(MKDIR_P)'
2794
2795 # We need awk for the "check" target (and possibly the TAP driver). The
2796 # system "awk" is bad on some platforms.
2797 # Always define AMTAR for backward compatibility. Yes, it's still used
2798 # in the wild :-( We should find a proper way to deprecate it ...
2799 AMTAR='$${TAR-tar}'
2800
2801
2802 # We'll loop over all known methods to create a tar archive until one works.
2803 _am_tools='gnutar pax cpio none'
2804
2805 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2806
2807
2808
2809
2810
2811
2812 # POSIX will say in a future version that running "rm -f" with no argument
2813 # is OK; and we want to be able to make that assumption in our Makefile
2814 # recipes. So use an aggressive probe to check that the usage we want is
2815 # actually supported "in the wild" to an acceptable degree.
2816 # See automake bug#10828.
2817 # To make any issue more visible, cause the running configure to be aborted
2818 # by default if the 'rm' program in use doesn't match our expectations; the
2819 # user can still override this though.
2820 if rm -f && rm -fr && rm -rf; then : OK; else
2821 cat >&2 <<'END'
2822 Oops!
2823
2824 Your 'rm' program seems unable to run without file operands specified
2825 on the command line, even when the '-f' option is present. This is contrary
2826 to the behaviour of most rm programs out there, and not conforming with
2827 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2828
2829 Please tell bug-automake@gnu.org about your system, including the value
2830 of your $PATH and any error possibly output before this message. This
2831 can help us improve future automake versions.
2832
2833 END
2834 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2835 echo 'Configuration will proceed anyway, since you have set the' >&2
2836 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2837 echo >&2
2838 else
2839 cat >&2 <<'END'
2840 Aborting the configuration process, to ensure you take notice of the issue.
2841
2842 You can download and install GNU coreutils to get an 'rm' implementation
2843 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2844
2845 If you want to complete the configuration process using your problematic
2846 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2847 to "yes", and re-run configure.
2848
2849 END
2850 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2851 fi
2852 fi
2853
2854
2855 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2856 # Must be called before any macros that run the compiler (like
2857 # AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2858 DEPDIR="${am__leading_dot}deps"
2859
2860 ac_config_commands="$ac_config_commands depfiles"
2861
2862
2863 am_make=${MAKE-make}
2864 cat > confinc << 'END'
2865 am__doit:
2866 @echo this is the am__doit target
2867 .PHONY: am__doit
2868 END
2869 # If we don't find an include directive, just comment out the code.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2872 am__include="#"
2873 am__quote=
2874 _am_result=none
2875 # First try GNU make style include.
2876 echo "include confinc" > confmf
2877 # Ignore all kinds of additional output from 'make'.
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target*)
2880 am__include=include
2881 am__quote=
2882 _am_result=GNU
2883 ;;
2884 esac
2885 # Now try BSD make style include.
2886 if test "$am__include" = "#"; then
2887 echo '.include "confinc"' > confmf
2888 case `$am_make -s -f confmf 2> /dev/null` in #(
2889 *the\ am__doit\ target*)
2890 am__include=.include
2891 am__quote="\""
2892 _am_result=BSD
2893 ;;
2894 esac
2895 fi
2896
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899 $as_echo "$_am_result" >&6; }
2900 rm -f confinc confmf
2901
2902 # Check whether --enable-dependency-tracking was given.
2903 if test "${enable_dependency_tracking+set}" = set; then :
2904 enableval=$enable_dependency_tracking;
2905 fi
2906
2907 if test "x$enable_dependency_tracking" != xno; then
2908 am_depcomp="$ac_aux_dir/depcomp"
2909 AMDEPBACKSLASH='\'
2910 am__nodep='_no'
2911 fi
2912 if test "x$enable_dependency_tracking" != xno; then
2913 AMDEP_TRUE=
2914 AMDEP_FALSE='#'
2915 else
2916 AMDEP_TRUE='#'
2917 AMDEP_FALSE=
2918 fi
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963
2964 fi
2965 if test -z "$ac_cv_prog_CC"; then
2966 ac_ct_CC=$CC
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 else
3015 CC="$ac_cv_prog_CC"
3016 fi
3017
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 fi
3059 if test -z "$CC"; then
3060 # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 ac_prog_rejected=no
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079 ac_prog_rejected=yes
3080 continue
3081 fi
3082 ac_cv_prog_CC="cc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 if test $ac_prog_rejected = yes; then
3091 # We found a bogon in the path, so make sure we never use it.
3092 set dummy $ac_cv_prog_CC
3093 shift
3094 if test $# != 0; then
3095 # We chose a different compiler from the bogus one.
3096 # However, it has the same basename, so the bogon will be chosen
3097 # first if we set CC to just the basename; use the full file name.
3098 shift
3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 fi
3101 fi
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 fi
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in cl.exe
3118 do
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 test -n "$CC" && break
3157 done
3158 fi
3159 if test -z "$CC"; then
3160 ac_ct_CC=$CC
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$ac_ct_CC" && break
3201 done
3202
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details" "$LINENO" 5; }
3223
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226 set X $ac_compile
3227 ac_compiler=$2
3228 for ac_option in --version -v -V -qversion; do
3229 { { ac_try="$ac_compiler $ac_option >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237 ac_status=$?
3238 if test -s conftest.err; then
3239 sed '10a\
3240 ... rest of stderr output deleted ...
3241 10q' conftest.err >conftest.er1
3242 cat conftest.er1 >&5
3243 fi
3244 rm -f conftest.er1 conftest.err
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }
3247 done
3248
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3264 # of exeext.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3274 do
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 esac
3279 done
3280 rm -f $ac_rmfiles
3281
3282 if { { ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link_default") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3297 # Autoconf.
3298 for ac_file in $ac_files ''
3299 do
3300 test -f "$ac_file" || continue
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303 ;;
3304 [ab].out )
3305 # We found the default executable, but exeext='' is most
3306 # certainly right.
3307 break;;
3308 *.* )
3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310 then :; else
3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 fi
3313 # We set ac_cv_exeext here because the later test for it is not
3314 # safe: cross compilers may not add the suffix if given an `-o'
3315 # argument, so we may need to know it at that point already.
3316 # Even if this section looks crufty: it has the advantage of
3317 # actually working.
3318 break;;
3319 * )
3320 break;;
3321 esac
3322 done
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324
3325 else
3326 ac_file=''
3327 fi
3328 if test -z "$ac_file"; then :
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error 77 "C compiler cannot create executables
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343 $as_echo_n "checking for C compiler default output file name... " >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345 $as_echo "$ac_file" >&6; }
3346 ac_exeext=$ac_cv_exeext
3347
3348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351 $as_echo_n "checking for suffix of executables... " >&6; }
3352 if { { ac_try="$ac_link"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 break;;
3373 * ) break;;
3374 esac
3375 done
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details" "$LINENO" 5; }
3381 fi
3382 rm -f conftest conftest$ac_cv_exeext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391 #include <stdio.h>
3392 int
3393 main ()
3394 {
3395 FILE *f = fopen ("conftest.out", "w");
3396 return ferror (f) || fclose (f) != 0;
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 ac_clean_files="$ac_clean_files conftest.out"
3403 # Check that the compiler produces executables we can run. If not, either
3404 # the compiler is broken, or we cross compile.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406 $as_echo_n "checking whether we are cross compiling... " >&6; }
3407 if test "$cross_compiling" != yes; then
3408 { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 if { ac_try='./conftest$ac_cv_exeext'
3420 { { case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_try") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; }; then
3430 cross_compiling=no
3431 else
3432 if test "$cross_compiling" = maybe; then
3433 cross_compiling=yes
3434 else
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot run C compiled programs.
3438 If you meant to cross compile, use \`--host'.
3439 See \`config.log' for more details" "$LINENO" 5; }
3440 fi
3441 fi
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444 $as_echo "$cross_compiling" >&6; }
3445
3446 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449 $as_echo_n "checking for suffix of object files... " >&6; }
3450 if ${ac_cv_objext+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.o conftest.obj
3465 if { { ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compile") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481 break;;
3482 esac
3483 done
3484 else
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 fi
3493 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496 $as_echo "$ac_cv_objext" >&6; }
3497 OBJEXT=$ac_cv_objext
3498 ac_objext=$OBJEXT
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501 if ${ac_cv_c_compiler_gnu+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_compiler_gnu=yes
3520 else
3521 ac_compiler_gnu=no
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529 if test $ac_compiler_gnu = yes; then
3530 GCC=yes
3531 else
3532 GCC=
3533 fi
3534 ac_test_CFLAGS=${CFLAGS+set}
3535 ac_save_CFLAGS=$CFLAGS
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538 if ${ac_cv_prog_cc_g+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_save_c_werror_flag=$ac_c_werror_flag
3542 ac_c_werror_flag=yes
3543 ac_cv_prog_cc_g=no
3544 CFLAGS="-g"
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_g=yes
3558 else
3559 CFLAGS=""
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572
3573 else
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3575 CFLAGS="-g"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_g=yes
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598 $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O2"
3604 else
3605 CFLAGS="-g"
3606 fi
3607 else
3608 if test "$GCC" = yes; then
3609 CFLAGS="-O2"
3610 else
3611 CFLAGS=
3612 fi
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616 if ${ac_cv_prog_cc_c89+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_cv_prog_cc_c89=no
3620 ac_save_CC=$CC
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <stdarg.h>
3624 #include <stdio.h>
3625 struct stat;
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3632 {
3633 return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689 x)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695 *)
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3716 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3717 if ${am_cv_prog_cc_c_o+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 # Make sure it works both with $CC and with simple cc.
3732 # Following AC_PROG_CC_C_O, we do the test twice because some
3733 # compilers refuse to overwrite an existing .o file with -o,
3734 # though they will create one.
3735 am_cv_prog_cc_c_o=yes
3736 for am_i in 1 2; do
3737 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3738 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } \
3742 && test -f conftest2.$ac_objext; then
3743 : OK
3744 else
3745 am_cv_prog_cc_c_o=no
3746 break
3747 fi
3748 done
3749 rm -f core conftest*
3750 unset am_i
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3753 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3754 if test "$am_cv_prog_cc_c_o" != yes; then
3755 # Losing compiler, so override with the script.
3756 # FIXME: It is wrong to rewrite CC.
3757 # But if we don't then we get into trouble of one sort or another.
3758 # A longer-term fix would be to have automake use am__CC in this case,
3759 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3760 CC="$am_aux_dir/compile $CC"
3761 fi
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
3769 depcc="$CC" am_compiler_list=
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named 'D' -- because '-MD' means "put the output
3781 # in D".
3782 rm -rf conftest.dir
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817 # Solaris 10 /bin/sh.
3818 echo '/* dummy */' > sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle '-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs.
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # After this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested.
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843 # This compiler won't grok '-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894 fi
3895
3896
3897
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3904 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3905 # On Suns, sometimes $CPP names a directory.
3906 if test -n "$CPP" && test -d "$CPP"; then
3907 CPP=
3908 fi
3909 if test -z "$CPP"; then
3910 if ${ac_cv_prog_CPP+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 # Double quotes because CPP needs to be expanded
3914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3915 do
3916 ac_preproc_ok=false
3917 for ac_c_preproc_warn_flag in '' yes
3918 do
3919 # Use a header file that comes with gcc, so configuring glibc
3920 # with a fresh cross-compiler works.
3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3922 # <limits.h> exists even on freestanding compilers.
3923 # On the NeXT, cc -E runs the code through the compiler's parser,
3924 # not just through cpp. "Syntax error" is here to catch this case.
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #ifdef __STDC__
3928 # include <limits.h>
3929 #else
3930 # include <assert.h>
3931 #endif
3932 Syntax error
3933 _ACEOF
3934 if ac_fn_c_try_cpp "$LINENO"; then :
3935
3936 else
3937 # Broken: fails on valid input.
3938 continue
3939 fi
3940 rm -f conftest.err conftest.i conftest.$ac_ext
3941
3942 # OK, works on sane cases. Now check whether nonexistent headers
3943 # can be detected and how.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <ac_nonexistent.h>
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3949 # Broken: success on invalid input.
3950 continue
3951 else
3952 # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3955 fi
3956 rm -f conftest.err conftest.i conftest.$ac_ext
3957
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.i conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then :
3962 break
3963 fi
3964
3965 done
3966 ac_cv_prog_CPP=$CPP
3967
3968 fi
3969 CPP=$ac_cv_prog_CPP
3970 else
3971 ac_cv_prog_CPP=$CPP
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3974 $as_echo "$CPP" >&6; }
3975 ac_preproc_ok=false
3976 for ac_c_preproc_warn_flag in '' yes
3977 do
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #ifdef __STDC__
3987 # include <limits.h>
3988 #else
3989 # include <assert.h>
3990 #endif
3991 Syntax error
3992 _ACEOF
3993 if ac_fn_c_try_cpp "$LINENO"; then :
3994
3995 else
3996 # Broken: fails on valid input.
3997 continue
3998 fi
3999 rm -f conftest.err conftest.i conftest.$ac_ext
4000
4001 # OK, works on sane cases. Now check whether nonexistent headers
4002 # can be detected and how.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008 # Broken: success on invalid input.
4009 continue
4010 else
4011 # Passes both tests.
4012 ac_preproc_ok=:
4013 break
4014 fi
4015 rm -f conftest.err conftest.i conftest.$ac_ext
4016
4017 done
4018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019 rm -f conftest.i conftest.err conftest.$ac_ext
4020 if $ac_preproc_ok; then :
4021
4022 else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4026 See \`config.log' for more details" "$LINENO" 5; }
4027 fi
4028
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4037 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4038 if ${ac_cv_path_GREP+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -z "$GREP"; then
4042 ac_path_GREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in grep ggrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4052 as_fn_executable_p "$ac_path_GREP" || continue
4053 # Check for GNU ac_path_GREP and select it if it is found.
4054 # Check for GNU $ac_path_GREP
4055 case `"$ac_path_GREP" --version 2>&1` in
4056 *GNU*)
4057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4058 *)
4059 ac_count=0
4060 $as_echo_n 0123456789 >"conftest.in"
4061 while :
4062 do
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'GREP' >> "conftest.nl"
4067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_GREP="$ac_path_GREP"
4073 ac_path_GREP_max=$ac_count
4074 fi
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4080
4081 $ac_path_GREP_found && break 3
4082 done
4083 done
4084 done
4085 IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_GREP"; then
4087 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4088 fi
4089 else
4090 ac_cv_path_GREP=$GREP
4091 fi
4092
4093 fi
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4095 $as_echo "$ac_cv_path_GREP" >&6; }
4096 GREP="$ac_cv_path_GREP"
4097
4098
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4100 $as_echo_n "checking for egrep... " >&6; }
4101 if ${ac_cv_path_EGREP+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4105 then ac_cv_path_EGREP="$GREP -E"
4106 else
4107 if test -z "$EGREP"; then
4108 ac_path_EGREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 as_fn_executable_p "$ac_path_EGREP" || continue
4119 # Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121 case `"$ac_path_EGREP" --version 2>&1` in
4122 *GNU*)
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4124 *)
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 esac
4146
4147 $ac_path_EGREP_found && break 3
4148 done
4149 done
4150 done
4151 IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_EGREP"; then
4153 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 fi
4155 else
4156 ac_cv_path_EGREP=$EGREP
4157 fi
4158
4159 fi
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4162 $as_echo "$ac_cv_path_EGREP" >&6; }
4163 EGREP="$ac_cv_path_EGREP"
4164
4165
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4167 $as_echo_n "checking for ANSI C header files... " >&6; }
4168 if ${ac_cv_header_stdc+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdlib.h>
4174 #include <stdarg.h>
4175 #include <string.h>
4176 #include <float.h>
4177
4178 int
4179 main ()
4180 {
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_header_stdc=yes
4188 else
4189 ac_cv_header_stdc=no
4190 fi
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192
4193 if test $ac_cv_header_stdc = yes; then
4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <string.h>
4198
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "memchr" >/dev/null 2>&1; then :
4202
4203 else
4204 ac_cv_header_stdc=no
4205 fi
4206 rm -f conftest*
4207
4208 fi
4209
4210 if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <stdlib.h>
4215
4216 _ACEOF
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "free" >/dev/null 2>&1; then :
4219
4220 else
4221 ac_cv_header_stdc=no
4222 fi
4223 rm -f conftest*
4224
4225 fi
4226
4227 if test $ac_cv_header_stdc = yes; then
4228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4229 if test "$cross_compiling" = yes; then :
4230 :
4231 else
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ctype.h>
4235 #include <stdlib.h>
4236 #if ((' ' & 0x0FF) == 0x020)
4237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239 #else
4240 # define ISLOWER(c) \
4241 (('a' <= (c) && (c) <= 'i') \
4242 || ('j' <= (c) && (c) <= 'r') \
4243 || ('s' <= (c) && (c) <= 'z'))
4244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245 #endif
4246
4247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4248 int
4249 main ()
4250 {
4251 int i;
4252 for (i = 0; i < 256; i++)
4253 if (XOR (islower (i), ISLOWER (i))
4254 || toupper (i) != TOUPPER (i))
4255 return 2;
4256 return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_run "$LINENO"; then :
4260
4261 else
4262 ac_cv_header_stdc=no
4263 fi
4264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4265 conftest.$ac_objext conftest.beam conftest.$ac_ext
4266 fi
4267
4268 fi
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4271 $as_echo "$ac_cv_header_stdc" >&6; }
4272 if test $ac_cv_header_stdc = yes; then
4273
4274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4275
4276 fi
4277
4278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4280 inttypes.h stdint.h unistd.h
4281 do :
4282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4284 "
4285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4286 cat >>confdefs.h <<_ACEOF
4287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4288 _ACEOF
4289
4290 fi
4291
4292 done
4293
4294
4295
4296 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4297 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4298 MINIX=yes
4299 else
4300 MINIX=
4301 fi
4302
4303
4304 if test "$MINIX" = yes; then
4305
4306 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4307
4308
4309 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4310
4311
4312 $as_echo "#define _MINIX 1" >>confdefs.h
4313
4314 fi
4315
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4318 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4319 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 # define __EXTENSIONS__ 1
4326 $ac_includes_default
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 ac_cv_safe_to_define___extensions__=yes
4337 else
4338 ac_cv_safe_to_define___extensions__=no
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4343 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4344 test $ac_cv_safe_to_define___extensions__ = yes &&
4345 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4346
4347 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4348
4349 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4350
4351 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4352
4353 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4354
4355
4356
4357 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4370 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4371 if ${ac_cv_prog_cc_c99+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 ac_cv_prog_cc_c99=no
4375 ac_save_CC=$CC
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <stdarg.h>
4379 #include <stdbool.h>
4380 #include <stdlib.h>
4381 #include <wchar.h>
4382 #include <stdio.h>
4383
4384 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4385 #define debug(...) fprintf (stderr, __VA_ARGS__)
4386 #define showlist(...) puts (#__VA_ARGS__)
4387 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4388 static void
4389 test_varargs_macros (void)
4390 {
4391 int x = 1234;
4392 int y = 5678;
4393 debug ("Flag");
4394 debug ("X = %d\n", x);
4395 showlist (The first, second, and third items.);
4396 report (x>y, "x is %d but y is %d", x, y);
4397 }
4398
4399 // Check long long types.
4400 #define BIG64 18446744073709551615ull
4401 #define BIG32 4294967295ul
4402 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4403 #if !BIG_OK
4404 your preprocessor is broken;
4405 #endif
4406 #if BIG_OK
4407 #else
4408 your preprocessor is broken;
4409 #endif
4410 static long long int bignum = -9223372036854775807LL;
4411 static unsigned long long int ubignum = BIG64;
4412
4413 struct incomplete_array
4414 {
4415 int datasize;
4416 double data[];
4417 };
4418
4419 struct named_init {
4420 int number;
4421 const wchar_t *name;
4422 double average;
4423 };
4424
4425 typedef const char *ccp;
4426
4427 static inline int
4428 test_restrict (ccp restrict text)
4429 {
4430 // See if C++-style comments work.
4431 // Iterate through items via the restricted pointer.
4432 // Also check for declarations in for loops.
4433 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4434 continue;
4435 return 0;
4436 }
4437
4438 // Check varargs and va_copy.
4439 static void
4440 test_varargs (const char *format, ...)
4441 {
4442 va_list args;
4443 va_start (args, format);
4444 va_list args_copy;
4445 va_copy (args_copy, args);
4446
4447 const char *str;
4448 int number;
4449 float fnumber;
4450
4451 while (*format)
4452 {
4453 switch (*format++)
4454 {
4455 case 's': // string
4456 str = va_arg (args_copy, const char *);
4457 break;
4458 case 'd': // int
4459 number = va_arg (args_copy, int);
4460 break;
4461 case 'f': // float
4462 fnumber = va_arg (args_copy, double);
4463 break;
4464 default:
4465 break;
4466 }
4467 }
4468 va_end (args_copy);
4469 va_end (args);
4470 }
4471
4472 int
4473 main ()
4474 {
4475
4476 // Check bool.
4477 _Bool success = false;
4478
4479 // Check restrict.
4480 if (test_restrict ("String literal") == 0)
4481 success = true;
4482 char *restrict newvar = "Another string";
4483
4484 // Check varargs.
4485 test_varargs ("s, d' f .", "string", 65, 34.234);
4486 test_varargs_macros ();
4487
4488 // Check flexible array members.
4489 struct incomplete_array *ia =
4490 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4491 ia->datasize = 10;
4492 for (int i = 0; i < ia->datasize; ++i)
4493 ia->data[i] = i * 1.234;
4494
4495 // Check named initializers.
4496 struct named_init ni = {
4497 .number = 34,
4498 .name = L"Test wide string",
4499 .average = 543.34343,
4500 };
4501
4502 ni.number = 58;
4503
4504 int dynamic_array[ni.number];
4505 dynamic_array[ni.number - 1] = 543;
4506
4507 // work around unused variable warnings
4508 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4509 || dynamic_array[ni.number - 1] != 543);
4510
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4516 do
4517 CC="$ac_save_CC $ac_arg"
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_prog_cc_c99=$ac_arg
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext
4522 test "x$ac_cv_prog_cc_c99" != "xno" && break
4523 done
4524 rm -f conftest.$ac_ext
4525 CC=$ac_save_CC
4526
4527 fi
4528 # AC_CACHE_VAL
4529 case "x$ac_cv_prog_cc_c99" in
4530 x)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4532 $as_echo "none needed" >&6; } ;;
4533 xno)
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4535 $as_echo "unsupported" >&6; } ;;
4536 *)
4537 CC="$CC $ac_cv_prog_cc_c99"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4539 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4540 esac
4541 if test "x$ac_cv_prog_cc_c99" != xno; then :
4542
4543 fi
4544
4545
4546
4547
4548
4549
4550 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4551 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4552 CLANGCC="yes"
4553 else
4554 CLANGCC="no"
4555 fi
4556
4557 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4558 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4559 INTELCC="yes"
4560 else
4561 INTELCC="no"
4562 fi
4563
4564 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4565 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4566 SUNCC="yes"
4567 else
4568 SUNCC="no"
4569 fi
4570
4571
4572
4573
4574 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 case $PKG_CONFIG in
4584 [\\/]* | ?:[\\/]*)
4585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4586 ;;
4587 *)
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599 done
4600 done
4601 IFS=$as_save_IFS
4602
4603 ;;
4604 esac
4605 fi
4606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4607 if test -n "$PKG_CONFIG"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4609 $as_echo "$PKG_CONFIG" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4613 fi
4614
4615
4616 fi
4617 if test -z "$ac_cv_path_PKG_CONFIG"; then
4618 ac_pt_PKG_CONFIG=$PKG_CONFIG
4619 # Extract the first word of "pkg-config", so it can be a program name with args.
4620 set dummy pkg-config; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 case $ac_pt_PKG_CONFIG in
4627 [\\/]* | ?:[\\/]*)
4628 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4629 ;;
4630 *)
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 ;;
4647 esac
4648 fi
4649 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4650 if test -n "$ac_pt_PKG_CONFIG"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4652 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 fi
4657
4658 if test "x$ac_pt_PKG_CONFIG" = x; then
4659 PKG_CONFIG=""
4660 else
4661 case $cross_compiling:$ac_tool_warned in
4662 yes:)
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4665 ac_tool_warned=yes ;;
4666 esac
4667 PKG_CONFIG=$ac_pt_PKG_CONFIG
4668 fi
4669 else
4670 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4671 fi
4672
4673 fi
4674 if test -n "$PKG_CONFIG"; then
4675 _pkg_min_version=0.9.0
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4677 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4678 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4680 $as_echo "yes" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 PKG_CONFIG=""
4685 fi
4686
4687 fi
4688 # Make sure we can run config.sub.
4689 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4690 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4693 $as_echo_n "checking build system type... " >&6; }
4694 if ${ac_cv_build+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 ac_build_alias=$build_alias
4698 test "x$ac_build_alias" = x &&
4699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4700 test "x$ac_build_alias" = x &&
4701 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4702 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4703 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4704
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4707 $as_echo "$ac_cv_build" >&6; }
4708 case $ac_cv_build in
4709 *-*-*) ;;
4710 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4711 esac
4712 build=$ac_cv_build
4713 ac_save_IFS=$IFS; IFS='-'
4714 set x $ac_cv_build
4715 shift
4716 build_cpu=$1
4717 build_vendor=$2
4718 shift; shift
4719 # Remember, the first character of IFS is used to create $*,
4720 # except with old shells:
4721 build_os=$*
4722 IFS=$ac_save_IFS
4723 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4727 $as_echo_n "checking host system type... " >&6; }
4728 if ${ac_cv_host+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test "x$host_alias" = x; then
4732 ac_cv_host=$ac_cv_build
4733 else
4734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4736 fi
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4740 $as_echo "$ac_cv_host" >&6; }
4741 case $ac_cv_host in
4742 *-*-*) ;;
4743 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4744 esac
4745 host=$ac_cv_host
4746 ac_save_IFS=$IFS; IFS='-'
4747 set x $ac_cv_host
4748 shift
4749 host_cpu=$1
4750 host_vendor=$2
4751 shift; shift
4752 # Remember, the first character of IFS is used to create $*,
4753 # except with old shells:
4754 host_os=$*
4755 IFS=$ac_save_IFS
4756 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4760 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4761 if ${ac_cv_path_SED+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4765 for ac_i in 1 2 3 4 5 6 7; do
4766 ac_script="$ac_script$as_nl$ac_script"
4767 done
4768 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4769 { ac_script=; unset ac_script;}
4770 if test -z "$SED"; then
4771 ac_path_SED_found=false
4772 # Loop through the user's path and test for each of PROGNAME-LIST
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_prog in sed gsed; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4781 as_fn_executable_p "$ac_path_SED" || continue
4782 # Check for GNU ac_path_SED and select it if it is found.
4783 # Check for GNU $ac_path_SED
4784 case `"$ac_path_SED" --version 2>&1` in
4785 *GNU*)
4786 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4787 *)
4788 ac_count=0
4789 $as_echo_n 0123456789 >"conftest.in"
4790 while :
4791 do
4792 cat "conftest.in" "conftest.in" >"conftest.tmp"
4793 mv "conftest.tmp" "conftest.in"
4794 cp "conftest.in" "conftest.nl"
4795 $as_echo '' >> "conftest.nl"
4796 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798 as_fn_arith $ac_count + 1 && ac_count=$as_val
4799 if test $ac_count -gt ${ac_path_SED_max-0}; then
4800 # Best one so far, save it but keep looking for a better one
4801 ac_cv_path_SED="$ac_path_SED"
4802 ac_path_SED_max=$ac_count
4803 fi
4804 # 10*(2^10) chars as input seems more than enough
4805 test $ac_count -gt 10 && break
4806 done
4807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808 esac
4809
4810 $ac_path_SED_found && break 3
4811 done
4812 done
4813 done
4814 IFS=$as_save_IFS
4815 if test -z "$ac_cv_path_SED"; then
4816 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4817 fi
4818 else
4819 ac_cv_path_SED=$SED
4820 fi
4821
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4824 $as_echo "$ac_cv_path_SED" >&6; }
4825 SED="$ac_cv_path_SED"
4826 rm -f conftest.sed
4827
4828
4829
4830
4831
4832
4833 # Check whether --enable-selective-werror was given.
4834 if test "${enable_selective_werror+set}" = set; then :
4835 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4836 else
4837 SELECTIVE_WERROR=yes
4838 fi
4839
4840
4841
4842
4843
4844 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4845 if test "x$SUNCC" = "xyes"; then
4846 BASE_CFLAGS="-v"
4847 else
4848 BASE_CFLAGS=""
4849 fi
4850
4851 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865 xorg_testset_save_CFLAGS="$CFLAGS"
4866
4867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4870 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4871 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 int i;
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 xorg_cv_cc_flag_unknown_warning_option=yes
4880 else
4881 xorg_cv_cc_flag_unknown_warning_option=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4886 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4888 CFLAGS="$xorg_testset_save_CFLAGS"
4889 fi
4890
4891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894 fi
4895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4897 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4898 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 int i;
4904 _ACEOF
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906 xorg_cv_cc_flag_unused_command_line_argument=yes
4907 else
4908 xorg_cv_cc_flag_unused_command_line_argument=no
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4913 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4915 CFLAGS="$xorg_testset_save_CFLAGS"
4916 fi
4917
4918 found="no"
4919
4920 if test $found = "no" ; then
4921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923 fi
4924
4925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4927 fi
4928
4929 CFLAGS="$CFLAGS -Wall"
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4932 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4933 cacheid=xorg_cv_cc_flag__Wall
4934 if eval \${$cacheid+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 int i;
4940 int
4941 main ()
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_link "$LINENO"; then :
4949 eval $cacheid=yes
4950 else
4951 eval $cacheid=no
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext \
4954 conftest$ac_exeext conftest.$ac_ext
4955 fi
4956
4957
4958 CFLAGS="$xorg_testset_save_CFLAGS"
4959
4960 eval supported=\$$cacheid
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4962 $as_echo "$supported" >&6; }
4963 if test "$supported" = "yes" ; then
4964 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4965 found="yes"
4966 fi
4967 fi
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 xorg_testset_save_CFLAGS="$CFLAGS"
4984
4985 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4988 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4989 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 int i;
4995 _ACEOF
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997 xorg_cv_cc_flag_unknown_warning_option=yes
4998 else
4999 xorg_cv_cc_flag_unknown_warning_option=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5004 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007 fi
5008
5009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012 fi
5013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5015 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5016 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 int i;
5022 _ACEOF
5023 if ac_fn_c_try_compile "$LINENO"; then :
5024 xorg_cv_cc_flag_unused_command_line_argument=yes
5025 else
5026 xorg_cv_cc_flag_unused_command_line_argument=no
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5031 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5033 CFLAGS="$xorg_testset_save_CFLAGS"
5034 fi
5035
5036 found="no"
5037
5038 if test $found = "no" ; then
5039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041 fi
5042
5043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045 fi
5046
5047 CFLAGS="$CFLAGS -Wpointer-arith"
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5050 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5051 cacheid=xorg_cv_cc_flag__Wpointer_arith
5052 if eval \${$cacheid+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 int i;
5058 int
5059 main ()
5060 {
5061
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 if ac_fn_c_try_link "$LINENO"; then :
5067 eval $cacheid=yes
5068 else
5069 eval $cacheid=no
5070 fi
5071 rm -f core conftest.err conftest.$ac_objext \
5072 conftest$ac_exeext conftest.$ac_ext
5073 fi
5074
5075
5076 CFLAGS="$xorg_testset_save_CFLAGS"
5077
5078 eval supported=\$$cacheid
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5080 $as_echo "$supported" >&6; }
5081 if test "$supported" = "yes" ; then
5082 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5083 found="yes"
5084 fi
5085 fi
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 xorg_testset_save_CFLAGS="$CFLAGS"
5102
5103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 int i;
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"; then :
5115 xorg_cv_cc_flag_unknown_warning_option=yes
5116 else
5117 xorg_cv_cc_flag_unknown_warning_option=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5124 CFLAGS="$xorg_testset_save_CFLAGS"
5125 fi
5126
5127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130 fi
5131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 int i;
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 xorg_cv_cc_flag_unused_command_line_argument=yes
5143 else
5144 xorg_cv_cc_flag_unused_command_line_argument=no
5145 fi
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5151 CFLAGS="$xorg_testset_save_CFLAGS"
5152 fi
5153
5154 found="no"
5155
5156 if test $found = "no" ; then
5157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159 fi
5160
5161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5163 fi
5164
5165 CFLAGS="$CFLAGS -Wmissing-declarations"
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5168 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5169 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5170 if eval \${$cacheid+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 int i;
5176 int
5177 main ()
5178 {
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 if ac_fn_c_try_link "$LINENO"; then :
5185 eval $cacheid=yes
5186 else
5187 eval $cacheid=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext \
5190 conftest$ac_exeext conftest.$ac_ext
5191 fi
5192
5193
5194 CFLAGS="$xorg_testset_save_CFLAGS"
5195
5196 eval supported=\$$cacheid
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5198 $as_echo "$supported" >&6; }
5199 if test "$supported" = "yes" ; then
5200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5201 found="yes"
5202 fi
5203 fi
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 xorg_testset_save_CFLAGS="$CFLAGS"
5220
5221 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5224 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5225 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 int i;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 xorg_cv_cc_flag_unknown_warning_option=yes
5234 else
5235 xorg_cv_cc_flag_unknown_warning_option=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5240 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5242 CFLAGS="$xorg_testset_save_CFLAGS"
5243 fi
5244
5245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248 fi
5249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5251 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5252 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 int i;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 xorg_cv_cc_flag_unused_command_line_argument=yes
5261 else
5262 xorg_cv_cc_flag_unused_command_line_argument=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5267 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270 fi
5271
5272 found="no"
5273
5274 if test $found = "no" ; then
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 fi
5278
5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281 fi
5282
5283 CFLAGS="$CFLAGS -Wformat=2"
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5286 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5287 cacheid=xorg_cv_cc_flag__Wformat_2
5288 if eval \${$cacheid+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 int i;
5294 int
5295 main ()
5296 {
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_link "$LINENO"; then :
5303 eval $cacheid=yes
5304 else
5305 eval $cacheid=no
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext \
5308 conftest$ac_exeext conftest.$ac_ext
5309 fi
5310
5311
5312 CFLAGS="$xorg_testset_save_CFLAGS"
5313
5314 eval supported=\$$cacheid
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5316 $as_echo "$supported" >&6; }
5317 if test "$supported" = "yes" ; then
5318 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5319 found="yes"
5320 fi
5321 fi
5322
5323 if test $found = "no" ; then
5324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5326 fi
5327
5328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5330 fi
5331
5332 CFLAGS="$CFLAGS -Wformat"
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5335 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5336 cacheid=xorg_cv_cc_flag__Wformat
5337 if eval \${$cacheid+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 int i;
5343 int
5344 main ()
5345 {
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_link "$LINENO"; then :
5352 eval $cacheid=yes
5353 else
5354 eval $cacheid=no
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 fi
5359
5360
5361 CFLAGS="$xorg_testset_save_CFLAGS"
5362
5363 eval supported=\$$cacheid
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5365 $as_echo "$supported" >&6; }
5366 if test "$supported" = "yes" ; then
5367 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5368 found="yes"
5369 fi
5370 fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 xorg_testset_save_CFLAGS="$CFLAGS"
5389
5390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 int i;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 xorg_cv_cc_flag_unknown_warning_option=yes
5403 else
5404 xorg_cv_cc_flag_unknown_warning_option=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5411 CFLAGS="$xorg_testset_save_CFLAGS"
5412 fi
5413
5414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417 fi
5418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 int i;
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 xorg_cv_cc_flag_unused_command_line_argument=yes
5430 else
5431 xorg_cv_cc_flag_unused_command_line_argument=no
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5438 CFLAGS="$xorg_testset_save_CFLAGS"
5439 fi
5440
5441 found="no"
5442
5443 if test $found = "no" ; then
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 fi
5447
5448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450 fi
5451
5452 CFLAGS="$CFLAGS -Wstrict-prototypes"
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5455 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5456 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5457 if eval \${$cacheid+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 int i;
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"; then :
5472 eval $cacheid=yes
5473 else
5474 eval $cacheid=no
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext \
5477 conftest$ac_exeext conftest.$ac_ext
5478 fi
5479
5480
5481 CFLAGS="$xorg_testset_save_CFLAGS"
5482
5483 eval supported=\$$cacheid
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5485 $as_echo "$supported" >&6; }
5486 if test "$supported" = "yes" ; then
5487 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5488 found="yes"
5489 fi
5490 fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 xorg_testset_save_CFLAGS="$CFLAGS"
5507
5508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 int i;
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 xorg_cv_cc_flag_unknown_warning_option=yes
5521 else
5522 xorg_cv_cc_flag_unknown_warning_option=no
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5529 CFLAGS="$xorg_testset_save_CFLAGS"
5530 fi
5531
5532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535 fi
5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 int i;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 xorg_cv_cc_flag_unused_command_line_argument=yes
5548 else
5549 xorg_cv_cc_flag_unused_command_line_argument=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5556 CFLAGS="$xorg_testset_save_CFLAGS"
5557 fi
5558
5559 found="no"
5560
5561 if test $found = "no" ; then
5562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564 fi
5565
5566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568 fi
5569
5570 CFLAGS="$CFLAGS -Wmissing-prototypes"
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5573 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5574 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5575 if eval \${$cacheid+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 int i;
5581 int
5582 main ()
5583 {
5584
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_c_try_link "$LINENO"; then :
5590 eval $cacheid=yes
5591 else
5592 eval $cacheid=no
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5596 fi
5597
5598
5599 CFLAGS="$xorg_testset_save_CFLAGS"
5600
5601 eval supported=\$$cacheid
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5603 $as_echo "$supported" >&6; }
5604 if test "$supported" = "yes" ; then
5605 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5606 found="yes"
5607 fi
5608 fi
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624 xorg_testset_save_CFLAGS="$CFLAGS"
5625
5626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 int i;
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 xorg_cv_cc_flag_unknown_warning_option=yes
5639 else
5640 xorg_cv_cc_flag_unknown_warning_option=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5647 CFLAGS="$xorg_testset_save_CFLAGS"
5648 fi
5649
5650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653 fi
5654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 int i;
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 xorg_cv_cc_flag_unused_command_line_argument=yes
5666 else
5667 xorg_cv_cc_flag_unused_command_line_argument=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5674 CFLAGS="$xorg_testset_save_CFLAGS"
5675 fi
5676
5677 found="no"
5678
5679 if test $found = "no" ; then
5680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 fi
5683
5684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686 fi
5687
5688 CFLAGS="$CFLAGS -Wnested-externs"
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5691 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5692 cacheid=xorg_cv_cc_flag__Wnested_externs
5693 if eval \${$cacheid+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 int i;
5699 int
5700 main ()
5701 {
5702
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_link "$LINENO"; then :
5708 eval $cacheid=yes
5709 else
5710 eval $cacheid=no
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5714 fi
5715
5716
5717 CFLAGS="$xorg_testset_save_CFLAGS"
5718
5719 eval supported=\$$cacheid
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5721 $as_echo "$supported" >&6; }
5722 if test "$supported" = "yes" ; then
5723 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5724 found="yes"
5725 fi
5726 fi
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 xorg_testset_save_CFLAGS="$CFLAGS"
5743
5744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 int i;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 xorg_cv_cc_flag_unknown_warning_option=yes
5757 else
5758 xorg_cv_cc_flag_unknown_warning_option=no
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5765 CFLAGS="$xorg_testset_save_CFLAGS"
5766 fi
5767
5768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771 fi
5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 int i;
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"; then :
5783 xorg_cv_cc_flag_unused_command_line_argument=yes
5784 else
5785 xorg_cv_cc_flag_unused_command_line_argument=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5792 CFLAGS="$xorg_testset_save_CFLAGS"
5793 fi
5794
5795 found="no"
5796
5797 if test $found = "no" ; then
5798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800 fi
5801
5802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804 fi
5805
5806 CFLAGS="$CFLAGS -Wbad-function-cast"
5807
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5809 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5810 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5811 if eval \${$cacheid+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 int i;
5817 int
5818 main ()
5819 {
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_c_try_link "$LINENO"; then :
5826 eval $cacheid=yes
5827 else
5828 eval $cacheid=no
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 fi
5833
5834
5835 CFLAGS="$xorg_testset_save_CFLAGS"
5836
5837 eval supported=\$$cacheid
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5839 $as_echo "$supported" >&6; }
5840 if test "$supported" = "yes" ; then
5841 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5842 found="yes"
5843 fi
5844 fi
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860 xorg_testset_save_CFLAGS="$CFLAGS"
5861
5862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 int i;
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 xorg_cv_cc_flag_unknown_warning_option=yes
5875 else
5876 xorg_cv_cc_flag_unknown_warning_option=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884 fi
5885
5886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 fi
5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 xorg_cv_cc_flag_unused_command_line_argument=yes
5902 else
5903 xorg_cv_cc_flag_unused_command_line_argument=no
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5910 CFLAGS="$xorg_testset_save_CFLAGS"
5911 fi
5912
5913 found="no"
5914
5915 if test $found = "no" ; then
5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918 fi
5919
5920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922 fi
5923
5924 CFLAGS="$CFLAGS -Wold-style-definition"
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5927 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5928 cacheid=xorg_cv_cc_flag__Wold_style_definition
5929 if eval \${$cacheid+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 int i;
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_c_try_link "$LINENO"; then :
5944 eval $cacheid=yes
5945 else
5946 eval $cacheid=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5950 fi
5951
5952
5953 CFLAGS="$xorg_testset_save_CFLAGS"
5954
5955 eval supported=\$$cacheid
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5957 $as_echo "$supported" >&6; }
5958 if test "$supported" = "yes" ; then
5959 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5960 found="yes"
5961 fi
5962 fi
5963
5964 if test $found = "no" ; then
5965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967 fi
5968
5969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971 fi
5972
5973 CFLAGS="$CFLAGS -fd"
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5976 $as_echo_n "checking if $CC supports -fd... " >&6; }
5977 cacheid=xorg_cv_cc_flag__fd
5978 if eval \${$cacheid+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 int i;
5984 int
5985 main ()
5986 {
5987
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 if ac_fn_c_try_link "$LINENO"; then :
5993 eval $cacheid=yes
5994 else
5995 eval $cacheid=no
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext \
5998 conftest$ac_exeext conftest.$ac_ext
5999 fi
6000
6001
6002 CFLAGS="$xorg_testset_save_CFLAGS"
6003
6004 eval supported=\$$cacheid
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6006 $as_echo "$supported" >&6; }
6007 if test "$supported" = "yes" ; then
6008 BASE_CFLAGS="$BASE_CFLAGS -fd"
6009 found="yes"
6010 fi
6011 fi
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 xorg_testset_save_CFLAGS="$CFLAGS"
6028
6029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6032 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6033 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 int i;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 xorg_cv_cc_flag_unknown_warning_option=yes
6042 else
6043 xorg_cv_cc_flag_unknown_warning_option=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6048 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051 fi
6052
6053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056 fi
6057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6059 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6060 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 int i;
6066 _ACEOF
6067 if ac_fn_c_try_compile "$LINENO"; then :
6068 xorg_cv_cc_flag_unused_command_line_argument=yes
6069 else
6070 xorg_cv_cc_flag_unused_command_line_argument=no
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6075 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6077 CFLAGS="$xorg_testset_save_CFLAGS"
6078 fi
6079
6080 found="no"
6081
6082 if test $found = "no" ; then
6083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085 fi
6086
6087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6089 fi
6090
6091 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6094 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6095 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6096 if eval \${$cacheid+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 int i;
6102 int
6103 main ()
6104 {
6105
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_c_try_link "$LINENO"; then :
6111 eval $cacheid=yes
6112 else
6113 eval $cacheid=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
6117 fi
6118
6119
6120 CFLAGS="$xorg_testset_save_CFLAGS"
6121
6122 eval supported=\$$cacheid
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6124 $as_echo "$supported" >&6; }
6125 if test "$supported" = "yes" ; then
6126 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6127 found="yes"
6128 fi
6129 fi
6130
6131
6132
6133
6134
6135 # This chunk adds additional warnings that could catch undesired effects.
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149 xorg_testset_save_CFLAGS="$CFLAGS"
6150
6151 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6154 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6155 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 int i;
6161 _ACEOF
6162 if ac_fn_c_try_compile "$LINENO"; then :
6163 xorg_cv_cc_flag_unknown_warning_option=yes
6164 else
6165 xorg_cv_cc_flag_unknown_warning_option=no
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6170 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6172 CFLAGS="$xorg_testset_save_CFLAGS"
6173 fi
6174
6175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178 fi
6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6181 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6182 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 int i;
6188 _ACEOF
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 xorg_cv_cc_flag_unused_command_line_argument=yes
6191 else
6192 xorg_cv_cc_flag_unused_command_line_argument=no
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6197 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6199 CFLAGS="$xorg_testset_save_CFLAGS"
6200 fi
6201
6202 found="no"
6203
6204 if test $found = "no" ; then
6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 fi
6208
6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6211 fi
6212
6213 CFLAGS="$CFLAGS -Wunused"
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6216 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6217 cacheid=xorg_cv_cc_flag__Wunused
6218 if eval \${$cacheid+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 int i;
6224 int
6225 main ()
6226 {
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_link "$LINENO"; then :
6233 eval $cacheid=yes
6234 else
6235 eval $cacheid=no
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 fi
6240
6241
6242 CFLAGS="$xorg_testset_save_CFLAGS"
6243
6244 eval supported=\$$cacheid
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6246 $as_echo "$supported" >&6; }
6247 if test "$supported" = "yes" ; then
6248 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6249 found="yes"
6250 fi
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 xorg_testset_save_CFLAGS="$CFLAGS"
6268
6269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6273 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 int i;
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"; then :
6281 xorg_cv_cc_flag_unknown_warning_option=yes
6282 else
6283 xorg_cv_cc_flag_unknown_warning_option=no
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6288 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6290 CFLAGS="$xorg_testset_save_CFLAGS"
6291 fi
6292
6293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296 fi
6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6299 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6300 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 int i;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 xorg_cv_cc_flag_unused_command_line_argument=yes
6309 else
6310 xorg_cv_cc_flag_unused_command_line_argument=no
6311 fi
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6315 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6317 CFLAGS="$xorg_testset_save_CFLAGS"
6318 fi
6319
6320 found="no"
6321
6322 if test $found = "no" ; then
6323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6325 fi
6326
6327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6329 fi
6330
6331 CFLAGS="$CFLAGS -Wuninitialized"
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6334 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6335 cacheid=xorg_cv_cc_flag__Wuninitialized
6336 if eval \${$cacheid+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 int i;
6342 int
6343 main ()
6344 {
6345
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 if ac_fn_c_try_link "$LINENO"; then :
6351 eval $cacheid=yes
6352 else
6353 eval $cacheid=no
6354 fi
6355 rm -f core conftest.err conftest.$ac_objext \
6356 conftest$ac_exeext conftest.$ac_ext
6357 fi
6358
6359
6360 CFLAGS="$xorg_testset_save_CFLAGS"
6361
6362 eval supported=\$$cacheid
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6364 $as_echo "$supported" >&6; }
6365 if test "$supported" = "yes" ; then
6366 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6367 found="yes"
6368 fi
6369 fi
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 xorg_testset_save_CFLAGS="$CFLAGS"
6386
6387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6390 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6391 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 int i;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 xorg_cv_cc_flag_unknown_warning_option=yes
6400 else
6401 xorg_cv_cc_flag_unknown_warning_option=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6406 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6408 CFLAGS="$xorg_testset_save_CFLAGS"
6409 fi
6410
6411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414 fi
6415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6417 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6418 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"; then :
6426 xorg_cv_cc_flag_unused_command_line_argument=yes
6427 else
6428 xorg_cv_cc_flag_unused_command_line_argument=no
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6433 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6435 CFLAGS="$xorg_testset_save_CFLAGS"
6436 fi
6437
6438 found="no"
6439
6440 if test $found = "no" ; then
6441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443 fi
6444
6445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6447 fi
6448
6449 CFLAGS="$CFLAGS -Wshadow"
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6452 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6453 cacheid=xorg_cv_cc_flag__Wshadow
6454 if eval \${$cacheid+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 int i;
6460 int
6461 main ()
6462 {
6463
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_link "$LINENO"; then :
6469 eval $cacheid=yes
6470 else
6471 eval $cacheid=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6475 fi
6476
6477
6478 CFLAGS="$xorg_testset_save_CFLAGS"
6479
6480 eval supported=\$$cacheid
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6482 $as_echo "$supported" >&6; }
6483 if test "$supported" = "yes" ; then
6484 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6485 found="yes"
6486 fi
6487 fi
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 xorg_testset_save_CFLAGS="$CFLAGS"
6504
6505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 int i;
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 xorg_cv_cc_flag_unknown_warning_option=yes
6518 else
6519 xorg_cv_cc_flag_unknown_warning_option=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6526 CFLAGS="$xorg_testset_save_CFLAGS"
6527 fi
6528
6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532 fi
6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 int i;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 xorg_cv_cc_flag_unused_command_line_argument=yes
6545 else
6546 xorg_cv_cc_flag_unused_command_line_argument=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553 CFLAGS="$xorg_testset_save_CFLAGS"
6554 fi
6555
6556 found="no"
6557
6558 if test $found = "no" ; then
6559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561 fi
6562
6563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565 fi
6566
6567 CFLAGS="$CFLAGS -Wmissing-noreturn"
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6570 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6571 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6572 if eval \${$cacheid+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 int i;
6578 int
6579 main ()
6580 {
6581
6582 ;
6583 return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 eval $cacheid=yes
6588 else
6589 eval $cacheid=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593 fi
6594
6595
6596 CFLAGS="$xorg_testset_save_CFLAGS"
6597
6598 eval supported=\$$cacheid
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6600 $as_echo "$supported" >&6; }
6601 if test "$supported" = "yes" ; then
6602 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6603 found="yes"
6604 fi
6605 fi
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 xorg_testset_save_CFLAGS="$CFLAGS"
6622
6623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6626 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6627 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 int i;
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 xorg_cv_cc_flag_unknown_warning_option=yes
6636 else
6637 xorg_cv_cc_flag_unknown_warning_option=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6642 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6644 CFLAGS="$xorg_testset_save_CFLAGS"
6645 fi
6646
6647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650 fi
6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6653 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6654 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int i;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 xorg_cv_cc_flag_unused_command_line_argument=yes
6663 else
6664 xorg_cv_cc_flag_unused_command_line_argument=no
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6669 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6671 CFLAGS="$xorg_testset_save_CFLAGS"
6672 fi
6673
6674 found="no"
6675
6676 if test $found = "no" ; then
6677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 fi
6680
6681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6683 fi
6684
6685 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6688 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6689 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6690 if eval \${$cacheid+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 int i;
6696 int
6697 main ()
6698 {
6699
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 if ac_fn_c_try_link "$LINENO"; then :
6705 eval $cacheid=yes
6706 else
6707 eval $cacheid=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
6711 fi
6712
6713
6714 CFLAGS="$xorg_testset_save_CFLAGS"
6715
6716 eval supported=\$$cacheid
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6718 $as_echo "$supported" >&6; }
6719 if test "$supported" = "yes" ; then
6720 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6721 found="yes"
6722 fi
6723 fi
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 xorg_testset_save_CFLAGS="$CFLAGS"
6740
6741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6744 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int i;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 xorg_cv_cc_flag_unknown_warning_option=yes
6754 else
6755 xorg_cv_cc_flag_unknown_warning_option=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6760 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763 fi
6764
6765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 fi
6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6771 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int i;
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 xorg_cv_cc_flag_unused_command_line_argument=yes
6781 else
6782 xorg_cv_cc_flag_unused_command_line_argument=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6787 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6789 CFLAGS="$xorg_testset_save_CFLAGS"
6790 fi
6791
6792 found="no"
6793
6794 if test $found = "no" ; then
6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 fi
6798
6799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801 fi
6802
6803 CFLAGS="$CFLAGS -Wredundant-decls"
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6806 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6807 cacheid=xorg_cv_cc_flag__Wredundant_decls
6808 if eval \${$cacheid+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 int i;
6814 int
6815 main ()
6816 {
6817
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 if ac_fn_c_try_link "$LINENO"; then :
6823 eval $cacheid=yes
6824 else
6825 eval $cacheid=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 fi
6830
6831
6832 CFLAGS="$xorg_testset_save_CFLAGS"
6833
6834 eval supported=\$$cacheid
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6836 $as_echo "$supported" >&6; }
6837 if test "$supported" = "yes" ; then
6838 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6839 found="yes"
6840 fi
6841 fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 xorg_testset_save_CFLAGS="$CFLAGS"
6858
6859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 int i;
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 xorg_cv_cc_flag_unknown_warning_option=yes
6872 else
6873 xorg_cv_cc_flag_unknown_warning_option=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881 fi
6882
6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886 fi
6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 int i;
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 xorg_cv_cc_flag_unused_command_line_argument=yes
6899 else
6900 xorg_cv_cc_flag_unused_command_line_argument=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 fi
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6907 CFLAGS="$xorg_testset_save_CFLAGS"
6908 fi
6909
6910 found="no"
6911
6912 if test $found = "no" ; then
6913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915 fi
6916
6917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919 fi
6920
6921 CFLAGS="$CFLAGS -Wlogical-op"
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6924 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6925 cacheid=xorg_cv_cc_flag__Wlogical_op
6926 if eval \${$cacheid+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 eval $cacheid=yes
6942 else
6943 eval $cacheid=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 fi
6948
6949
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6951
6952 eval supported=\$$cacheid
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6954 $as_echo "$supported" >&6; }
6955 if test "$supported" = "yes" ; then
6956 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6957 found="yes"
6958 fi
6959 fi
6960
6961
6962
6963 # These are currently disabled because they are noisy. They will be enabled
6964 # in the future once the codebase is sufficiently modernized to silence
6965 # them. For now, I don't want them to drown out the other warnings.
6966 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6967 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6968 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6969
6970 # Turn some warnings into errors, so we don't accidently get successful builds
6971 # when there are problems that should be fixed.
6972
6973 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987 xorg_testset_save_CFLAGS="$CFLAGS"
6988
6989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 int i;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 xorg_cv_cc_flag_unknown_warning_option=yes
7002 else
7003 xorg_cv_cc_flag_unknown_warning_option=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016 fi
7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int i;
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 xorg_cv_cc_flag_unused_command_line_argument=yes
7029 else
7030 xorg_cv_cc_flag_unused_command_line_argument=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7037 CFLAGS="$xorg_testset_save_CFLAGS"
7038 fi
7039
7040 found="no"
7041
7042 if test $found = "no" ; then
7043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045 fi
7046
7047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049 fi
7050
7051 CFLAGS="$CFLAGS -Werror=implicit"
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7054 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7055 cacheid=xorg_cv_cc_flag__Werror_implicit
7056 if eval \${$cacheid+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 int i;
7062 int
7063 main ()
7064 {
7065
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 if ac_fn_c_try_link "$LINENO"; then :
7071 eval $cacheid=yes
7072 else
7073 eval $cacheid=no
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext \
7076 conftest$ac_exeext conftest.$ac_ext
7077 fi
7078
7079
7080 CFLAGS="$xorg_testset_save_CFLAGS"
7081
7082 eval supported=\$$cacheid
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7084 $as_echo "$supported" >&6; }
7085 if test "$supported" = "yes" ; then
7086 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7087 found="yes"
7088 fi
7089 fi
7090
7091 if test $found = "no" ; then
7092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094 fi
7095
7096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7098 fi
7099
7100 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7101
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7103 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7104 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7105 if eval \${$cacheid+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 int i;
7111 int
7112 main ()
7113 {
7114
7115 ;
7116 return 0;
7117 }
7118 _ACEOF
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 eval $cacheid=yes
7121 else
7122 eval $cacheid=no
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 fi
7127
7128
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130
7131 eval supported=\$$cacheid
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7133 $as_echo "$supported" >&6; }
7134 if test "$supported" = "yes" ; then
7135 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7136 found="yes"
7137 fi
7138 fi
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154 xorg_testset_save_CFLAGS="$CFLAGS"
7155
7156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 int i;
7166 _ACEOF
7167 if ac_fn_c_try_compile "$LINENO"; then :
7168 xorg_cv_cc_flag_unknown_warning_option=yes
7169 else
7170 xorg_cv_cc_flag_unknown_warning_option=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7177 CFLAGS="$xorg_testset_save_CFLAGS"
7178 fi
7179
7180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183 fi
7184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int i;
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 xorg_cv_cc_flag_unused_command_line_argument=yes
7196 else
7197 xorg_cv_cc_flag_unused_command_line_argument=no
7198 fi
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7204 CFLAGS="$xorg_testset_save_CFLAGS"
7205 fi
7206
7207 found="no"
7208
7209 if test $found = "no" ; then
7210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7212 fi
7213
7214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216 fi
7217
7218 CFLAGS="$CFLAGS -Werror=nonnull"
7219
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7221 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7222 cacheid=xorg_cv_cc_flag__Werror_nonnull
7223 if eval \${$cacheid+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 int i;
7229 int
7230 main ()
7231 {
7232
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 eval $cacheid=yes
7239 else
7240 eval $cacheid=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 fi
7245
7246
7247 CFLAGS="$xorg_testset_save_CFLAGS"
7248
7249 eval supported=\$$cacheid
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7251 $as_echo "$supported" >&6; }
7252 if test "$supported" = "yes" ; then
7253 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7254 found="yes"
7255 fi
7256 fi
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272 xorg_testset_save_CFLAGS="$CFLAGS"
7273
7274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 int i;
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 xorg_cv_cc_flag_unknown_warning_option=yes
7287 else
7288 xorg_cv_cc_flag_unknown_warning_option=no
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7295 CFLAGS="$xorg_testset_save_CFLAGS"
7296 fi
7297
7298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301 fi
7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 int i;
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 xorg_cv_cc_flag_unused_command_line_argument=yes
7314 else
7315 xorg_cv_cc_flag_unused_command_line_argument=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7322 CFLAGS="$xorg_testset_save_CFLAGS"
7323 fi
7324
7325 found="no"
7326
7327 if test $found = "no" ; then
7328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7330 fi
7331
7332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7334 fi
7335
7336 CFLAGS="$CFLAGS -Werror=init-self"
7337
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7339 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7340 cacheid=xorg_cv_cc_flag__Werror_init_self
7341 if eval \${$cacheid+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 int i;
7347 int
7348 main ()
7349 {
7350
7351 ;
7352 return 0;
7353 }
7354 _ACEOF
7355 if ac_fn_c_try_link "$LINENO"; then :
7356 eval $cacheid=yes
7357 else
7358 eval $cacheid=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext \
7361 conftest$ac_exeext conftest.$ac_ext
7362 fi
7363
7364
7365 CFLAGS="$xorg_testset_save_CFLAGS"
7366
7367 eval supported=\$$cacheid
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7369 $as_echo "$supported" >&6; }
7370 if test "$supported" = "yes" ; then
7371 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7372 found="yes"
7373 fi
7374 fi
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 xorg_testset_save_CFLAGS="$CFLAGS"
7391
7392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 int i;
7402 _ACEOF
7403 if ac_fn_c_try_compile "$LINENO"; then :
7404 xorg_cv_cc_flag_unknown_warning_option=yes
7405 else
7406 xorg_cv_cc_flag_unknown_warning_option=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7413 CFLAGS="$xorg_testset_save_CFLAGS"
7414 fi
7415
7416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419 fi
7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 xorg_cv_cc_flag_unused_command_line_argument=yes
7432 else
7433 xorg_cv_cc_flag_unused_command_line_argument=no
7434 fi
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7440 CFLAGS="$xorg_testset_save_CFLAGS"
7441 fi
7442
7443 found="no"
7444
7445 if test $found = "no" ; then
7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7448 fi
7449
7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7452 fi
7453
7454 CFLAGS="$CFLAGS -Werror=main"
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7457 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7458 cacheid=xorg_cv_cc_flag__Werror_main
7459 if eval \${$cacheid+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 int i;
7465 int
7466 main ()
7467 {
7468
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 eval $cacheid=yes
7475 else
7476 eval $cacheid=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 fi
7481
7482
7483 CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485 eval supported=\$$cacheid
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7487 $as_echo "$supported" >&6; }
7488 if test "$supported" = "yes" ; then
7489 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7490 found="yes"
7491 fi
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508 xorg_testset_save_CFLAGS="$CFLAGS"
7509
7510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 int i;
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"; then :
7522 xorg_cv_cc_flag_unknown_warning_option=yes
7523 else
7524 xorg_cv_cc_flag_unknown_warning_option=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7531 CFLAGS="$xorg_testset_save_CFLAGS"
7532 fi
7533
7534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537 fi
7538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 int i;
7547 _ACEOF
7548 if ac_fn_c_try_compile "$LINENO"; then :
7549 xorg_cv_cc_flag_unused_command_line_argument=yes
7550 else
7551 xorg_cv_cc_flag_unused_command_line_argument=no
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7558 CFLAGS="$xorg_testset_save_CFLAGS"
7559 fi
7560
7561 found="no"
7562
7563 if test $found = "no" ; then
7564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7566 fi
7567
7568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7570 fi
7571
7572 CFLAGS="$CFLAGS -Werror=missing-braces"
7573
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7575 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7576 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7577 if eval \${$cacheid+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 int i;
7583 int
7584 main ()
7585 {
7586
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 if ac_fn_c_try_link "$LINENO"; then :
7592 eval $cacheid=yes
7593 else
7594 eval $cacheid=no
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 fi
7599
7600
7601 CFLAGS="$xorg_testset_save_CFLAGS"
7602
7603 eval supported=\$$cacheid
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7605 $as_echo "$supported" >&6; }
7606 if test "$supported" = "yes" ; then
7607 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7608 found="yes"
7609 fi
7610 fi
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 xorg_testset_save_CFLAGS="$CFLAGS"
7627
7628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 int i;
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 xorg_cv_cc_flag_unknown_warning_option=yes
7641 else
7642 xorg_cv_cc_flag_unknown_warning_option=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7649 CFLAGS="$xorg_testset_save_CFLAGS"
7650 fi
7651
7652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655 fi
7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 int i;
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 xorg_cv_cc_flag_unused_command_line_argument=yes
7668 else
7669 xorg_cv_cc_flag_unused_command_line_argument=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7676 CFLAGS="$xorg_testset_save_CFLAGS"
7677 fi
7678
7679 found="no"
7680
7681 if test $found = "no" ; then
7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684 fi
7685
7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688 fi
7689
7690 CFLAGS="$CFLAGS -Werror=sequence-point"
7691
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7693 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7694 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7695 if eval \${$cacheid+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 int i;
7701 int
7702 main ()
7703 {
7704
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 if ac_fn_c_try_link "$LINENO"; then :
7710 eval $cacheid=yes
7711 else
7712 eval $cacheid=no
7713 fi
7714 rm -f core conftest.err conftest.$ac_objext \
7715 conftest$ac_exeext conftest.$ac_ext
7716 fi
7717
7718
7719 CFLAGS="$xorg_testset_save_CFLAGS"
7720
7721 eval supported=\$$cacheid
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7723 $as_echo "$supported" >&6; }
7724 if test "$supported" = "yes" ; then
7725 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7726 found="yes"
7727 fi
7728 fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744 xorg_testset_save_CFLAGS="$CFLAGS"
7745
7746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 int i;
7756 _ACEOF
7757 if ac_fn_c_try_compile "$LINENO"; then :
7758 xorg_cv_cc_flag_unknown_warning_option=yes
7759 else
7760 xorg_cv_cc_flag_unknown_warning_option=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768 fi
7769
7770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773 fi
7774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785 xorg_cv_cc_flag_unused_command_line_argument=yes
7786 else
7787 xorg_cv_cc_flag_unused_command_line_argument=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7794 CFLAGS="$xorg_testset_save_CFLAGS"
7795 fi
7796
7797 found="no"
7798
7799 if test $found = "no" ; then
7800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802 fi
7803
7804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806 fi
7807
7808 CFLAGS="$CFLAGS -Werror=return-type"
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7811 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7812 cacheid=xorg_cv_cc_flag__Werror_return_type
7813 if eval \${$cacheid+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 int i;
7819 int
7820 main ()
7821 {
7822
7823 ;
7824 return 0;
7825 }
7826 _ACEOF
7827 if ac_fn_c_try_link "$LINENO"; then :
7828 eval $cacheid=yes
7829 else
7830 eval $cacheid=no
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 fi
7835
7836
7837 CFLAGS="$xorg_testset_save_CFLAGS"
7838
7839 eval supported=\$$cacheid
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7841 $as_echo "$supported" >&6; }
7842 if test "$supported" = "yes" ; then
7843 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7844 found="yes"
7845 fi
7846 fi
7847
7848 if test $found = "no" ; then
7849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7851 fi
7852
7853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855 fi
7856
7857 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7860 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7861 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7862 if eval \${$cacheid+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 int i;
7868 int
7869 main ()
7870 {
7871
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 eval $cacheid=yes
7878 else
7879 eval $cacheid=no
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 fi
7884
7885
7886 CFLAGS="$xorg_testset_save_CFLAGS"
7887
7888 eval supported=\$$cacheid
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7890 $as_echo "$supported" >&6; }
7891 if test "$supported" = "yes" ; then
7892 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7893 found="yes"
7894 fi
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 xorg_testset_save_CFLAGS="$CFLAGS"
7912
7913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 int i;
7923 _ACEOF
7924 if ac_fn_c_try_compile "$LINENO"; then :
7925 xorg_cv_cc_flag_unknown_warning_option=yes
7926 else
7927 xorg_cv_cc_flag_unknown_warning_option=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7934 CFLAGS="$xorg_testset_save_CFLAGS"
7935 fi
7936
7937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940 fi
7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 _ACEOF
7951 if ac_fn_c_try_compile "$LINENO"; then :
7952 xorg_cv_cc_flag_unused_command_line_argument=yes
7953 else
7954 xorg_cv_cc_flag_unused_command_line_argument=no
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7961 CFLAGS="$xorg_testset_save_CFLAGS"
7962 fi
7963
7964 found="no"
7965
7966 if test $found = "no" ; then
7967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969 fi
7970
7971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 fi
7974
7975 CFLAGS="$CFLAGS -Werror=trigraphs"
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7978 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7979 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7980 if eval \${$cacheid+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 int i;
7986 int
7987 main ()
7988 {
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 if ac_fn_c_try_link "$LINENO"; then :
7995 eval $cacheid=yes
7996 else
7997 eval $cacheid=no
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 fi
8002
8003
8004 CFLAGS="$xorg_testset_save_CFLAGS"
8005
8006 eval supported=\$$cacheid
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8008 $as_echo "$supported" >&6; }
8009 if test "$supported" = "yes" ; then
8010 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8011 found="yes"
8012 fi
8013 fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 xorg_testset_save_CFLAGS="$CFLAGS"
8030
8031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 int i;
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 xorg_cv_cc_flag_unknown_warning_option=yes
8044 else
8045 xorg_cv_cc_flag_unknown_warning_option=no
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053 fi
8054
8055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058 fi
8059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 int i;
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070 xorg_cv_cc_flag_unused_command_line_argument=yes
8071 else
8072 xorg_cv_cc_flag_unused_command_line_argument=no
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079 CFLAGS="$xorg_testset_save_CFLAGS"
8080 fi
8081
8082 found="no"
8083
8084 if test $found = "no" ; then
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 fi
8088
8089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091 fi
8092
8093 CFLAGS="$CFLAGS -Werror=array-bounds"
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8096 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8097 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8098 if eval \${$cacheid+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 int i;
8104 int
8105 main ()
8106 {
8107
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_link "$LINENO"; then :
8113 eval $cacheid=yes
8114 else
8115 eval $cacheid=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 fi
8120
8121
8122 CFLAGS="$xorg_testset_save_CFLAGS"
8123
8124 eval supported=\$$cacheid
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126 $as_echo "$supported" >&6; }
8127 if test "$supported" = "yes" ; then
8128 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8129 found="yes"
8130 fi
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 xorg_testset_save_CFLAGS="$CFLAGS"
8148
8149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 int i;
8159 _ACEOF
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 xorg_cv_cc_flag_unknown_warning_option=yes
8162 else
8163 xorg_cv_cc_flag_unknown_warning_option=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171 fi
8172
8173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176 fi
8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 int i;
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 xorg_cv_cc_flag_unused_command_line_argument=yes
8189 else
8190 xorg_cv_cc_flag_unused_command_line_argument=no
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8197 CFLAGS="$xorg_testset_save_CFLAGS"
8198 fi
8199
8200 found="no"
8201
8202 if test $found = "no" ; then
8203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8205 fi
8206
8207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8209 fi
8210
8211 CFLAGS="$CFLAGS -Werror=write-strings"
8212
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8214 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8215 cacheid=xorg_cv_cc_flag__Werror_write_strings
8216 if eval \${$cacheid+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 int i;
8222 int
8223 main ()
8224 {
8225
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 eval $cacheid=yes
8232 else
8233 eval $cacheid=no
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237 fi
8238
8239
8240 CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242 eval supported=\$$cacheid
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244 $as_echo "$supported" >&6; }
8245 if test "$supported" = "yes" ; then
8246 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8247 found="yes"
8248 fi
8249 fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265 xorg_testset_save_CFLAGS="$CFLAGS"
8266
8267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8276 int i;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 xorg_cv_cc_flag_unknown_warning_option=yes
8280 else
8281 xorg_cv_cc_flag_unknown_warning_option=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8288 CFLAGS="$xorg_testset_save_CFLAGS"
8289 fi
8290
8291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294 fi
8295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 int i;
8304 _ACEOF
8305 if ac_fn_c_try_compile "$LINENO"; then :
8306 xorg_cv_cc_flag_unused_command_line_argument=yes
8307 else
8308 xorg_cv_cc_flag_unused_command_line_argument=no
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8315 CFLAGS="$xorg_testset_save_CFLAGS"
8316 fi
8317
8318 found="no"
8319
8320 if test $found = "no" ; then
8321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8323 fi
8324
8325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8327 fi
8328
8329 CFLAGS="$CFLAGS -Werror=address"
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8332 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8333 cacheid=xorg_cv_cc_flag__Werror_address
8334 if eval \${$cacheid+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 int i;
8340 int
8341 main ()
8342 {
8343
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 eval $cacheid=yes
8350 else
8351 eval $cacheid=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 fi
8356
8357
8358 CFLAGS="$xorg_testset_save_CFLAGS"
8359
8360 eval supported=\$$cacheid
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8362 $as_echo "$supported" >&6; }
8363 if test "$supported" = "yes" ; then
8364 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8365 found="yes"
8366 fi
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 xorg_testset_save_CFLAGS="$CFLAGS"
8384
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 int i;
8395 _ACEOF
8396 if ac_fn_c_try_compile "$LINENO"; then :
8397 xorg_cv_cc_flag_unknown_warning_option=yes
8398 else
8399 xorg_cv_cc_flag_unknown_warning_option=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8406 CFLAGS="$xorg_testset_save_CFLAGS"
8407 fi
8408
8409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412 fi
8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int i;
8422 _ACEOF
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 xorg_cv_cc_flag_unused_command_line_argument=yes
8425 else
8426 xorg_cv_cc_flag_unused_command_line_argument=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8433 CFLAGS="$xorg_testset_save_CFLAGS"
8434 fi
8435
8436 found="no"
8437
8438 if test $found = "no" ; then
8439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8441 fi
8442
8443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8445 fi
8446
8447 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8450 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8451 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8452 if eval \${$cacheid+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 int i;
8458 int
8459 main ()
8460 {
8461
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 if ac_fn_c_try_link "$LINENO"; then :
8467 eval $cacheid=yes
8468 else
8469 eval $cacheid=no
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 fi
8474
8475
8476 CFLAGS="$xorg_testset_save_CFLAGS"
8477
8478 eval supported=\$$cacheid
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8480 $as_echo "$supported" >&6; }
8481 if test "$supported" = "yes" ; then
8482 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8483 found="yes"
8484 fi
8485 fi
8486
8487 if test $found = "no" ; then
8488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490 fi
8491
8492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8494 fi
8495
8496 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8497
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8499 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8500 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8501 if eval \${$cacheid+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int i;
8507 int
8508 main ()
8509 {
8510
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_link "$LINENO"; then :
8516 eval $cacheid=yes
8517 else
8518 eval $cacheid=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 fi
8523
8524
8525 CFLAGS="$xorg_testset_save_CFLAGS"
8526
8527 eval supported=\$$cacheid
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8529 $as_echo "$supported" >&6; }
8530 if test "$supported" = "yes" ; then
8531 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8532 found="yes"
8533 fi
8534 fi
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550 xorg_testset_save_CFLAGS="$CFLAGS"
8551
8552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 int i;
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 xorg_cv_cc_flag_unknown_warning_option=yes
8565 else
8566 xorg_cv_cc_flag_unknown_warning_option=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8573 CFLAGS="$xorg_testset_save_CFLAGS"
8574 fi
8575
8576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579 fi
8580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 int i;
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591 xorg_cv_cc_flag_unused_command_line_argument=yes
8592 else
8593 xorg_cv_cc_flag_unused_command_line_argument=no
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8600 CFLAGS="$xorg_testset_save_CFLAGS"
8601 fi
8602
8603 found="no"
8604
8605 if test $found = "no" ; then
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 fi
8609
8610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8612 fi
8613
8614 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8615
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8617 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8618 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8619 if eval \${$cacheid+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 int
8626 main ()
8627 {
8628
8629 ;
8630 return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_link "$LINENO"; then :
8634 eval $cacheid=yes
8635 else
8636 eval $cacheid=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 fi
8641
8642
8643 CFLAGS="$xorg_testset_save_CFLAGS"
8644
8645 eval supported=\$$cacheid
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8647 $as_echo "$supported" >&6; }
8648 if test "$supported" = "yes" ; then
8649 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8650 found="yes"
8651 fi
8652 fi
8653
8654 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8655 else
8656 { $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
8657 $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;}
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 xorg_testset_save_CFLAGS="$CFLAGS"
8672
8673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 int i;
8683 _ACEOF
8684 if ac_fn_c_try_compile "$LINENO"; then :
8685 xorg_cv_cc_flag_unknown_warning_option=yes
8686 else
8687 xorg_cv_cc_flag_unknown_warning_option=no
8688 fi
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8694 CFLAGS="$xorg_testset_save_CFLAGS"
8695 fi
8696
8697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700 fi
8701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706 else
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 int i;
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 xorg_cv_cc_flag_unused_command_line_argument=yes
8713 else
8714 xorg_cv_cc_flag_unused_command_line_argument=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8721 CFLAGS="$xorg_testset_save_CFLAGS"
8722 fi
8723
8724 found="no"
8725
8726 if test $found = "no" ; then
8727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729 fi
8730
8731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8733 fi
8734
8735 CFLAGS="$CFLAGS -Wimplicit"
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8738 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8739 cacheid=xorg_cv_cc_flag__Wimplicit
8740 if eval \${$cacheid+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 int i;
8746 int
8747 main ()
8748 {
8749
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755 eval $cacheid=yes
8756 else
8757 eval $cacheid=no
8758 fi
8759 rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext conftest.$ac_ext
8761 fi
8762
8763
8764 CFLAGS="$xorg_testset_save_CFLAGS"
8765
8766 eval supported=\$$cacheid
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8768 $as_echo "$supported" >&6; }
8769 if test "$supported" = "yes" ; then
8770 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8771 found="yes"
8772 fi
8773 fi
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789 xorg_testset_save_CFLAGS="$CFLAGS"
8790
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8800 int i;
8801 _ACEOF
8802 if ac_fn_c_try_compile "$LINENO"; then :
8803 xorg_cv_cc_flag_unknown_warning_option=yes
8804 else
8805 xorg_cv_cc_flag_unknown_warning_option=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8812 CFLAGS="$xorg_testset_save_CFLAGS"
8813 fi
8814
8815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 fi
8819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 int i;
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 xorg_cv_cc_flag_unused_command_line_argument=yes
8831 else
8832 xorg_cv_cc_flag_unused_command_line_argument=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840 fi
8841
8842 found="no"
8843
8844 if test $found = "no" ; then
8845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847 fi
8848
8849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8851 fi
8852
8853 CFLAGS="$CFLAGS -Wnonnull"
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8856 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8857 cacheid=xorg_cv_cc_flag__Wnonnull
8858 if eval \${$cacheid+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 int i;
8864 int
8865 main ()
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 eval $cacheid=yes
8874 else
8875 eval $cacheid=no
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 fi
8880
8881
8882 CFLAGS="$xorg_testset_save_CFLAGS"
8883
8884 eval supported=\$$cacheid
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8886 $as_echo "$supported" >&6; }
8887 if test "$supported" = "yes" ; then
8888 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8889 found="yes"
8890 fi
8891 fi
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907 xorg_testset_save_CFLAGS="$CFLAGS"
8908
8909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 int i;
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921 xorg_cv_cc_flag_unknown_warning_option=yes
8922 else
8923 xorg_cv_cc_flag_unknown_warning_option=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8930 CFLAGS="$xorg_testset_save_CFLAGS"
8931 fi
8932
8933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936 fi
8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"; then :
8948 xorg_cv_cc_flag_unused_command_line_argument=yes
8949 else
8950 xorg_cv_cc_flag_unused_command_line_argument=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8957 CFLAGS="$xorg_testset_save_CFLAGS"
8958 fi
8959
8960 found="no"
8961
8962 if test $found = "no" ; then
8963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965 fi
8966
8967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8969 fi
8970
8971 CFLAGS="$CFLAGS -Winit-self"
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8974 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8975 cacheid=xorg_cv_cc_flag__Winit_self
8976 if eval \${$cacheid+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 int i;
8982 int
8983 main ()
8984 {
8985
8986 ;
8987 return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991 eval $cacheid=yes
8992 else
8993 eval $cacheid=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 fi
8998
8999
9000 CFLAGS="$xorg_testset_save_CFLAGS"
9001
9002 eval supported=\$$cacheid
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9004 $as_echo "$supported" >&6; }
9005 if test "$supported" = "yes" ; then
9006 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9007 found="yes"
9008 fi
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025 xorg_testset_save_CFLAGS="$CFLAGS"
9026
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 int i;
9037 _ACEOF
9038 if ac_fn_c_try_compile "$LINENO"; then :
9039 xorg_cv_cc_flag_unknown_warning_option=yes
9040 else
9041 xorg_cv_cc_flag_unknown_warning_option=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049 fi
9050
9051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054 fi
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9063 int i;
9064 _ACEOF
9065 if ac_fn_c_try_compile "$LINENO"; then :
9066 xorg_cv_cc_flag_unused_command_line_argument=yes
9067 else
9068 xorg_cv_cc_flag_unused_command_line_argument=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9075 CFLAGS="$xorg_testset_save_CFLAGS"
9076 fi
9077
9078 found="no"
9079
9080 if test $found = "no" ; then
9081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083 fi
9084
9085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9087 fi
9088
9089 CFLAGS="$CFLAGS -Wmain"
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9092 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9093 cacheid=xorg_cv_cc_flag__Wmain
9094 if eval \${$cacheid+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 int
9101 main ()
9102 {
9103
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 if ac_fn_c_try_link "$LINENO"; then :
9109 eval $cacheid=yes
9110 else
9111 eval $cacheid=no
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115 fi
9116
9117
9118 CFLAGS="$xorg_testset_save_CFLAGS"
9119
9120 eval supported=\$$cacheid
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9122 $as_echo "$supported" >&6; }
9123 if test "$supported" = "yes" ; then
9124 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9125 found="yes"
9126 fi
9127 fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 xorg_testset_save_CFLAGS="$CFLAGS"
9144
9145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9148 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9149 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 int i;
9155 _ACEOF
9156 if ac_fn_c_try_compile "$LINENO"; then :
9157 xorg_cv_cc_flag_unknown_warning_option=yes
9158 else
9159 xorg_cv_cc_flag_unknown_warning_option=no
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9164 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9167 fi
9168
9169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172 fi
9173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9175 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9176 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 int i;
9182 _ACEOF
9183 if ac_fn_c_try_compile "$LINENO"; then :
9184 xorg_cv_cc_flag_unused_command_line_argument=yes
9185 else
9186 xorg_cv_cc_flag_unused_command_line_argument=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 fi
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9191 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9193 CFLAGS="$xorg_testset_save_CFLAGS"
9194 fi
9195
9196 found="no"
9197
9198 if test $found = "no" ; then
9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201 fi
9202
9203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205 fi
9206
9207 CFLAGS="$CFLAGS -Wmissing-braces"
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9210 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9211 cacheid=xorg_cv_cc_flag__Wmissing_braces
9212 if eval \${$cacheid+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 int i;
9218 int
9219 main ()
9220 {
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 if ac_fn_c_try_link "$LINENO"; then :
9227 eval $cacheid=yes
9228 else
9229 eval $cacheid=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 fi
9234
9235
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237
9238 eval supported=\$$cacheid
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9240 $as_echo "$supported" >&6; }
9241 if test "$supported" = "yes" ; then
9242 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9243 found="yes"
9244 fi
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261 xorg_testset_save_CFLAGS="$CFLAGS"
9262
9263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 int i;
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"; then :
9275 xorg_cv_cc_flag_unknown_warning_option=yes
9276 else
9277 xorg_cv_cc_flag_unknown_warning_option=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285 fi
9286
9287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290 fi
9291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 int i;
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302 xorg_cv_cc_flag_unused_command_line_argument=yes
9303 else
9304 xorg_cv_cc_flag_unused_command_line_argument=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312 fi
9313
9314 found="no"
9315
9316 if test $found = "no" ; then
9317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 fi
9320
9321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323 fi
9324
9325 CFLAGS="$CFLAGS -Wsequence-point"
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9328 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9329 cacheid=xorg_cv_cc_flag__Wsequence_point
9330 if eval \${$cacheid+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 int i;
9336 int
9337 main ()
9338 {
9339
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 eval $cacheid=yes
9346 else
9347 eval $cacheid=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 fi
9352
9353
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355
9356 eval supported=\$$cacheid
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9358 $as_echo "$supported" >&6; }
9359 if test "$supported" = "yes" ; then
9360 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9361 found="yes"
9362 fi
9363 fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379 xorg_testset_save_CFLAGS="$CFLAGS"
9380
9381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 int i;
9391 _ACEOF
9392 if ac_fn_c_try_compile "$LINENO"; then :
9393 xorg_cv_cc_flag_unknown_warning_option=yes
9394 else
9395 xorg_cv_cc_flag_unknown_warning_option=no
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9402 CFLAGS="$xorg_testset_save_CFLAGS"
9403 fi
9404
9405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408 fi
9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 int i;
9418 _ACEOF
9419 if ac_fn_c_try_compile "$LINENO"; then :
9420 xorg_cv_cc_flag_unused_command_line_argument=yes
9421 else
9422 xorg_cv_cc_flag_unused_command_line_argument=no
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9429 CFLAGS="$xorg_testset_save_CFLAGS"
9430 fi
9431
9432 found="no"
9433
9434 if test $found = "no" ; then
9435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 fi
9438
9439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9441 fi
9442
9443 CFLAGS="$CFLAGS -Wreturn-type"
9444
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9446 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9447 cacheid=xorg_cv_cc_flag__Wreturn_type
9448 if eval \${$cacheid+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 int i;
9454 int
9455 main ()
9456 {
9457
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_link "$LINENO"; then :
9463 eval $cacheid=yes
9464 else
9465 eval $cacheid=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 fi
9470
9471
9472 CFLAGS="$xorg_testset_save_CFLAGS"
9473
9474 eval supported=\$$cacheid
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9476 $as_echo "$supported" >&6; }
9477 if test "$supported" = "yes" ; then
9478 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9479 found="yes"
9480 fi
9481 fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 xorg_testset_save_CFLAGS="$CFLAGS"
9498
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 int i;
9509 _ACEOF
9510 if ac_fn_c_try_compile "$LINENO"; then :
9511 xorg_cv_cc_flag_unknown_warning_option=yes
9512 else
9513 xorg_cv_cc_flag_unknown_warning_option=no
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9520 CFLAGS="$xorg_testset_save_CFLAGS"
9521 fi
9522
9523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 fi
9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 int i;
9536 _ACEOF
9537 if ac_fn_c_try_compile "$LINENO"; then :
9538 xorg_cv_cc_flag_unused_command_line_argument=yes
9539 else
9540 xorg_cv_cc_flag_unused_command_line_argument=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548 fi
9549
9550 found="no"
9551
9552 if test $found = "no" ; then
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 fi
9556
9557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559 fi
9560
9561 CFLAGS="$CFLAGS -Wtrigraphs"
9562
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9564 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9565 cacheid=xorg_cv_cc_flag__Wtrigraphs
9566 if eval \${$cacheid+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int i;
9572 int
9573 main ()
9574 {
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 eval $cacheid=yes
9582 else
9583 eval $cacheid=no
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 fi
9588
9589
9590 CFLAGS="$xorg_testset_save_CFLAGS"
9591
9592 eval supported=\$$cacheid
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9594 $as_echo "$supported" >&6; }
9595 if test "$supported" = "yes" ; then
9596 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9597 found="yes"
9598 fi
9599 fi
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615 xorg_testset_save_CFLAGS="$CFLAGS"
9616
9617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 int i;
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"; then :
9629 xorg_cv_cc_flag_unknown_warning_option=yes
9630 else
9631 xorg_cv_cc_flag_unknown_warning_option=no
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9638 CFLAGS="$xorg_testset_save_CFLAGS"
9639 fi
9640
9641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644 fi
9645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 int i;
9654 _ACEOF
9655 if ac_fn_c_try_compile "$LINENO"; then :
9656 xorg_cv_cc_flag_unused_command_line_argument=yes
9657 else
9658 xorg_cv_cc_flag_unused_command_line_argument=no
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9666 fi
9667
9668 found="no"
9669
9670 if test $found = "no" ; then
9671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673 fi
9674
9675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9677 fi
9678
9679 CFLAGS="$CFLAGS -Warray-bounds"
9680
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9682 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9683 cacheid=xorg_cv_cc_flag__Warray_bounds
9684 if eval \${$cacheid+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 int
9691 main ()
9692 {
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9699 eval $cacheid=yes
9700 else
9701 eval $cacheid=no
9702 fi
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 fi
9706
9707
9708 CFLAGS="$xorg_testset_save_CFLAGS"
9709
9710 eval supported=\$$cacheid
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9712 $as_echo "$supported" >&6; }
9713 if test "$supported" = "yes" ; then
9714 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9715 found="yes"
9716 fi
9717 fi
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733 xorg_testset_save_CFLAGS="$CFLAGS"
9734
9735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 int i;
9745 _ACEOF
9746 if ac_fn_c_try_compile "$LINENO"; then :
9747 xorg_cv_cc_flag_unknown_warning_option=yes
9748 else
9749 xorg_cv_cc_flag_unknown_warning_option=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9756 CFLAGS="$xorg_testset_save_CFLAGS"
9757 fi
9758
9759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 fi
9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int i;
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 xorg_cv_cc_flag_unused_command_line_argument=yes
9775 else
9776 xorg_cv_cc_flag_unused_command_line_argument=no
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9783 CFLAGS="$xorg_testset_save_CFLAGS"
9784 fi
9785
9786 found="no"
9787
9788 if test $found = "no" ; then
9789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9791 fi
9792
9793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9795 fi
9796
9797 CFLAGS="$CFLAGS -Wwrite-strings"
9798
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9800 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9801 cacheid=xorg_cv_cc_flag__Wwrite_strings
9802 if eval \${$cacheid+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 int i;
9808 int
9809 main ()
9810 {
9811
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 eval $cacheid=yes
9818 else
9819 eval $cacheid=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 fi
9824
9825
9826 CFLAGS="$xorg_testset_save_CFLAGS"
9827
9828 eval supported=\$$cacheid
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9830 $as_echo "$supported" >&6; }
9831 if test "$supported" = "yes" ; then
9832 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9833 found="yes"
9834 fi
9835 fi
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851 xorg_testset_save_CFLAGS="$CFLAGS"
9852
9853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9856 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9857 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 int i;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865 xorg_cv_cc_flag_unknown_warning_option=yes
9866 else
9867 xorg_cv_cc_flag_unknown_warning_option=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9872 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9874 CFLAGS="$xorg_testset_save_CFLAGS"
9875 fi
9876
9877 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880 fi
9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9883 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9884 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 int i;
9890 _ACEOF
9891 if ac_fn_c_try_compile "$LINENO"; then :
9892 xorg_cv_cc_flag_unused_command_line_argument=yes
9893 else
9894 xorg_cv_cc_flag_unused_command_line_argument=no
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9899 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9901 CFLAGS="$xorg_testset_save_CFLAGS"
9902 fi
9903
9904 found="no"
9905
9906 if test $found = "no" ; then
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 fi
9910
9911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9913 fi
9914
9915 CFLAGS="$CFLAGS -Waddress"
9916
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9918 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9919 cacheid=xorg_cv_cc_flag__Waddress
9920 if eval \${$cacheid+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 int i;
9926 int
9927 main ()
9928 {
9929
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"; then :
9935 eval $cacheid=yes
9936 else
9937 eval $cacheid=no
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 fi
9942
9943
9944 CFLAGS="$xorg_testset_save_CFLAGS"
9945
9946 eval supported=\$$cacheid
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9948 $as_echo "$supported" >&6; }
9949 if test "$supported" = "yes" ; then
9950 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9951 found="yes"
9952 fi
9953 fi
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969 xorg_testset_save_CFLAGS="$CFLAGS"
9970
9971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9974 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9975 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 int i;
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"; then :
9983 xorg_cv_cc_flag_unknown_warning_option=yes
9984 else
9985 xorg_cv_cc_flag_unknown_warning_option=no
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 fi
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9990 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9992 CFLAGS="$xorg_testset_save_CFLAGS"
9993 fi
9994
9995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9998 fi
9999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10001 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10002 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 int i;
10008 _ACEOF
10009 if ac_fn_c_try_compile "$LINENO"; then :
10010 xorg_cv_cc_flag_unused_command_line_argument=yes
10011 else
10012 xorg_cv_cc_flag_unused_command_line_argument=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10017 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10019 CFLAGS="$xorg_testset_save_CFLAGS"
10020 fi
10021
10022 found="no"
10023
10024 if test $found = "no" ; then
10025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10027 fi
10028
10029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10031 fi
10032
10033 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10034
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10036 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10037 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10038 if eval \${$cacheid+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 int i;
10044 int
10045 main ()
10046 {
10047
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10053 eval $cacheid=yes
10054 else
10055 eval $cacheid=no
10056 fi
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 fi
10060
10061
10062 CFLAGS="$xorg_testset_save_CFLAGS"
10063
10064 eval supported=\$$cacheid
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10066 $as_echo "$supported" >&6; }
10067 if test "$supported" = "yes" ; then
10068 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10069 found="yes"
10070 fi
10071 fi
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087 xorg_testset_save_CFLAGS="$CFLAGS"
10088
10089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 int i;
10099 _ACEOF
10100 if ac_fn_c_try_compile "$LINENO"; then :
10101 xorg_cv_cc_flag_unknown_warning_option=yes
10102 else
10103 xorg_cv_cc_flag_unknown_warning_option=no
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10111 fi
10112
10113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116 fi
10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int i;
10126 _ACEOF
10127 if ac_fn_c_try_compile "$LINENO"; then :
10128 xorg_cv_cc_flag_unused_command_line_argument=yes
10129 else
10130 xorg_cv_cc_flag_unused_command_line_argument=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10137 CFLAGS="$xorg_testset_save_CFLAGS"
10138 fi
10139
10140 found="no"
10141
10142 if test $found = "no" ; then
10143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10145 fi
10146
10147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10149 fi
10150
10151 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10154 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10155 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10156 if eval \${$cacheid+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 int i;
10162 int
10163 main ()
10164 {
10165
10166 ;
10167 return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171 eval $cacheid=yes
10172 else
10173 eval $cacheid=no
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 fi
10178
10179
10180 CFLAGS="$xorg_testset_save_CFLAGS"
10181
10182 eval supported=\$$cacheid
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10184 $as_echo "$supported" >&6; }
10185 if test "$supported" = "yes" ; then
10186 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10187 found="yes"
10188 fi
10189 fi
10190
10191
10192 fi
10193
10194
10195
10196
10197
10198
10199
10200 CWARNFLAGS="$BASE_CFLAGS"
10201 if test "x$GCC" = xyes ; then
10202 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10203 fi
10204
10205
10206
10207
10208
10209
10210
10211
10212 # Check whether --enable-strict-compilation was given.
10213 if test "${enable_strict_compilation+set}" = set; then :
10214 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10215 else
10216 STRICT_COMPILE=no
10217 fi
10218
10219
10220
10221
10222
10223
10224 STRICT_CFLAGS=""
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238 xorg_testset_save_CFLAGS="$CFLAGS"
10239
10240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249 int i;
10250 _ACEOF
10251 if ac_fn_c_try_compile "$LINENO"; then :
10252 xorg_cv_cc_flag_unknown_warning_option=yes
10253 else
10254 xorg_cv_cc_flag_unknown_warning_option=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257 fi
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10261 CFLAGS="$xorg_testset_save_CFLAGS"
10262 fi
10263
10264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267 fi
10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276 int i;
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279 xorg_cv_cc_flag_unused_command_line_argument=yes
10280 else
10281 xorg_cv_cc_flag_unused_command_line_argument=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289 fi
10290
10291 found="no"
10292
10293 if test $found = "no" ; then
10294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296 fi
10297
10298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10300 fi
10301
10302 CFLAGS="$CFLAGS -pedantic"
10303
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10305 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10306 cacheid=xorg_cv_cc_flag__pedantic
10307 if eval \${$cacheid+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312 int i;
10313 int
10314 main ()
10315 {
10316
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 eval $cacheid=yes
10323 else
10324 eval $cacheid=no
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 fi
10329
10330
10331 CFLAGS="$xorg_testset_save_CFLAGS"
10332
10333 eval supported=\$$cacheid
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10335 $as_echo "$supported" >&6; }
10336 if test "$supported" = "yes" ; then
10337 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10338 found="yes"
10339 fi
10340 fi
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 xorg_testset_save_CFLAGS="$CFLAGS"
10357
10358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367 int i;
10368 _ACEOF
10369 if ac_fn_c_try_compile "$LINENO"; then :
10370 xorg_cv_cc_flag_unknown_warning_option=yes
10371 else
10372 xorg_cv_cc_flag_unknown_warning_option=no
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380 fi
10381
10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 fi
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394 int i;
10395 _ACEOF
10396 if ac_fn_c_try_compile "$LINENO"; then :
10397 xorg_cv_cc_flag_unused_command_line_argument=yes
10398 else
10399 xorg_cv_cc_flag_unused_command_line_argument=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407 fi
10408
10409 found="no"
10410
10411 if test $found = "no" ; then
10412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10414 fi
10415
10416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10418 fi
10419
10420 CFLAGS="$CFLAGS -Werror"
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10423 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10424 cacheid=xorg_cv_cc_flag__Werror
10425 if eval \${$cacheid+:} 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 int
10432 main ()
10433 {
10434
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 eval $cacheid=yes
10441 else
10442 eval $cacheid=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446 fi
10447
10448
10449 CFLAGS="$xorg_testset_save_CFLAGS"
10450
10451 eval supported=\$$cacheid
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10453 $as_echo "$supported" >&6; }
10454 if test "$supported" = "yes" ; then
10455 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10456 found="yes"
10457 fi
10458 fi
10459
10460 if test $found = "no" ; then
10461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10463 fi
10464
10465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10467 fi
10468
10469 CFLAGS="$CFLAGS -errwarn"
10470
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10472 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10473 cacheid=xorg_cv_cc_flag__errwarn
10474 if eval \${$cacheid+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 int i;
10480 int
10481 main ()
10482 {
10483
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 eval $cacheid=yes
10490 else
10491 eval $cacheid=no
10492 fi
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 fi
10496
10497
10498 CFLAGS="$xorg_testset_save_CFLAGS"
10499
10500 eval supported=\$$cacheid
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10502 $as_echo "$supported" >&6; }
10503 if test "$supported" = "yes" ; then
10504 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10505 found="yes"
10506 fi
10507 fi
10508
10509
10510
10511 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10512 # activate it with -Werror, so we add it here explicitly.
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526 xorg_testset_save_CFLAGS="$CFLAGS"
10527
10528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10531 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10532 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 int i;
10538 _ACEOF
10539 if ac_fn_c_try_compile "$LINENO"; then :
10540 xorg_cv_cc_flag_unknown_warning_option=yes
10541 else
10542 xorg_cv_cc_flag_unknown_warning_option=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10547 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10549 CFLAGS="$xorg_testset_save_CFLAGS"
10550 fi
10551
10552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10555 fi
10556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10558 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10559 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 int i;
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"; then :
10567 xorg_cv_cc_flag_unused_command_line_argument=yes
10568 else
10569 xorg_cv_cc_flag_unused_command_line_argument=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 fi
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10574 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10576 CFLAGS="$xorg_testset_save_CFLAGS"
10577 fi
10578
10579 found="no"
10580
10581 if test $found = "no" ; then
10582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10584 fi
10585
10586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10588 fi
10589
10590 CFLAGS="$CFLAGS -Werror=attributes"
10591
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10593 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10594 cacheid=xorg_cv_cc_flag__Werror_attributes
10595 if eval \${$cacheid+:} false; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600 int i;
10601 int
10602 main ()
10603 {
10604
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"; then :
10610 eval $cacheid=yes
10611 else
10612 eval $cacheid=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 fi
10617
10618
10619 CFLAGS="$xorg_testset_save_CFLAGS"
10620
10621 eval supported=\$$cacheid
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10623 $as_echo "$supported" >&6; }
10624 if test "$supported" = "yes" ; then
10625 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10626 found="yes"
10627 fi
10628 fi
10629
10630
10631
10632 if test "x$STRICT_COMPILE" = "xyes"; then
10633 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10634 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10635 fi
10636
10637
10638
10639
10640
10641
10642 cat >>confdefs.h <<_ACEOF
10643 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10644 _ACEOF
10645
10646 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10647 if test "x$PVM" = "x"; then
10648 PVM="0"
10649 fi
10650
10651 cat >>confdefs.h <<_ACEOF
10652 #define PACKAGE_VERSION_MINOR $PVM
10653 _ACEOF
10654
10655 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10656 if test "x$PVP" = "x"; then
10657 PVP="0"
10658 fi
10659
10660 cat >>confdefs.h <<_ACEOF
10661 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10662 _ACEOF
10663
10664
10665
10666 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10667 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10668 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10669 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10670
10671
10672
10673
10674 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10675 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10676 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10677 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10678 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10679
10680
10681
10682
10683
10684
10685 if test x$APP_MAN_SUFFIX = x ; then
10686 APP_MAN_SUFFIX=1
10687 fi
10688 if test x$APP_MAN_DIR = x ; then
10689 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10690 fi
10691
10692 if test x$LIB_MAN_SUFFIX = x ; then
10693 LIB_MAN_SUFFIX=3
10694 fi
10695 if test x$LIB_MAN_DIR = x ; then
10696 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10697 fi
10698
10699 if test x$FILE_MAN_SUFFIX = x ; then
10700 case $host_os in
10701 solaris*) FILE_MAN_SUFFIX=4 ;;
10702 *) FILE_MAN_SUFFIX=5 ;;
10703 esac
10704 fi
10705 if test x$FILE_MAN_DIR = x ; then
10706 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10707 fi
10708
10709 if test x$MISC_MAN_SUFFIX = x ; then
10710 case $host_os in
10711 solaris*) MISC_MAN_SUFFIX=5 ;;
10712 *) MISC_MAN_SUFFIX=7 ;;
10713 esac
10714 fi
10715 if test x$MISC_MAN_DIR = x ; then
10716 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10717 fi
10718
10719 if test x$DRIVER_MAN_SUFFIX = x ; then
10720 case $host_os in
10721 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10722 *) DRIVER_MAN_SUFFIX=4 ;;
10723 esac
10724 fi
10725 if test x$DRIVER_MAN_DIR = x ; then
10726 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10727 fi
10728
10729 if test x$ADMIN_MAN_SUFFIX = x ; then
10730 case $host_os in
10731 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10732 *) ADMIN_MAN_SUFFIX=8 ;;
10733 esac
10734 fi
10735 if test x$ADMIN_MAN_DIR = x ; then
10736 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10737 fi
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 XORG_MAN_PAGE="X Version 11"
10754
10755 MAN_SUBSTS="\
10756 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10757 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10758 -e 's|__xservername__|Xorg|g' \
10759 -e 's|__xconfigfile__|xorg.conf|g' \
10760 -e 's|__projectroot__|\$(prefix)|g' \
10761 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10762 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10763 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10764 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10765 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10766 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10767 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10768
10769
10770
10771 # Check whether --enable-silent-rules was given.
10772 if test "${enable_silent_rules+set}" = set; then :
10773 enableval=$enable_silent_rules;
10774 fi
10775
10776 case $enable_silent_rules in # (((
10777 yes) AM_DEFAULT_VERBOSITY=0;;
10778 no) AM_DEFAULT_VERBOSITY=1;;
10779 *) AM_DEFAULT_VERBOSITY=0;;
10780 esac
10781 am_make=${MAKE-make}
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10783 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10784 if ${am_cv_make_support_nested_variables+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 if $as_echo 'TRUE=$(BAR$(V))
10788 BAR0=false
10789 BAR1=true
10790 V=1
10791 am__doit:
10792 @$(TRUE)
10793 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10794 am_cv_make_support_nested_variables=yes
10795 else
10796 am_cv_make_support_nested_variables=no
10797 fi
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10800 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10801 if test $am_cv_make_support_nested_variables = yes; then
10802 AM_V='$(V)'
10803 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10804 else
10805 AM_V=$AM_DEFAULT_VERBOSITY
10806 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10807 fi
10808 AM_BACKSLASH='\'
10809
10810
10811
10812 for ac_func in asprintf mkstemp mktemp
10813 do :
10814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10816 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10817 cat >>confdefs.h <<_ACEOF
10818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 _ACEOF
10820
10821 fi
10822 done
10823
10824
10825 # Checks for pkg-config packages
10826
10827 pkg_failed=no
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5
10829 $as_echo_n "checking for SMPROXY... " >&6; }
10830
10831 if test -n "$SMPROXY_CFLAGS"; then
10832 pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS"
10833 elif test -n "$PKG_CONFIG"; then
10834 if test -n "$PKG_CONFIG" && \
10835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5
10836 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5
10837 ac_status=$?
10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10839 test $ac_status = 0; }; then
10840 pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null`
10841 else
10842 pkg_failed=yes
10843 fi
10844 else
10845 pkg_failed=untried
10846 fi
10847 if test -n "$SMPROXY_LIBS"; then
10848 pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS"
10849 elif test -n "$PKG_CONFIG"; then
10850 if test -n "$PKG_CONFIG" && \
10851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5
10852 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5
10853 ac_status=$?
10854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10855 test $ac_status = 0; }; then
10856 pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null`
10857 else
10858 pkg_failed=yes
10859 fi
10860 else
10861 pkg_failed=untried
10862 fi
10863
10864
10865
10866 if test $pkg_failed = yes; then
10867
10868 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10869 _pkg_short_errors_supported=yes
10870 else
10871 _pkg_short_errors_supported=no
10872 fi
10873 if test $_pkg_short_errors_supported = yes; then
10874 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice xt xmuu" 2>&1`
10875 else
10876 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice xt xmuu" 2>&1`
10877 fi
10878 # Put the nasty error message in config.log where it belongs
10879 echo "$SMPROXY_PKG_ERRORS" >&5
10880
10881 as_fn_error $? "Package requirements (sm ice xt xmuu) were not met:
10882
10883 $SMPROXY_PKG_ERRORS
10884
10885 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10886 installed software in a non-standard prefix.
10887
10888 Alternatively, you may set the environment variables SMPROXY_CFLAGS
10889 and SMPROXY_LIBS to avoid the need to call pkg-config.
10890 See the pkg-config man page for more details.
10891 " "$LINENO" 5
10892 elif test $pkg_failed = untried; then
10893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10895 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10896 is in your PATH or set the PKG_CONFIG environment variable to the full
10897 path to pkg-config.
10898
10899 Alternatively, you may set the environment variables SMPROXY_CFLAGS
10900 and SMPROXY_LIBS to avoid the need to call pkg-config.
10901 See the pkg-config man page for more details.
10902
10903 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10904 See \`config.log' for more details" "$LINENO" 5; }
10905 else
10906 SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS
10907 SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10909 $as_echo "yes" >&6; }
10910 :
10911 fi
10912
10913 ac_config_files="$ac_config_files Makefile man/Makefile"
10914
10915 cat >confcache <<\_ACEOF
10916 # This file is a shell script that caches the results of configure
10917 # tests run on this system so they can be shared between configure
10918 # scripts and configure runs, see configure's option --config-cache.
10919 # It is not useful on other systems. If it contains results you don't
10920 # want to keep, you may remove or edit it.
10921 #
10922 # config.status only pays attention to the cache file if you give it
10923 # the --recheck option to rerun configure.
10924 #
10925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10927 # following values.
10928
10929 _ACEOF
10930
10931 # The following way of writing the cache mishandles newlines in values,
10932 # but we know of no workaround that is simple, portable, and efficient.
10933 # So, we kill variables containing newlines.
10934 # Ultrix sh set writes to stderr and can't be redirected directly,
10935 # and sets the high bit in the cache file unless we assign to the vars.
10936 (
10937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10938 eval ac_val=\$$ac_var
10939 case $ac_val in #(
10940 *${as_nl}*)
10941 case $ac_var in #(
10942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10943 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10944 esac
10945 case $ac_var in #(
10946 _ | IFS | as_nl) ;; #(
10947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10948 *) { eval $ac_var=; unset $ac_var;} ;;
10949 esac ;;
10950 esac
10951 done
10952
10953 (set) 2>&1 |
10954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10955 *${as_nl}ac_space=\ *)
10956 # `set' does not quote correctly, so add quotes: double-quote
10957 # substitution turns \\\\ into \\, and sed turns \\ into \.
10958 sed -n \
10959 "s/'/'\\\\''/g;
10960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10961 ;; #(
10962 *)
10963 # `set' quotes correctly as required by POSIX, so do not add quotes.
10964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10965 ;;
10966 esac |
10967 sort
10968 ) |
10969 sed '
10970 /^ac_cv_env_/b end
10971 t clear
10972 :clear
10973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10974 t end
10975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10976 :end' >>confcache
10977 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10978 if test -w "$cache_file"; then
10979 if test "x$cache_file" != "x/dev/null"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10981 $as_echo "$as_me: updating cache $cache_file" >&6;}
10982 if test ! -f "$cache_file" || test -h "$cache_file"; then
10983 cat confcache >"$cache_file"
10984 else
10985 case $cache_file in #(
10986 */* | ?:*)
10987 mv -f confcache "$cache_file"$$ &&
10988 mv -f "$cache_file"$$ "$cache_file" ;; #(
10989 *)
10990 mv -f confcache "$cache_file" ;;
10991 esac
10992 fi
10993 fi
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10997 fi
10998 fi
10999 rm -f confcache
11000
11001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11002 # Let make expand exec_prefix.
11003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11004
11005 DEFS=-DHAVE_CONFIG_H
11006
11007 ac_libobjs=
11008 ac_ltlibobjs=
11009 U=
11010 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11011 # 1. Remove the extension, and $U if already installed.
11012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11015 # will be set to the directory where LIBOBJS objects are built.
11016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11018 done
11019 LIBOBJS=$ac_libobjs
11020
11021 LTLIBOBJS=$ac_ltlibobjs
11022
11023
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11025 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11026 if test -n "$am_sleep_pid"; then
11027 # Hide warnings about reused PIDs.
11028 wait $am_sleep_pid 2>/dev/null
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11031 $as_echo "done" >&6; }
11032 if test -n "$EXEEXT"; then
11033 am__EXEEXT_TRUE=
11034 am__EXEEXT_FALSE='#'
11035 else
11036 am__EXEEXT_TRUE='#'
11037 am__EXEEXT_FALSE=
11038 fi
11039
11040 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11041 as_fn_error $? "conditional \"AMDEP\" was never defined.
11042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11043 fi
11044 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11047 fi
11048
11049 : "${CONFIG_STATUS=./config.status}"
11050 ac_write_fail=0
11051 ac_clean_files_save=$ac_clean_files
11052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11054 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11055 as_write_fail=0
11056 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11057 #! $SHELL
11058 # Generated by $as_me.
11059 # Run this file to recreate the current configuration.
11060 # Compiler output produced by configure, useful for debugging
11061 # configure, is in config.log if it exists.
11062
11063 debug=false
11064 ac_cs_recheck=false
11065 ac_cs_silent=false
11066
11067 SHELL=\${CONFIG_SHELL-$SHELL}
11068 export SHELL
11069 _ASEOF
11070 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11071 ## -------------------- ##
11072 ## M4sh Initialization. ##
11073 ## -------------------- ##
11074
11075 # Be more Bourne compatible
11076 DUALCASE=1; export DUALCASE # for MKS sh
11077 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11078 emulate sh
11079 NULLCMD=:
11080 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11081 # is contrary to our usage. Disable this feature.
11082 alias -g '${1+"$@"}'='"$@"'
11083 setopt NO_GLOB_SUBST
11084 else
11085 case `(set -o) 2>/dev/null` in #(
11086 *posix*) :
11087 set -o posix ;; #(
11088 *) :
11089 ;;
11090 esac
11091 fi
11092
11093
11094 as_nl='
11095 '
11096 export as_nl
11097 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11098 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11099 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11101 # Prefer a ksh shell builtin over an external printf program on Solaris,
11102 # but without wasting forks for bash or zsh.
11103 if test -z "$BASH_VERSION$ZSH_VERSION" \
11104 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11105 as_echo='print -r --'
11106 as_echo_n='print -rn --'
11107 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11108 as_echo='printf %s\n'
11109 as_echo_n='printf %s'
11110 else
11111 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11112 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11113 as_echo_n='/usr/ucb/echo -n'
11114 else
11115 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11116 as_echo_n_body='eval
11117 arg=$1;
11118 case $arg in #(
11119 *"$as_nl"*)
11120 expr "X$arg" : "X\\(.*\\)$as_nl";
11121 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11122 esac;
11123 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11124 '
11125 export as_echo_n_body
11126 as_echo_n='sh -c $as_echo_n_body as_echo'
11127 fi
11128 export as_echo_body
11129 as_echo='sh -c $as_echo_body as_echo'
11130 fi
11131
11132 # The user is always right.
11133 if test "${PATH_SEPARATOR+set}" != set; then
11134 PATH_SEPARATOR=:
11135 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11136 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11137 PATH_SEPARATOR=';'
11138 }
11139 fi
11140
11141
11142 # IFS
11143 # We need space, tab and new line, in precisely that order. Quoting is
11144 # there to prevent editors from complaining about space-tab.
11145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11146 # splitting by setting IFS to empty value.)
11147 IFS=" "" $as_nl"
11148
11149 # Find who we are. Look in the path if we contain no directory separator.
11150 as_myself=
11151 case $0 in #((
11152 *[\\/]* ) as_myself=$0 ;;
11153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11155 do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11159 done
11160 IFS=$as_save_IFS
11161
11162 ;;
11163 esac
11164 # We did not find ourselves, most probably we were run as `sh COMMAND'
11165 # in which case we are not to be found in the path.
11166 if test "x$as_myself" = x; then
11167 as_myself=$0
11168 fi
11169 if test ! -f "$as_myself"; then
11170 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11171 exit 1
11172 fi
11173
11174 # Unset variables that we do not need and which cause bugs (e.g. in
11175 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11176 # suppresses any "Segmentation fault" message there. '((' could
11177 # trigger a bug in pdksh 5.2.14.
11178 for as_var in BASH_ENV ENV MAIL MAILPATH
11179 do eval test x\${$as_var+set} = xset \
11180 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11181 done
11182 PS1='$ '
11183 PS2='> '
11184 PS4='+ '
11185
11186 # NLS nuisances.
11187 LC_ALL=C
11188 export LC_ALL
11189 LANGUAGE=C
11190 export LANGUAGE
11191
11192 # CDPATH.
11193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11194
11195
11196 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11197 # ----------------------------------------
11198 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11199 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11200 # script with STATUS, using 1 if that was 0.
11201 as_fn_error ()
11202 {
11203 as_status=$1; test $as_status -eq 0 && as_status=1
11204 if test "$4"; then
11205 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11206 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11207 fi
11208 $as_echo "$as_me: error: $2" >&2
11209 as_fn_exit $as_status
11210 } # as_fn_error
11211
11212
11213 # as_fn_set_status STATUS
11214 # -----------------------
11215 # Set $? to STATUS, without forking.
11216 as_fn_set_status ()
11217 {
11218 return $1
11219 } # as_fn_set_status
11220
11221 # as_fn_exit STATUS
11222 # -----------------
11223 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11224 as_fn_exit ()
11225 {
11226 set +e
11227 as_fn_set_status $1
11228 exit $1
11229 } # as_fn_exit
11230
11231 # as_fn_unset VAR
11232 # ---------------
11233 # Portably unset VAR.
11234 as_fn_unset ()
11235 {
11236 { eval $1=; unset $1;}
11237 }
11238 as_unset=as_fn_unset
11239 # as_fn_append VAR VALUE
11240 # ----------------------
11241 # Append the text in VALUE to the end of the definition contained in VAR. Take
11242 # advantage of any shell optimizations that allow amortized linear growth over
11243 # repeated appends, instead of the typical quadratic growth present in naive
11244 # implementations.
11245 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11246 eval 'as_fn_append ()
11247 {
11248 eval $1+=\$2
11249 }'
11250 else
11251 as_fn_append ()
11252 {
11253 eval $1=\$$1\$2
11254 }
11255 fi # as_fn_append
11256
11257 # as_fn_arith ARG...
11258 # ------------------
11259 # Perform arithmetic evaluation on the ARGs, and store the result in the
11260 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11261 # must be portable across $(()) and expr.
11262 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11263 eval 'as_fn_arith ()
11264 {
11265 as_val=$(( $* ))
11266 }'
11267 else
11268 as_fn_arith ()
11269 {
11270 as_val=`expr "$@" || test $? -eq 1`
11271 }
11272 fi # as_fn_arith
11273
11274
11275 if expr a : '\(a\)' >/dev/null 2>&1 &&
11276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11277 as_expr=expr
11278 else
11279 as_expr=false
11280 fi
11281
11282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11283 as_basename=basename
11284 else
11285 as_basename=false
11286 fi
11287
11288 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11289 as_dirname=dirname
11290 else
11291 as_dirname=false
11292 fi
11293
11294 as_me=`$as_basename -- "$0" ||
11295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11296 X"$0" : 'X\(//\)$' \| \
11297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11298 $as_echo X/"$0" |
11299 sed '/^.*\/\([^/][^/]*\)\/*$/{
11300 s//\1/
11301 q
11302 }
11303 /^X\/\(\/\/\)$/{
11304 s//\1/
11305 q
11306 }
11307 /^X\/\(\/\).*/{
11308 s//\1/
11309 q
11310 }
11311 s/.*/./; q'`
11312
11313 # Avoid depending upon Character Ranges.
11314 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11315 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11316 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11317 as_cr_digits='0123456789'
11318 as_cr_alnum=$as_cr_Letters$as_cr_digits
11319
11320 ECHO_C= ECHO_N= ECHO_T=
11321 case `echo -n x` in #(((((
11322 -n*)
11323 case `echo 'xy\c'` in
11324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11325 xy) ECHO_C='\c';;
11326 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11327 ECHO_T=' ';;
11328 esac;;
11329 *)
11330 ECHO_N='-n';;
11331 esac
11332
11333 rm -f conf$$ conf$$.exe conf$$.file
11334 if test -d conf$$.dir; then
11335 rm -f conf$$.dir/conf$$.file
11336 else
11337 rm -f conf$$.dir
11338 mkdir conf$$.dir 2>/dev/null
11339 fi
11340 if (echo >conf$$.file) 2>/dev/null; then
11341 if ln -s conf$$.file conf$$ 2>/dev/null; then
11342 as_ln_s='ln -s'
11343 # ... but there are two gotchas:
11344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11346 # In both cases, we have to default to `cp -pR'.
11347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11348 as_ln_s='cp -pR'
11349 elif ln conf$$.file conf$$ 2>/dev/null; then
11350 as_ln_s=ln
11351 else
11352 as_ln_s='cp -pR'
11353 fi
11354 else
11355 as_ln_s='cp -pR'
11356 fi
11357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11358 rmdir conf$$.dir 2>/dev/null
11359
11360
11361 # as_fn_mkdir_p
11362 # -------------
11363 # Create "$as_dir" as a directory, including parents if necessary.
11364 as_fn_mkdir_p ()
11365 {
11366
11367 case $as_dir in #(
11368 -*) as_dir=./$as_dir;;
11369 esac
11370 test -d "$as_dir" || eval $as_mkdir_p || {
11371 as_dirs=
11372 while :; do
11373 case $as_dir in #(
11374 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11375 *) as_qdir=$as_dir;;
11376 esac
11377 as_dirs="'$as_qdir' $as_dirs"
11378 as_dir=`$as_dirname -- "$as_dir" ||
11379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11380 X"$as_dir" : 'X\(//\)[^/]' \| \
11381 X"$as_dir" : 'X\(//\)$' \| \
11382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11383 $as_echo X"$as_dir" |
11384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11385 s//\1/
11386 q
11387 }
11388 /^X\(\/\/\)[^/].*/{
11389 s//\1/
11390 q
11391 }
11392 /^X\(\/\/\)$/{
11393 s//\1/
11394 q
11395 }
11396 /^X\(\/\).*/{
11397 s//\1/
11398 q
11399 }
11400 s/.*/./; q'`
11401 test -d "$as_dir" && break
11402 done
11403 test -z "$as_dirs" || eval "mkdir $as_dirs"
11404 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11405
11406
11407 } # as_fn_mkdir_p
11408 if mkdir -p . 2>/dev/null; then
11409 as_mkdir_p='mkdir -p "$as_dir"'
11410 else
11411 test -d ./-p && rmdir ./-p
11412 as_mkdir_p=false
11413 fi
11414
11415
11416 # as_fn_executable_p FILE
11417 # -----------------------
11418 # Test if FILE is an executable regular file.
11419 as_fn_executable_p ()
11420 {
11421 test -f "$1" && test -x "$1"
11422 } # as_fn_executable_p
11423 as_test_x='test -x'
11424 as_executable_p=as_fn_executable_p
11425
11426 # Sed expression to map a string onto a valid CPP name.
11427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11428
11429 # Sed expression to map a string onto a valid variable name.
11430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11431
11432
11433 exec 6>&1
11434 ## ----------------------------------- ##
11435 ## Main body of $CONFIG_STATUS script. ##
11436 ## ----------------------------------- ##
11437 _ASEOF
11438 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11439
11440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11441 # Save the log message, to keep $0 and so on meaningful, and to
11442 # report actual input values of CONFIG_FILES etc. instead of their
11443 # values after options handling.
11444 ac_log="
11445 This file was extended by smproxy $as_me 1.0.6, which was
11446 generated by GNU Autoconf 2.69. Invocation command line was
11447
11448 CONFIG_FILES = $CONFIG_FILES
11449 CONFIG_HEADERS = $CONFIG_HEADERS
11450 CONFIG_LINKS = $CONFIG_LINKS
11451 CONFIG_COMMANDS = $CONFIG_COMMANDS
11452 $ $0 $@
11453
11454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11455 "
11456
11457 _ACEOF
11458
11459 case $ac_config_files in *"
11460 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11461 esac
11462
11463 case $ac_config_headers in *"
11464 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11465 esac
11466
11467
11468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11469 # Files that config.status was made for.
11470 config_files="$ac_config_files"
11471 config_headers="$ac_config_headers"
11472 config_commands="$ac_config_commands"
11473
11474 _ACEOF
11475
11476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11477 ac_cs_usage="\
11478 \`$as_me' instantiates files and other configuration actions
11479 from templates according to the current configuration. Unless the files
11480 and actions are specified as TAGs, all are instantiated by default.
11481
11482 Usage: $0 [OPTION]... [TAG]...
11483
11484 -h, --help print this help, then exit
11485 -V, --version print version number and configuration settings, then exit
11486 --config print configuration, then exit
11487 -q, --quiet, --silent
11488 do not print progress messages
11489 -d, --debug don't remove temporary files
11490 --recheck update $as_me by reconfiguring in the same conditions
11491 --file=FILE[:TEMPLATE]
11492 instantiate the configuration file FILE
11493 --header=FILE[:TEMPLATE]
11494 instantiate the configuration header FILE
11495
11496 Configuration files:
11497 $config_files
11498
11499 Configuration headers:
11500 $config_headers
11501
11502 Configuration commands:
11503 $config_commands
11504
11505 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11506
11507 _ACEOF
11508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11509 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11510 ac_cs_version="\\
11511 smproxy config.status 1.0.6
11512 configured by $0, generated by GNU Autoconf 2.69,
11513 with options \\"\$ac_cs_config\\"
11514
11515 Copyright (C) 2012 Free Software Foundation, Inc.
11516 This config.status script is free software; the Free Software Foundation
11517 gives unlimited permission to copy, distribute and modify it."
11518
11519 ac_pwd='$ac_pwd'
11520 srcdir='$srcdir'
11521 INSTALL='$INSTALL'
11522 MKDIR_P='$MKDIR_P'
11523 AWK='$AWK'
11524 test -n "\$AWK" || AWK=awk
11525 _ACEOF
11526
11527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11528 # The default lists apply if the user does not specify any file.
11529 ac_need_defaults=:
11530 while test $# != 0
11531 do
11532 case $1 in
11533 --*=?*)
11534 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11536 ac_shift=:
11537 ;;
11538 --*=)
11539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11540 ac_optarg=
11541 ac_shift=:
11542 ;;
11543 *)
11544 ac_option=$1
11545 ac_optarg=$2
11546 ac_shift=shift
11547 ;;
11548 esac
11549
11550 case $ac_option in
11551 # Handling of the options.
11552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11553 ac_cs_recheck=: ;;
11554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11555 $as_echo "$ac_cs_version"; exit ;;
11556 --config | --confi | --conf | --con | --co | --c )
11557 $as_echo "$ac_cs_config"; exit ;;
11558 --debug | --debu | --deb | --de | --d | -d )
11559 debug=: ;;
11560 --file | --fil | --fi | --f )
11561 $ac_shift
11562 case $ac_optarg in
11563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11564 '') as_fn_error $? "missing file argument" ;;
11565 esac
11566 as_fn_append CONFIG_FILES " '$ac_optarg'"
11567 ac_need_defaults=false;;
11568 --header | --heade | --head | --hea )
11569 $ac_shift
11570 case $ac_optarg in
11571 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11572 esac
11573 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11574 ac_need_defaults=false;;
11575 --he | --h)
11576 # Conflict between --help and --header
11577 as_fn_error $? "ambiguous option: \`$1'
11578 Try \`$0 --help' for more information.";;
11579 --help | --hel | -h )
11580 $as_echo "$ac_cs_usage"; exit ;;
11581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11583 ac_cs_silent=: ;;
11584
11585 # This is an error.
11586 -*) as_fn_error $? "unrecognized option: \`$1'
11587 Try \`$0 --help' for more information." ;;
11588
11589 *) as_fn_append ac_config_targets " $1"
11590 ac_need_defaults=false ;;
11591
11592 esac
11593 shift
11594 done
11595
11596 ac_configure_extra_args=
11597
11598 if $ac_cs_silent; then
11599 exec 6>/dev/null
11600 ac_configure_extra_args="$ac_configure_extra_args --silent"
11601 fi
11602
11603 _ACEOF
11604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11605 if \$ac_cs_recheck; then
11606 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11607 shift
11608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11609 CONFIG_SHELL='$SHELL'
11610 export CONFIG_SHELL
11611 exec "\$@"
11612 fi
11613
11614 _ACEOF
11615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11616 exec 5>>config.log
11617 {
11618 echo
11619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11620 ## Running $as_me. ##
11621 _ASBOX
11622 $as_echo "$ac_log"
11623 } >&5
11624
11625 _ACEOF
11626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11627 #
11628 # INIT-COMMANDS
11629 #
11630 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11631
11632 _ACEOF
11633
11634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11635
11636 # Handling of arguments.
11637 for ac_config_target in $ac_config_targets
11638 do
11639 case $ac_config_target in
11640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11641 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11643 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11644
11645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11646 esac
11647 done
11648
11649
11650 # If the user did not use the arguments to specify the items to instantiate,
11651 # then the envvar interface is used. Set only those that are not.
11652 # We use the long form for the default assignment because of an extremely
11653 # bizarre bug on SunOS 4.1.3.
11654 if $ac_need_defaults; then
11655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11658 fi
11659
11660 # Have a temporary directory for convenience. Make it in the build tree
11661 # simply because there is no reason against having it here, and in addition,
11662 # creating and moving files from /tmp can sometimes cause problems.
11663 # Hook for its removal unless debugging.
11664 # Note that there is a small window in which the directory will not be cleaned:
11665 # after its creation but before its name has been assigned to `$tmp'.
11666 $debug ||
11667 {
11668 tmp= ac_tmp=
11669 trap 'exit_status=$?
11670 : "${ac_tmp:=$tmp}"
11671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11672 ' 0
11673 trap 'as_fn_exit 1' 1 2 13 15
11674 }
11675 # Create a (secure) tmp directory for tmp files.
11676
11677 {
11678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11679 test -d "$tmp"
11680 } ||
11681 {
11682 tmp=./conf$$-$RANDOM
11683 (umask 077 && mkdir "$tmp")
11684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11685 ac_tmp=$tmp
11686
11687 # Set up the scripts for CONFIG_FILES section.
11688 # No need to generate them if there are no CONFIG_FILES.
11689 # This happens for instance with `./config.status config.h'.
11690 if test -n "$CONFIG_FILES"; then
11691
11692
11693 ac_cr=`echo X | tr X '\015'`
11694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11695 # But we know of no other shell where ac_cr would be empty at this
11696 # point, so we can use a bashism as a fallback.
11697 if test "x$ac_cr" = x; then
11698 eval ac_cr=\$\'\\r\'
11699 fi
11700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11702 ac_cs_awk_cr='\\r'
11703 else
11704 ac_cs_awk_cr=$ac_cr
11705 fi
11706
11707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11708 _ACEOF
11709
11710
11711 {
11712 echo "cat >conf$$subs.awk <<_ACEOF" &&
11713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11714 echo "_ACEOF"
11715 } >conf$$subs.sh ||
11716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11718 ac_delim='%!_!# '
11719 for ac_last_try in false false false false false :; do
11720 . ./conf$$subs.sh ||
11721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11722
11723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11724 if test $ac_delim_n = $ac_delim_num; then
11725 break
11726 elif $ac_last_try; then
11727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11728 else
11729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11730 fi
11731 done
11732 rm -f conf$$subs.sh
11733
11734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11736 _ACEOF
11737 sed -n '
11738 h
11739 s/^/S["/; s/!.*/"]=/
11740 p
11741 g
11742 s/^[^!]*!//
11743 :repl
11744 t repl
11745 s/'"$ac_delim"'$//
11746 t delim
11747 :nl
11748 h
11749 s/\(.\{148\}\)..*/\1/
11750 t more1
11751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11752 p
11753 n
11754 b repl
11755 :more1
11756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11757 p
11758 g
11759 s/.\{148\}//
11760 t nl
11761 :delim
11762 h
11763 s/\(.\{148\}\)..*/\1/
11764 t more2
11765 s/["\\]/\\&/g; s/^/"/; s/$/"/
11766 p
11767 b
11768 :more2
11769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11770 p
11771 g
11772 s/.\{148\}//
11773 t delim
11774 ' <conf$$subs.awk | sed '
11775 /^[^""]/{
11776 N
11777 s/\n//
11778 }
11779 ' >>$CONFIG_STATUS || ac_write_fail=1
11780 rm -f conf$$subs.awk
11781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11782 _ACAWK
11783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11784 for (key in S) S_is_set[key] = 1
11785 FS = ""
11786
11787 }
11788 {
11789 line = $ 0
11790 nfields = split(line, field, "@")
11791 substed = 0
11792 len = length(field[1])
11793 for (i = 2; i < nfields; i++) {
11794 key = field[i]
11795 keylen = length(key)
11796 if (S_is_set[key]) {
11797 value = S[key]
11798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11799 len += length(value) + length(field[++i])
11800 substed = 1
11801 } else
11802 len += 1 + keylen
11803 }
11804
11805 print line
11806 }
11807
11808 _ACAWK
11809 _ACEOF
11810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11813 else
11814 cat
11815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11817 _ACEOF
11818
11819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11821 # trailing colons and then remove the whole line if VPATH becomes empty
11822 # (actually we leave an empty line to preserve line numbers).
11823 if test "x$srcdir" = x.; then
11824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11825 h
11826 s///
11827 s/^/:/
11828 s/[ ]*$/:/
11829 s/:\$(srcdir):/:/g
11830 s/:\${srcdir}:/:/g
11831 s/:@srcdir@:/:/g
11832 s/^:*//
11833 s/:*$//
11834 x
11835 s/\(=[ ]*\).*/\1/
11836 G
11837 s/\n//
11838 s/^[^=]*=[ ]*$//
11839 }'
11840 fi
11841
11842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11843 fi # test -n "$CONFIG_FILES"
11844
11845 # Set up the scripts for CONFIG_HEADERS section.
11846 # No need to generate them if there are no CONFIG_HEADERS.
11847 # This happens for instance with `./config.status Makefile'.
11848 if test -n "$CONFIG_HEADERS"; then
11849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11850 BEGIN {
11851 _ACEOF
11852
11853 # Transform confdefs.h into an awk script `defines.awk', embedded as
11854 # here-document in config.status, that substitutes the proper values into
11855 # config.h.in to produce config.h.
11856
11857 # Create a delimiter string that does not exist in confdefs.h, to ease
11858 # handling of long lines.
11859 ac_delim='%!_!# '
11860 for ac_last_try in false false :; do
11861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11862 if test -z "$ac_tt"; then
11863 break
11864 elif $ac_last_try; then
11865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11866 else
11867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11868 fi
11869 done
11870
11871 # For the awk script, D is an array of macro values keyed by name,
11872 # likewise P contains macro parameters if any. Preserve backslash
11873 # newline sequences.
11874
11875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11876 sed -n '
11877 s/.\{148\}/&'"$ac_delim"'/g
11878 t rset
11879 :rset
11880 s/^[ ]*#[ ]*define[ ][ ]*/ /
11881 t def
11882 d
11883 :def
11884 s/\\$//
11885 t bsnl
11886 s/["\\]/\\&/g
11887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11888 D["\1"]=" \3"/p
11889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11890 d
11891 :bsnl
11892 s/["\\]/\\&/g
11893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11894 D["\1"]=" \3\\\\\\n"\\/p
11895 t cont
11896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11897 t cont
11898 d
11899 :cont
11900 n
11901 s/.\{148\}/&'"$ac_delim"'/g
11902 t clear
11903 :clear
11904 s/\\$//
11905 t bsnlc
11906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11907 d
11908 :bsnlc
11909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11910 b cont
11911 ' <confdefs.h | sed '
11912 s/'"$ac_delim"'/"\\\
11913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11914
11915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11916 for (key in D) D_is_set[key] = 1
11917 FS = ""
11918 }
11919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11920 line = \$ 0
11921 split(line, arg, " ")
11922 if (arg[1] == "#") {
11923 defundef = arg[2]
11924 mac1 = arg[3]
11925 } else {
11926 defundef = substr(arg[1], 2)
11927 mac1 = arg[2]
11928 }
11929 split(mac1, mac2, "(") #)
11930 macro = mac2[1]
11931 prefix = substr(line, 1, index(line, defundef) - 1)
11932 if (D_is_set[macro]) {
11933 # Preserve the white space surrounding the "#".
11934 print prefix "define", macro P[macro] D[macro]
11935 next
11936 } else {
11937 # Replace #undef with comments. This is necessary, for example,
11938 # in the case of _POSIX_SOURCE, which is predefined and required
11939 # on some systems where configure will not decide to define it.
11940 if (defundef == "undef") {
11941 print "/*", prefix defundef, macro, "*/"
11942 next
11943 }
11944 }
11945 }
11946 { print }
11947 _ACAWK
11948 _ACEOF
11949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11951 fi # test -n "$CONFIG_HEADERS"
11952
11953
11954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11955 shift
11956 for ac_tag
11957 do
11958 case $ac_tag in
11959 :[FHLC]) ac_mode=$ac_tag; continue;;
11960 esac
11961 case $ac_mode$ac_tag in
11962 :[FHL]*:*);;
11963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11964 :[FH]-) ac_tag=-:-;;
11965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11966 esac
11967 ac_save_IFS=$IFS
11968 IFS=:
11969 set x $ac_tag
11970 IFS=$ac_save_IFS
11971 shift
11972 ac_file=$1
11973 shift
11974
11975 case $ac_mode in
11976 :L) ac_source=$1;;
11977 :[FH])
11978 ac_file_inputs=
11979 for ac_f
11980 do
11981 case $ac_f in
11982 -) ac_f="$ac_tmp/stdin";;
11983 *) # Look for the file first in the build tree, then in the source tree
11984 # (if the path is not absolute). The absolute path cannot be DOS-style,
11985 # because $ac_f cannot contain `:'.
11986 test -f "$ac_f" ||
11987 case $ac_f in
11988 [\\/$]*) false;;
11989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11990 esac ||
11991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11992 esac
11993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11994 as_fn_append ac_file_inputs " '$ac_f'"
11995 done
11996
11997 # Let's still pretend it is `configure' which instantiates (i.e., don't
11998 # use $as_me), people would be surprised to read:
11999 # /* config.h. Generated by config.status. */
12000 configure_input='Generated from '`
12001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12002 `' by configure.'
12003 if test x"$ac_file" != x-; then
12004 configure_input="$ac_file. $configure_input"
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12006 $as_echo "$as_me: creating $ac_file" >&6;}
12007 fi
12008 # Neutralize special characters interpreted by sed in replacement strings.
12009 case $configure_input in #(
12010 *\&* | *\|* | *\\* )
12011 ac_sed_conf_input=`$as_echo "$configure_input" |
12012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12013 *) ac_sed_conf_input=$configure_input;;
12014 esac
12015
12016 case $ac_tag in
12017 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12019 esac
12020 ;;
12021 esac
12022
12023 ac_dir=`$as_dirname -- "$ac_file" ||
12024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$ac_file" : 'X\(//\)[^/]' \| \
12026 X"$ac_file" : 'X\(//\)$' \| \
12027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12028 $as_echo X"$ac_file" |
12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12030 s//\1/
12031 q
12032 }
12033 /^X\(\/\/\)[^/].*/{
12034 s//\1/
12035 q
12036 }
12037 /^X\(\/\/\)$/{
12038 s//\1/
12039 q
12040 }
12041 /^X\(\/\).*/{
12042 s//\1/
12043 q
12044 }
12045 s/.*/./; q'`
12046 as_dir="$ac_dir"; as_fn_mkdir_p
12047 ac_builddir=.
12048
12049 case "$ac_dir" in
12050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12051 *)
12052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12053 # A ".." for each directory in $ac_dir_suffix.
12054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12055 case $ac_top_builddir_sub in
12056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12058 esac ;;
12059 esac
12060 ac_abs_top_builddir=$ac_pwd
12061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12062 # for backward compatibility:
12063 ac_top_builddir=$ac_top_build_prefix
12064
12065 case $srcdir in
12066 .) # We are building in place.
12067 ac_srcdir=.
12068 ac_top_srcdir=$ac_top_builddir_sub
12069 ac_abs_top_srcdir=$ac_pwd ;;
12070 [\\/]* | ?:[\\/]* ) # Absolute name.
12071 ac_srcdir=$srcdir$ac_dir_suffix;
12072 ac_top_srcdir=$srcdir
12073 ac_abs_top_srcdir=$srcdir ;;
12074 *) # Relative name.
12075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12076 ac_top_srcdir=$ac_top_build_prefix$srcdir
12077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12078 esac
12079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12080
12081
12082 case $ac_mode in
12083 :F)
12084 #
12085 # CONFIG_FILE
12086 #
12087
12088 case $INSTALL in
12089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12091 esac
12092 ac_MKDIR_P=$MKDIR_P
12093 case $MKDIR_P in
12094 [\\/$]* | ?:[\\/]* ) ;;
12095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12096 esac
12097 _ACEOF
12098
12099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12100 # If the template does not know about datarootdir, expand it.
12101 # FIXME: This hack should be removed a few years after 2.60.
12102 ac_datarootdir_hack=; ac_datarootdir_seen=
12103 ac_sed_dataroot='
12104 /datarootdir/ {
12105 p
12106 q
12107 }
12108 /@datadir@/p
12109 /@docdir@/p
12110 /@infodir@/p
12111 /@localedir@/p
12112 /@mandir@/p'
12113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12114 *datarootdir*) ac_datarootdir_seen=yes;;
12115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12118 _ACEOF
12119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12120 ac_datarootdir_hack='
12121 s&@datadir@&$datadir&g
12122 s&@docdir@&$docdir&g
12123 s&@infodir@&$infodir&g
12124 s&@localedir@&$localedir&g
12125 s&@mandir@&$mandir&g
12126 s&\\\${datarootdir}&$datarootdir&g' ;;
12127 esac
12128 _ACEOF
12129
12130 # Neutralize VPATH when `$srcdir' = `.'.
12131 # Shell code in configure.ac might set extrasub.
12132 # FIXME: do we really want to maintain this feature?
12133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12134 ac_sed_extra="$ac_vpsub
12135 $extrasub
12136 _ACEOF
12137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12138 :t
12139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12140 s|@configure_input@|$ac_sed_conf_input|;t t
12141 s&@top_builddir@&$ac_top_builddir_sub&;t t
12142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12143 s&@srcdir@&$ac_srcdir&;t t
12144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12145 s&@top_srcdir@&$ac_top_srcdir&;t t
12146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12147 s&@builddir@&$ac_builddir&;t t
12148 s&@abs_builddir@&$ac_abs_builddir&;t t
12149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12150 s&@INSTALL@&$ac_INSTALL&;t t
12151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12152 $ac_datarootdir_hack
12153 "
12154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12156
12157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12162 which seems to be undefined. Please make sure it is defined" >&5
12163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12164 which seems to be undefined. Please make sure it is defined" >&2;}
12165
12166 rm -f "$ac_tmp/stdin"
12167 case $ac_file in
12168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12170 esac \
12171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12172 ;;
12173 :H)
12174 #
12175 # CONFIG_HEADER
12176 #
12177 if test x"$ac_file" != x-; then
12178 {
12179 $as_echo "/* $configure_input */" \
12180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12181 } >"$ac_tmp/config.h" \
12182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12186 else
12187 rm -f "$ac_file"
12188 mv "$ac_tmp/config.h" "$ac_file" \
12189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12190 fi
12191 else
12192 $as_echo "/* $configure_input */" \
12193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12194 || as_fn_error $? "could not create -" "$LINENO" 5
12195 fi
12196 # Compute "$ac_file"'s index in $config_headers.
12197 _am_arg="$ac_file"
12198 _am_stamp_count=1
12199 for _am_header in $config_headers :; do
12200 case $_am_header in
12201 $_am_arg | $_am_arg:* )
12202 break ;;
12203 * )
12204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12205 esac
12206 done
12207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12209 X"$_am_arg" : 'X\(//\)[^/]' \| \
12210 X"$_am_arg" : 'X\(//\)$' \| \
12211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12212 $as_echo X"$_am_arg" |
12213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12214 s//\1/
12215 q
12216 }
12217 /^X\(\/\/\)[^/].*/{
12218 s//\1/
12219 q
12220 }
12221 /^X\(\/\/\)$/{
12222 s//\1/
12223 q
12224 }
12225 /^X\(\/\).*/{
12226 s//\1/
12227 q
12228 }
12229 s/.*/./; q'`/stamp-h$_am_stamp_count
12230 ;;
12231
12232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12233 $as_echo "$as_me: executing $ac_file commands" >&6;}
12234 ;;
12235 esac
12236
12237
12238 case $ac_file$ac_mode in
12239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12240 # Older Autoconf quotes --file arguments for eval, but not when files
12241 # are listed without --file. Let's play safe and only enable the eval
12242 # if we detect the quoting.
12243 case $CONFIG_FILES in
12244 *\'*) eval set x "$CONFIG_FILES" ;;
12245 *) set x $CONFIG_FILES ;;
12246 esac
12247 shift
12248 for mf
12249 do
12250 # Strip MF so we end up with the name of the file.
12251 mf=`echo "$mf" | sed -e 's/:.*$//'`
12252 # Check whether this is an Automake generated Makefile or not.
12253 # We used to match only the files named 'Makefile.in', but
12254 # some people rename them; so instead we look at the file content.
12255 # Grep'ing the first line is not enough: some people post-process
12256 # each Makefile.in and add a new line on top of each file to say so.
12257 # Grep'ing the whole file is not good either: AIX grep has a line
12258 # limit of 2048, but all sed's we know have understand at least 4000.
12259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12260 dirpart=`$as_dirname -- "$mf" ||
12261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12262 X"$mf" : 'X\(//\)[^/]' \| \
12263 X"$mf" : 'X\(//\)$' \| \
12264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12265 $as_echo X"$mf" |
12266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12267 s//\1/
12268 q
12269 }
12270 /^X\(\/\/\)[^/].*/{
12271 s//\1/
12272 q
12273 }
12274 /^X\(\/\/\)$/{
12275 s//\1/
12276 q
12277 }
12278 /^X\(\/\).*/{
12279 s//\1/
12280 q
12281 }
12282 s/.*/./; q'`
12283 else
12284 continue
12285 fi
12286 # Extract the definition of DEPDIR, am__include, and am__quote
12287 # from the Makefile without running 'make'.
12288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12289 test -z "$DEPDIR" && continue
12290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12291 test -z "$am__include" && continue
12292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12293 # Find all dependency output files, they are included files with
12294 # $(DEPDIR) in their names. We invoke sed twice because it is the
12295 # simplest approach to changing $(DEPDIR) to its actual value in the
12296 # expansion.
12297 for file in `sed -n "
12298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12300 # Make sure the directory exists.
12301 test -f "$dirpart/$file" && continue
12302 fdir=`$as_dirname -- "$file" ||
12303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12304 X"$file" : 'X\(//\)[^/]' \| \
12305 X"$file" : 'X\(//\)$' \| \
12306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12307 $as_echo X"$file" |
12308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12309 s//\1/
12310 q
12311 }
12312 /^X\(\/\/\)[^/].*/{
12313 s//\1/
12314 q
12315 }
12316 /^X\(\/\/\)$/{
12317 s//\1/
12318 q
12319 }
12320 /^X\(\/\).*/{
12321 s//\1/
12322 q
12323 }
12324 s/.*/./; q'`
12325 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12326 # echo "creating $dirpart/$file"
12327 echo '# dummy' > "$dirpart/$file"
12328 done
12329 done
12330 }
12331 ;;
12332
12333 esac
12334 done # for ac_tag
12335
12336
12337 as_fn_exit 0
12338 _ACEOF
12339 ac_clean_files=$ac_clean_files_save
12340
12341 test $ac_write_fail = 0 ||
12342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12343
12344
12345 # configure is writing to config.log, and then calls config.status.
12346 # config.status does its own redirection, appending to config.log.
12347 # Unfortunately, on DOS this fails, as config.log is still kept open
12348 # by configure, so config.status won't be able to write to it; its
12349 # output is simply discarded. So we exec the FD to /dev/null,
12350 # effectively closing config.log, so it can be properly (re)opened and
12351 # appended to by config.status. When coming back to configure, we
12352 # need to make the FD available again.
12353 if test "$no_create" != yes; then
12354 ac_cs_success=:
12355 ac_config_status_args=
12356 test "$silent" = yes &&
12357 ac_config_status_args="$ac_config_status_args --quiet"
12358 exec 5>/dev/null
12359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12360 exec 5>>config.log
12361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12362 # would make configure fail if this is the last instruction.
12363 $ac_cs_success || as_fn_exit 1
12364 fi
12365 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12367 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12368 fi
12369
12370