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.71 for xditview 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xditview/-/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xditview'
614 PACKAGE_TARNAME='xditview'
615 PACKAGE_VERSION='1.0.6'
616 PACKAGE_STRING='xditview 1.0.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xditview/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 appdefaultdir
658 APPDEFS_LIBS
659 APPDEFS_CFLAGS
660 XDITVIEW_LIBS
661 XDITVIEW_CFLAGS
662 MAN_SUBSTS
663 XORG_MAN_PAGE
664 ADMIN_MAN_DIR
665 DRIVER_MAN_DIR
666 MISC_MAN_DIR
667 FILE_MAN_DIR
668 LIB_MAN_DIR
669 APP_MAN_DIR
670 ADMIN_MAN_SUFFIX
671 DRIVER_MAN_SUFFIX
672 MISC_MAN_SUFFIX
673 FILE_MAN_SUFFIX
674 LIB_MAN_SUFFIX
675 APP_MAN_SUFFIX
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 INSTALL_CMD
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 CHANGELOG_CMD
690 STRICT_CFLAGS
691 CWARNFLAGS
692 BASE_CFLAGS
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 CSCOPE
714 ETAGS
715 CTAGS
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_dependency_tracking
784 enable_selective_werror
785 enable_strict_compilation
786 with_appdefaultdir
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 PKG_CONFIG
797 PKG_CONFIG_PATH
798 PKG_CONFIG_LIBDIR
799 XDITVIEW_CFLAGS
800 XDITVIEW_LIBS
801 APPDEFS_CFLAGS
802 APPDEFS_LIBS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 runstatedir='${localstatedir}/run'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: \`$ac_useropt'"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: \`$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -runstatedir | --runstatedir | --runstatedi | --runstated \
1093 | --runstate | --runstat | --runsta | --runst | --runs \
1094 | --run | --ru | --r)
1095 ac_prev=runstatedir ;;
1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098 | --run=* | --ru=* | --r=*)
1099 runstatedir=$ac_optarg ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: \`$ac_useropt'"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: \`$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir runstatedir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 printf "%s\n" X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures xditview 1.0.6 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xditview]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of xditview 1.0.6:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --disable-selective-werror
1437 Turn off selective compiler errors. (default:
1438 enabled)
1439 --enable-strict-compilation
1440 Enable all warnings from compiler and make them
1441 errors (default: disabled)
1442
1443 Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-appdefaultdir=<pathname>
1447 specify directory for app-defaults files (default is
1448 autodetected)
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 PKG_CONFIG path to pkg-config utility
1459 PKG_CONFIG_PATH
1460 directories to add to pkg-config's search path
1461 PKG_CONFIG_LIBDIR
1462 path overriding pkg-config's built-in search path
1463 XDITVIEW_CFLAGS
1464 C compiler flags for XDITVIEW, overriding pkg-config
1465 XDITVIEW_LIBS
1466 linker flags for XDITVIEW, overriding pkg-config
1467 APPDEFS_CFLAGS
1468 C compiler flags for APPDEFS, overriding pkg-config
1469 APPDEFS_LIBS
1470 linker flags for APPDEFS, overriding pkg-config
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for configure.gnu first; this name is used for a wrapper for
1522 # Metaconfig's "Configure" on case-insensitive file systems.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1529 else
1530 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1533 done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538 cat <<\_ACEOF
1539 xditview configure 1.0.6
1540 generated by GNU Autoconf 2.71
1541
1542 Copyright (C) 2021 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546 exit
1547 fi
1548
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1552
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest.beam
1560 if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 printf "%s\n" "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext
1579 then :
1580 ac_retval=0
1581 else $as_nop
1582 printf "%s\n" "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1593 # ------------------------------------------------------------------
1594 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1596 ac_fn_check_decl ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 as_decl_name=`echo $2|sed 's/ *(.*//'`
1600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1601 printf %s "checking whether $as_decl_name is declared... " >&6; }
1602 if eval test \${$3+y}
1603 then :
1604 printf %s "(cached) " >&6
1605 else $as_nop
1606 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1607 eval ac_save_FLAGS=\$$6
1608 as_fn_append $6 " $5"
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1611 $4
1612 int
1613 main (void)
1614 {
1615 #ifndef $as_decl_name
1616 #ifdef __cplusplus
1617 (void) $as_decl_use;
1618 #else
1619 (void) $as_decl_name;
1620 #endif
1621 #endif
1622
1623 ;
1624 return 0;
1625 }
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"
1628 then :
1629 eval "$3=yes"
1630 else $as_nop
1631 eval "$3=no"
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1634 eval $6=\$ac_save_FLAGS
1635
1636 fi
1637 eval ac_res=\$$3
1638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 printf "%s\n" "$ac_res" >&6; }
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642 } # ac_fn_check_decl
1643
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 printf %s "checking for $2... " >&6; }
1653 if eval test \${$3+y}
1654 then :
1655 printf %s "(cached) " >&6
1656 else $as_nop
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"
1663 then :
1664 eval "$3=yes"
1665 else $as_nop
1666 eval "$3=no"
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669 fi
1670 eval ac_res=\$$3
1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 printf "%s\n" "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675 } # ac_fn_c_check_header_compile
1676
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 test -x conftest$ac_exeext
1705 }
1706 then :
1707 ac_retval=0
1708 else $as_nop
1709 printf "%s\n" "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_link
1723
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1741
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below. */
1744
1745 #include <limits.h>
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 int
1763 main (void)
1764 {
1765 return $2 ();
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"
1771 then :
1772 eval "$3=yes"
1773 else $as_nop
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777 conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785 ac_configure_args_raw=
1786 for ac_arg
1787 do
1788 case $ac_arg in
1789 *\'*)
1790 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 esac
1792 as_fn_append ac_configure_args_raw " '$ac_arg'"
1793 done
1794
1795 case $ac_configure_args_raw in
1796 *$as_nl*)
1797 ac_safe_unquote= ;;
1798 *)
1799 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1800 ac_unsafe_a="$ac_unsafe_z#~"
1801 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1802 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1803 esac
1804
1805 cat >config.log <<_ACEOF
1806 This file contains any messages produced by compilers while
1807 running configure, to aid debugging if configure makes a mistake.
1808
1809 It was created by xditview $as_me 1.0.6, which was
1810 generated by GNU Autoconf 2.71. Invocation command line was
1811
1812 $ $0$ac_configure_args_raw
1813
1814 _ACEOF
1815 exec 5>>config.log
1816 {
1817 cat <<_ASUNAME
1818 ## --------- ##
1819 ## Platform. ##
1820 ## --------- ##
1821
1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1830
1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1838
1839 _ASUNAME
1840
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 case $as_dir in #(((
1846 '') as_dir=./ ;;
1847 */) ;;
1848 *) as_dir=$as_dir/ ;;
1849 esac
1850 printf "%s\n" "PATH: $as_dir"
1851 done
1852 IFS=$as_save_IFS
1853
1854 } >&5
1855
1856 cat >&5 <<_ACEOF
1857
1858
1859 ## ----------- ##
1860 ## Core tests. ##
1861 ## ----------- ##
1862
1863 _ACEOF
1864
1865
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1871 ac_configure_args=
1872 ac_configure_args0=
1873 ac_configure_args1=
1874 ac_must_keep_next=false
1875 for ac_pass in 1 2
1876 do
1877 for ac_arg
1878 do
1879 case $ac_arg in
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1883 continue ;;
1884 *\'*)
1885 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 esac
1887 case $ac_pass in
1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889 2)
1890 as_fn_append ac_configure_args1 " '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1893 else
1894 case $ac_arg in
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901 esac
1902 ;;
1903 -* ) ac_must_keep_next=true ;;
1904 esac
1905 fi
1906 as_fn_append ac_configure_args " '$ac_arg'"
1907 ;;
1908 esac
1909 done
1910 done
1911 { ac_configure_args0=; unset ac_configure_args0;}
1912 { ac_configure_args1=; unset ac_configure_args1;}
1913
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Sanitize IFS.
1921 IFS=" "" $as_nl"
1922 # Save into config.log some information that might help in debugging.
1923 {
1924 echo
1925
1926 printf "%s\n" "## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##"
1929 echo
1930 # The following way of writing the cache mishandles newlines in values,
1931 (
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in #(
1935 *${as_nl}*)
1936 case $ac_var in #(
1937 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939 esac
1940 case $ac_var in #(
1941 _ | IFS | as_nl) ;; #(
1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943 *) { eval $ac_var=; unset $ac_var;} ;;
1944 esac ;;
1945 esac
1946 done
1947 (set) 2>&1 |
1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949 *${as_nl}ac_space=\ *)
1950 sed -n \
1951 "s/'\''/'\''\\\\'\'''\''/g;
1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953 ;; #(
1954 *)
1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956 ;;
1957 esac |
1958 sort
1959 )
1960 echo
1961
1962 printf "%s\n" "## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##"
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 printf "%s\n" "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 printf "%s\n" "## ------------------- ##
1978 ## File substitutions. ##
1979 ## ------------------- ##"
1980 echo
1981 for ac_var in $ac_subst_files
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 printf "%s\n" "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990 fi
1991
1992 if test -s confdefs.h; then
1993 printf "%s\n" "## ----------- ##
1994 ## confdefs.h. ##
1995 ## ----------- ##"
1996 echo
1997 cat confdefs.h
1998 echo
1999 fi
2000 test "$ac_signal" != 0 &&
2001 printf "%s\n" "$as_me: caught signal $ac_signal"
2002 printf "%s\n" "$as_me: exit $exit_status"
2003 } >&5
2004 rm -f core *.core core.conftest.* &&
2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006 exit $exit_status
2007 ' 0
2008 for ac_signal in 1 2 13 15; do
2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010 done
2011 ac_signal=0
2012
2013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2014 rm -f -r conftest* confdefs.h
2015
2016 printf "%s\n" "/* confdefs.h */" > confdefs.h
2017
2018 # Predefined preprocessor variables.
2019
2020 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2021
2022 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2023
2024 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2025
2026 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2027
2028 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2031
2032
2033 # Let the site file select an alternate cache file if it wants to.
2034 # Prefer an explicitly selected file to automatically selected ones.
2035 if test -n "$CONFIG_SITE"; then
2036 ac_site_files="$CONFIG_SITE"
2037 elif test "x$prefix" != xNONE; then
2038 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2039 else
2040 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2041 fi
2042
2043 for ac_site_file in $ac_site_files
2044 do
2045 case $ac_site_file in #(
2046 */*) :
2047 ;; #(
2048 *) :
2049 ac_site_file=./$ac_site_file ;;
2050 esac
2051 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2053 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2054 sed 's/^/| /' "$ac_site_file" >&5
2055 . "$ac_site_file" \
2056 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2058 as_fn_error $? "failed to load site script $ac_site_file
2059 See \`config.log' for more details" "$LINENO" 5; }
2060 fi
2061 done
2062
2063 if test -r "$cache_file"; then
2064 # Some versions of bash will fail to source /dev/null (special files
2065 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2066 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2068 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2069 case $cache_file in
2070 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2071 *) . "./$cache_file";;
2072 esac
2073 fi
2074 else
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2076 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2077 >$cache_file
2078 fi
2079
2080 # Test code for whether the C compiler supports C89 (global declarations)
2081 ac_c_conftest_c89_globals='
2082 /* Does the compiler advertise C89 conformance?
2083 Do not test the value of __STDC__, because some compilers set it to 0
2084 while being otherwise adequately conformant. */
2085 #if !defined __STDC__
2086 # error "Compiler does not advertise C89 conformance"
2087 #endif
2088
2089 #include <stddef.h>
2090 #include <stdarg.h>
2091 struct stat;
2092 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2093 struct buf { int x; };
2094 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2095 static char *e (p, i)
2096 char **p;
2097 int i;
2098 {
2099 return p[i];
2100 }
2101 static char *f (char * (*g) (char **, int), char **p, ...)
2102 {
2103 char *s;
2104 va_list v;
2105 va_start (v,p);
2106 s = g (p, va_arg (v,int));
2107 va_end (v);
2108 return s;
2109 }
2110
2111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2112 function prototypes and stuff, but not \xHH hex character constants.
2113 These do not provoke an error unfortunately, instead are silently treated
2114 as an "x". The following induces an error, until -std is added to get
2115 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2116 array size at least. It is necessary to write \x00 == 0 to get something
2117 that is true only with -std. */
2118 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2119
2120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2121 inside strings and character constants. */
2122 #define FOO(x) '\''x'\''
2123 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2124
2125 int test (int i, double x);
2126 struct s1 {int (*f) (int a);};
2127 struct s2 {int (*f) (double a);};
2128 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2129 int, int);'
2130
2131 # Test code for whether the C compiler supports C89 (body of main).
2132 ac_c_conftest_c89_main='
2133 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2134 '
2135
2136 # Test code for whether the C compiler supports C99 (global declarations)
2137 ac_c_conftest_c99_globals='
2138 // Does the compiler advertise C99 conformance?
2139 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2140 # error "Compiler does not advertise C99 conformance"
2141 #endif
2142
2143 #include <stdbool.h>
2144 extern int puts (const char *);
2145 extern int printf (const char *, ...);
2146 extern int dprintf (int, const char *, ...);
2147 extern void *malloc (size_t);
2148
2149 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2150 // dprintf is used instead of fprintf to avoid needing to declare
2151 // FILE and stderr.
2152 #define debug(...) dprintf (2, __VA_ARGS__)
2153 #define showlist(...) puts (#__VA_ARGS__)
2154 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2155 static void
2156 test_varargs_macros (void)
2157 {
2158 int x = 1234;
2159 int y = 5678;
2160 debug ("Flag");
2161 debug ("X = %d\n", x);
2162 showlist (The first, second, and third items.);
2163 report (x>y, "x is %d but y is %d", x, y);
2164 }
2165
2166 // Check long long types.
2167 #define BIG64 18446744073709551615ull
2168 #define BIG32 4294967295ul
2169 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2170 #if !BIG_OK
2171 #error "your preprocessor is broken"
2172 #endif
2173 #if BIG_OK
2174 #else
2175 #error "your preprocessor is broken"
2176 #endif
2177 static long long int bignum = -9223372036854775807LL;
2178 static unsigned long long int ubignum = BIG64;
2179
2180 struct incomplete_array
2181 {
2182 int datasize;
2183 double data[];
2184 };
2185
2186 struct named_init {
2187 int number;
2188 const wchar_t *name;
2189 double average;
2190 };
2191
2192 typedef const char *ccp;
2193
2194 static inline int
2195 test_restrict (ccp restrict text)
2196 {
2197 // See if C++-style comments work.
2198 // Iterate through items via the restricted pointer.
2199 // Also check for declarations in for loops.
2200 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2201 continue;
2202 return 0;
2203 }
2204
2205 // Check varargs and va_copy.
2206 static bool
2207 test_varargs (const char *format, ...)
2208 {
2209 va_list args;
2210 va_start (args, format);
2211 va_list args_copy;
2212 va_copy (args_copy, args);
2213
2214 const char *str = "";
2215 int number = 0;
2216 float fnumber = 0;
2217
2218 while (*format)
2219 {
2220 switch (*format++)
2221 {
2222 case '\''s'\'': // string
2223 str = va_arg (args_copy, const char *);
2224 break;
2225 case '\''d'\'': // int
2226 number = va_arg (args_copy, int);
2227 break;
2228 case '\''f'\'': // float
2229 fnumber = va_arg (args_copy, double);
2230 break;
2231 default:
2232 break;
2233 }
2234 }
2235 va_end (args_copy);
2236 va_end (args);
2237
2238 return *str && number && fnumber;
2239 }
2240 '
2241
2242 # Test code for whether the C compiler supports C99 (body of main).
2243 ac_c_conftest_c99_main='
2244 // Check bool.
2245 _Bool success = false;
2246 success |= (argc != 0);
2247
2248 // Check restrict.
2249 if (test_restrict ("String literal") == 0)
2250 success = true;
2251 char *restrict newvar = "Another string";
2252
2253 // Check varargs.
2254 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2255 test_varargs_macros ();
2256
2257 // Check flexible array members.
2258 struct incomplete_array *ia =
2259 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2260 ia->datasize = 10;
2261 for (int i = 0; i < ia->datasize; ++i)
2262 ia->data[i] = i * 1.234;
2263
2264 // Check named initializers.
2265 struct named_init ni = {
2266 .number = 34,
2267 .name = L"Test wide string",
2268 .average = 543.34343,
2269 };
2270
2271 ni.number = 58;
2272
2273 int dynamic_array[ni.number];
2274 dynamic_array[0] = argv[0][0];
2275 dynamic_array[ni.number - 1] = 543;
2276
2277 // work around unused variable warnings
2278 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2279 || dynamic_array[ni.number - 1] != 543);
2280 '
2281
2282 # Test code for whether the C compiler supports C11 (global declarations)
2283 ac_c_conftest_c11_globals='
2284 // Does the compiler advertise C11 conformance?
2285 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2286 # error "Compiler does not advertise C11 conformance"
2287 #endif
2288
2289 // Check _Alignas.
2290 char _Alignas (double) aligned_as_double;
2291 char _Alignas (0) no_special_alignment;
2292 extern char aligned_as_int;
2293 char _Alignas (0) _Alignas (int) aligned_as_int;
2294
2295 // Check _Alignof.
2296 enum
2297 {
2298 int_alignment = _Alignof (int),
2299 int_array_alignment = _Alignof (int[100]),
2300 char_alignment = _Alignof (char)
2301 };
2302 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2303
2304 // Check _Noreturn.
2305 int _Noreturn does_not_return (void) { for (;;) continue; }
2306
2307 // Check _Static_assert.
2308 struct test_static_assert
2309 {
2310 int x;
2311 _Static_assert (sizeof (int) <= sizeof (long int),
2312 "_Static_assert does not work in struct");
2313 long int y;
2314 };
2315
2316 // Check UTF-8 literals.
2317 #define u8 syntax error!
2318 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2319
2320 // Check duplicate typedefs.
2321 typedef long *long_ptr;
2322 typedef long int *long_ptr;
2323 typedef long_ptr long_ptr;
2324
2325 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2326 struct anonymous
2327 {
2328 union {
2329 struct { int i; int j; };
2330 struct { int k; long int l; } w;
2331 };
2332 int m;
2333 } v1;
2334 '
2335
2336 # Test code for whether the C compiler supports C11 (body of main).
2337 ac_c_conftest_c11_main='
2338 _Static_assert ((offsetof (struct anonymous, i)
2339 == offsetof (struct anonymous, w.k)),
2340 "Anonymous union alignment botch");
2341 v1.i = 2;
2342 v1.w.k = 5;
2343 ok |= v1.i != 5;
2344 '
2345
2346 # Test code for whether the C compiler supports C11 (complete).
2347 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2348 ${ac_c_conftest_c99_globals}
2349 ${ac_c_conftest_c11_globals}
2350
2351 int
2352 main (int argc, char **argv)
2353 {
2354 int ok = 0;
2355 ${ac_c_conftest_c89_main}
2356 ${ac_c_conftest_c99_main}
2357 ${ac_c_conftest_c11_main}
2358 return ok;
2359 }
2360 "
2361
2362 # Test code for whether the C compiler supports C99 (complete).
2363 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2364 ${ac_c_conftest_c99_globals}
2365
2366 int
2367 main (int argc, char **argv)
2368 {
2369 int ok = 0;
2370 ${ac_c_conftest_c89_main}
2371 ${ac_c_conftest_c99_main}
2372 return ok;
2373 }
2374 "
2375
2376 # Test code for whether the C compiler supports C89 (complete).
2377 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2378
2379 int
2380 main (int argc, char **argv)
2381 {
2382 int ok = 0;
2383 ${ac_c_conftest_c89_main}
2384 return ok;
2385 }
2386 "
2387
2388 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2389 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2390 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2391 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2392 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2393 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2394 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2395 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2396 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2397
2398 # Auxiliary files required by this configure script.
2399 ac_aux_files="config.guess config.sub compile missing install-sh"
2400
2401 # Locations in which to look for auxiliary files.
2402 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2403
2404 # Search for a directory containing all of the required auxiliary files,
2405 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2406 # If we don't find one directory that contains all the files we need,
2407 # we report the set of missing files from the *first* directory in
2408 # $ac_aux_dir_candidates and give up.
2409 ac_missing_aux_files=""
2410 ac_first_candidate=:
2411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 as_found=false
2414 for as_dir in $ac_aux_dir_candidates
2415 do
2416 IFS=$as_save_IFS
2417 case $as_dir in #(((
2418 '') as_dir=./ ;;
2419 */) ;;
2420 *) as_dir=$as_dir/ ;;
2421 esac
2422 as_found=:
2423
2424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2425 ac_aux_dir_found=yes
2426 ac_install_sh=
2427 for ac_aux in $ac_aux_files
2428 do
2429 # As a special case, if "install-sh" is required, that requirement
2430 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2431 # and $ac_install_sh is set appropriately for whichever one is found.
2432 if test x"$ac_aux" = x"install-sh"
2433 then
2434 if test -f "${as_dir}install-sh"; then
2435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2436 ac_install_sh="${as_dir}install-sh -c"
2437 elif test -f "${as_dir}install.sh"; then
2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2439 ac_install_sh="${as_dir}install.sh -c"
2440 elif test -f "${as_dir}shtool"; then
2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2442 ac_install_sh="${as_dir}shtool install -c"
2443 else
2444 ac_aux_dir_found=no
2445 if $ac_first_candidate; then
2446 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2447 else
2448 break
2449 fi
2450 fi
2451 else
2452 if test -f "${as_dir}${ac_aux}"; then
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2454 else
2455 ac_aux_dir_found=no
2456 if $ac_first_candidate; then
2457 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2458 else
2459 break
2460 fi
2461 fi
2462 fi
2463 done
2464 if test "$ac_aux_dir_found" = yes; then
2465 ac_aux_dir="$as_dir"
2466 break
2467 fi
2468 ac_first_candidate=false
2469
2470 as_found=false
2471 done
2472 IFS=$as_save_IFS
2473 if $as_found
2474 then :
2475
2476 else $as_nop
2477 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2478 fi
2479
2480
2481 # These three variables are undocumented and unsupported,
2482 # and are intended to be withdrawn in a future Autoconf release.
2483 # They can cause serious problems if a builder's source tree is in a directory
2484 # whose full name contains unusual characters.
2485 if test -f "${ac_aux_dir}config.guess"; then
2486 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2487 fi
2488 if test -f "${ac_aux_dir}config.sub"; then
2489 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2490 fi
2491 if test -f "$ac_aux_dir/configure"; then
2492 ac_configure="$SHELL ${ac_aux_dir}configure"
2493 fi
2494
2495 # Check that the precious variables saved in the cache have kept the same
2496 # value.
2497 ac_cache_corrupted=false
2498 for ac_var in $ac_precious_vars; do
2499 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2500 eval ac_new_set=\$ac_env_${ac_var}_set
2501 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2502 eval ac_new_val=\$ac_env_${ac_var}_value
2503 case $ac_old_set,$ac_new_set in
2504 set,)
2505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2506 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2508 ,set)
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2510 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,);;
2513 *)
2514 if test "x$ac_old_val" != "x$ac_new_val"; then
2515 # differences in whitespace do not lead to failure.
2516 ac_old_val_w=`echo x $ac_old_val`
2517 ac_new_val_w=`echo x $ac_new_val`
2518 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2520 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2521 ac_cache_corrupted=:
2522 else
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2524 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2525 eval $ac_var=\$ac_old_val
2526 fi
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2528 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2530 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2531 fi;;
2532 esac
2533 # Pass precious variables to config.status.
2534 if test "$ac_new_set" = set; then
2535 case $ac_new_val in
2536 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2537 *) ac_arg=$ac_var=$ac_new_val ;;
2538 esac
2539 case " $ac_configure_args " in
2540 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2541 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2542 esac
2543 fi
2544 done
2545 if $ac_cache_corrupted; then
2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2549 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2550 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2551 and start over" "$LINENO" 5
2552 fi
2553 ## -------------------- ##
2554 ## Main body of script. ##
2555 ## -------------------- ##
2556
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562
2563
2564
2565 ac_config_headers="$ac_config_headers config.h"
2566
2567
2568 # Initialize Automake
2569 am__api_version='1.16'
2570
2571
2572
2573 # Find a good install program. We prefer a C program (faster),
2574 # so one script is as good as another. But avoid the broken or
2575 # incompatible versions:
2576 # SysV /etc/install, /usr/sbin/install
2577 # SunOS /usr/etc/install
2578 # IRIX /sbin/install
2579 # AIX /bin/install
2580 # AmigaOS /C/install, which installs bootblocks on floppy discs
2581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2584 # OS/2's system install, which has a completely different semantic
2585 # ./install, which can be erroneously created by make from ./install.sh.
2586 # Reject install programs that cannot install multiple files.
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2588 printf %s "checking for a BSD-compatible install... " >&6; }
2589 if test -z "$INSTALL"; then
2590 if test ${ac_cv_path_install+y}
2591 then :
2592 printf %s "(cached) " >&6
2593 else $as_nop
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597 IFS=$as_save_IFS
2598 case $as_dir in #(((
2599 '') as_dir=./ ;;
2600 */) ;;
2601 *) as_dir=$as_dir/ ;;
2602 esac
2603 # Account for fact that we put trailing slashes in our PATH walk.
2604 case $as_dir in #((
2605 ./ | /[cC]/* | \
2606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2607 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2608 /usr/ucb/* ) ;;
2609 *)
2610 # OSF1 and SCO ODT 3.0 have their own names for install.
2611 # Don't use installbsd from OSF since it installs stuff as root
2612 # by default.
2613 for ac_prog in ginstall scoinst install; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2616 if test $ac_prog = install &&
2617 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618 # AIX install. It has an incompatible calling convention.
2619 :
2620 elif test $ac_prog = install &&
2621 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622 # program-specific install script used by HP pwplus--don't use.
2623 :
2624 else
2625 rm -rf conftest.one conftest.two conftest.dir
2626 echo one > conftest.one
2627 echo two > conftest.two
2628 mkdir conftest.dir
2629 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2630 test -s conftest.one && test -s conftest.two &&
2631 test -s conftest.dir/conftest.one &&
2632 test -s conftest.dir/conftest.two
2633 then
2634 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2635 break 3
2636 fi
2637 fi
2638 fi
2639 done
2640 done
2641 ;;
2642 esac
2643
2644 done
2645 IFS=$as_save_IFS
2646
2647 rm -rf conftest.one conftest.two conftest.dir
2648
2649 fi
2650 if test ${ac_cv_path_install+y}; then
2651 INSTALL=$ac_cv_path_install
2652 else
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for INSTALL within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 INSTALL=$ac_install_sh
2658 fi
2659 fi
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2661 printf "%s\n" "$INSTALL" >&6; }
2662
2663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664 # It thinks the first close brace ends the variable substitution.
2665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2666
2667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2668
2669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2670
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2672 printf %s "checking whether build environment is sane... " >&6; }
2673 # Reject unsafe characters in $srcdir or the absolute working directory
2674 # name. Accept space and tab only in the latter.
2675 am_lf='
2676 '
2677 case `pwd` in
2678 *[\\\"\#\$\&\'\`$am_lf]*)
2679 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2680 esac
2681 case $srcdir in
2682 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2683 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2684 esac
2685
2686 # Do 'set' in a subshell so we don't clobber the current shell's
2687 # arguments. Must try -L first in case configure is actually a
2688 # symlink; some systems play weird games with the mod time of symlinks
2689 # (eg FreeBSD returns the mod time of the symlink's containing
2690 # directory).
2691 if (
2692 am_has_slept=no
2693 for am_try in 1 2; do
2694 echo "timestamp, slept: $am_has_slept" > conftest.file
2695 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2696 if test "$*" = "X"; then
2697 # -L didn't work.
2698 set X `ls -t "$srcdir/configure" conftest.file`
2699 fi
2700 if test "$*" != "X $srcdir/configure conftest.file" \
2701 && test "$*" != "X conftest.file $srcdir/configure"; then
2702
2703 # If neither matched, then we have a broken ls. This can happen
2704 # if, for instance, CONFIG_SHELL is bash and it inherits a
2705 # broken ls alias from the environment. This has actually
2706 # happened. Such a system could not be considered "sane".
2707 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2708 alias in your environment" "$LINENO" 5
2709 fi
2710 if test "$2" = conftest.file || test $am_try -eq 2; then
2711 break
2712 fi
2713 # Just in case.
2714 sleep 1
2715 am_has_slept=yes
2716 done
2717 test "$2" = conftest.file
2718 )
2719 then
2720 # Ok.
2721 :
2722 else
2723 as_fn_error $? "newly created file is older than distributed files!
2724 Check your system clock" "$LINENO" 5
2725 fi
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 printf "%s\n" "yes" >&6; }
2728 # If we didn't sleep, we still need to ensure time stamps of config.status and
2729 # generated files are strictly newer.
2730 am_sleep_pid=
2731 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2732 ( sleep 1 ) &
2733 am_sleep_pid=$!
2734 fi
2735
2736 rm -f conftest.file
2737
2738 test "$program_prefix" != NONE &&
2739 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2740 # Use a double $ so make ignores it.
2741 test "$program_suffix" != NONE &&
2742 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2743 # Double any \ or $.
2744 # By default was `s,x,x', remove it if useless.
2745 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2746 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2747
2748
2749 # Expand $ac_aux_dir to an absolute path.
2750 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2751
2752
2753 if test x"${MISSING+set}" != xset; then
2754 MISSING="\${SHELL} '$am_aux_dir/missing'"
2755 fi
2756 # Use eval to expand $SHELL
2757 if eval "$MISSING --is-lightweight"; then
2758 am_missing_run="$MISSING "
2759 else
2760 am_missing_run=
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2762 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2763 fi
2764
2765 if test x"${install_sh+set}" != xset; then
2766 case $am_aux_dir in
2767 *\ * | *\ *)
2768 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2769 *)
2770 install_sh="\${SHELL} $am_aux_dir/install-sh"
2771 esac
2772 fi
2773
2774 # Installed binaries are usually stripped using 'strip' when the user
2775 # run "make install-strip". However 'strip' might not be the right
2776 # tool to use in cross-compilation environments, therefore Automake
2777 # will honor the 'STRIP' environment variable to overrule this program.
2778 if test "$cross_compiling" != no; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}strip; ac_word=$2
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 printf %s "checking for $ac_word... " >&6; }
2784 if test ${ac_cv_prog_STRIP+y}
2785 then :
2786 printf %s "(cached) " >&6
2787 else $as_nop
2788 if test -n "$STRIP"; then
2789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 case $as_dir in #(((
2796 '') as_dir=./ ;;
2797 */) ;;
2798 *) as_dir=$as_dir/ ;;
2799 esac
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 STRIP=$ac_cv_prog_STRIP
2813 if test -n "$STRIP"; then
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2815 printf "%s\n" "$STRIP" >&6; }
2816 else
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 printf "%s\n" "no" >&6; }
2819 fi
2820
2821
2822 fi
2823 if test -z "$ac_cv_prog_STRIP"; then
2824 ac_ct_STRIP=$STRIP
2825 # Extract the first word of "strip", so it can be a program name with args.
2826 set dummy strip; ac_word=$2
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 printf %s "checking for $ac_word... " >&6; }
2829 if test ${ac_cv_prog_ac_ct_STRIP+y}
2830 then :
2831 printf %s "(cached) " >&6
2832 else $as_nop
2833 if test -n "$ac_ct_STRIP"; then
2834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 case $as_dir in #(((
2841 '') as_dir=./ ;;
2842 */) ;;
2843 *) as_dir=$as_dir/ ;;
2844 esac
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_ac_ct_STRIP="strip"
2848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2858 if test -n "$ac_ct_STRIP"; then
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2860 printf "%s\n" "$ac_ct_STRIP" >&6; }
2861 else
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 printf "%s\n" "no" >&6; }
2864 fi
2865
2866 if test "x$ac_ct_STRIP" = x; then
2867 STRIP=":"
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870 yes:)
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875 STRIP=$ac_ct_STRIP
2876 fi
2877 else
2878 STRIP="$ac_cv_prog_STRIP"
2879 fi
2880
2881 fi
2882 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2883
2884
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2886 printf %s "checking for a race-free mkdir -p... " >&6; }
2887 if test -z "$MKDIR_P"; then
2888 if test ${ac_cv_path_mkdir+y}
2889 then :
2890 printf %s "(cached) " >&6
2891 else $as_nop
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2894 do
2895 IFS=$as_save_IFS
2896 case $as_dir in #(((
2897 '') as_dir=./ ;;
2898 */) ;;
2899 *) as_dir=$as_dir/ ;;
2900 esac
2901 for ac_prog in mkdir gmkdir; do
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2904 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2905 'mkdir ('*'coreutils) '* | \
2906 'BusyBox '* | \
2907 'mkdir (fileutils) '4.1*)
2908 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2909 break 3;;
2910 esac
2911 done
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917
2918 test -d ./--version && rmdir ./--version
2919 if test ${ac_cv_path_mkdir+y}; then
2920 MKDIR_P="$ac_cv_path_mkdir -p"
2921 else
2922 # As a last resort, use the slow shell script. Don't cache a
2923 # value for MKDIR_P within a source directory, because that will
2924 # break other packages using the cache if that directory is
2925 # removed, or if the value is a relative name.
2926 MKDIR_P="$ac_install_sh -d"
2927 fi
2928 fi
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2930 printf "%s\n" "$MKDIR_P" >&6; }
2931
2932 for ac_prog in gawk mawk nawk awk
2933 do
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 printf %s "checking for $ac_word... " >&6; }
2938 if test ${ac_cv_prog_AWK+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else $as_nop
2942 if test -n "$AWK"; then
2943 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 case $as_dir in #(((
2950 '') as_dir=./ ;;
2951 */) ;;
2952 *) as_dir=$as_dir/ ;;
2953 esac
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_AWK="$ac_prog"
2957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 AWK=$ac_cv_prog_AWK
2967 if test -n "$AWK"; then
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2969 printf "%s\n" "$AWK" >&6; }
2970 else
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 printf "%s\n" "no" >&6; }
2973 fi
2974
2975
2976 test -n "$AWK" && break
2977 done
2978
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2980 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981 set x ${MAKE-make}
2982 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2983 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else $as_nop
2987 cat >conftest.make <<\_ACEOF
2988 SHELL = /bin/sh
2989 all:
2990 @echo '@@@%%%=$(MAKE)=@@@%%%'
2991 _ACEOF
2992 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2994 *@@@%%%=?*=@@@%%%*)
2995 eval ac_cv_prog_make_${ac_make}_set=yes;;
2996 *)
2997 eval ac_cv_prog_make_${ac_make}_set=no;;
2998 esac
2999 rm -f conftest.make
3000 fi
3001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003 printf "%s\n" "yes" >&6; }
3004 SET_MAKE=
3005 else
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 printf "%s\n" "no" >&6; }
3008 SET_MAKE="MAKE=${MAKE-make}"
3009 fi
3010
3011 rm -rf .tst 2>/dev/null
3012 mkdir .tst 2>/dev/null
3013 if test -d .tst; then
3014 am__leading_dot=.
3015 else
3016 am__leading_dot=_
3017 fi
3018 rmdir .tst 2>/dev/null
3019
3020 # Check whether --enable-silent-rules was given.
3021 if test ${enable_silent_rules+y}
3022 then :
3023 enableval=$enable_silent_rules;
3024 fi
3025
3026 case $enable_silent_rules in # (((
3027 yes) AM_DEFAULT_VERBOSITY=0;;
3028 no) AM_DEFAULT_VERBOSITY=1;;
3029 *) AM_DEFAULT_VERBOSITY=1;;
3030 esac
3031 am_make=${MAKE-make}
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3033 printf %s "checking whether $am_make supports nested variables... " >&6; }
3034 if test ${am_cv_make_support_nested_variables+y}
3035 then :
3036 printf %s "(cached) " >&6
3037 else $as_nop
3038 if printf "%s\n" 'TRUE=$(BAR$(V))
3039 BAR0=false
3040 BAR1=true
3041 V=1
3042 am__doit:
3043 @$(TRUE)
3044 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3045 am_cv_make_support_nested_variables=yes
3046 else
3047 am_cv_make_support_nested_variables=no
3048 fi
3049 fi
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3051 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3052 if test $am_cv_make_support_nested_variables = yes; then
3053 AM_V='$(V)'
3054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3055 else
3056 AM_V=$AM_DEFAULT_VERBOSITY
3057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3058 fi
3059 AM_BACKSLASH='\'
3060
3061 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3062 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3063 # is not polluted with repeated "-I."
3064 am__isrc=' -I$(srcdir)'
3065 # test to see if srcdir already configured
3066 if test -f $srcdir/config.status; then
3067 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3068 fi
3069 fi
3070
3071 # test whether we have cygpath
3072 if test -z "$CYGPATH_W"; then
3073 if (cygpath --version) >/dev/null 2>/dev/null; then
3074 CYGPATH_W='cygpath -w'
3075 else
3076 CYGPATH_W=echo
3077 fi
3078 fi
3079
3080
3081 # Define the identity of the package.
3082 PACKAGE='xditview'
3083 VERSION='1.0.6'
3084
3085
3086 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3087
3088
3089 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3090
3091 # Some tools Automake needs.
3092
3093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3094
3095
3096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3097
3098
3099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3100
3101
3102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3103
3104
3105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3106
3107 # For better backward compatibility. To be removed once Automake 1.9.x
3108 # dies out for good. For more background, see:
3109 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3110 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3111 mkdir_p='$(MKDIR_P)'
3112
3113 # We need awk for the "check" target (and possibly the TAP driver). The
3114 # system "awk" is bad on some platforms.
3115 # Always define AMTAR for backward compatibility. Yes, it's still used
3116 # in the wild :-( We should find a proper way to deprecate it ...
3117 AMTAR='$${TAR-tar}'
3118
3119
3120 # We'll loop over all known methods to create a tar archive until one works.
3121 _am_tools='gnutar pax cpio none'
3122
3123 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3124
3125
3126
3127
3128
3129 # Variables for tags utilities; see am/tags.am
3130 if test -z "$CTAGS"; then
3131 CTAGS=ctags
3132 fi
3133
3134 if test -z "$ETAGS"; then
3135 ETAGS=etags
3136 fi
3137
3138 if test -z "$CSCOPE"; then
3139 CSCOPE=cscope
3140 fi
3141
3142
3143
3144 # POSIX will say in a future version that running "rm -f" with no argument
3145 # is OK; and we want to be able to make that assumption in our Makefile
3146 # recipes. So use an aggressive probe to check that the usage we want is
3147 # actually supported "in the wild" to an acceptable degree.
3148 # See automake bug#10828.
3149 # To make any issue more visible, cause the running configure to be aborted
3150 # by default if the 'rm' program in use doesn't match our expectations; the
3151 # user can still override this though.
3152 if rm -f && rm -fr && rm -rf; then : OK; else
3153 cat >&2 <<'END'
3154 Oops!
3155
3156 Your 'rm' program seems unable to run without file operands specified
3157 on the command line, even when the '-f' option is present. This is contrary
3158 to the behaviour of most rm programs out there, and not conforming with
3159 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3160
3161 Please tell bug-automake@gnu.org about your system, including the value
3162 of your $PATH and any error possibly output before this message. This
3163 can help us improve future automake versions.
3164
3165 END
3166 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3167 echo 'Configuration will proceed anyway, since you have set the' >&2
3168 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3169 echo >&2
3170 else
3171 cat >&2 <<'END'
3172 Aborting the configuration process, to ensure you take notice of the issue.
3173
3174 You can download and install GNU coreutils to get an 'rm' implementation
3175 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3176
3177 If you want to complete the configuration process using your problematic
3178 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3179 to "yes", and re-run configure.
3180
3181 END
3182 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3183 fi
3184 fi
3185
3186
3187 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208 DEPDIR="${am__leading_dot}deps"
3209
3210 ac_config_commands="$ac_config_commands depfiles"
3211
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3213 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3214 cat > confinc.mk << 'END'
3215 am__doit:
3216 @echo this is the am__doit target >confinc.out
3217 .PHONY: am__doit
3218 END
3219 am__include="#"
3220 am__quote=
3221 # BSD make does it like this.
3222 echo '.include "confinc.mk" # ignored' > confmf.BSD
3223 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3224 echo 'include confinc.mk # ignored' > confmf.GNU
3225 _am_result=no
3226 for s in GNU BSD; do
3227 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3228 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }
3232 case $?:`cat confinc.out 2>/dev/null` in #(
3233 '0:this is the am__doit target') :
3234 case $s in #(
3235 BSD) :
3236 am__include='.include' am__quote='"' ;; #(
3237 *) :
3238 am__include='include' am__quote='' ;;
3239 esac ;; #(
3240 *) :
3241 ;;
3242 esac
3243 if test "$am__include" != "#"; then
3244 _am_result="yes ($s style)"
3245 break
3246 fi
3247 done
3248 rm -f confinc.* confmf.*
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3250 printf "%s\n" "${_am_result}" >&6; }
3251
3252 # Check whether --enable-dependency-tracking was given.
3253 if test ${enable_dependency_tracking+y}
3254 then :
3255 enableval=$enable_dependency_tracking;
3256 fi
3257
3258 if test "x$enable_dependency_tracking" != xno; then
3259 am_depcomp="$ac_aux_dir/depcomp"
3260 AMDEPBACKSLASH='\'
3261 am__nodep='_no'
3262 fi
3263 if test "x$enable_dependency_tracking" != xno; then
3264 AMDEP_TRUE=
3265 AMDEP_FALSE='#'
3266 else
3267 AMDEP_TRUE='#'
3268 AMDEP_FALSE=
3269 fi
3270
3271
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 printf %s "checking for $ac_word... " >&6; }
3282 if test ${ac_cv_prog_CC+y}
3283 then :
3284 printf %s "(cached) " >&6
3285 else $as_nop
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 case $as_dir in #(((
3294 '') as_dir=./ ;;
3295 */) ;;
3296 *) as_dir=$as_dir/ ;;
3297 esac
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 printf "%s\n" "$CC" >&6; }
3314 else
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 printf "%s\n" "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$ac_cv_prog_CC"; then
3322 ac_ct_CC=$CC
3323 # Extract the first word of "gcc", so it can be a program name with args.
3324 set dummy gcc; ac_word=$2
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 printf %s "checking for $ac_word... " >&6; }
3327 if test ${ac_cv_prog_ac_ct_CC+y}
3328 then :
3329 printf %s "(cached) " >&6
3330 else $as_nop
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 case $as_dir in #(((
3339 '') as_dir=./ ;;
3340 */) ;;
3341 *) as_dir=$as_dir/ ;;
3342 esac
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_CC="gcc"
3346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3356 if test -n "$ac_ct_CC"; then
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3358 printf "%s\n" "$ac_ct_CC" >&6; }
3359 else
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 printf "%s\n" "no" >&6; }
3362 fi
3363
3364 if test "x$ac_ct_CC" = x; then
3365 CC=""
3366 else
3367 case $cross_compiling:$ac_tool_warned in
3368 yes:)
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3372 esac
3373 CC=$ac_ct_CC
3374 fi
3375 else
3376 CC="$ac_cv_prog_CC"
3377 fi
3378
3379 if test -z "$CC"; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}cc; ac_word=$2
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 printf %s "checking for $ac_word... " >&6; }
3385 if test ${ac_cv_prog_CC+y}
3386 then :
3387 printf %s "(cached) " >&6
3388 else $as_nop
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 case $as_dir in #(((
3397 '') as_dir=./ ;;
3398 */) ;;
3399 *) as_dir=$as_dir/ ;;
3400 esac
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3403 ac_cv_prog_CC="${ac_tool_prefix}cc"
3404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3405 break 2
3406 fi
3407 done
3408 done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 CC=$ac_cv_prog_CC
3414 if test -n "$CC"; then
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 printf "%s\n" "$CC" >&6; }
3417 else
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 printf "%s\n" "no" >&6; }
3420 fi
3421
3422
3423 fi
3424 fi
3425 if test -z "$CC"; then
3426 # Extract the first word of "cc", so it can be a program name with args.
3427 set dummy cc; ac_word=$2
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 printf %s "checking for $ac_word... " >&6; }
3430 if test ${ac_cv_prog_CC+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else $as_nop
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 ac_prog_rejected=no
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 case $as_dir in #(((
3443 '') as_dir=./ ;;
3444 */) ;;
3445 *) as_dir=$as_dir/ ;;
3446 esac
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3449 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450 ac_prog_rejected=yes
3451 continue
3452 fi
3453 ac_cv_prog_CC="cc"
3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457 done
3458 done
3459 IFS=$as_save_IFS
3460
3461 if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3471 fi
3472 fi
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 printf "%s\n" "$CC" >&6; }
3479 else
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 printf "%s\n" "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl.exe
3489 do
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 printf %s "checking for $ac_word... " >&6; }
3494 if test ${ac_cv_prog_CC+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else $as_nop
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 case $as_dir in #(((
3506 '') as_dir=./ ;;
3507 */) ;;
3508 *) as_dir=$as_dir/ ;;
3509 esac
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 printf "%s\n" "$CC" >&6; }
3526 else
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 printf "%s\n" "no" >&6; }
3529 fi
3530
3531
3532 test -n "$CC" && break
3533 done
3534 fi
3535 if test -z "$CC"; then
3536 ac_ct_CC=$CC
3537 for ac_prog in cl.exe
3538 do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_ac_ct_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 case $as_dir in #(((
3555 '') as_dir=./ ;;
3556 */) ;;
3557 *) as_dir=$as_dir/ ;;
3558 esac
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_ac_ct_CC="$ac_prog"
3562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3572 if test -n "$ac_ct_CC"; then
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3574 printf "%s\n" "$ac_ct_CC" >&6; }
3575 else
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 printf "%s\n" "no" >&6; }
3578 fi
3579
3580
3581 test -n "$ac_ct_CC" && break
3582 done
3583
3584 if test "x$ac_ct_CC" = x; then
3585 CC=""
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CC=$ac_ct_CC
3594 fi
3595 fi
3596
3597 fi
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}clang; ac_word=$2
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 printf %s "checking for $ac_word... " >&6; }
3604 if test ${ac_cv_prog_CC+y}
3605 then :
3606 printf %s "(cached) " >&6
3607 else $as_nop
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 case $as_dir in #(((
3616 '') as_dir=./ ;;
3617 */) ;;
3618 *) as_dir=$as_dir/ ;;
3619 esac
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_CC="${ac_tool_prefix}clang"
3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 printf "%s\n" "$CC" >&6; }
3636 else
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 printf "%s\n" "no" >&6; }
3639 fi
3640
3641
3642 fi
3643 if test -z "$ac_cv_prog_CC"; then
3644 ac_ct_CC=$CC
3645 # Extract the first word of "clang", so it can be a program name with args.
3646 set dummy clang; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_ac_ct_CC+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else $as_nop
3653 if test -n "$ac_ct_CC"; then
3654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 case $as_dir in #(((
3661 '') as_dir=./ ;;
3662 */) ;;
3663 *) as_dir=$as_dir/ ;;
3664 esac
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_ac_ct_CC="clang"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3678 if test -n "$ac_ct_CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3680 printf "%s\n" "$ac_ct_CC" >&6; }
3681 else
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3684 fi
3685
3686 if test "x$ac_ct_CC" = x; then
3687 CC=""
3688 else
3689 case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3694 esac
3695 CC=$ac_ct_CC
3696 fi
3697 else
3698 CC="$ac_cv_prog_CC"
3699 fi
3700
3701 fi
3702
3703
3704 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "no acceptable C compiler found in \$PATH
3707 See \`config.log' for more details" "$LINENO" 5; }
3708
3709 # Provide some information about the compiler.
3710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711 set X $ac_compile
3712 ac_compiler=$2
3713 for ac_option in --version -v -V -qversion -version; do
3714 { { ac_try="$ac_compiler $ac_option >&5"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 printf "%s\n" "$ac_try_echo"; } >&5
3721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3722 ac_status=$?
3723 if test -s conftest.err; then
3724 sed '10a\
3725 ... rest of stderr output deleted ...
3726 10q' conftest.err >conftest.er1
3727 cat conftest.er1 >&5
3728 fi
3729 rm -f conftest.er1 conftest.err
3730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }
3732 done
3733
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736
3737 int
3738 main (void)
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 ac_clean_files_save=$ac_clean_files
3746 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3747 # Try to create an executable without -o first, disregard a.out.
3748 # It will help us diagnose broken compilers, and finding out an intuition
3749 # of exeext.
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3751 printf %s "checking whether the C compiler works... " >&6; }
3752 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3753
3754 # The possible output files:
3755 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756
3757 ac_rmfiles=
3758 for ac_file in $ac_files
3759 do
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763 esac
3764 done
3765 rm -f $ac_rmfiles
3766
3767 if { { ac_try="$ac_link_default"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 printf "%s\n" "$ac_try_echo"; } >&5
3774 (eval "$ac_link_default") 2>&5
3775 ac_status=$?
3776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 then :
3779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3781 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3782 # so that the user can short-circuit this test for compilers unknown to
3783 # Autoconf.
3784 for ac_file in $ac_files ''
3785 do
3786 test -f "$ac_file" || continue
3787 case $ac_file in
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3789 ;;
3790 [ab].out )
3791 # We found the default executable, but exeext='' is most
3792 # certainly right.
3793 break;;
3794 *.* )
3795 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3796 then :; else
3797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798 fi
3799 # We set ac_cv_exeext here because the later test for it is not
3800 # safe: cross compilers may not add the suffix if given an `-o'
3801 # argument, so we may need to know it at that point already.
3802 # Even if this section looks crufty: it has the advantage of
3803 # actually working.
3804 break;;
3805 * )
3806 break;;
3807 esac
3808 done
3809 test "$ac_cv_exeext" = no && ac_cv_exeext=
3810
3811 else $as_nop
3812 ac_file=''
3813 fi
3814 if test -z "$ac_file"
3815 then :
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 printf "%s\n" "no" >&6; }
3818 printf "%s\n" "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error 77 "C compiler cannot create executables
3824 See \`config.log' for more details" "$LINENO" 5; }
3825 else $as_nop
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 printf "%s\n" "yes" >&6; }
3828 fi
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3830 printf %s "checking for C compiler default output file name... " >&6; }
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3832 printf "%s\n" "$ac_file" >&6; }
3833 ac_exeext=$ac_cv_exeext
3834
3835 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3836 ac_clean_files=$ac_clean_files_save
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3838 printf %s "checking for suffix of executables... " >&6; }
3839 if { { ac_try="$ac_link"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 printf "%s\n" "$ac_try_echo"; } >&5
3846 (eval "$ac_link") 2>&5
3847 ac_status=$?
3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }
3850 then :
3851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3852 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3853 # work properly (i.e., refer to `conftest.exe'), while it won't with
3854 # `rm'.
3855 for ac_file in conftest.exe conftest conftest.*; do
3856 test -f "$ac_file" || continue
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860 break;;
3861 * ) break;;
3862 esac
3863 done
3864 else $as_nop
3865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3868 See \`config.log' for more details" "$LINENO" 5; }
3869 fi
3870 rm -f conftest conftest$ac_cv_exeext
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3872 printf "%s\n" "$ac_cv_exeext" >&6; }
3873
3874 rm -f conftest.$ac_ext
3875 EXEEXT=$ac_cv_exeext
3876 ac_exeext=$EXEEXT
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879 #include <stdio.h>
3880 int
3881 main (void)
3882 {
3883 FILE *f = fopen ("conftest.out", "w");
3884 return ferror (f) || fclose (f) != 0;
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 ac_clean_files="$ac_clean_files conftest.out"
3891 # Check that the compiler produces executables we can run. If not, either
3892 # the compiler is broken, or we cross compile.
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3894 printf %s "checking whether we are cross compiling... " >&6; }
3895 if test "$cross_compiling" != yes; then
3896 { { ac_try="$ac_link"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 printf "%s\n" "$ac_try_echo"; } >&5
3903 (eval "$ac_link") 2>&5
3904 ac_status=$?
3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }
3907 if { ac_try='./conftest$ac_cv_exeext'
3908 { { case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 printf "%s\n" "$ac_try_echo"; } >&5
3914 (eval "$ac_try") 2>&5
3915 ac_status=$?
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; }; then
3918 cross_compiling=no
3919 else
3920 if test "$cross_compiling" = maybe; then
3921 cross_compiling=yes
3922 else
3923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error 77 "cannot run C compiled programs.
3926 If you meant to cross compile, use \`--host'.
3927 See \`config.log' for more details" "$LINENO" 5; }
3928 fi
3929 fi
3930 fi
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3932 printf "%s\n" "$cross_compiling" >&6; }
3933
3934 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3935 ac_clean_files=$ac_clean_files_save
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3937 printf %s "checking for suffix of object files... " >&6; }
3938 if test ${ac_cv_objext+y}
3939 then :
3940 printf %s "(cached) " >&6
3941 else $as_nop
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main (void)
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.o conftest.obj
3954 if { { ac_try="$ac_compile"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 printf "%s\n" "$ac_try_echo"; } >&5
3961 (eval "$ac_compile") 2>&5
3962 ac_status=$?
3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 then :
3966 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue;
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3971 break;;
3972 esac
3973 done
3974 else $as_nop
3975 printf "%s\n" "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of object files: cannot compile
3981 See \`config.log' for more details" "$LINENO" 5; }
3982 fi
3983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984 fi
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3986 printf "%s\n" "$ac_cv_objext" >&6; }
3987 OBJEXT=$ac_cv_objext
3988 ac_objext=$OBJEXT
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3990 printf %s "checking whether the compiler supports GNU C... " >&6; }
3991 if test ${ac_cv_c_compiler_gnu+y}
3992 then :
3993 printf %s "(cached) " >&6
3994 else $as_nop
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main (void)
4000 {
4001 #ifndef __GNUC__
4002 choke me
4003 #endif
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"
4010 then :
4011 ac_compiler_gnu=yes
4012 else $as_nop
4013 ac_compiler_gnu=no
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4017
4018 fi
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4020 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023 if test $ac_compiler_gnu = yes; then
4024 GCC=yes
4025 else
4026 GCC=
4027 fi
4028 ac_test_CFLAGS=${CFLAGS+y}
4029 ac_save_CFLAGS=$CFLAGS
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4031 printf %s "checking whether $CC accepts -g... " >&6; }
4032 if test ${ac_cv_prog_cc_g+y}
4033 then :
4034 printf %s "(cached) " >&6
4035 else $as_nop
4036 ac_save_c_werror_flag=$ac_c_werror_flag
4037 ac_c_werror_flag=yes
4038 ac_cv_prog_cc_g=no
4039 CFLAGS="-g"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main (void)
4045 {
4046
4047 ;
4048 return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"
4052 then :
4053 ac_cv_prog_cc_g=yes
4054 else $as_nop
4055 CFLAGS=""
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058
4059 int
4060 main (void)
4061 {
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"
4068 then :
4069
4070 else $as_nop
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 CFLAGS="-g"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075
4076 int
4077 main (void)
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"
4085 then :
4086 ac_cv_prog_cc_g=yes
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4094 fi
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4097 if test $ac_test_CFLAGS; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4104 fi
4105 else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4110 fi
4111 fi
4112 ac_prog_cc_stdc=no
4113 if test x$ac_prog_cc_stdc = xno
4114 then :
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4116 printf %s "checking for $CC option to enable C11 features... " >&6; }
4117 if test ${ac_cv_prog_cc_c11+y}
4118 then :
4119 printf %s "(cached) " >&6
4120 else $as_nop
4121 ac_cv_prog_cc_c11=no
4122 ac_save_CC=$CC
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 $ac_c_conftest_c11_program
4126 _ACEOF
4127 for ac_arg in '' -std=gnu11
4128 do
4129 CC="$ac_save_CC $ac_arg"
4130 if ac_fn_c_try_compile "$LINENO"
4131 then :
4132 ac_cv_prog_cc_c11=$ac_arg
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.beam
4135 test "x$ac_cv_prog_cc_c11" != "xno" && break
4136 done
4137 rm -f conftest.$ac_ext
4138 CC=$ac_save_CC
4139 fi
4140
4141 if test "x$ac_cv_prog_cc_c11" = xno
4142 then :
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144 printf "%s\n" "unsupported" >&6; }
4145 else $as_nop
4146 if test "x$ac_cv_prog_cc_c11" = x
4147 then :
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 printf "%s\n" "none needed" >&6; }
4150 else $as_nop
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4152 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4153 CC="$CC $ac_cv_prog_cc_c11"
4154 fi
4155 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4156 ac_prog_cc_stdc=c11
4157 fi
4158 fi
4159 if test x$ac_prog_cc_stdc = xno
4160 then :
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4162 printf %s "checking for $CC option to enable C99 features... " >&6; }
4163 if test ${ac_cv_prog_cc_c99+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else $as_nop
4167 ac_cv_prog_cc_c99=no
4168 ac_save_CC=$CC
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 $ac_c_conftest_c99_program
4172 _ACEOF
4173 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4174 do
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"
4177 then :
4178 ac_cv_prog_cc_c99=$ac_arg
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.beam
4181 test "x$ac_cv_prog_cc_c99" != "xno" && break
4182 done
4183 rm -f conftest.$ac_ext
4184 CC=$ac_save_CC
4185 fi
4186
4187 if test "x$ac_cv_prog_cc_c99" = xno
4188 then :
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4190 printf "%s\n" "unsupported" >&6; }
4191 else $as_nop
4192 if test "x$ac_cv_prog_cc_c99" = x
4193 then :
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4195 printf "%s\n" "none needed" >&6; }
4196 else $as_nop
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4198 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4199 CC="$CC $ac_cv_prog_cc_c99"
4200 fi
4201 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4202 ac_prog_cc_stdc=c99
4203 fi
4204 fi
4205 if test x$ac_prog_cc_stdc = xno
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4208 printf %s "checking for $CC option to enable C89 features... " >&6; }
4209 if test ${ac_cv_prog_cc_c89+y}
4210 then :
4211 printf %s "(cached) " >&6
4212 else $as_nop
4213 ac_cv_prog_cc_c89=no
4214 ac_save_CC=$CC
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 $ac_c_conftest_c89_program
4218 _ACEOF
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 do
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224 ac_cv_prog_cc_c89=$ac_arg
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.beam
4227 test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 done
4229 rm -f conftest.$ac_ext
4230 CC=$ac_save_CC
4231 fi
4232
4233 if test "x$ac_cv_prog_cc_c89" = xno
4234 then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 printf "%s\n" "unsupported" >&6; }
4237 else $as_nop
4238 if test "x$ac_cv_prog_cc_c89" = x
4239 then :
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 printf "%s\n" "none needed" >&6; }
4242 else $as_nop
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4245 CC="$CC $ac_cv_prog_cc_c89"
4246 fi
4247 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4248 ac_prog_cc_stdc=c89
4249 fi
4250 fi
4251
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257
4258
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4265 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4266 if test ${am_cv_prog_cc_c_o+y}
4267 then :
4268 printf %s "(cached) " >&6
4269 else $as_nop
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 int
4274 main (void)
4275 {
4276
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 # Make sure it works both with $CC and with simple cc.
4282 # Following AC_PROG_CC_C_O, we do the test twice because some
4283 # compilers refuse to overwrite an existing .o file with -o,
4284 # though they will create one.
4285 am_cv_prog_cc_c_o=yes
4286 for am_i in 1 2; do
4287 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4288 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } \
4292 && test -f conftest2.$ac_objext; then
4293 : OK
4294 else
4295 am_cv_prog_cc_c_o=no
4296 break
4297 fi
4298 done
4299 rm -f core conftest*
4300 unset am_i
4301 fi
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4303 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4304 if test "$am_cv_prog_cc_c_o" != yes; then
4305 # Losing compiler, so override with the script.
4306 # FIXME: It is wrong to rewrite CC.
4307 # But if we don't then we get into trouble of one sort or another.
4308 # A longer-term fix would be to have automake use am__CC in this case,
4309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4310 CC="$am_aux_dir/compile $CC"
4311 fi
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318
4319 depcc="$CC" am_compiler_list=
4320
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322 printf %s "checking dependency style of $depcc... " >&6; }
4323 if test ${am_cv_CC_dependencies_compiler_type+y}
4324 then :
4325 printf %s "(cached) " >&6
4326 else $as_nop
4327 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4328 # We make a subdir and do the tests there. Otherwise we can end up
4329 # making bogus files that we don't know about and never remove. For
4330 # instance it was reported that on HP-UX the gcc test will end up
4331 # making a dummy file named 'D' -- because '-MD' means "put the output
4332 # in D".
4333 rm -rf conftest.dir
4334 mkdir conftest.dir
4335 # Copy depcomp to subdir because otherwise we won't find it if we're
4336 # using a relative directory.
4337 cp "$am_depcomp" conftest.dir
4338 cd conftest.dir
4339 # We will build objects and dependencies in a subdirectory because
4340 # it helps to detect inapplicable dependency modes. For instance
4341 # both Tru64's cc and ICC support -MD to output dependencies as a
4342 # side effect of compilation, but ICC will put the dependencies in
4343 # the current directory while Tru64 will put them in the object
4344 # directory.
4345 mkdir sub
4346
4347 am_cv_CC_dependencies_compiler_type=none
4348 if test "$am_compiler_list" = ""; then
4349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4350 fi
4351 am__universal=false
4352 case " $depcc " in #(
4353 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4354 esac
4355
4356 for depmode in $am_compiler_list; do
4357 # Setup a source with many dependencies, because some compilers
4358 # like to wrap large dependency lists on column 80 (with \), and
4359 # we should not choose a depcomp mode which is confused by this.
4360 #
4361 # We need to recreate these files for each test, as the compiler may
4362 # overwrite some of them when testing with obscure command lines.
4363 # This happens at least with the AIX C compiler.
4364 : > sub/conftest.c
4365 for i in 1 2 3 4 5 6; do
4366 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4367 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4368 # Solaris 10 /bin/sh.
4369 echo '/* dummy */' > sub/conftst$i.h
4370 done
4371 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4372
4373 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4374 # mode. It turns out that the SunPro C++ compiler does not properly
4375 # handle '-M -o', and we need to detect this. Also, some Intel
4376 # versions had trouble with output in subdirs.
4377 am__obj=sub/conftest.${OBJEXT-o}
4378 am__minus_obj="-o $am__obj"
4379 case $depmode in
4380 gcc)
4381 # This depmode causes a compiler race in universal mode.
4382 test "$am__universal" = false || continue
4383 ;;
4384 nosideeffect)
4385 # After this tag, mechanisms are not by side-effect, so they'll
4386 # only be used when explicitly requested.
4387 if test "x$enable_dependency_tracking" = xyes; then
4388 continue
4389 else
4390 break
4391 fi
4392 ;;
4393 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4394 # This compiler won't grok '-c -o', but also, the minuso test has
4395 # not run yet. These depmodes are late enough in the game, and
4396 # so weak that their functioning should not be impacted.
4397 am__obj=conftest.${OBJEXT-o}
4398 am__minus_obj=
4399 ;;
4400 none) break ;;
4401 esac
4402 if depmode=$depmode \
4403 source=sub/conftest.c object=$am__obj \
4404 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4405 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4406 >/dev/null 2>conftest.err &&
4407 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4409 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4411 # icc doesn't choke on unknown options, it will just issue warnings
4412 # or remarks (even with -Werror). So we grep stderr for any message
4413 # that says an option was ignored or not supported.
4414 # When given -MP, icc 7.0 and 7.1 complain thusly:
4415 # icc: Command line warning: ignoring option '-M'; no argument required
4416 # The diagnosis changed in icc 8.0:
4417 # icc: Command line remark: option '-MP' not supported
4418 if (grep 'ignoring option' conftest.err ||
4419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4420 am_cv_CC_dependencies_compiler_type=$depmode
4421 break
4422 fi
4423 fi
4424 done
4425
4426 cd ..
4427 rm -rf conftest.dir
4428 else
4429 am_cv_CC_dependencies_compiler_type=none
4430 fi
4431
4432 fi
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4434 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4435 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4436
4437 if
4438 test "x$enable_dependency_tracking" != xno \
4439 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4440 am__fastdepCC_TRUE=
4441 am__fastdepCC_FALSE='#'
4442 else
4443 am__fastdepCC_TRUE='#'
4444 am__fastdepCC_FALSE=
4445 fi
4446
4447
4448
4449
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4451 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4452 if test ${ac_cv_c_undeclared_builtin_options+y}
4453 then :
4454 printf %s "(cached) " >&6
4455 else $as_nop
4456 ac_save_CFLAGS=$CFLAGS
4457 ac_cv_c_undeclared_builtin_options='cannot detect'
4458 for ac_arg in '' -fno-builtin; do
4459 CFLAGS="$ac_save_CFLAGS $ac_arg"
4460 # This test program should *not* compile successfully.
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463
4464 int
4465 main (void)
4466 {
4467 (void) strchr;
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"
4473 then :
4474
4475 else $as_nop
4476 # This test program should compile successfully.
4477 # No library function is consistently available on
4478 # freestanding implementations, so test against a dummy
4479 # declaration. Include always-available headers on the
4480 # off chance that they somehow elicit warnings.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <float.h>
4484 #include <limits.h>
4485 #include <stdarg.h>
4486 #include <stddef.h>
4487 extern void ac_decl (int, char *);
4488
4489 int
4490 main (void)
4491 {
4492 (void) ac_decl (0, (char *) 0);
4493 (void) ac_decl;
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_compile "$LINENO"
4500 then :
4501 if test x"$ac_arg" = x
4502 then :
4503 ac_cv_c_undeclared_builtin_options='none needed'
4504 else $as_nop
4505 ac_cv_c_undeclared_builtin_options=$ac_arg
4506 fi
4507 break
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4512 done
4513 CFLAGS=$ac_save_CFLAGS
4514
4515 fi
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4517 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4518 case $ac_cv_c_undeclared_builtin_options in #(
4519 'cannot detect') :
4520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error $? "cannot make $CC report undeclared builtins
4523 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4524 'none needed') :
4525 ac_c_undeclared_builtin_options='' ;; #(
4526 *) :
4527 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4528 esac
4529
4530 ac_header= ac_cache=
4531 for ac_item in $ac_header_c_list
4532 do
4533 if test $ac_cache; then
4534 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4535 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4536 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4537 fi
4538 ac_header= ac_cache=
4539 elif test $ac_header; then
4540 ac_cache=$ac_item
4541 else
4542 ac_header=$ac_item
4543 fi
4544 done
4545
4546
4547
4548
4549
4550
4551
4552
4553 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4554 then :
4555
4556 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4557
4558 fi
4559
4560
4561
4562
4563 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564 if test "x$ac_cv_have_decl___clang__" = xyes
4565 then :
4566 CLANGCC="yes"
4567 else $as_nop
4568 CLANGCC="no"
4569 fi
4570 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4572 then :
4573 INTELCC="yes"
4574 else $as_nop
4575 INTELCC="no"
4576 fi
4577 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4578 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4579 then :
4580 SUNCC="yes"
4581 else $as_nop
4582 SUNCC="no"
4583 fi
4584
4585
4586
4587
4588
4589
4590
4591
4592 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_path_PKG_CONFIG+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else $as_nop
4602 case $PKG_CONFIG in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605 ;;
4606 *)
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 case $as_dir in #(((
4612 '') as_dir=./ ;;
4613 */) ;;
4614 *) as_dir=$as_dir/ ;;
4615 esac
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 ;;
4627 esac
4628 fi
4629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4630 if test -n "$PKG_CONFIG"; then
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4632 printf "%s\n" "$PKG_CONFIG" >&6; }
4633 else
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 printf "%s\n" "no" >&6; }
4636 fi
4637
4638
4639 fi
4640 if test -z "$ac_cv_path_PKG_CONFIG"; then
4641 ac_pt_PKG_CONFIG=$PKG_CONFIG
4642 # Extract the first word of "pkg-config", so it can be a program name with args.
4643 set dummy pkg-config; ac_word=$2
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 printf %s "checking for $ac_word... " >&6; }
4646 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4647 then :
4648 printf %s "(cached) " >&6
4649 else $as_nop
4650 case $ac_pt_PKG_CONFIG in
4651 [\\/]* | ?:[\\/]*)
4652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4653 ;;
4654 *)
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 case $as_dir in #(((
4660 '') as_dir=./ ;;
4661 */) ;;
4662 *) as_dir=$as_dir/ ;;
4663 esac
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4666 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 ;;
4675 esac
4676 fi
4677 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4678 if test -n "$ac_pt_PKG_CONFIG"; then
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4680 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4681 else
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 printf "%s\n" "no" >&6; }
4684 fi
4685
4686 if test "x$ac_pt_PKG_CONFIG" = x; then
4687 PKG_CONFIG=""
4688 else
4689 case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695 PKG_CONFIG=$ac_pt_PKG_CONFIG
4696 fi
4697 else
4698 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4699 fi
4700
4701 fi
4702 if test -n "$PKG_CONFIG"; then
4703 _pkg_min_version=0.9.0
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4705 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4706 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708 printf "%s\n" "yes" >&6; }
4709 else
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 printf "%s\n" "no" >&6; }
4712 PKG_CONFIG=""
4713 fi
4714 fi
4715
4716
4717 # Make sure we can run config.sub.
4718 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4719 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4720
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722 printf %s "checking build system type... " >&6; }
4723 if test ${ac_cv_build+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else $as_nop
4727 ac_build_alias=$build_alias
4728 test "x$ac_build_alias" = x &&
4729 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4730 test "x$ac_build_alias" = x &&
4731 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4732 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4733 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4734
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4737 printf "%s\n" "$ac_cv_build" >&6; }
4738 case $ac_cv_build in
4739 *-*-*) ;;
4740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4741 esac
4742 build=$ac_cv_build
4743 ac_save_IFS=$IFS; IFS='-'
4744 set x $ac_cv_build
4745 shift
4746 build_cpu=$1
4747 build_vendor=$2
4748 shift; shift
4749 # Remember, the first character of IFS is used to create $*,
4750 # except with old shells:
4751 build_os=$*
4752 IFS=$ac_save_IFS
4753 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4754
4755
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4757 printf %s "checking host system type... " >&6; }
4758 if test ${ac_cv_host+y}
4759 then :
4760 printf %s "(cached) " >&6
4761 else $as_nop
4762 if test "x$host_alias" = x; then
4763 ac_cv_host=$ac_cv_build
4764 else
4765 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4766 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4767 fi
4768
4769 fi
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771 printf "%s\n" "$ac_cv_host" >&6; }
4772 case $ac_cv_host in
4773 *-*-*) ;;
4774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 esac
4776 host=$ac_cv_host
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_host
4779 shift
4780 host_cpu=$1
4781 host_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 host_os=$*
4786 IFS=$ac_save_IFS
4787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 printf %s "checking for a sed that does not truncate output... " >&6; }
4792 if test ${ac_cv_path_SED+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else $as_nop
4796 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797 for ac_i in 1 2 3 4 5 6 7; do
4798 ac_script="$ac_script$as_nl$ac_script"
4799 done
4800 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801 { ac_script=; unset ac_script;}
4802 if test -z "$SED"; then
4803 ac_path_SED_found=false
4804 # Loop through the user's path and test for each of PROGNAME-LIST
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808 IFS=$as_save_IFS
4809 case $as_dir in #(((
4810 '') as_dir=./ ;;
4811 */) ;;
4812 *) as_dir=$as_dir/ ;;
4813 esac
4814 for ac_prog in sed gsed
4815 do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4818 as_fn_executable_p "$ac_path_SED" || continue
4819 # Check for GNU ac_path_SED and select it if it is found.
4820 # Check for GNU $ac_path_SED
4821 case `"$ac_path_SED" --version 2>&1` in
4822 *GNU*)
4823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4824 *)
4825 ac_count=0
4826 printf %s 0123456789 >"conftest.in"
4827 while :
4828 do
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 printf "%s\n" '' >> "conftest.nl"
4833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_SED_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_SED="$ac_path_SED"
4839 ac_path_SED_max=$ac_count
4840 fi
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4843 done
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847 $ac_path_SED_found && break 3
4848 done
4849 done
4850 done
4851 IFS=$as_save_IFS
4852 if test -z "$ac_cv_path_SED"; then
4853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4854 fi
4855 else
4856 ac_cv_path_SED=$SED
4857 fi
4858
4859 fi
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4861 printf "%s\n" "$ac_cv_path_SED" >&6; }
4862 SED="$ac_cv_path_SED"
4863 rm -f conftest.sed
4864
4865
4866
4867
4868
4869
4870 # Check whether --enable-selective-werror was given.
4871 if test ${enable_selective_werror+y}
4872 then :
4873 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4874 else $as_nop
4875 SELECTIVE_WERROR=yes
4876 fi
4877
4878
4879
4880
4881
4882 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4883 if test "x$SUNCC" = "xyes"; then
4884 BASE_CFLAGS="-v"
4885 else
4886 BASE_CFLAGS=""
4887 fi
4888
4889 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 xorg_testset_save_CFLAGS="$CFLAGS"
4904
4905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4908 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4909 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4910 then :
4911 printf %s "(cached) " >&6
4912 else $as_nop
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 int i;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"
4918 then :
4919 xorg_cv_cc_flag_unknown_warning_option=yes
4920 else $as_nop
4921 xorg_cv_cc_flag_unknown_warning_option=no
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4924 fi
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928 CFLAGS="$xorg_testset_save_CFLAGS"
4929 fi
4930
4931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934 fi
4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else $as_nop
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"
4947 then :
4948 xorg_cv_cc_flag_unused_command_line_argument=yes
4949 else $as_nop
4950 xorg_cv_cc_flag_unused_command_line_argument=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4953 fi
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4955 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4957 CFLAGS="$xorg_testset_save_CFLAGS"
4958 fi
4959
4960 found="no"
4961
4962 if test $found = "no" ; then
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 fi
4966
4967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969 fi
4970
4971 CFLAGS="$CFLAGS -Wall"
4972
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4974 printf %s "checking if $CC supports -Wall... " >&6; }
4975 cacheid=xorg_cv_cc_flag__Wall
4976 if eval test \${$cacheid+y}
4977 then :
4978 printf %s "(cached) " >&6
4979 else $as_nop
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 int i;
4983 int
4984 main (void)
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_link "$LINENO"
4992 then :
4993 eval $cacheid=yes
4994 else $as_nop
4995 eval $cacheid=no
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4998 conftest$ac_exeext conftest.$ac_ext
4999 fi
5000
5001
5002 CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004 eval supported=\$$cacheid
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006 printf "%s\n" "$supported" >&6; }
5007 if test "$supported" = "yes" ; then
5008 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5009 found="yes"
5010 fi
5011 fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 xorg_testset_save_CFLAGS="$CFLAGS"
5028
5029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5033 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5034 then :
5035 printf %s "(cached) " >&6
5036 else $as_nop
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"
5042 then :
5043 xorg_cv_cc_flag_unknown_warning_option=yes
5044 else $as_nop
5045 xorg_cv_cc_flag_unknown_warning_option=no
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5048 fi
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052 CFLAGS="$xorg_testset_save_CFLAGS"
5053 fi
5054
5055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058 fi
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 int i;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"
5071 then :
5072 xorg_cv_cc_flag_unused_command_line_argument=yes
5073 else $as_nop
5074 xorg_cv_cc_flag_unused_command_line_argument=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5077 fi
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081 CFLAGS="$xorg_testset_save_CFLAGS"
5082 fi
5083
5084 found="no"
5085
5086 if test $found = "no" ; then
5087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089 fi
5090
5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093 fi
5094
5095 CFLAGS="$CFLAGS -Wpointer-arith"
5096
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5098 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5099 cacheid=xorg_cv_cc_flag__Wpointer_arith
5100 if eval test \${$cacheid+y}
5101 then :
5102 printf %s "(cached) " >&6
5103 else $as_nop
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 int i;
5107 int
5108 main (void)
5109 {
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_link "$LINENO"
5116 then :
5117 eval $cacheid=yes
5118 else $as_nop
5119 eval $cacheid=no
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5122 conftest$ac_exeext conftest.$ac_ext
5123 fi
5124
5125
5126 CFLAGS="$xorg_testset_save_CFLAGS"
5127
5128 eval supported=\$$cacheid
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5130 printf "%s\n" "$supported" >&6; }
5131 if test "$supported" = "yes" ; then
5132 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5133 found="yes"
5134 fi
5135 fi
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5158 then :
5159 printf %s "(cached) " >&6
5160 else $as_nop
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int i;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"
5166 then :
5167 xorg_cv_cc_flag_unknown_warning_option=yes
5168 else $as_nop
5169 xorg_cv_cc_flag_unknown_warning_option=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172 fi
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5174 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177 fi
5178
5179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182 fi
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5185 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5186 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else $as_nop
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 int i;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"
5195 then :
5196 xorg_cv_cc_flag_unused_command_line_argument=yes
5197 else $as_nop
5198 xorg_cv_cc_flag_unused_command_line_argument=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205 CFLAGS="$xorg_testset_save_CFLAGS"
5206 fi
5207
5208 found="no"
5209
5210 if test $found = "no" ; then
5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 fi
5214
5215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217 fi
5218
5219 CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5223 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224 if eval test \${$cacheid+y}
5225 then :
5226 printf %s "(cached) " >&6
5227 else $as_nop
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 int i;
5231 int
5232 main (void)
5233 {
5234
5235 ;
5236 return 0;
5237 }
5238 _ACEOF
5239 if ac_fn_c_try_link "$LINENO"
5240 then :
5241 eval $cacheid=yes
5242 else $as_nop
5243 eval $cacheid=no
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5246 conftest$ac_exeext conftest.$ac_ext
5247 fi
5248
5249
5250 CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252 eval supported=\$$cacheid
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254 printf "%s\n" "$supported" >&6; }
5255 if test "$supported" = "yes" ; then
5256 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5257 found="yes"
5258 fi
5259 fi
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275 xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else $as_nop
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 int i;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"
5290 then :
5291 xorg_cv_cc_flag_unknown_warning_option=yes
5292 else $as_nop
5293 xorg_cv_cc_flag_unknown_warning_option=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 fi
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5298 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5300 CFLAGS="$xorg_testset_save_CFLAGS"
5301 fi
5302
5303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306 fi
5307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5309 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5310 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 int i;
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"
5319 then :
5320 xorg_cv_cc_flag_unused_command_line_argument=yes
5321 else $as_nop
5322 xorg_cv_cc_flag_unused_command_line_argument=no
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5325 fi
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5327 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5329 CFLAGS="$xorg_testset_save_CFLAGS"
5330 fi
5331
5332 found="no"
5333
5334 if test $found = "no" ; then
5335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337 fi
5338
5339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341 fi
5342
5343 CFLAGS="$CFLAGS -Wformat=2"
5344
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5346 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5347 cacheid=xorg_cv_cc_flag__Wformat_2
5348 if eval test \${$cacheid+y}
5349 then :
5350 printf %s "(cached) " >&6
5351 else $as_nop
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 int i;
5355 int
5356 main (void)
5357 {
5358
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"
5364 then :
5365 eval $cacheid=yes
5366 else $as_nop
5367 eval $cacheid=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5370 conftest$ac_exeext conftest.$ac_ext
5371 fi
5372
5373
5374 CFLAGS="$xorg_testset_save_CFLAGS"
5375
5376 eval supported=\$$cacheid
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5378 printf "%s\n" "$supported" >&6; }
5379 if test "$supported" = "yes" ; then
5380 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5381 found="yes"
5382 fi
5383 fi
5384
5385 if test $found = "no" ; then
5386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388 fi
5389
5390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392 fi
5393
5394 CFLAGS="$CFLAGS -Wformat"
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5397 printf %s "checking if $CC supports -Wformat... " >&6; }
5398 cacheid=xorg_cv_cc_flag__Wformat
5399 if eval test \${$cacheid+y}
5400 then :
5401 printf %s "(cached) " >&6
5402 else $as_nop
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 int i;
5406 int
5407 main (void)
5408 {
5409
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_link "$LINENO"
5415 then :
5416 eval $cacheid=yes
5417 else $as_nop
5418 eval $cacheid=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5421 conftest$ac_exeext conftest.$ac_ext
5422 fi
5423
5424
5425 CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427 eval supported=\$$cacheid
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429 printf "%s\n" "$supported" >&6; }
5430 if test "$supported" = "yes" ; then
5431 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5432 found="yes"
5433 fi
5434 fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 xorg_testset_save_CFLAGS="$CFLAGS"
5453
5454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5457 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5458 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 int i;
5465 _ACEOF
5466 if ac_fn_c_try_compile "$LINENO"
5467 then :
5468 xorg_cv_cc_flag_unknown_warning_option=yes
5469 else $as_nop
5470 xorg_cv_cc_flag_unknown_warning_option=no
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5473 fi
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5475 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5477 CFLAGS="$xorg_testset_save_CFLAGS"
5478 fi
5479
5480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483 fi
5484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5486 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5487 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5488 then :
5489 printf %s "(cached) " >&6
5490 else $as_nop
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 int i;
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"
5496 then :
5497 xorg_cv_cc_flag_unused_command_line_argument=yes
5498 else $as_nop
5499 xorg_cv_cc_flag_unused_command_line_argument=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502 fi
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5504 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507 fi
5508
5509 found="no"
5510
5511 if test $found = "no" ; then
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 fi
5515
5516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518 fi
5519
5520 CFLAGS="$CFLAGS -Wstrict-prototypes"
5521
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5523 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5524 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5525 if eval test \${$cacheid+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else $as_nop
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 int
5533 main (void)
5534 {
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_link "$LINENO"
5541 then :
5542 eval $cacheid=yes
5543 else $as_nop
5544 eval $cacheid=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547 conftest$ac_exeext conftest.$ac_ext
5548 fi
5549
5550
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553 eval supported=\$$cacheid
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555 printf "%s\n" "$supported" >&6; }
5556 if test "$supported" = "yes" ; then
5557 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5558 found="yes"
5559 fi
5560 fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 xorg_testset_save_CFLAGS="$CFLAGS"
5577
5578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5581 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5582 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else $as_nop
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 int i;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"
5591 then :
5592 xorg_cv_cc_flag_unknown_warning_option=yes
5593 else $as_nop
5594 xorg_cv_cc_flag_unknown_warning_option=no
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5597 fi
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5599 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5601 CFLAGS="$xorg_testset_save_CFLAGS"
5602 fi
5603
5604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5607 fi
5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5610 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5611 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5612 then :
5613 printf %s "(cached) " >&6
5614 else $as_nop
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 int i;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"
5620 then :
5621 xorg_cv_cc_flag_unused_command_line_argument=yes
5622 else $as_nop
5623 xorg_cv_cc_flag_unused_command_line_argument=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5626 fi
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5628 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5630 CFLAGS="$xorg_testset_save_CFLAGS"
5631 fi
5632
5633 found="no"
5634
5635 if test $found = "no" ; then
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 fi
5639
5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642 fi
5643
5644 CFLAGS="$CFLAGS -Wmissing-prototypes"
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5647 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5648 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5649 if eval test \${$cacheid+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else $as_nop
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 int i;
5656 int
5657 main (void)
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_link "$LINENO"
5665 then :
5666 eval $cacheid=yes
5667 else $as_nop
5668 eval $cacheid=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5671 conftest$ac_exeext conftest.$ac_ext
5672 fi
5673
5674
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676
5677 eval supported=\$$cacheid
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5679 printf "%s\n" "$supported" >&6; }
5680 if test "$supported" = "yes" ; then
5681 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5682 found="yes"
5683 fi
5684 fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 xorg_testset_save_CFLAGS="$CFLAGS"
5701
5702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5707 then :
5708 printf %s "(cached) " >&6
5709 else $as_nop
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 int i;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"
5715 then :
5716 xorg_cv_cc_flag_unknown_warning_option=yes
5717 else $as_nop
5718 xorg_cv_cc_flag_unknown_warning_option=no
5719 fi
5720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5721 fi
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5723 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5725 CFLAGS="$xorg_testset_save_CFLAGS"
5726 fi
5727
5728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731 fi
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5736 then :
5737 printf %s "(cached) " >&6
5738 else $as_nop
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 int i;
5742 _ACEOF
5743 if ac_fn_c_try_compile "$LINENO"
5744 then :
5745 xorg_cv_cc_flag_unused_command_line_argument=yes
5746 else $as_nop
5747 xorg_cv_cc_flag_unused_command_line_argument=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 fi
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754 CFLAGS="$xorg_testset_save_CFLAGS"
5755 fi
5756
5757 found="no"
5758
5759 if test $found = "no" ; then
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 fi
5763
5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766 fi
5767
5768 CFLAGS="$CFLAGS -Wnested-externs"
5769
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5771 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5772 cacheid=xorg_cv_cc_flag__Wnested_externs
5773 if eval test \${$cacheid+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else $as_nop
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 int
5781 main (void)
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"
5789 then :
5790 eval $cacheid=yes
5791 else $as_nop
5792 eval $cacheid=no
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795 conftest$ac_exeext conftest.$ac_ext
5796 fi
5797
5798
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801 eval supported=\$$cacheid
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803 printf "%s\n" "$supported" >&6; }
5804 if test "$supported" = "yes" ; then
5805 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5806 found="yes"
5807 fi
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else $as_nop
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"
5839 then :
5840 xorg_cv_cc_flag_unknown_warning_option=yes
5841 else $as_nop
5842 xorg_cv_cc_flag_unknown_warning_option=no
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5849 CFLAGS="$xorg_testset_save_CFLAGS"
5850 fi
5851
5852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855 fi
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5860 then :
5861 printf %s "(cached) " >&6
5862 else $as_nop
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 int i;
5866 _ACEOF
5867 if ac_fn_c_try_compile "$LINENO"
5868 then :
5869 xorg_cv_cc_flag_unused_command_line_argument=yes
5870 else $as_nop
5871 xorg_cv_cc_flag_unused_command_line_argument=no
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5874 fi
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5878 CFLAGS="$xorg_testset_save_CFLAGS"
5879 fi
5880
5881 found="no"
5882
5883 if test $found = "no" ; then
5884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886 fi
5887
5888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890 fi
5891
5892 CFLAGS="$CFLAGS -Wbad-function-cast"
5893
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5895 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5896 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5897 if eval test \${$cacheid+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else $as_nop
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 int i;
5904 int
5905 main (void)
5906 {
5907
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_link "$LINENO"
5913 then :
5914 eval $cacheid=yes
5915 else $as_nop
5916 eval $cacheid=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919 conftest$ac_exeext conftest.$ac_ext
5920 fi
5921
5922
5923 CFLAGS="$xorg_testset_save_CFLAGS"
5924
5925 eval supported=\$$cacheid
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5927 printf "%s\n" "$supported" >&6; }
5928 if test "$supported" = "yes" ; then
5929 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5930 found="yes"
5931 fi
5932 fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948 xorg_testset_save_CFLAGS="$CFLAGS"
5949
5950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5953 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5954 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else $as_nop
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 int i;
5961 _ACEOF
5962 if ac_fn_c_try_compile "$LINENO"
5963 then :
5964 xorg_cv_cc_flag_unknown_warning_option=yes
5965 else $as_nop
5966 xorg_cv_cc_flag_unknown_warning_option=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5969 fi
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5973 CFLAGS="$xorg_testset_save_CFLAGS"
5974 fi
5975
5976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979 fi
5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5984 then :
5985 printf %s "(cached) " >&6
5986 else $as_nop
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 int i;
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"
5992 then :
5993 xorg_cv_cc_flag_unused_command_line_argument=yes
5994 else $as_nop
5995 xorg_cv_cc_flag_unused_command_line_argument=no
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5998 fi
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6002 CFLAGS="$xorg_testset_save_CFLAGS"
6003 fi
6004
6005 found="no"
6006
6007 if test $found = "no" ; then
6008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010 fi
6011
6012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014 fi
6015
6016 CFLAGS="$CFLAGS -Wold-style-definition"
6017
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6019 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6020 cacheid=xorg_cv_cc_flag__Wold_style_definition
6021 if eval test \${$cacheid+y}
6022 then :
6023 printf %s "(cached) " >&6
6024 else $as_nop
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 int i;
6028 int
6029 main (void)
6030 {
6031
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_link "$LINENO"
6037 then :
6038 eval $cacheid=yes
6039 else $as_nop
6040 eval $cacheid=no
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6043 conftest$ac_exeext conftest.$ac_ext
6044 fi
6045
6046
6047 CFLAGS="$xorg_testset_save_CFLAGS"
6048
6049 eval supported=\$$cacheid
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6051 printf "%s\n" "$supported" >&6; }
6052 if test "$supported" = "yes" ; then
6053 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6054 found="yes"
6055 fi
6056 fi
6057
6058 if test $found = "no" ; then
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 fi
6062
6063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6065 fi
6066
6067 CFLAGS="$CFLAGS -fd"
6068
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6070 printf %s "checking if $CC supports -fd... " >&6; }
6071 cacheid=xorg_cv_cc_flag__fd
6072 if eval test \${$cacheid+y}
6073 then :
6074 printf %s "(cached) " >&6
6075 else $as_nop
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 int i;
6079 int
6080 main (void)
6081 {
6082
6083 ;
6084 return 0;
6085 }
6086 _ACEOF
6087 if ac_fn_c_try_link "$LINENO"
6088 then :
6089 eval $cacheid=yes
6090 else $as_nop
6091 eval $cacheid=no
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6094 conftest$ac_exeext conftest.$ac_ext
6095 fi
6096
6097
6098 CFLAGS="$xorg_testset_save_CFLAGS"
6099
6100 eval supported=\$$cacheid
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102 printf "%s\n" "$supported" >&6; }
6103 if test "$supported" = "yes" ; then
6104 BASE_CFLAGS="$BASE_CFLAGS -fd"
6105 found="yes"
6106 fi
6107 fi
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 xorg_testset_save_CFLAGS="$CFLAGS"
6124
6125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6128 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6129 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 int i;
6136 _ACEOF
6137 if ac_fn_c_try_compile "$LINENO"
6138 then :
6139 xorg_cv_cc_flag_unknown_warning_option=yes
6140 else $as_nop
6141 xorg_cv_cc_flag_unknown_warning_option=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 fi
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149 fi
6150
6151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154 fi
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6159 then :
6160 printf %s "(cached) " >&6
6161 else $as_nop
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 int i;
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"
6167 then :
6168 xorg_cv_cc_flag_unused_command_line_argument=yes
6169 else $as_nop
6170 xorg_cv_cc_flag_unused_command_line_argument=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6173 fi
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 found="no"
6181
6182 if test $found = "no" ; then
6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185 fi
6186
6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189 fi
6190
6191 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6192
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6194 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6195 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6196 if eval test \${$cacheid+y}
6197 then :
6198 printf %s "(cached) " >&6
6199 else $as_nop
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 int i;
6203 int
6204 main (void)
6205 {
6206
6207 ;
6208 return 0;
6209 }
6210 _ACEOF
6211 if ac_fn_c_try_link "$LINENO"
6212 then :
6213 eval $cacheid=yes
6214 else $as_nop
6215 eval $cacheid=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6218 conftest$ac_exeext conftest.$ac_ext
6219 fi
6220
6221
6222 CFLAGS="$xorg_testset_save_CFLAGS"
6223
6224 eval supported=\$$cacheid
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6226 printf "%s\n" "$supported" >&6; }
6227 if test "$supported" = "yes" ; then
6228 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6229 found="yes"
6230 fi
6231 fi
6232
6233
6234
6235
6236
6237 # This chunk adds additional warnings that could catch undesired effects.
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 xorg_testset_save_CFLAGS="$CFLAGS"
6252
6253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6258 then :
6259 printf %s "(cached) " >&6
6260 else $as_nop
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 int i;
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"
6266 then :
6267 xorg_cv_cc_flag_unknown_warning_option=yes
6268 else $as_nop
6269 xorg_cv_cc_flag_unknown_warning_option=no
6270 fi
6271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6272 fi
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6276 CFLAGS="$xorg_testset_save_CFLAGS"
6277 fi
6278
6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282 fi
6283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else $as_nop
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 int i;
6293 _ACEOF
6294 if ac_fn_c_try_compile "$LINENO"
6295 then :
6296 xorg_cv_cc_flag_unused_command_line_argument=yes
6297 else $as_nop
6298 xorg_cv_cc_flag_unused_command_line_argument=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6301 fi
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6306 fi
6307
6308 found="no"
6309
6310 if test $found = "no" ; then
6311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313 fi
6314
6315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317 fi
6318
6319 CFLAGS="$CFLAGS -Wunused"
6320
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6322 printf %s "checking if $CC supports -Wunused... " >&6; }
6323 cacheid=xorg_cv_cc_flag__Wunused
6324 if eval test \${$cacheid+y}
6325 then :
6326 printf %s "(cached) " >&6
6327 else $as_nop
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 int i;
6331 int
6332 main (void)
6333 {
6334
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"
6340 then :
6341 eval $cacheid=yes
6342 else $as_nop
6343 eval $cacheid=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6346 conftest$ac_exeext conftest.$ac_ext
6347 fi
6348
6349
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352 eval supported=\$$cacheid
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354 printf "%s\n" "$supported" >&6; }
6355 if test "$supported" = "yes" ; then
6356 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6357 found="yes"
6358 fi
6359 fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6382 then :
6383 printf %s "(cached) " >&6
6384 else $as_nop
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"
6390 then :
6391 xorg_cv_cc_flag_unknown_warning_option=yes
6392 else $as_nop
6393 xorg_cv_cc_flag_unknown_warning_option=no
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6396 fi
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6398 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6400 CFLAGS="$xorg_testset_save_CFLAGS"
6401 fi
6402
6403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406 fi
6407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6411 then :
6412 printf %s "(cached) " >&6
6413 else $as_nop
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 int i;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"
6419 then :
6420 xorg_cv_cc_flag_unused_command_line_argument=yes
6421 else $as_nop
6422 xorg_cv_cc_flag_unused_command_line_argument=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6425 fi
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6429 CFLAGS="$xorg_testset_save_CFLAGS"
6430 fi
6431
6432 found="no"
6433
6434 if test $found = "no" ; then
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 fi
6438
6439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441 fi
6442
6443 CFLAGS="$CFLAGS -Wuninitialized"
6444
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6446 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6447 cacheid=xorg_cv_cc_flag__Wuninitialized
6448 if eval test \${$cacheid+y}
6449 then :
6450 printf %s "(cached) " >&6
6451 else $as_nop
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 int i;
6455 int
6456 main (void)
6457 {
6458
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_c_try_link "$LINENO"
6464 then :
6465 eval $cacheid=yes
6466 else $as_nop
6467 eval $cacheid=no
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6470 conftest$ac_exeext conftest.$ac_ext
6471 fi
6472
6473
6474 CFLAGS="$xorg_testset_save_CFLAGS"
6475
6476 eval supported=\$$cacheid
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6478 printf "%s\n" "$supported" >&6; }
6479 if test "$supported" = "yes" ; then
6480 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6481 found="yes"
6482 fi
6483 fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 xorg_testset_save_CFLAGS="$CFLAGS"
6500
6501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6506 then :
6507 printf %s "(cached) " >&6
6508 else $as_nop
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 int i;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"
6514 then :
6515 xorg_cv_cc_flag_unknown_warning_option=yes
6516 else $as_nop
6517 xorg_cv_cc_flag_unknown_warning_option=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6520 fi
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6524 CFLAGS="$xorg_testset_save_CFLAGS"
6525 fi
6526
6527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 fi
6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6535 then :
6536 printf %s "(cached) " >&6
6537 else $as_nop
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"
6543 then :
6544 xorg_cv_cc_flag_unused_command_line_argument=yes
6545 else $as_nop
6546 xorg_cv_cc_flag_unused_command_line_argument=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6549 fi
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551 printf "%s\n" "$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 -Wshadow"
6568
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6570 printf %s "checking if $CC supports -Wshadow... " >&6; }
6571 cacheid=xorg_cv_cc_flag__Wshadow
6572 if eval test \${$cacheid+y}
6573 then :
6574 printf %s "(cached) " >&6
6575 else $as_nop
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 int i;
6579 int
6580 main (void)
6581 {
6582
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"
6588 then :
6589 eval $cacheid=yes
6590 else $as_nop
6591 eval $cacheid=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6594 conftest$ac_exeext conftest.$ac_ext
6595 fi
6596
6597
6598 CFLAGS="$xorg_testset_save_CFLAGS"
6599
6600 eval supported=\$$cacheid
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6602 printf "%s\n" "$supported" >&6; }
6603 if test "$supported" = "yes" ; then
6604 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6605 found="yes"
6606 fi
6607 fi
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 xorg_testset_save_CFLAGS="$CFLAGS"
6624
6625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else $as_nop
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 int i;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"
6638 then :
6639 xorg_cv_cc_flag_unknown_warning_option=yes
6640 else $as_nop
6641 xorg_cv_cc_flag_unknown_warning_option=no
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6644 fi
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648 CFLAGS="$xorg_testset_save_CFLAGS"
6649 fi
6650
6651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654 fi
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6659 then :
6660 printf %s "(cached) " >&6
6661 else $as_nop
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"
6667 then :
6668 xorg_cv_cc_flag_unused_command_line_argument=yes
6669 else $as_nop
6670 xorg_cv_cc_flag_unused_command_line_argument=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 fi
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678 fi
6679
6680 found="no"
6681
6682 if test $found = "no" ; then
6683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685 fi
6686
6687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689 fi
6690
6691 CFLAGS="$CFLAGS -Wmissing-noreturn"
6692
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6694 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6695 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6696 if eval test \${$cacheid+y}
6697 then :
6698 printf %s "(cached) " >&6
6699 else $as_nop
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 int i;
6703 int
6704 main (void)
6705 {
6706
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 if ac_fn_c_try_link "$LINENO"
6712 then :
6713 eval $cacheid=yes
6714 else $as_nop
6715 eval $cacheid=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6718 conftest$ac_exeext conftest.$ac_ext
6719 fi
6720
6721
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724 eval supported=\$$cacheid
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726 printf "%s\n" "$supported" >&6; }
6727 if test "$supported" = "yes" ; then
6728 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6729 found="yes"
6730 fi
6731 fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747 xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6754 then :
6755 printf %s "(cached) " >&6
6756 else $as_nop
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 int i;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"
6762 then :
6763 xorg_cv_cc_flag_unknown_warning_option=yes
6764 else $as_nop
6765 xorg_cv_cc_flag_unknown_warning_option=no
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772 CFLAGS="$xorg_testset_save_CFLAGS"
6773 fi
6774
6775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778 fi
6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6783 then :
6784 printf %s "(cached) " >&6
6785 else $as_nop
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int i;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"
6791 then :
6792 xorg_cv_cc_flag_unused_command_line_argument=yes
6793 else $as_nop
6794 xorg_cv_cc_flag_unused_command_line_argument=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6797 fi
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801 CFLAGS="$xorg_testset_save_CFLAGS"
6802 fi
6803
6804 found="no"
6805
6806 if test $found = "no" ; then
6807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 fi
6810
6811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813 fi
6814
6815 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6816
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6818 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6819 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6820 if eval test \${$cacheid+y}
6821 then :
6822 printf %s "(cached) " >&6
6823 else $as_nop
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 int i;
6827 int
6828 main (void)
6829 {
6830
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"
6836 then :
6837 eval $cacheid=yes
6838 else $as_nop
6839 eval $cacheid=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6842 conftest$ac_exeext conftest.$ac_ext
6843 fi
6844
6845
6846 CFLAGS="$xorg_testset_save_CFLAGS"
6847
6848 eval supported=\$$cacheid
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6850 printf "%s\n" "$supported" >&6; }
6851 if test "$supported" = "yes" ; then
6852 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6853 found="yes"
6854 fi
6855 fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 xorg_testset_save_CFLAGS="$CFLAGS"
6872
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6877 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6878 then :
6879 printf %s "(cached) " >&6
6880 else $as_nop
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 int i;
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"
6886 then :
6887 xorg_cv_cc_flag_unknown_warning_option=yes
6888 else $as_nop
6889 xorg_cv_cc_flag_unknown_warning_option=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6892 fi
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897 fi
6898
6899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902 fi
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6907 then :
6908 printf %s "(cached) " >&6
6909 else $as_nop
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912 int i;
6913 _ACEOF
6914 if ac_fn_c_try_compile "$LINENO"
6915 then :
6916 xorg_cv_cc_flag_unused_command_line_argument=yes
6917 else $as_nop
6918 xorg_cv_cc_flag_unused_command_line_argument=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6921 fi
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6925 CFLAGS="$xorg_testset_save_CFLAGS"
6926 fi
6927
6928 found="no"
6929
6930 if test $found = "no" ; then
6931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933 fi
6934
6935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937 fi
6938
6939 CFLAGS="$CFLAGS -Wredundant-decls"
6940
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6942 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6943 cacheid=xorg_cv_cc_flag__Wredundant_decls
6944 if eval test \${$cacheid+y}
6945 then :
6946 printf %s "(cached) " >&6
6947 else $as_nop
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 int i;
6951 int
6952 main (void)
6953 {
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"
6960 then :
6961 eval $cacheid=yes
6962 else $as_nop
6963 eval $cacheid=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6966 conftest$ac_exeext conftest.$ac_ext
6967 fi
6968
6969
6970 CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972 eval supported=\$$cacheid
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974 printf "%s\n" "$supported" >&6; }
6975 if test "$supported" = "yes" ; then
6976 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6977 found="yes"
6978 fi
6979 fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7002 then :
7003 printf %s "(cached) " >&6
7004 else $as_nop
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"
7010 then :
7011 xorg_cv_cc_flag_unknown_warning_option=yes
7012 else $as_nop
7013 xorg_cv_cc_flag_unknown_warning_option=no
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7016 fi
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7021 fi
7022
7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026 fi
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7031 then :
7032 printf %s "(cached) " >&6
7033 else $as_nop
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int i;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"
7039 then :
7040 xorg_cv_cc_flag_unused_command_line_argument=yes
7041 else $as_nop
7042 xorg_cv_cc_flag_unused_command_line_argument=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7045 fi
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7049 CFLAGS="$xorg_testset_save_CFLAGS"
7050 fi
7051
7052 found="no"
7053
7054 if test $found = "no" ; then
7055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057 fi
7058
7059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061 fi
7062
7063 CFLAGS="$CFLAGS -Wlogical-op"
7064
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7066 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7067 cacheid=xorg_cv_cc_flag__Wlogical_op
7068 if eval test \${$cacheid+y}
7069 then :
7070 printf %s "(cached) " >&6
7071 else $as_nop
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 int i;
7075 int
7076 main (void)
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"
7084 then :
7085 eval $cacheid=yes
7086 else $as_nop
7087 eval $cacheid=no
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7090 conftest$ac_exeext conftest.$ac_ext
7091 fi
7092
7093
7094 CFLAGS="$xorg_testset_save_CFLAGS"
7095
7096 eval supported=\$$cacheid
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7098 printf "%s\n" "$supported" >&6; }
7099 if test "$supported" = "yes" ; then
7100 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7101 found="yes"
7102 fi
7103 fi
7104
7105
7106
7107 # These are currently disabled because they are noisy. They will be enabled
7108 # in the future once the codebase is sufficiently modernized to silence
7109 # them. For now, I don't want them to drown out the other warnings.
7110 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7111 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7112 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7113
7114 # Turn some warnings into errors, so we don't accidently get successful builds
7115 # when there are problems that should be fixed.
7116
7117 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7138 then :
7139 printf %s "(cached) " >&6
7140 else $as_nop
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"
7146 then :
7147 xorg_cv_cc_flag_unknown_warning_option=yes
7148 else $as_nop
7149 xorg_cv_cc_flag_unknown_warning_option=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7152 fi
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7154 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 fi
7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7165 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7166 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7167 then :
7168 printf %s "(cached) " >&6
7169 else $as_nop
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 int i;
7173 _ACEOF
7174 if ac_fn_c_try_compile "$LINENO"
7175 then :
7176 xorg_cv_cc_flag_unused_command_line_argument=yes
7177 else $as_nop
7178 xorg_cv_cc_flag_unused_command_line_argument=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7181 fi
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7183 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7185 CFLAGS="$xorg_testset_save_CFLAGS"
7186 fi
7187
7188 found="no"
7189
7190 if test $found = "no" ; then
7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193 fi
7194
7195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197 fi
7198
7199 CFLAGS="$CFLAGS -Werror=implicit"
7200
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7202 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7203 cacheid=xorg_cv_cc_flag__Werror_implicit
7204 if eval test \${$cacheid+y}
7205 then :
7206 printf %s "(cached) " >&6
7207 else $as_nop
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 int i;
7211 int
7212 main (void)
7213 {
7214
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_link "$LINENO"
7220 then :
7221 eval $cacheid=yes
7222 else $as_nop
7223 eval $cacheid=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7226 conftest$ac_exeext conftest.$ac_ext
7227 fi
7228
7229
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7231
7232 eval supported=\$$cacheid
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7234 printf "%s\n" "$supported" >&6; }
7235 if test "$supported" = "yes" ; then
7236 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7237 found="yes"
7238 fi
7239 fi
7240
7241 if test $found = "no" ; then
7242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244 fi
7245
7246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248 fi
7249
7250 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7251
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7253 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7254 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7255 if eval test \${$cacheid+y}
7256 then :
7257 printf %s "(cached) " >&6
7258 else $as_nop
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 int i;
7262 int
7263 main (void)
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"
7271 then :
7272 eval $cacheid=yes
7273 else $as_nop
7274 eval $cacheid=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7277 conftest$ac_exeext conftest.$ac_ext
7278 fi
7279
7280
7281 CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283 eval supported=\$$cacheid
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285 printf "%s\n" "$supported" >&6; }
7286 if test "$supported" = "yes" ; then
7287 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7288 found="yes"
7289 fi
7290 fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306 xorg_testset_save_CFLAGS="$CFLAGS"
7307
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7312 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else $as_nop
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 int i;
7319 _ACEOF
7320 if ac_fn_c_try_compile "$LINENO"
7321 then :
7322 xorg_cv_cc_flag_unknown_warning_option=yes
7323 else $as_nop
7324 xorg_cv_cc_flag_unknown_warning_option=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7327 fi
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7329 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7332 fi
7333
7334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337 fi
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7340 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7341 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else $as_nop
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 _ACEOF
7349 if ac_fn_c_try_compile "$LINENO"
7350 then :
7351 xorg_cv_cc_flag_unused_command_line_argument=yes
7352 else $as_nop
7353 xorg_cv_cc_flag_unused_command_line_argument=no
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 fi
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7360 CFLAGS="$xorg_testset_save_CFLAGS"
7361 fi
7362
7363 found="no"
7364
7365 if test $found = "no" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369
7370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372 fi
7373
7374 CFLAGS="$CFLAGS -Werror=nonnull"
7375
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7377 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7378 cacheid=xorg_cv_cc_flag__Werror_nonnull
7379 if eval test \${$cacheid+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else $as_nop
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 int i;
7386 int
7387 main (void)
7388 {
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_link "$LINENO"
7395 then :
7396 eval $cacheid=yes
7397 else $as_nop
7398 eval $cacheid=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7401 conftest$ac_exeext conftest.$ac_ext
7402 fi
7403
7404
7405 CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407 eval supported=\$$cacheid
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409 printf "%s\n" "$supported" >&6; }
7410 if test "$supported" = "yes" ; then
7411 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7412 found="yes"
7413 fi
7414 fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7437 then :
7438 printf %s "(cached) " >&6
7439 else $as_nop
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 int i;
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"
7445 then :
7446 xorg_cv_cc_flag_unknown_warning_option=yes
7447 else $as_nop
7448 xorg_cv_cc_flag_unknown_warning_option=no
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7451 fi
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455 CFLAGS="$xorg_testset_save_CFLAGS"
7456 fi
7457
7458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 fi
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7466 then :
7467 printf %s "(cached) " >&6
7468 else $as_nop
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 int i;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"
7474 then :
7475 xorg_cv_cc_flag_unused_command_line_argument=yes
7476 else $as_nop
7477 xorg_cv_cc_flag_unused_command_line_argument=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7480 fi
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7482 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7484 CFLAGS="$xorg_testset_save_CFLAGS"
7485 fi
7486
7487 found="no"
7488
7489 if test $found = "no" ; then
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492 fi
7493
7494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7496 fi
7497
7498 CFLAGS="$CFLAGS -Werror=init-self"
7499
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7501 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7502 cacheid=xorg_cv_cc_flag__Werror_init_self
7503 if eval test \${$cacheid+y}
7504 then :
7505 printf %s "(cached) " >&6
7506 else $as_nop
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 int i;
7510 int
7511 main (void)
7512 {
7513
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"
7519 then :
7520 eval $cacheid=yes
7521 else $as_nop
7522 eval $cacheid=no
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7525 conftest$ac_exeext conftest.$ac_ext
7526 fi
7527
7528
7529 CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531 eval supported=\$$cacheid
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533 printf "%s\n" "$supported" >&6; }
7534 if test "$supported" = "yes" ; then
7535 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7536 found="yes"
7537 fi
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7561 then :
7562 printf %s "(cached) " >&6
7563 else $as_nop
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"
7569 then :
7570 xorg_cv_cc_flag_unknown_warning_option=yes
7571 else $as_nop
7572 xorg_cv_cc_flag_unknown_warning_option=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7575 fi
7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580 fi
7581
7582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 fi
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else $as_nop
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"
7598 then :
7599 xorg_cv_cc_flag_unused_command_line_argument=yes
7600 else $as_nop
7601 xorg_cv_cc_flag_unused_command_line_argument=no
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7604 fi
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7608 CFLAGS="$xorg_testset_save_CFLAGS"
7609 fi
7610
7611 found="no"
7612
7613 if test $found = "no" ; then
7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 fi
7617
7618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620 fi
7621
7622 CFLAGS="$CFLAGS -Werror=main"
7623
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7625 printf %s "checking if $CC supports -Werror=main... " >&6; }
7626 cacheid=xorg_cv_cc_flag__Werror_main
7627 if eval test \${$cacheid+y}
7628 then :
7629 printf %s "(cached) " >&6
7630 else $as_nop
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 int
7635 main (void)
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"
7643 then :
7644 eval $cacheid=yes
7645 else $as_nop
7646 eval $cacheid=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649 conftest$ac_exeext conftest.$ac_ext
7650 fi
7651
7652
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655 eval supported=\$$cacheid
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657 printf "%s\n" "$supported" >&6; }
7658 if test "$supported" = "yes" ; then
7659 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7660 found="yes"
7661 fi
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else $as_nop
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"
7693 then :
7694 xorg_cv_cc_flag_unknown_warning_option=yes
7695 else $as_nop
7696 xorg_cv_cc_flag_unknown_warning_option=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7699 fi
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else $as_nop
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int i;
7720 _ACEOF
7721 if ac_fn_c_try_compile "$LINENO"
7722 then :
7723 xorg_cv_cc_flag_unused_command_line_argument=yes
7724 else $as_nop
7725 xorg_cv_cc_flag_unused_command_line_argument=no
7726 fi
7727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7728 fi
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732 CFLAGS="$xorg_testset_save_CFLAGS"
7733 fi
7734
7735 found="no"
7736
7737 if test $found = "no" ; then
7738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740 fi
7741
7742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744 fi
7745
7746 CFLAGS="$CFLAGS -Werror=missing-braces"
7747
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7749 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7750 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7751 if eval test \${$cacheid+y}
7752 then :
7753 printf %s "(cached) " >&6
7754 else $as_nop
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 int i;
7758 int
7759 main (void)
7760 {
7761
7762 ;
7763 return 0;
7764 }
7765 _ACEOF
7766 if ac_fn_c_try_link "$LINENO"
7767 then :
7768 eval $cacheid=yes
7769 else $as_nop
7770 eval $cacheid=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7773 conftest$ac_exeext conftest.$ac_ext
7774 fi
7775
7776
7777 CFLAGS="$xorg_testset_save_CFLAGS"
7778
7779 eval supported=\$$cacheid
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7781 printf "%s\n" "$supported" >&6; }
7782 if test "$supported" = "yes" ; then
7783 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7784 found="yes"
7785 fi
7786 fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 xorg_testset_save_CFLAGS="$CFLAGS"
7803
7804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7807 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7808 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7809 then :
7810 printf %s "(cached) " >&6
7811 else $as_nop
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 int i;
7815 _ACEOF
7816 if ac_fn_c_try_compile "$LINENO"
7817 then :
7818 xorg_cv_cc_flag_unknown_warning_option=yes
7819 else $as_nop
7820 xorg_cv_cc_flag_unknown_warning_option=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7823 fi
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7828 fi
7829
7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833 fi
7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7838 then :
7839 printf %s "(cached) " >&6
7840 else $as_nop
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int i;
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"
7846 then :
7847 xorg_cv_cc_flag_unused_command_line_argument=yes
7848 else $as_nop
7849 xorg_cv_cc_flag_unused_command_line_argument=no
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7852 fi
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7856 CFLAGS="$xorg_testset_save_CFLAGS"
7857 fi
7858
7859 found="no"
7860
7861 if test $found = "no" ; then
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868 fi
7869
7870 CFLAGS="$CFLAGS -Werror=sequence-point"
7871
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7873 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7874 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7875 if eval test \${$cacheid+y}
7876 then :
7877 printf %s "(cached) " >&6
7878 else $as_nop
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881 int i;
7882 int
7883 main (void)
7884 {
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_link "$LINENO"
7891 then :
7892 eval $cacheid=yes
7893 else $as_nop
7894 eval $cacheid=no
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897 conftest$ac_exeext conftest.$ac_ext
7898 fi
7899
7900
7901 CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903 eval supported=\$$cacheid
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905 printf "%s\n" "$supported" >&6; }
7906 if test "$supported" = "yes" ; then
7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7908 found="yes"
7909 fi
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7933 then :
7934 printf %s "(cached) " >&6
7935 else $as_nop
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 int i;
7939 _ACEOF
7940 if ac_fn_c_try_compile "$LINENO"
7941 then :
7942 xorg_cv_cc_flag_unknown_warning_option=yes
7943 else $as_nop
7944 xorg_cv_cc_flag_unknown_warning_option=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7947 fi
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7952 fi
7953
7954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 fi
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7962 then :
7963 printf %s "(cached) " >&6
7964 else $as_nop
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 int i;
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"
7970 then :
7971 xorg_cv_cc_flag_unused_command_line_argument=yes
7972 else $as_nop
7973 xorg_cv_cc_flag_unused_command_line_argument=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7976 fi
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981 fi
7982
7983 found="no"
7984
7985 if test $found = "no" ; then
7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 fi
7989
7990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7992 fi
7993
7994 CFLAGS="$CFLAGS -Werror=return-type"
7995
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7997 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7998 cacheid=xorg_cv_cc_flag__Werror_return_type
7999 if eval test \${$cacheid+y}
8000 then :
8001 printf %s "(cached) " >&6
8002 else $as_nop
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 int i;
8006 int
8007 main (void)
8008 {
8009
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_link "$LINENO"
8015 then :
8016 eval $cacheid=yes
8017 else $as_nop
8018 eval $cacheid=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8021 conftest$ac_exeext conftest.$ac_ext
8022 fi
8023
8024
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027 eval supported=\$$cacheid
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029 printf "%s\n" "$supported" >&6; }
8030 if test "$supported" = "yes" ; then
8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8032 found="yes"
8033 fi
8034 fi
8035
8036 if test $found = "no" ; then
8037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 fi
8040
8041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043 fi
8044
8045 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8046
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8048 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8049 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8050 if eval test \${$cacheid+y}
8051 then :
8052 printf %s "(cached) " >&6
8053 else $as_nop
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056 int i;
8057 int
8058 main (void)
8059 {
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_link "$LINENO"
8066 then :
8067 eval $cacheid=yes
8068 else $as_nop
8069 eval $cacheid=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8072 conftest$ac_exeext conftest.$ac_ext
8073 fi
8074
8075
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077
8078 eval supported=\$$cacheid
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080 printf "%s\n" "$supported" >&6; }
8081 if test "$supported" = "yes" ; then
8082 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8083 found="yes"
8084 fi
8085 fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 xorg_testset_save_CFLAGS="$CFLAGS"
8102
8103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8107 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8108 then :
8109 printf %s "(cached) " >&6
8110 else $as_nop
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 int i;
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"
8116 then :
8117 xorg_cv_cc_flag_unknown_warning_option=yes
8118 else $as_nop
8119 xorg_cv_cc_flag_unknown_warning_option=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8122 fi
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8124 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132 fi
8133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8135 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8136 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8137 then :
8138 printf %s "(cached) " >&6
8139 else $as_nop
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 int i;
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"
8145 then :
8146 xorg_cv_cc_flag_unused_command_line_argument=yes
8147 else $as_nop
8148 xorg_cv_cc_flag_unused_command_line_argument=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8151 fi
8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156 fi
8157
8158 found="no"
8159
8160 if test $found = "no" ; then
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 fi
8164
8165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167 fi
8168
8169 CFLAGS="$CFLAGS -Werror=trigraphs"
8170
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8172 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8173 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8174 if eval test \${$cacheid+y}
8175 then :
8176 printf %s "(cached) " >&6
8177 else $as_nop
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 int i;
8181 int
8182 main (void)
8183 {
8184
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"
8190 then :
8191 eval $cacheid=yes
8192 else $as_nop
8193 eval $cacheid=no
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8196 conftest$ac_exeext conftest.$ac_ext
8197 fi
8198
8199
8200 CFLAGS="$xorg_testset_save_CFLAGS"
8201
8202 eval supported=\$$cacheid
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8204 printf "%s\n" "$supported" >&6; }
8205 if test "$supported" = "yes" ; then
8206 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8207 found="yes"
8208 fi
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 xorg_testset_save_CFLAGS="$CFLAGS"
8226
8227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8230 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8231 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8232 then :
8233 printf %s "(cached) " >&6
8234 else $as_nop
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 int i;
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"
8240 then :
8241 xorg_cv_cc_flag_unknown_warning_option=yes
8242 else $as_nop
8243 xorg_cv_cc_flag_unknown_warning_option=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8246 fi
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8251 fi
8252
8253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else $as_nop
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"
8269 then :
8270 xorg_cv_cc_flag_unused_command_line_argument=yes
8271 else $as_nop
8272 xorg_cv_cc_flag_unused_command_line_argument=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8275 fi
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280 fi
8281
8282 found="no"
8283
8284 if test $found = "no" ; then
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 fi
8288
8289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291 fi
8292
8293 CFLAGS="$CFLAGS -Werror=array-bounds"
8294
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8296 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8297 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8298 if eval test \${$cacheid+y}
8299 then :
8300 printf %s "(cached) " >&6
8301 else $as_nop
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 int i;
8305 int
8306 main (void)
8307 {
8308
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_link "$LINENO"
8314 then :
8315 eval $cacheid=yes
8316 else $as_nop
8317 eval $cacheid=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8320 conftest$ac_exeext conftest.$ac_ext
8321 fi
8322
8323
8324 CFLAGS="$xorg_testset_save_CFLAGS"
8325
8326 eval supported=\$$cacheid
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8328 printf "%s\n" "$supported" >&6; }
8329 if test "$supported" = "yes" ; then
8330 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8331 found="yes"
8332 fi
8333 fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349 xorg_testset_save_CFLAGS="$CFLAGS"
8350
8351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8354 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8355 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8356 then :
8357 printf %s "(cached) " >&6
8358 else $as_nop
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 int i;
8362 _ACEOF
8363 if ac_fn_c_try_compile "$LINENO"
8364 then :
8365 xorg_cv_cc_flag_unknown_warning_option=yes
8366 else $as_nop
8367 xorg_cv_cc_flag_unknown_warning_option=no
8368 fi
8369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8370 fi
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8374 CFLAGS="$xorg_testset_save_CFLAGS"
8375 fi
8376
8377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380 fi
8381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8385 then :
8386 printf %s "(cached) " >&6
8387 else $as_nop
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 int i;
8391 _ACEOF
8392 if ac_fn_c_try_compile "$LINENO"
8393 then :
8394 xorg_cv_cc_flag_unused_command_line_argument=yes
8395 else $as_nop
8396 xorg_cv_cc_flag_unused_command_line_argument=no
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8399 fi
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8403 CFLAGS="$xorg_testset_save_CFLAGS"
8404 fi
8405
8406 found="no"
8407
8408 if test $found = "no" ; then
8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411 fi
8412
8413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415 fi
8416
8417 CFLAGS="$CFLAGS -Werror=write-strings"
8418
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8420 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8421 cacheid=xorg_cv_cc_flag__Werror_write_strings
8422 if eval test \${$cacheid+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else $as_nop
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 int i;
8429 int
8430 main (void)
8431 {
8432
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"
8438 then :
8439 eval $cacheid=yes
8440 else $as_nop
8441 eval $cacheid=no
8442 fi
8443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8444 conftest$ac_exeext conftest.$ac_ext
8445 fi
8446
8447
8448 CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450 eval supported=\$$cacheid
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452 printf "%s\n" "$supported" >&6; }
8453 if test "$supported" = "yes" ; then
8454 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8455 found="yes"
8456 fi
8457 fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473 xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8480 then :
8481 printf %s "(cached) " >&6
8482 else $as_nop
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 int i;
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"
8488 then :
8489 xorg_cv_cc_flag_unknown_warning_option=yes
8490 else $as_nop
8491 xorg_cv_cc_flag_unknown_warning_option=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8494 fi
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504 fi
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8509 then :
8510 printf %s "(cached) " >&6
8511 else $as_nop
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 int i;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"
8517 then :
8518 xorg_cv_cc_flag_unused_command_line_argument=yes
8519 else $as_nop
8520 xorg_cv_cc_flag_unused_command_line_argument=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8523 fi
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 found="no"
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -Werror=address"
8542
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8544 printf %s "checking if $CC supports -Werror=address... " >&6; }
8545 cacheid=xorg_cv_cc_flag__Werror_address
8546 if eval test \${$cacheid+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else $as_nop
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 int i;
8553 int
8554 main (void)
8555 {
8556
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_c_try_link "$LINENO"
8562 then :
8563 eval $cacheid=yes
8564 else $as_nop
8565 eval $cacheid=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8568 conftest$ac_exeext conftest.$ac_ext
8569 fi
8570
8571
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574 eval supported=\$$cacheid
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576 printf "%s\n" "$supported" >&6; }
8577 if test "$supported" = "yes" ; then
8578 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8579 found="yes"
8580 fi
8581 fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 xorg_testset_save_CFLAGS="$CFLAGS"
8598
8599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8604 then :
8605 printf %s "(cached) " >&6
8606 else $as_nop
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 int i;
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"
8612 then :
8613 xorg_cv_cc_flag_unknown_warning_option=yes
8614 else $as_nop
8615 xorg_cv_cc_flag_unknown_warning_option=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 fi
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623 fi
8624
8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8633 then :
8634 printf %s "(cached) " >&6
8635 else $as_nop
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 int i;
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"
8641 then :
8642 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 else $as_nop
8644 xorg_cv_cc_flag_unused_command_line_argument=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8647 fi
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652 fi
8653
8654 found="no"
8655
8656 if test $found = "no" ; then
8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659 fi
8660
8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663 fi
8664
8665 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8666
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8668 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8669 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8670 if eval test \${$cacheid+y}
8671 then :
8672 printf %s "(cached) " >&6
8673 else $as_nop
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int i;
8677 int
8678 main (void)
8679 {
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_link "$LINENO"
8686 then :
8687 eval $cacheid=yes
8688 else $as_nop
8689 eval $cacheid=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8692 conftest$ac_exeext conftest.$ac_ext
8693 fi
8694
8695
8696 CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698 eval supported=\$$cacheid
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700 printf "%s\n" "$supported" >&6; }
8701 if test "$supported" = "yes" ; then
8702 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8703 found="yes"
8704 fi
8705 fi
8706
8707 if test $found = "no" ; then
8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 fi
8711
8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714 fi
8715
8716 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8717
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8719 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8720 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8721 if eval test \${$cacheid+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else $as_nop
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int i;
8728 int
8729 main (void)
8730 {
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"
8737 then :
8738 eval $cacheid=yes
8739 else $as_nop
8740 eval $cacheid=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8743 conftest$ac_exeext conftest.$ac_ext
8744 fi
8745
8746
8747 CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749 eval supported=\$$cacheid
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751 printf "%s\n" "$supported" >&6; }
8752 if test "$supported" = "yes" ; then
8753 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8754 found="yes"
8755 fi
8756 fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772 xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else $as_nop
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 int i;
8785 _ACEOF
8786 if ac_fn_c_try_compile "$LINENO"
8787 then :
8788 xorg_cv_cc_flag_unknown_warning_option=yes
8789 else $as_nop
8790 xorg_cv_cc_flag_unknown_warning_option=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8793 fi
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8795 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798 fi
8799
8800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803 fi
8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8806 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8807 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8808 then :
8809 printf %s "(cached) " >&6
8810 else $as_nop
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 int i;
8814 _ACEOF
8815 if ac_fn_c_try_compile "$LINENO"
8816 then :
8817 xorg_cv_cc_flag_unused_command_line_argument=yes
8818 else $as_nop
8819 xorg_cv_cc_flag_unused_command_line_argument=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8822 fi
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827 fi
8828
8829 found="no"
8830
8831 if test $found = "no" ; then
8832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834 fi
8835
8836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838 fi
8839
8840 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8841
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8843 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8844 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8845 if eval test \${$cacheid+y}
8846 then :
8847 printf %s "(cached) " >&6
8848 else $as_nop
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 int
8853 main (void)
8854 {
8855
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"
8861 then :
8862 eval $cacheid=yes
8863 else $as_nop
8864 eval $cacheid=no
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8867 conftest$ac_exeext conftest.$ac_ext
8868 fi
8869
8870
8871 CFLAGS="$xorg_testset_save_CFLAGS"
8872
8873 eval supported=\$$cacheid
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8875 printf "%s\n" "$supported" >&6; }
8876 if test "$supported" = "yes" ; then
8877 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8878 found="yes"
8879 fi
8880 fi
8881
8882 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8883 else
8884 { printf "%s\n" "$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
8885 printf "%s\n" "$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;}
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 xorg_testset_save_CFLAGS="$CFLAGS"
8900
8901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8905 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8906 then :
8907 printf %s "(cached) " >&6
8908 else $as_nop
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"
8914 then :
8915 xorg_cv_cc_flag_unknown_warning_option=yes
8916 else $as_nop
8917 xorg_cv_cc_flag_unknown_warning_option=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920 fi
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8924 CFLAGS="$xorg_testset_save_CFLAGS"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8930 fi
8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8935 then :
8936 printf %s "(cached) " >&6
8937 else $as_nop
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 int i;
8941 _ACEOF
8942 if ac_fn_c_try_compile "$LINENO"
8943 then :
8944 xorg_cv_cc_flag_unused_command_line_argument=yes
8945 else $as_nop
8946 xorg_cv_cc_flag_unused_command_line_argument=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949 fi
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8953 CFLAGS="$xorg_testset_save_CFLAGS"
8954 fi
8955
8956 found="no"
8957
8958 if test $found = "no" ; then
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 fi
8962
8963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965 fi
8966
8967 CFLAGS="$CFLAGS -Wimplicit"
8968
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8970 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8971 cacheid=xorg_cv_cc_flag__Wimplicit
8972 if eval test \${$cacheid+y}
8973 then :
8974 printf %s "(cached) " >&6
8975 else $as_nop
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 int
8980 main (void)
8981 {
8982
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"
8988 then :
8989 eval $cacheid=yes
8990 else $as_nop
8991 eval $cacheid=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994 conftest$ac_exeext conftest.$ac_ext
8995 fi
8996
8997
8998 CFLAGS="$xorg_testset_save_CFLAGS"
8999
9000 eval supported=\$$cacheid
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9002 printf "%s\n" "$supported" >&6; }
9003 if test "$supported" = "yes" ; then
9004 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9005 found="yes"
9006 fi
9007 fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023 xorg_testset_save_CFLAGS="$CFLAGS"
9024
9025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9029 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9030 then :
9031 printf %s "(cached) " >&6
9032 else $as_nop
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 _ACEOF
9037 if ac_fn_c_try_compile "$LINENO"
9038 then :
9039 xorg_cv_cc_flag_unknown_warning_option=yes
9040 else $as_nop
9041 xorg_cv_cc_flag_unknown_warning_option=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9044 fi
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9059 then :
9060 printf %s "(cached) " >&6
9061 else $as_nop
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 int i;
9065 _ACEOF
9066 if ac_fn_c_try_compile "$LINENO"
9067 then :
9068 xorg_cv_cc_flag_unused_command_line_argument=yes
9069 else $as_nop
9070 xorg_cv_cc_flag_unused_command_line_argument=no
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9073 fi
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9077 CFLAGS="$xorg_testset_save_CFLAGS"
9078 fi
9079
9080 found="no"
9081
9082 if test $found = "no" ; then
9083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085 fi
9086
9087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089 fi
9090
9091 CFLAGS="$CFLAGS -Wnonnull"
9092
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9094 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9095 cacheid=xorg_cv_cc_flag__Wnonnull
9096 if eval test \${$cacheid+y}
9097 then :
9098 printf %s "(cached) " >&6
9099 else $as_nop
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int i;
9103 int
9104 main (void)
9105 {
9106
9107 ;
9108 return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_c_try_link "$LINENO"
9112 then :
9113 eval $cacheid=yes
9114 else $as_nop
9115 eval $cacheid=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9118 conftest$ac_exeext conftest.$ac_ext
9119 fi
9120
9121
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124 eval supported=\$$cacheid
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126 printf "%s\n" "$supported" >&6; }
9127 if test "$supported" = "yes" ; then
9128 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9129 found="yes"
9130 fi
9131 fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 xorg_testset_save_CFLAGS="$CFLAGS"
9148
9149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else $as_nop
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"
9162 then :
9163 xorg_cv_cc_flag_unknown_warning_option=yes
9164 else $as_nop
9165 xorg_cv_cc_flag_unknown_warning_option=no
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9168 fi
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9172 CFLAGS="$xorg_testset_save_CFLAGS"
9173 fi
9174
9175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178 fi
9179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else $as_nop
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 int i;
9189 _ACEOF
9190 if ac_fn_c_try_compile "$LINENO"
9191 then :
9192 xorg_cv_cc_flag_unused_command_line_argument=yes
9193 else $as_nop
9194 xorg_cv_cc_flag_unused_command_line_argument=no
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9197 fi
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201 CFLAGS="$xorg_testset_save_CFLAGS"
9202 fi
9203
9204 found="no"
9205
9206 if test $found = "no" ; then
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213 fi
9214
9215 CFLAGS="$CFLAGS -Winit-self"
9216
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9218 printf %s "checking if $CC supports -Winit-self... " >&6; }
9219 cacheid=xorg_cv_cc_flag__Winit_self
9220 if eval test \${$cacheid+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else $as_nop
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main (void)
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"
9236 then :
9237 eval $cacheid=yes
9238 else $as_nop
9239 eval $cacheid=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9242 conftest$ac_exeext conftest.$ac_ext
9243 fi
9244
9245
9246 CFLAGS="$xorg_testset_save_CFLAGS"
9247
9248 eval supported=\$$cacheid
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9250 printf "%s\n" "$supported" >&6; }
9251 if test "$supported" = "yes" ; then
9252 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9253 found="yes"
9254 fi
9255 fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 xorg_testset_save_CFLAGS="$CFLAGS"
9272
9273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9277 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9278 then :
9279 printf %s "(cached) " >&6
9280 else $as_nop
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int i;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"
9286 then :
9287 xorg_cv_cc_flag_unknown_warning_option=yes
9288 else $as_nop
9289 xorg_cv_cc_flag_unknown_warning_option=no
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9292 fi
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9296 CFLAGS="$xorg_testset_save_CFLAGS"
9297 fi
9298
9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302 fi
9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9307 then :
9308 printf %s "(cached) " >&6
9309 else $as_nop
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int i;
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"
9315 then :
9316 xorg_cv_cc_flag_unused_command_line_argument=yes
9317 else $as_nop
9318 xorg_cv_cc_flag_unused_command_line_argument=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9321 fi
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9325 CFLAGS="$xorg_testset_save_CFLAGS"
9326 fi
9327
9328 found="no"
9329
9330 if test $found = "no" ; then
9331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 fi
9334
9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337 fi
9338
9339 CFLAGS="$CFLAGS -Wmain"
9340
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9342 printf %s "checking if $CC supports -Wmain... " >&6; }
9343 cacheid=xorg_cv_cc_flag__Wmain
9344 if eval test \${$cacheid+y}
9345 then :
9346 printf %s "(cached) " >&6
9347 else $as_nop
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 int i;
9351 int
9352 main (void)
9353 {
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_link "$LINENO"
9360 then :
9361 eval $cacheid=yes
9362 else $as_nop
9363 eval $cacheid=no
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9366 conftest$ac_exeext conftest.$ac_ext
9367 fi
9368
9369
9370 CFLAGS="$xorg_testset_save_CFLAGS"
9371
9372 eval supported=\$$cacheid
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9374 printf "%s\n" "$supported" >&6; }
9375 if test "$supported" = "yes" ; then
9376 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9377 found="yes"
9378 fi
9379 fi
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395 xorg_testset_save_CFLAGS="$CFLAGS"
9396
9397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9401 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9402 then :
9403 printf %s "(cached) " >&6
9404 else $as_nop
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 int i;
9408 _ACEOF
9409 if ac_fn_c_try_compile "$LINENO"
9410 then :
9411 xorg_cv_cc_flag_unknown_warning_option=yes
9412 else $as_nop
9413 xorg_cv_cc_flag_unknown_warning_option=no
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9416 fi
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9420 CFLAGS="$xorg_testset_save_CFLAGS"
9421 fi
9422
9423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9426 fi
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9431 then :
9432 printf %s "(cached) " >&6
9433 else $as_nop
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 int i;
9437 _ACEOF
9438 if ac_fn_c_try_compile "$LINENO"
9439 then :
9440 xorg_cv_cc_flag_unused_command_line_argument=yes
9441 else $as_nop
9442 xorg_cv_cc_flag_unused_command_line_argument=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9445 fi
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 found="no"
9453
9454 if test $found = "no" ; then
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 fi
9458
9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 fi
9462
9463 CFLAGS="$CFLAGS -Wmissing-braces"
9464
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9466 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9467 cacheid=xorg_cv_cc_flag__Wmissing_braces
9468 if eval test \${$cacheid+y}
9469 then :
9470 printf %s "(cached) " >&6
9471 else $as_nop
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 int i;
9475 int
9476 main (void)
9477 {
9478
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"
9484 then :
9485 eval $cacheid=yes
9486 else $as_nop
9487 eval $cacheid=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9490 conftest$ac_exeext conftest.$ac_ext
9491 fi
9492
9493
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496 eval supported=\$$cacheid
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498 printf "%s\n" "$supported" >&6; }
9499 if test "$supported" = "yes" ; then
9500 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9501 found="yes"
9502 fi
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519 xorg_testset_save_CFLAGS="$CFLAGS"
9520
9521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9524 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9525 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9526 then :
9527 printf %s "(cached) " >&6
9528 else $as_nop
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 int i;
9532 _ACEOF
9533 if ac_fn_c_try_compile "$LINENO"
9534 then :
9535 xorg_cv_cc_flag_unknown_warning_option=yes
9536 else $as_nop
9537 xorg_cv_cc_flag_unknown_warning_option=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9540 fi
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9542 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9544 CFLAGS="$xorg_testset_save_CFLAGS"
9545 fi
9546
9547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550 fi
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9553 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9554 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9555 then :
9556 printf %s "(cached) " >&6
9557 else $as_nop
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 int i;
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"
9563 then :
9564 xorg_cv_cc_flag_unused_command_line_argument=yes
9565 else $as_nop
9566 xorg_cv_cc_flag_unused_command_line_argument=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9569 fi
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 found="no"
9577
9578 if test $found = "no" ; then
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 fi
9582
9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 fi
9586
9587 CFLAGS="$CFLAGS -Wsequence-point"
9588
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9590 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9591 cacheid=xorg_cv_cc_flag__Wsequence_point
9592 if eval test \${$cacheid+y}
9593 then :
9594 printf %s "(cached) " >&6
9595 else $as_nop
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 int i;
9599 int
9600 main (void)
9601 {
9602
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"
9608 then :
9609 eval $cacheid=yes
9610 else $as_nop
9611 eval $cacheid=no
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9614 conftest$ac_exeext conftest.$ac_ext
9615 fi
9616
9617
9618 CFLAGS="$xorg_testset_save_CFLAGS"
9619
9620 eval supported=\$$cacheid
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9622 printf "%s\n" "$supported" >&6; }
9623 if test "$supported" = "yes" ; then
9624 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9625 found="yes"
9626 fi
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643 xorg_testset_save_CFLAGS="$CFLAGS"
9644
9645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9649 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9650 then :
9651 printf %s "(cached) " >&6
9652 else $as_nop
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 int i;
9656 _ACEOF
9657 if ac_fn_c_try_compile "$LINENO"
9658 then :
9659 xorg_cv_cc_flag_unknown_warning_option=yes
9660 else $as_nop
9661 xorg_cv_cc_flag_unknown_warning_option=no
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9664 fi
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9666 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9668 CFLAGS="$xorg_testset_save_CFLAGS"
9669 fi
9670
9671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674 fi
9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9677 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9678 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9679 then :
9680 printf %s "(cached) " >&6
9681 else $as_nop
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684 int i;
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"
9687 then :
9688 xorg_cv_cc_flag_unused_command_line_argument=yes
9689 else $as_nop
9690 xorg_cv_cc_flag_unused_command_line_argument=no
9691 fi
9692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9693 fi
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9697 CFLAGS="$xorg_testset_save_CFLAGS"
9698 fi
9699
9700 found="no"
9701
9702 if test $found = "no" ; then
9703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9705 fi
9706
9707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709 fi
9710
9711 CFLAGS="$CFLAGS -Wreturn-type"
9712
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9714 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9715 cacheid=xorg_cv_cc_flag__Wreturn_type
9716 if eval test \${$cacheid+y}
9717 then :
9718 printf %s "(cached) " >&6
9719 else $as_nop
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 int i;
9723 int
9724 main (void)
9725 {
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"
9732 then :
9733 eval $cacheid=yes
9734 else $as_nop
9735 eval $cacheid=no
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9738 conftest$ac_exeext conftest.$ac_ext
9739 fi
9740
9741
9742 CFLAGS="$xorg_testset_save_CFLAGS"
9743
9744 eval supported=\$$cacheid
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9746 printf "%s\n" "$supported" >&6; }
9747 if test "$supported" = "yes" ; then
9748 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9749 found="yes"
9750 fi
9751 fi
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767 xorg_testset_save_CFLAGS="$CFLAGS"
9768
9769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9773 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else $as_nop
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int i;
9780 _ACEOF
9781 if ac_fn_c_try_compile "$LINENO"
9782 then :
9783 xorg_cv_cc_flag_unknown_warning_option=yes
9784 else $as_nop
9785 xorg_cv_cc_flag_unknown_warning_option=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9788 fi
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9790 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9792 CFLAGS="$xorg_testset_save_CFLAGS"
9793 fi
9794
9795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798 fi
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9801 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9802 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9803 then :
9804 printf %s "(cached) " >&6
9805 else $as_nop
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9808 int i;
9809 _ACEOF
9810 if ac_fn_c_try_compile "$LINENO"
9811 then :
9812 xorg_cv_cc_flag_unused_command_line_argument=yes
9813 else $as_nop
9814 xorg_cv_cc_flag_unused_command_line_argument=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9817 fi
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9821 CFLAGS="$xorg_testset_save_CFLAGS"
9822 fi
9823
9824 found="no"
9825
9826 if test $found = "no" ; then
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 fi
9830
9831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9833 fi
9834
9835 CFLAGS="$CFLAGS -Wtrigraphs"
9836
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9838 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9839 cacheid=xorg_cv_cc_flag__Wtrigraphs
9840 if eval test \${$cacheid+y}
9841 then :
9842 printf %s "(cached) " >&6
9843 else $as_nop
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 int i;
9847 int
9848 main (void)
9849 {
9850
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"
9856 then :
9857 eval $cacheid=yes
9858 else $as_nop
9859 eval $cacheid=no
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862 conftest$ac_exeext conftest.$ac_ext
9863 fi
9864
9865
9866 CFLAGS="$xorg_testset_save_CFLAGS"
9867
9868 eval supported=\$$cacheid
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9870 printf "%s\n" "$supported" >&6; }
9871 if test "$supported" = "yes" ; then
9872 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9873 found="yes"
9874 fi
9875 fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 xorg_testset_save_CFLAGS="$CFLAGS"
9892
9893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9896 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9897 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else $as_nop
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int i;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"
9906 then :
9907 xorg_cv_cc_flag_unknown_warning_option=yes
9908 else $as_nop
9909 xorg_cv_cc_flag_unknown_warning_option=no
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9912 fi
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916 CFLAGS="$xorg_testset_save_CFLAGS"
9917 fi
9918
9919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 fi
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9927 then :
9928 printf %s "(cached) " >&6
9929 else $as_nop
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 int i;
9933 _ACEOF
9934 if ac_fn_c_try_compile "$LINENO"
9935 then :
9936 xorg_cv_cc_flag_unused_command_line_argument=yes
9937 else $as_nop
9938 xorg_cv_cc_flag_unused_command_line_argument=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9941 fi
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945 CFLAGS="$xorg_testset_save_CFLAGS"
9946 fi
9947
9948 found="no"
9949
9950 if test $found = "no" ; then
9951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953 fi
9954
9955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957 fi
9958
9959 CFLAGS="$CFLAGS -Warray-bounds"
9960
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9962 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9963 cacheid=xorg_cv_cc_flag__Warray_bounds
9964 if eval test \${$cacheid+y}
9965 then :
9966 printf %s "(cached) " >&6
9967 else $as_nop
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970 int i;
9971 int
9972 main (void)
9973 {
9974
9975 ;
9976 return 0;
9977 }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"
9980 then :
9981 eval $cacheid=yes
9982 else $as_nop
9983 eval $cacheid=no
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9986 conftest$ac_exeext conftest.$ac_ext
9987 fi
9988
9989
9990 CFLAGS="$xorg_testset_save_CFLAGS"
9991
9992 eval supported=\$$cacheid
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9994 printf "%s\n" "$supported" >&6; }
9995 if test "$supported" = "yes" ; then
9996 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9997 found="yes"
9998 fi
9999 fi
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015 xorg_testset_save_CFLAGS="$CFLAGS"
10016
10017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10021 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10022 then :
10023 printf %s "(cached) " >&6
10024 else $as_nop
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"
10030 then :
10031 xorg_cv_cc_flag_unknown_warning_option=yes
10032 else $as_nop
10033 xorg_cv_cc_flag_unknown_warning_option=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10036 fi
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041 fi
10042
10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 fi
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10051 then :
10052 printf %s "(cached) " >&6
10053 else $as_nop
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 int i;
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"
10059 then :
10060 xorg_cv_cc_flag_unused_command_line_argument=yes
10061 else $as_nop
10062 xorg_cv_cc_flag_unused_command_line_argument=no
10063 fi
10064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10065 fi
10066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10069 CFLAGS="$xorg_testset_save_CFLAGS"
10070 fi
10071
10072 found="no"
10073
10074 if test $found = "no" ; then
10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077 fi
10078
10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081 fi
10082
10083 CFLAGS="$CFLAGS -Wwrite-strings"
10084
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10086 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10087 cacheid=xorg_cv_cc_flag__Wwrite_strings
10088 if eval test \${$cacheid+y}
10089 then :
10090 printf %s "(cached) " >&6
10091 else $as_nop
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 int i;
10095 int
10096 main (void)
10097 {
10098
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"
10104 then :
10105 eval $cacheid=yes
10106 else $as_nop
10107 eval $cacheid=no
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10110 conftest$ac_exeext conftest.$ac_ext
10111 fi
10112
10113
10114 CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116 eval supported=\$$cacheid
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118 printf "%s\n" "$supported" >&6; }
10119 if test "$supported" = "yes" ; then
10120 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10121 found="yes"
10122 fi
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139 xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else $as_nop
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int i;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"
10154 then :
10155 xorg_cv_cc_flag_unknown_warning_option=yes
10156 else $as_nop
10157 xorg_cv_cc_flag_unknown_warning_option=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10160 fi
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164 CFLAGS="$xorg_testset_save_CFLAGS"
10165 fi
10166
10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170 fi
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10175 then :
10176 printf %s "(cached) " >&6
10177 else $as_nop
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 int i;
10181 _ACEOF
10182 if ac_fn_c_try_compile "$LINENO"
10183 then :
10184 xorg_cv_cc_flag_unused_command_line_argument=yes
10185 else $as_nop
10186 xorg_cv_cc_flag_unused_command_line_argument=no
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10189 fi
10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193 CFLAGS="$xorg_testset_save_CFLAGS"
10194 fi
10195
10196 found="no"
10197
10198 if test $found = "no" ; then
10199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201 fi
10202
10203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205 fi
10206
10207 CFLAGS="$CFLAGS -Waddress"
10208
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10210 printf %s "checking if $CC supports -Waddress... " >&6; }
10211 cacheid=xorg_cv_cc_flag__Waddress
10212 if eval test \${$cacheid+y}
10213 then :
10214 printf %s "(cached) " >&6
10215 else $as_nop
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 int i;
10219 int
10220 main (void)
10221 {
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"
10228 then :
10229 eval $cacheid=yes
10230 else $as_nop
10231 eval $cacheid=no
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10234 conftest$ac_exeext conftest.$ac_ext
10235 fi
10236
10237
10238 CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240 eval supported=\$$cacheid
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242 printf "%s\n" "$supported" >&6; }
10243 if test "$supported" = "yes" ; then
10244 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10245 found="yes"
10246 fi
10247 fi
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263 xorg_testset_save_CFLAGS="$CFLAGS"
10264
10265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10269 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10270 then :
10271 printf %s "(cached) " >&6
10272 else $as_nop
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 int i;
10276 _ACEOF
10277 if ac_fn_c_try_compile "$LINENO"
10278 then :
10279 xorg_cv_cc_flag_unknown_warning_option=yes
10280 else $as_nop
10281 xorg_cv_cc_flag_unknown_warning_option=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10284 fi
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289 fi
10290
10291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294 fi
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10299 then :
10300 printf %s "(cached) " >&6
10301 else $as_nop
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 int i;
10305 _ACEOF
10306 if ac_fn_c_try_compile "$LINENO"
10307 then :
10308 xorg_cv_cc_flag_unused_command_line_argument=yes
10309 else $as_nop
10310 xorg_cv_cc_flag_unused_command_line_argument=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10313 fi
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10315 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10317 CFLAGS="$xorg_testset_save_CFLAGS"
10318 fi
10319
10320 found="no"
10321
10322 if test $found = "no" ; then
10323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10325 fi
10326
10327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10329 fi
10330
10331 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10332
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10334 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10335 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10336 if eval test \${$cacheid+y}
10337 then :
10338 printf %s "(cached) " >&6
10339 else $as_nop
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342 int i;
10343 int
10344 main (void)
10345 {
10346
10347 ;
10348 return 0;
10349 }
10350 _ACEOF
10351 if ac_fn_c_try_link "$LINENO"
10352 then :
10353 eval $cacheid=yes
10354 else $as_nop
10355 eval $cacheid=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10358 conftest$ac_exeext conftest.$ac_ext
10359 fi
10360
10361
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363
10364 eval supported=\$$cacheid
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10366 printf "%s\n" "$supported" >&6; }
10367 if test "$supported" = "yes" ; then
10368 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10369 found="yes"
10370 fi
10371 fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 xorg_testset_save_CFLAGS="$CFLAGS"
10388
10389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10394 then :
10395 printf %s "(cached) " >&6
10396 else $as_nop
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 int i;
10400 _ACEOF
10401 if ac_fn_c_try_compile "$LINENO"
10402 then :
10403 xorg_cv_cc_flag_unknown_warning_option=yes
10404 else $as_nop
10405 xorg_cv_cc_flag_unknown_warning_option=no
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10408 fi
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10412 CFLAGS="$xorg_testset_save_CFLAGS"
10413 fi
10414
10415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418 fi
10419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else $as_nop
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 int i;
10429 _ACEOF
10430 if ac_fn_c_try_compile "$LINENO"
10431 then :
10432 xorg_cv_cc_flag_unused_command_line_argument=yes
10433 else $as_nop
10434 xorg_cv_cc_flag_unused_command_line_argument=no
10435 fi
10436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10437 fi
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10441 CFLAGS="$xorg_testset_save_CFLAGS"
10442 fi
10443
10444 found="no"
10445
10446 if test $found = "no" ; then
10447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449 fi
10450
10451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10453 fi
10454
10455 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10456
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10458 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10459 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10460 if eval test \${$cacheid+y}
10461 then :
10462 printf %s "(cached) " >&6
10463 else $as_nop
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 int i;
10467 int
10468 main (void)
10469 {
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"
10476 then :
10477 eval $cacheid=yes
10478 else $as_nop
10479 eval $cacheid=no
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10482 conftest$ac_exeext conftest.$ac_ext
10483 fi
10484
10485
10486 CFLAGS="$xorg_testset_save_CFLAGS"
10487
10488 eval supported=\$$cacheid
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10490 printf "%s\n" "$supported" >&6; }
10491 if test "$supported" = "yes" ; then
10492 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10493 found="yes"
10494 fi
10495 fi
10496
10497
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506 CWARNFLAGS="$BASE_CFLAGS"
10507 if test "x$GCC" = xyes ; then
10508 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10509 fi
10510
10511
10512
10513
10514
10515
10516
10517
10518 # Check whether --enable-strict-compilation was given.
10519 if test ${enable_strict_compilation+y}
10520 then :
10521 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10522 else $as_nop
10523 STRICT_COMPILE=no
10524 fi
10525
10526
10527
10528
10529
10530
10531 STRICT_CFLAGS=""
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545 xorg_testset_save_CFLAGS="$CFLAGS"
10546
10547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10551 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else $as_nop
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 _ACEOF
10559 if ac_fn_c_try_compile "$LINENO"
10560 then :
10561 xorg_cv_cc_flag_unknown_warning_option=yes
10562 else $as_nop
10563 xorg_cv_cc_flag_unknown_warning_option=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10566 fi
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10570 CFLAGS="$xorg_testset_save_CFLAGS"
10571 fi
10572
10573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576 fi
10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10581 then :
10582 printf %s "(cached) " >&6
10583 else $as_nop
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 int i;
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"
10589 then :
10590 xorg_cv_cc_flag_unused_command_line_argument=yes
10591 else $as_nop
10592 xorg_cv_cc_flag_unused_command_line_argument=no
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10595 fi
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10597 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10599 CFLAGS="$xorg_testset_save_CFLAGS"
10600 fi
10601
10602 found="no"
10603
10604 if test $found = "no" ; then
10605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607 fi
10608
10609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611 fi
10612
10613 CFLAGS="$CFLAGS -pedantic"
10614
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10616 printf %s "checking if $CC supports -pedantic... " >&6; }
10617 cacheid=xorg_cv_cc_flag__pedantic
10618 if eval test \${$cacheid+y}
10619 then :
10620 printf %s "(cached) " >&6
10621 else $as_nop
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 int i;
10625 int
10626 main (void)
10627 {
10628
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_c_try_link "$LINENO"
10634 then :
10635 eval $cacheid=yes
10636 else $as_nop
10637 eval $cacheid=no
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10640 conftest$ac_exeext conftest.$ac_ext
10641 fi
10642
10643
10644 CFLAGS="$xorg_testset_save_CFLAGS"
10645
10646 eval supported=\$$cacheid
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10648 printf "%s\n" "$supported" >&6; }
10649 if test "$supported" = "yes" ; then
10650 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10651 found="yes"
10652 fi
10653 fi
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669 xorg_testset_save_CFLAGS="$CFLAGS"
10670
10671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10676 then :
10677 printf %s "(cached) " >&6
10678 else $as_nop
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 int i;
10682 _ACEOF
10683 if ac_fn_c_try_compile "$LINENO"
10684 then :
10685 xorg_cv_cc_flag_unknown_warning_option=yes
10686 else $as_nop
10687 xorg_cv_cc_flag_unknown_warning_option=no
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10690 fi
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10694 CFLAGS="$xorg_testset_save_CFLAGS"
10695 fi
10696
10697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10700 fi
10701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10705 then :
10706 printf %s "(cached) " >&6
10707 else $as_nop
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 int i;
10711 _ACEOF
10712 if ac_fn_c_try_compile "$LINENO"
10713 then :
10714 xorg_cv_cc_flag_unused_command_line_argument=yes
10715 else $as_nop
10716 xorg_cv_cc_flag_unused_command_line_argument=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 fi
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10723 CFLAGS="$xorg_testset_save_CFLAGS"
10724 fi
10725
10726 found="no"
10727
10728 if test $found = "no" ; then
10729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731 fi
10732
10733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10735 fi
10736
10737 CFLAGS="$CFLAGS -Werror"
10738
10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10740 printf %s "checking if $CC supports -Werror... " >&6; }
10741 cacheid=xorg_cv_cc_flag__Werror
10742 if eval test \${$cacheid+y}
10743 then :
10744 printf %s "(cached) " >&6
10745 else $as_nop
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748 int i;
10749 int
10750 main (void)
10751 {
10752
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"
10758 then :
10759 eval $cacheid=yes
10760 else $as_nop
10761 eval $cacheid=no
10762 fi
10763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10764 conftest$ac_exeext conftest.$ac_ext
10765 fi
10766
10767
10768 CFLAGS="$xorg_testset_save_CFLAGS"
10769
10770 eval supported=\$$cacheid
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10772 printf "%s\n" "$supported" >&6; }
10773 if test "$supported" = "yes" ; then
10774 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10775 found="yes"
10776 fi
10777 fi
10778
10779 if test $found = "no" ; then
10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782 fi
10783
10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10786 fi
10787
10788 CFLAGS="$CFLAGS -errwarn"
10789
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10791 printf %s "checking if $CC supports -errwarn... " >&6; }
10792 cacheid=xorg_cv_cc_flag__errwarn
10793 if eval test \${$cacheid+y}
10794 then :
10795 printf %s "(cached) " >&6
10796 else $as_nop
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 int i;
10800 int
10801 main (void)
10802 {
10803
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"
10809 then :
10810 eval $cacheid=yes
10811 else $as_nop
10812 eval $cacheid=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10815 conftest$ac_exeext conftest.$ac_ext
10816 fi
10817
10818
10819 CFLAGS="$xorg_testset_save_CFLAGS"
10820
10821 eval supported=\$$cacheid
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10823 printf "%s\n" "$supported" >&6; }
10824 if test "$supported" = "yes" ; then
10825 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10826 found="yes"
10827 fi
10828 fi
10829
10830
10831
10832 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10833 # activate it with -Werror, so we add it here explicitly.
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847 xorg_testset_save_CFLAGS="$CFLAGS"
10848
10849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10852 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10853 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10854 then :
10855 printf %s "(cached) " >&6
10856 else $as_nop
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 int i;
10860 _ACEOF
10861 if ac_fn_c_try_compile "$LINENO"
10862 then :
10863 xorg_cv_cc_flag_unknown_warning_option=yes
10864 else $as_nop
10865 xorg_cv_cc_flag_unknown_warning_option=no
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10868 fi
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10872 CFLAGS="$xorg_testset_save_CFLAGS"
10873 fi
10874
10875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878 fi
10879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10883 then :
10884 printf %s "(cached) " >&6
10885 else $as_nop
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 int i;
10889 _ACEOF
10890 if ac_fn_c_try_compile "$LINENO"
10891 then :
10892 xorg_cv_cc_flag_unused_command_line_argument=yes
10893 else $as_nop
10894 xorg_cv_cc_flag_unused_command_line_argument=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10897 fi
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10901 CFLAGS="$xorg_testset_save_CFLAGS"
10902 fi
10903
10904 found="no"
10905
10906 if test $found = "no" ; then
10907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909 fi
10910
10911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913 fi
10914
10915 CFLAGS="$CFLAGS -Werror=attributes"
10916
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10918 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10919 cacheid=xorg_cv_cc_flag__Werror_attributes
10920 if eval test \${$cacheid+y}
10921 then :
10922 printf %s "(cached) " >&6
10923 else $as_nop
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 int i;
10927 int
10928 main (void)
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"
10936 then :
10937 eval $cacheid=yes
10938 else $as_nop
10939 eval $cacheid=no
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10942 conftest$ac_exeext conftest.$ac_ext
10943 fi
10944
10945
10946 CFLAGS="$xorg_testset_save_CFLAGS"
10947
10948 eval supported=\$$cacheid
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10950 printf "%s\n" "$supported" >&6; }
10951 if test "$supported" = "yes" ; then
10952 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10953 found="yes"
10954 fi
10955 fi
10956
10957
10958
10959 if test "x$STRICT_COMPILE" = "xyes"; then
10960 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10961 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10962 fi
10963
10964
10965
10966
10967
10968
10969 cat >>confdefs.h <<_ACEOF
10970 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10971 _ACEOF
10972
10973 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10974 if test "x$PVM" = "x"; then
10975 PVM="0"
10976 fi
10977
10978 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10979
10980 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10981 if test "x$PVP" = "x"; then
10982 PVP="0"
10983 fi
10984
10985 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10986
10987
10988
10989 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10990 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10991 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10992 touch \$(top_srcdir)/ChangeLog; \
10993 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10994
10995
10996
10997
10998 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10999 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11000 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11001 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11002 touch \$(top_srcdir)/INSTALL; \
11003 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11004
11005
11006
11007
11008
11009
11010 case $host_os in
11011 solaris*)
11012 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11013 # check for a man page file found in later versions that use
11014 # traditional section numbers instead
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11016 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11017 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11018 then :
11019 printf %s "(cached) " >&6
11020 else $as_nop
11021 test "$cross_compiling" = yes &&
11022 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11023 if test -r "/usr/share/man/man7/attributes.7"; then
11024 ac_cv_file__usr_share_man_man7_attributes_7=yes
11025 else
11026 ac_cv_file__usr_share_man_man7_attributes_7=no
11027 fi
11028 fi
11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11030 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11031 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11032 then :
11033 SYSV_MAN_SECTIONS=false
11034 else $as_nop
11035 SYSV_MAN_SECTIONS=true
11036 fi
11037
11038 ;;
11039 *) SYSV_MAN_SECTIONS=false ;;
11040 esac
11041
11042 if test x$APP_MAN_SUFFIX = x ; then
11043 APP_MAN_SUFFIX=1
11044 fi
11045 if test x$APP_MAN_DIR = x ; then
11046 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11047 fi
11048
11049 if test x$LIB_MAN_SUFFIX = x ; then
11050 LIB_MAN_SUFFIX=3
11051 fi
11052 if test x$LIB_MAN_DIR = x ; then
11053 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11054 fi
11055
11056 if test x$FILE_MAN_SUFFIX = x ; then
11057 case $SYSV_MAN_SECTIONS in
11058 true) FILE_MAN_SUFFIX=4 ;;
11059 *) FILE_MAN_SUFFIX=5 ;;
11060 esac
11061 fi
11062 if test x$FILE_MAN_DIR = x ; then
11063 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11064 fi
11065
11066 if test x$MISC_MAN_SUFFIX = x ; then
11067 case $SYSV_MAN_SECTIONS in
11068 true) MISC_MAN_SUFFIX=5 ;;
11069 *) MISC_MAN_SUFFIX=7 ;;
11070 esac
11071 fi
11072 if test x$MISC_MAN_DIR = x ; then
11073 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11074 fi
11075
11076 if test x$DRIVER_MAN_SUFFIX = x ; then
11077 case $SYSV_MAN_SECTIONS in
11078 true) DRIVER_MAN_SUFFIX=7 ;;
11079 *) DRIVER_MAN_SUFFIX=4 ;;
11080 esac
11081 fi
11082 if test x$DRIVER_MAN_DIR = x ; then
11083 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11084 fi
11085
11086 if test x$ADMIN_MAN_SUFFIX = x ; then
11087 case $SYSV_MAN_SECTIONS in
11088 true) ADMIN_MAN_SUFFIX=1m ;;
11089 *) ADMIN_MAN_SUFFIX=8 ;;
11090 esac
11091 fi
11092 if test x$ADMIN_MAN_DIR = x ; then
11093 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11094 fi
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110 XORG_MAN_PAGE="X Version 11"
11111
11112 MAN_SUBSTS="\
11113 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11114 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11115 -e 's|__xservername__|Xorg|g' \
11116 -e 's|__xconfigfile__|xorg.conf|g' \
11117 -e 's|__projectroot__|\$(prefix)|g' \
11118 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11119 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11120 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11121 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11122 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11123 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11124 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11125
11126
11127
11128 # Check whether --enable-silent-rules was given.
11129 if test ${enable_silent_rules+y}
11130 then :
11131 enableval=$enable_silent_rules;
11132 fi
11133
11134 case $enable_silent_rules in # (((
11135 yes) AM_DEFAULT_VERBOSITY=0;;
11136 no) AM_DEFAULT_VERBOSITY=1;;
11137 *) AM_DEFAULT_VERBOSITY=0;;
11138 esac
11139 am_make=${MAKE-make}
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11141 printf %s "checking whether $am_make supports nested variables... " >&6; }
11142 if test ${am_cv_make_support_nested_variables+y}
11143 then :
11144 printf %s "(cached) " >&6
11145 else $as_nop
11146 if printf "%s\n" 'TRUE=$(BAR$(V))
11147 BAR0=false
11148 BAR1=true
11149 V=1
11150 am__doit:
11151 @$(TRUE)
11152 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11153 am_cv_make_support_nested_variables=yes
11154 else
11155 am_cv_make_support_nested_variables=no
11156 fi
11157 fi
11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11159 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11160 if test $am_cv_make_support_nested_variables = yes; then
11161 AM_V='$(V)'
11162 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11163 else
11164 AM_V=$AM_DEFAULT_VERBOSITY
11165 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11166 fi
11167 AM_BACKSLASH='\'
11168
11169
11170
11171 # Checks for library functions.
11172 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11173 if test "x$ac_cv_func_mkstemp" = xyes
11174 then :
11175
11176 printf "%s\n" "#define HAS_MKSTEMP 1" >>confdefs.h
11177
11178 fi
11179
11180
11181 # Checks for pkg-config packages
11182
11183 pkg_failed=no
11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5
11185 printf %s "checking for XDITVIEW... " >&6; }
11186
11187 if test -n "$XDITVIEW_CFLAGS"; then
11188 pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS"
11189 elif test -n "$PKG_CONFIG"; then
11190 if test -n "$PKG_CONFIG" && \
11191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11192 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11193 ac_status=$?
11194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195 test $ac_status = 0; }; then
11196 pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
11197 test "x$?" != "x0" && pkg_failed=yes
11198 else
11199 pkg_failed=yes
11200 fi
11201 else
11202 pkg_failed=untried
11203 fi
11204 if test -n "$XDITVIEW_LIBS"; then
11205 pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS"
11206 elif test -n "$PKG_CONFIG"; then
11207 if test -n "$PKG_CONFIG" && \
11208 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11209 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11210 ac_status=$?
11211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11212 test $ac_status = 0; }; then
11213 pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
11214 test "x$?" != "x0" && pkg_failed=yes
11215 else
11216 pkg_failed=yes
11217 fi
11218 else
11219 pkg_failed=untried
11220 fi
11221
11222
11223
11224 if test $pkg_failed = yes; then
11225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 printf "%s\n" "no" >&6; }
11227
11228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11229 _pkg_short_errors_supported=yes
11230 else
11231 _pkg_short_errors_supported=no
11232 fi
11233 if test $_pkg_short_errors_supported = yes; then
11234 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11235 else
11236 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11237 fi
11238 # Put the nasty error message in config.log where it belongs
11239 echo "$XDITVIEW_PKG_ERRORS" >&5
11240
11241 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
11242
11243 $XDITVIEW_PKG_ERRORS
11244
11245 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11246 installed software in a non-standard prefix.
11247
11248 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
11249 and XDITVIEW_LIBS to avoid the need to call pkg-config.
11250 See the pkg-config man page for more details." "$LINENO" 5
11251 elif test $pkg_failed = untried; then
11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 printf "%s\n" "no" >&6; }
11254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11256 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11257 is in your PATH or set the PKG_CONFIG environment variable to the full
11258 path to pkg-config.
11259
11260 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
11261 and XDITVIEW_LIBS to avoid the need to call pkg-config.
11262 See the pkg-config man page for more details.
11263
11264 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11265 See \`config.log' for more details" "$LINENO" 5; }
11266 else
11267 XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS
11268 XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11270 printf "%s\n" "yes" >&6; }
11271
11272 fi
11273
11274
11275 pkg_failed=no
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11277 printf %s "checking for APPDEFS... " >&6; }
11278
11279 if test -n "$APPDEFS_CFLAGS"; then
11280 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11281 elif test -n "$PKG_CONFIG"; then
11282 if test -n "$PKG_CONFIG" && \
11283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11284 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11285 ac_status=$?
11286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; }; then
11288 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11289 test "x$?" != "x0" && pkg_failed=yes
11290 else
11291 pkg_failed=yes
11292 fi
11293 else
11294 pkg_failed=untried
11295 fi
11296 if test -n "$APPDEFS_LIBS"; then
11297 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11298 elif test -n "$PKG_CONFIG"; then
11299 if test -n "$PKG_CONFIG" && \
11300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11301 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11302 ac_status=$?
11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; }; then
11305 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11306 test "x$?" != "x0" && pkg_failed=yes
11307 else
11308 pkg_failed=yes
11309 fi
11310 else
11311 pkg_failed=untried
11312 fi
11313
11314
11315
11316 if test $pkg_failed = yes; then
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 printf "%s\n" "no" >&6; }
11319
11320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11321 _pkg_short_errors_supported=yes
11322 else
11323 _pkg_short_errors_supported=no
11324 fi
11325 if test $_pkg_short_errors_supported = yes; then
11326 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11327 else
11328 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11329 fi
11330 # Put the nasty error message in config.log where it belongs
11331 echo "$APPDEFS_PKG_ERRORS" >&5
11332
11333 as_fn_error $? "Package requirements (xt) were not met:
11334
11335 $APPDEFS_PKG_ERRORS
11336
11337 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11338 installed software in a non-standard prefix.
11339
11340 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11341 and APPDEFS_LIBS to avoid the need to call pkg-config.
11342 See the pkg-config man page for more details." "$LINENO" 5
11343 elif test $pkg_failed = untried; then
11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 printf "%s\n" "no" >&6; }
11346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11347 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11348 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11349 is in your PATH or set the PKG_CONFIG environment variable to the full
11350 path to pkg-config.
11351
11352 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11353 and APPDEFS_LIBS to avoid the need to call pkg-config.
11354 See the pkg-config man page for more details.
11355
11356 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11357 See \`config.log' for more details" "$LINENO" 5; }
11358 else
11359 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11360 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 printf "%s\n" "yes" >&6; }
11363
11364 fi
11365 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11366
11367 # Check whether --with-appdefaultdir was given.
11368 if test ${with_appdefaultdir+y}
11369 then :
11370 withval=$with_appdefaultdir; appdefaultdir="$withval"
11371 else $as_nop
11372 appdefaultdir="${xt_appdefaultdir}"
11373 fi
11374
11375
11376
11377
11378 ac_config_files="$ac_config_files Makefile man/Makefile"
11379
11380 cat >confcache <<\_ACEOF
11381 # This file is a shell script that caches the results of configure
11382 # tests run on this system so they can be shared between configure
11383 # scripts and configure runs, see configure's option --config-cache.
11384 # It is not useful on other systems. If it contains results you don't
11385 # want to keep, you may remove or edit it.
11386 #
11387 # config.status only pays attention to the cache file if you give it
11388 # the --recheck option to rerun configure.
11389 #
11390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11392 # following values.
11393
11394 _ACEOF
11395
11396 # The following way of writing the cache mishandles newlines in values,
11397 # but we know of no workaround that is simple, portable, and efficient.
11398 # So, we kill variables containing newlines.
11399 # Ultrix sh set writes to stderr and can't be redirected directly,
11400 # and sets the high bit in the cache file unless we assign to the vars.
11401 (
11402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11403 eval ac_val=\$$ac_var
11404 case $ac_val in #(
11405 *${as_nl}*)
11406 case $ac_var in #(
11407 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11408 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11409 esac
11410 case $ac_var in #(
11411 _ | IFS | as_nl) ;; #(
11412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11413 *) { eval $ac_var=; unset $ac_var;} ;;
11414 esac ;;
11415 esac
11416 done
11417
11418 (set) 2>&1 |
11419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11420 *${as_nl}ac_space=\ *)
11421 # `set' does not quote correctly, so add quotes: double-quote
11422 # substitution turns \\\\ into \\, and sed turns \\ into \.
11423 sed -n \
11424 "s/'/'\\\\''/g;
11425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11426 ;; #(
11427 *)
11428 # `set' quotes correctly as required by POSIX, so do not add quotes.
11429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11430 ;;
11431 esac |
11432 sort
11433 ) |
11434 sed '
11435 /^ac_cv_env_/b end
11436 t clear
11437 :clear
11438 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11439 t end
11440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11441 :end' >>confcache
11442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11443 if test -w "$cache_file"; then
11444 if test "x$cache_file" != "x/dev/null"; then
11445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11446 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11447 if test ! -f "$cache_file" || test -h "$cache_file"; then
11448 cat confcache >"$cache_file"
11449 else
11450 case $cache_file in #(
11451 */* | ?:*)
11452 mv -f confcache "$cache_file"$$ &&
11453 mv -f "$cache_file"$$ "$cache_file" ;; #(
11454 *)
11455 mv -f confcache "$cache_file" ;;
11456 esac
11457 fi
11458 fi
11459 else
11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11461 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11462 fi
11463 fi
11464 rm -f confcache
11465
11466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11467 # Let make expand exec_prefix.
11468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11469
11470 DEFS=-DHAVE_CONFIG_H
11471
11472 ac_libobjs=
11473 ac_ltlibobjs=
11474 U=
11475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11476 # 1. Remove the extension, and $U if already installed.
11477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11478 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11480 # will be set to the directory where LIBOBJS objects are built.
11481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11483 done
11484 LIBOBJS=$ac_libobjs
11485
11486 LTLIBOBJS=$ac_ltlibobjs
11487
11488
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11490 printf %s "checking that generated files are newer than configure... " >&6; }
11491 if test -n "$am_sleep_pid"; then
11492 # Hide warnings about reused PIDs.
11493 wait $am_sleep_pid 2>/dev/null
11494 fi
11495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11496 printf "%s\n" "done" >&6; }
11497 if test -n "$EXEEXT"; then
11498 am__EXEEXT_TRUE=
11499 am__EXEEXT_FALSE='#'
11500 else
11501 am__EXEEXT_TRUE='#'
11502 am__EXEEXT_FALSE=
11503 fi
11504
11505 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11506 as_fn_error $? "conditional \"AMDEP\" was never defined.
11507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11508 fi
11509 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11510 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11512 fi
11513
11514 : "${CONFIG_STATUS=./config.status}"
11515 ac_write_fail=0
11516 ac_clean_files_save=$ac_clean_files
11517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11519 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11520 as_write_fail=0
11521 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11522 #! $SHELL
11523 # Generated by $as_me.
11524 # Run this file to recreate the current configuration.
11525 # Compiler output produced by configure, useful for debugging
11526 # configure, is in config.log if it exists.
11527
11528 debug=false
11529 ac_cs_recheck=false
11530 ac_cs_silent=false
11531
11532 SHELL=\${CONFIG_SHELL-$SHELL}
11533 export SHELL
11534 _ASEOF
11535 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11536 ## -------------------- ##
11537 ## M4sh Initialization. ##
11538 ## -------------------- ##
11539
11540 # Be more Bourne compatible
11541 DUALCASE=1; export DUALCASE # for MKS sh
11542 as_nop=:
11543 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11544 then :
11545 emulate sh
11546 NULLCMD=:
11547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11548 # is contrary to our usage. Disable this feature.
11549 alias -g '${1+"$@"}'='"$@"'
11550 setopt NO_GLOB_SUBST
11551 else $as_nop
11552 case `(set -o) 2>/dev/null` in #(
11553 *posix*) :
11554 set -o posix ;; #(
11555 *) :
11556 ;;
11557 esac
11558 fi
11559
11560
11561
11562 # Reset variables that may have inherited troublesome values from
11563 # the environment.
11564
11565 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11566 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11567 # side effect of setting IFS to empty, thus disabling word splitting.)
11568 # Quoting is to prevent editors from complaining about space-tab.
11569 as_nl='
11570 '
11571 export as_nl
11572 IFS=" "" $as_nl"
11573
11574 PS1='$ '
11575 PS2='> '
11576 PS4='+ '
11577
11578 # Ensure predictable behavior from utilities with locale-dependent output.
11579 LC_ALL=C
11580 export LC_ALL
11581 LANGUAGE=C
11582 export LANGUAGE
11583
11584 # We cannot yet rely on "unset" to work, but we need these variables
11585 # to be unset--not just set to an empty or harmless value--now, to
11586 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11587 # also avoids known problems related to "unset" and subshell syntax
11588 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11589 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11590 do eval test \${$as_var+y} \
11591 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11592 done
11593
11594 # Ensure that fds 0, 1, and 2 are open.
11595 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11596 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11597 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11598
11599 # The user is always right.
11600 if ${PATH_SEPARATOR+false} :; then
11601 PATH_SEPARATOR=:
11602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11603 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11604 PATH_SEPARATOR=';'
11605 }
11606 fi
11607
11608
11609 # Find who we are. Look in the path if we contain no directory separator.
11610 as_myself=
11611 case $0 in #((
11612 *[\\/]* ) as_myself=$0 ;;
11613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616 IFS=$as_save_IFS
11617 case $as_dir in #(((
11618 '') as_dir=./ ;;
11619 */) ;;
11620 *) as_dir=$as_dir/ ;;
11621 esac
11622 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11623 done
11624 IFS=$as_save_IFS
11625
11626 ;;
11627 esac
11628 # We did not find ourselves, most probably we were run as `sh COMMAND'
11629 # in which case we are not to be found in the path.
11630 if test "x$as_myself" = x; then
11631 as_myself=$0
11632 fi
11633 if test ! -f "$as_myself"; then
11634 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11635 exit 1
11636 fi
11637
11638
11639
11640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11641 # ----------------------------------------
11642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11644 # script with STATUS, using 1 if that was 0.
11645 as_fn_error ()
11646 {
11647 as_status=$1; test $as_status -eq 0 && as_status=1
11648 if test "$4"; then
11649 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11651 fi
11652 printf "%s\n" "$as_me: error: $2" >&2
11653 as_fn_exit $as_status
11654 } # as_fn_error
11655
11656
11657
11658 # as_fn_set_status STATUS
11659 # -----------------------
11660 # Set $? to STATUS, without forking.
11661 as_fn_set_status ()
11662 {
11663 return $1
11664 } # as_fn_set_status
11665
11666 # as_fn_exit STATUS
11667 # -----------------
11668 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11669 as_fn_exit ()
11670 {
11671 set +e
11672 as_fn_set_status $1
11673 exit $1
11674 } # as_fn_exit
11675
11676 # as_fn_unset VAR
11677 # ---------------
11678 # Portably unset VAR.
11679 as_fn_unset ()
11680 {
11681 { eval $1=; unset $1;}
11682 }
11683 as_unset=as_fn_unset
11684
11685 # as_fn_append VAR VALUE
11686 # ----------------------
11687 # Append the text in VALUE to the end of the definition contained in VAR. Take
11688 # advantage of any shell optimizations that allow amortized linear growth over
11689 # repeated appends, instead of the typical quadratic growth present in naive
11690 # implementations.
11691 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11692 then :
11693 eval 'as_fn_append ()
11694 {
11695 eval $1+=\$2
11696 }'
11697 else $as_nop
11698 as_fn_append ()
11699 {
11700 eval $1=\$$1\$2
11701 }
11702 fi # as_fn_append
11703
11704 # as_fn_arith ARG...
11705 # ------------------
11706 # Perform arithmetic evaluation on the ARGs, and store the result in the
11707 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11708 # must be portable across $(()) and expr.
11709 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11710 then :
11711 eval 'as_fn_arith ()
11712 {
11713 as_val=$(( $* ))
11714 }'
11715 else $as_nop
11716 as_fn_arith ()
11717 {
11718 as_val=`expr "$@" || test $? -eq 1`
11719 }
11720 fi # as_fn_arith
11721
11722
11723 if expr a : '\(a\)' >/dev/null 2>&1 &&
11724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11725 as_expr=expr
11726 else
11727 as_expr=false
11728 fi
11729
11730 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11731 as_basename=basename
11732 else
11733 as_basename=false
11734 fi
11735
11736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11737 as_dirname=dirname
11738 else
11739 as_dirname=false
11740 fi
11741
11742 as_me=`$as_basename -- "$0" ||
11743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11744 X"$0" : 'X\(//\)$' \| \
11745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11746 printf "%s\n" X/"$0" |
11747 sed '/^.*\/\([^/][^/]*\)\/*$/{
11748 s//\1/
11749 q
11750 }
11751 /^X\/\(\/\/\)$/{
11752 s//\1/
11753 q
11754 }
11755 /^X\/\(\/\).*/{
11756 s//\1/
11757 q
11758 }
11759 s/.*/./; q'`
11760
11761 # Avoid depending upon Character Ranges.
11762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11765 as_cr_digits='0123456789'
11766 as_cr_alnum=$as_cr_Letters$as_cr_digits
11767
11768
11769 # Determine whether it's possible to make 'echo' print without a newline.
11770 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11771 # for compatibility with existing Makefiles.
11772 ECHO_C= ECHO_N= ECHO_T=
11773 case `echo -n x` in #(((((
11774 -n*)
11775 case `echo 'xy\c'` in
11776 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11777 xy) ECHO_C='\c';;
11778 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11779 ECHO_T=' ';;
11780 esac;;
11781 *)
11782 ECHO_N='-n';;
11783 esac
11784
11785 # For backward compatibility with old third-party macros, we provide
11786 # the shell variables $as_echo and $as_echo_n. New code should use
11787 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11788 as_echo='printf %s\n'
11789 as_echo_n='printf %s'
11790
11791 rm -f conf$$ conf$$.exe conf$$.file
11792 if test -d conf$$.dir; then
11793 rm -f conf$$.dir/conf$$.file
11794 else
11795 rm -f conf$$.dir
11796 mkdir conf$$.dir 2>/dev/null
11797 fi
11798 if (echo >conf$$.file) 2>/dev/null; then
11799 if ln -s conf$$.file conf$$ 2>/dev/null; then
11800 as_ln_s='ln -s'
11801 # ... but there are two gotchas:
11802 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11803 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11804 # In both cases, we have to default to `cp -pR'.
11805 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11806 as_ln_s='cp -pR'
11807 elif ln conf$$.file conf$$ 2>/dev/null; then
11808 as_ln_s=ln
11809 else
11810 as_ln_s='cp -pR'
11811 fi
11812 else
11813 as_ln_s='cp -pR'
11814 fi
11815 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11816 rmdir conf$$.dir 2>/dev/null
11817
11818
11819 # as_fn_mkdir_p
11820 # -------------
11821 # Create "$as_dir" as a directory, including parents if necessary.
11822 as_fn_mkdir_p ()
11823 {
11824
11825 case $as_dir in #(
11826 -*) as_dir=./$as_dir;;
11827 esac
11828 test -d "$as_dir" || eval $as_mkdir_p || {
11829 as_dirs=
11830 while :; do
11831 case $as_dir in #(
11832 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11833 *) as_qdir=$as_dir;;
11834 esac
11835 as_dirs="'$as_qdir' $as_dirs"
11836 as_dir=`$as_dirname -- "$as_dir" ||
11837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11838 X"$as_dir" : 'X\(//\)[^/]' \| \
11839 X"$as_dir" : 'X\(//\)$' \| \
11840 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11841 printf "%s\n" X"$as_dir" |
11842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11843 s//\1/
11844 q
11845 }
11846 /^X\(\/\/\)[^/].*/{
11847 s//\1/
11848 q
11849 }
11850 /^X\(\/\/\)$/{
11851 s//\1/
11852 q
11853 }
11854 /^X\(\/\).*/{
11855 s//\1/
11856 q
11857 }
11858 s/.*/./; q'`
11859 test -d "$as_dir" && break
11860 done
11861 test -z "$as_dirs" || eval "mkdir $as_dirs"
11862 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11863
11864
11865 } # as_fn_mkdir_p
11866 if mkdir -p . 2>/dev/null; then
11867 as_mkdir_p='mkdir -p "$as_dir"'
11868 else
11869 test -d ./-p && rmdir ./-p
11870 as_mkdir_p=false
11871 fi
11872
11873
11874 # as_fn_executable_p FILE
11875 # -----------------------
11876 # Test if FILE is an executable regular file.
11877 as_fn_executable_p ()
11878 {
11879 test -f "$1" && test -x "$1"
11880 } # as_fn_executable_p
11881 as_test_x='test -x'
11882 as_executable_p=as_fn_executable_p
11883
11884 # Sed expression to map a string onto a valid CPP name.
11885 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11886
11887 # Sed expression to map a string onto a valid variable name.
11888 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11889
11890
11891 exec 6>&1
11892 ## ----------------------------------- ##
11893 ## Main body of $CONFIG_STATUS script. ##
11894 ## ----------------------------------- ##
11895 _ASEOF
11896 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11897
11898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11899 # Save the log message, to keep $0 and so on meaningful, and to
11900 # report actual input values of CONFIG_FILES etc. instead of their
11901 # values after options handling.
11902 ac_log="
11903 This file was extended by xditview $as_me 1.0.6, which was
11904 generated by GNU Autoconf 2.71. Invocation command line was
11905
11906 CONFIG_FILES = $CONFIG_FILES
11907 CONFIG_HEADERS = $CONFIG_HEADERS
11908 CONFIG_LINKS = $CONFIG_LINKS
11909 CONFIG_COMMANDS = $CONFIG_COMMANDS
11910 $ $0 $@
11911
11912 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11913 "
11914
11915 _ACEOF
11916
11917 case $ac_config_files in *"
11918 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11919 esac
11920
11921 case $ac_config_headers in *"
11922 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11923 esac
11924
11925
11926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11927 # Files that config.status was made for.
11928 config_files="$ac_config_files"
11929 config_headers="$ac_config_headers"
11930 config_commands="$ac_config_commands"
11931
11932 _ACEOF
11933
11934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11935 ac_cs_usage="\
11936 \`$as_me' instantiates files and other configuration actions
11937 from templates according to the current configuration. Unless the files
11938 and actions are specified as TAGs, all are instantiated by default.
11939
11940 Usage: $0 [OPTION]... [TAG]...
11941
11942 -h, --help print this help, then exit
11943 -V, --version print version number and configuration settings, then exit
11944 --config print configuration, then exit
11945 -q, --quiet, --silent
11946 do not print progress messages
11947 -d, --debug don't remove temporary files
11948 --recheck update $as_me by reconfiguring in the same conditions
11949 --file=FILE[:TEMPLATE]
11950 instantiate the configuration file FILE
11951 --header=FILE[:TEMPLATE]
11952 instantiate the configuration header FILE
11953
11954 Configuration files:
11955 $config_files
11956
11957 Configuration headers:
11958 $config_headers
11959
11960 Configuration commands:
11961 $config_commands
11962
11963 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>."
11964
11965 _ACEOF
11966 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11967 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969 ac_cs_config='$ac_cs_config_escaped'
11970 ac_cs_version="\\
11971 xditview config.status 1.0.6
11972 configured by $0, generated by GNU Autoconf 2.71,
11973 with options \\"\$ac_cs_config\\"
11974
11975 Copyright (C) 2021 Free Software Foundation, Inc.
11976 This config.status script is free software; the Free Software Foundation
11977 gives unlimited permission to copy, distribute and modify it."
11978
11979 ac_pwd='$ac_pwd'
11980 srcdir='$srcdir'
11981 INSTALL='$INSTALL'
11982 MKDIR_P='$MKDIR_P'
11983 AWK='$AWK'
11984 test -n "\$AWK" || AWK=awk
11985 _ACEOF
11986
11987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988 # The default lists apply if the user does not specify any file.
11989 ac_need_defaults=:
11990 while test $# != 0
11991 do
11992 case $1 in
11993 --*=?*)
11994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11995 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11996 ac_shift=:
11997 ;;
11998 --*=)
11999 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12000 ac_optarg=
12001 ac_shift=:
12002 ;;
12003 *)
12004 ac_option=$1
12005 ac_optarg=$2
12006 ac_shift=shift
12007 ;;
12008 esac
12009
12010 case $ac_option in
12011 # Handling of the options.
12012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12013 ac_cs_recheck=: ;;
12014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12015 printf "%s\n" "$ac_cs_version"; exit ;;
12016 --config | --confi | --conf | --con | --co | --c )
12017 printf "%s\n" "$ac_cs_config"; exit ;;
12018 --debug | --debu | --deb | --de | --d | -d )
12019 debug=: ;;
12020 --file | --fil | --fi | --f )
12021 $ac_shift
12022 case $ac_optarg in
12023 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12024 '') as_fn_error $? "missing file argument" ;;
12025 esac
12026 as_fn_append CONFIG_FILES " '$ac_optarg'"
12027 ac_need_defaults=false;;
12028 --header | --heade | --head | --hea )
12029 $ac_shift
12030 case $ac_optarg in
12031 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12032 esac
12033 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12034 ac_need_defaults=false;;
12035 --he | --h)
12036 # Conflict between --help and --header
12037 as_fn_error $? "ambiguous option: \`$1'
12038 Try \`$0 --help' for more information.";;
12039 --help | --hel | -h )
12040 printf "%s\n" "$ac_cs_usage"; exit ;;
12041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12042 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12043 ac_cs_silent=: ;;
12044
12045 # This is an error.
12046 -*) as_fn_error $? "unrecognized option: \`$1'
12047 Try \`$0 --help' for more information." ;;
12048
12049 *) as_fn_append ac_config_targets " $1"
12050 ac_need_defaults=false ;;
12051
12052 esac
12053 shift
12054 done
12055
12056 ac_configure_extra_args=
12057
12058 if $ac_cs_silent; then
12059 exec 6>/dev/null
12060 ac_configure_extra_args="$ac_configure_extra_args --silent"
12061 fi
12062
12063 _ACEOF
12064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12065 if \$ac_cs_recheck; then
12066 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12067 shift
12068 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12069 CONFIG_SHELL='$SHELL'
12070 export CONFIG_SHELL
12071 exec "\$@"
12072 fi
12073
12074 _ACEOF
12075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12076 exec 5>>config.log
12077 {
12078 echo
12079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12080 ## Running $as_me. ##
12081 _ASBOX
12082 printf "%s\n" "$ac_log"
12083 } >&5
12084
12085 _ACEOF
12086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12087 #
12088 # INIT-COMMANDS
12089 #
12090 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12091
12092 _ACEOF
12093
12094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095
12096 # Handling of arguments.
12097 for ac_config_target in $ac_config_targets
12098 do
12099 case $ac_config_target in
12100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12103 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12104
12105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12106 esac
12107 done
12108
12109
12110 # If the user did not use the arguments to specify the items to instantiate,
12111 # then the envvar interface is used. Set only those that are not.
12112 # We use the long form for the default assignment because of an extremely
12113 # bizarre bug on SunOS 4.1.3.
12114 if $ac_need_defaults; then
12115 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12116 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12117 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12118 fi
12119
12120 # Have a temporary directory for convenience. Make it in the build tree
12121 # simply because there is no reason against having it here, and in addition,
12122 # creating and moving files from /tmp can sometimes cause problems.
12123 # Hook for its removal unless debugging.
12124 # Note that there is a small window in which the directory will not be cleaned:
12125 # after its creation but before its name has been assigned to `$tmp'.
12126 $debug ||
12127 {
12128 tmp= ac_tmp=
12129 trap 'exit_status=$?
12130 : "${ac_tmp:=$tmp}"
12131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12132 ' 0
12133 trap 'as_fn_exit 1' 1 2 13 15
12134 }
12135 # Create a (secure) tmp directory for tmp files.
12136
12137 {
12138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12139 test -d "$tmp"
12140 } ||
12141 {
12142 tmp=./conf$$-$RANDOM
12143 (umask 077 && mkdir "$tmp")
12144 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12145 ac_tmp=$tmp
12146
12147 # Set up the scripts for CONFIG_FILES section.
12148 # No need to generate them if there are no CONFIG_FILES.
12149 # This happens for instance with `./config.status config.h'.
12150 if test -n "$CONFIG_FILES"; then
12151
12152
12153 ac_cr=`echo X | tr X '\015'`
12154 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12155 # But we know of no other shell where ac_cr would be empty at this
12156 # point, so we can use a bashism as a fallback.
12157 if test "x$ac_cr" = x; then
12158 eval ac_cr=\$\'\\r\'
12159 fi
12160 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12161 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12162 ac_cs_awk_cr='\\r'
12163 else
12164 ac_cs_awk_cr=$ac_cr
12165 fi
12166
12167 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12168 _ACEOF
12169
12170
12171 {
12172 echo "cat >conf$$subs.awk <<_ACEOF" &&
12173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12174 echo "_ACEOF"
12175 } >conf$$subs.sh ||
12176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12178 ac_delim='%!_!# '
12179 for ac_last_try in false false false false false :; do
12180 . ./conf$$subs.sh ||
12181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12182
12183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12184 if test $ac_delim_n = $ac_delim_num; then
12185 break
12186 elif $ac_last_try; then
12187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12188 else
12189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12190 fi
12191 done
12192 rm -f conf$$subs.sh
12193
12194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12195 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12196 _ACEOF
12197 sed -n '
12198 h
12199 s/^/S["/; s/!.*/"]=/
12200 p
12201 g
12202 s/^[^!]*!//
12203 :repl
12204 t repl
12205 s/'"$ac_delim"'$//
12206 t delim
12207 :nl
12208 h
12209 s/\(.\{148\}\)..*/\1/
12210 t more1
12211 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12212 p
12213 n
12214 b repl
12215 :more1
12216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12217 p
12218 g
12219 s/.\{148\}//
12220 t nl
12221 :delim
12222 h
12223 s/\(.\{148\}\)..*/\1/
12224 t more2
12225 s/["\\]/\\&/g; s/^/"/; s/$/"/
12226 p
12227 b
12228 :more2
12229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12230 p
12231 g
12232 s/.\{148\}//
12233 t delim
12234 ' <conf$$subs.awk | sed '
12235 /^[^""]/{
12236 N
12237 s/\n//
12238 }
12239 ' >>$CONFIG_STATUS || ac_write_fail=1
12240 rm -f conf$$subs.awk
12241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12242 _ACAWK
12243 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12244 for (key in S) S_is_set[key] = 1
12245 FS = ""
12246
12247 }
12248 {
12249 line = $ 0
12250 nfields = split(line, field, "@")
12251 substed = 0
12252 len = length(field[1])
12253 for (i = 2; i < nfields; i++) {
12254 key = field[i]
12255 keylen = length(key)
12256 if (S_is_set[key]) {
12257 value = S[key]
12258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12259 len += length(value) + length(field[++i])
12260 substed = 1
12261 } else
12262 len += 1 + keylen
12263 }
12264
12265 print line
12266 }
12267
12268 _ACAWK
12269 _ACEOF
12270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12271 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12273 else
12274 cat
12275 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12276 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12277 _ACEOF
12278
12279 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12280 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12281 # trailing colons and then remove the whole line if VPATH becomes empty
12282 # (actually we leave an empty line to preserve line numbers).
12283 if test "x$srcdir" = x.; then
12284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12285 h
12286 s///
12287 s/^/:/
12288 s/[ ]*$/:/
12289 s/:\$(srcdir):/:/g
12290 s/:\${srcdir}:/:/g
12291 s/:@srcdir@:/:/g
12292 s/^:*//
12293 s/:*$//
12294 x
12295 s/\(=[ ]*\).*/\1/
12296 G
12297 s/\n//
12298 s/^[^=]*=[ ]*$//
12299 }'
12300 fi
12301
12302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12303 fi # test -n "$CONFIG_FILES"
12304
12305 # Set up the scripts for CONFIG_HEADERS section.
12306 # No need to generate them if there are no CONFIG_HEADERS.
12307 # This happens for instance with `./config.status Makefile'.
12308 if test -n "$CONFIG_HEADERS"; then
12309 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12310 BEGIN {
12311 _ACEOF
12312
12313 # Transform confdefs.h into an awk script `defines.awk', embedded as
12314 # here-document in config.status, that substitutes the proper values into
12315 # config.h.in to produce config.h.
12316
12317 # Create a delimiter string that does not exist in confdefs.h, to ease
12318 # handling of long lines.
12319 ac_delim='%!_!# '
12320 for ac_last_try in false false :; do
12321 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12322 if test -z "$ac_tt"; then
12323 break
12324 elif $ac_last_try; then
12325 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12326 else
12327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12328 fi
12329 done
12330
12331 # For the awk script, D is an array of macro values keyed by name,
12332 # likewise P contains macro parameters if any. Preserve backslash
12333 # newline sequences.
12334
12335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12336 sed -n '
12337 s/.\{148\}/&'"$ac_delim"'/g
12338 t rset
12339 :rset
12340 s/^[ ]*#[ ]*define[ ][ ]*/ /
12341 t def
12342 d
12343 :def
12344 s/\\$//
12345 t bsnl
12346 s/["\\]/\\&/g
12347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12348 D["\1"]=" \3"/p
12349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12350 d
12351 :bsnl
12352 s/["\\]/\\&/g
12353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12354 D["\1"]=" \3\\\\\\n"\\/p
12355 t cont
12356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12357 t cont
12358 d
12359 :cont
12360 n
12361 s/.\{148\}/&'"$ac_delim"'/g
12362 t clear
12363 :clear
12364 s/\\$//
12365 t bsnlc
12366 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12367 d
12368 :bsnlc
12369 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12370 b cont
12371 ' <confdefs.h | sed '
12372 s/'"$ac_delim"'/"\\\
12373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12374
12375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12376 for (key in D) D_is_set[key] = 1
12377 FS = ""
12378 }
12379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12380 line = \$ 0
12381 split(line, arg, " ")
12382 if (arg[1] == "#") {
12383 defundef = arg[2]
12384 mac1 = arg[3]
12385 } else {
12386 defundef = substr(arg[1], 2)
12387 mac1 = arg[2]
12388 }
12389 split(mac1, mac2, "(") #)
12390 macro = mac2[1]
12391 prefix = substr(line, 1, index(line, defundef) - 1)
12392 if (D_is_set[macro]) {
12393 # Preserve the white space surrounding the "#".
12394 print prefix "define", macro P[macro] D[macro]
12395 next
12396 } else {
12397 # Replace #undef with comments. This is necessary, for example,
12398 # in the case of _POSIX_SOURCE, which is predefined and required
12399 # on some systems where configure will not decide to define it.
12400 if (defundef == "undef") {
12401 print "/*", prefix defundef, macro, "*/"
12402 next
12403 }
12404 }
12405 }
12406 { print }
12407 _ACAWK
12408 _ACEOF
12409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12410 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12411 fi # test -n "$CONFIG_HEADERS"
12412
12413
12414 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12415 shift
12416 for ac_tag
12417 do
12418 case $ac_tag in
12419 :[FHLC]) ac_mode=$ac_tag; continue;;
12420 esac
12421 case $ac_mode$ac_tag in
12422 :[FHL]*:*);;
12423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12424 :[FH]-) ac_tag=-:-;;
12425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12426 esac
12427 ac_save_IFS=$IFS
12428 IFS=:
12429 set x $ac_tag
12430 IFS=$ac_save_IFS
12431 shift
12432 ac_file=$1
12433 shift
12434
12435 case $ac_mode in
12436 :L) ac_source=$1;;
12437 :[FH])
12438 ac_file_inputs=
12439 for ac_f
12440 do
12441 case $ac_f in
12442 -) ac_f="$ac_tmp/stdin";;
12443 *) # Look for the file first in the build tree, then in the source tree
12444 # (if the path is not absolute). The absolute path cannot be DOS-style,
12445 # because $ac_f cannot contain `:'.
12446 test -f "$ac_f" ||
12447 case $ac_f in
12448 [\\/$]*) false;;
12449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12450 esac ||
12451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12452 esac
12453 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12454 as_fn_append ac_file_inputs " '$ac_f'"
12455 done
12456
12457 # Let's still pretend it is `configure' which instantiates (i.e., don't
12458 # use $as_me), people would be surprised to read:
12459 # /* config.h. Generated by config.status. */
12460 configure_input='Generated from '`
12461 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12462 `' by configure.'
12463 if test x"$ac_file" != x-; then
12464 configure_input="$ac_file. $configure_input"
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12466 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12467 fi
12468 # Neutralize special characters interpreted by sed in replacement strings.
12469 case $configure_input in #(
12470 *\&* | *\|* | *\\* )
12471 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12473 *) ac_sed_conf_input=$configure_input;;
12474 esac
12475
12476 case $ac_tag in
12477 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12479 esac
12480 ;;
12481 esac
12482
12483 ac_dir=`$as_dirname -- "$ac_file" ||
12484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12485 X"$ac_file" : 'X\(//\)[^/]' \| \
12486 X"$ac_file" : 'X\(//\)$' \| \
12487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12488 printf "%s\n" X"$ac_file" |
12489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12490 s//\1/
12491 q
12492 }
12493 /^X\(\/\/\)[^/].*/{
12494 s//\1/
12495 q
12496 }
12497 /^X\(\/\/\)$/{
12498 s//\1/
12499 q
12500 }
12501 /^X\(\/\).*/{
12502 s//\1/
12503 q
12504 }
12505 s/.*/./; q'`
12506 as_dir="$ac_dir"; as_fn_mkdir_p
12507 ac_builddir=.
12508
12509 case "$ac_dir" in
12510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12511 *)
12512 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12513 # A ".." for each directory in $ac_dir_suffix.
12514 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12515 case $ac_top_builddir_sub in
12516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12518 esac ;;
12519 esac
12520 ac_abs_top_builddir=$ac_pwd
12521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12522 # for backward compatibility:
12523 ac_top_builddir=$ac_top_build_prefix
12524
12525 case $srcdir in
12526 .) # We are building in place.
12527 ac_srcdir=.
12528 ac_top_srcdir=$ac_top_builddir_sub
12529 ac_abs_top_srcdir=$ac_pwd ;;
12530 [\\/]* | ?:[\\/]* ) # Absolute name.
12531 ac_srcdir=$srcdir$ac_dir_suffix;
12532 ac_top_srcdir=$srcdir
12533 ac_abs_top_srcdir=$srcdir ;;
12534 *) # Relative name.
12535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12536 ac_top_srcdir=$ac_top_build_prefix$srcdir
12537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12538 esac
12539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12540
12541
12542 case $ac_mode in
12543 :F)
12544 #
12545 # CONFIG_FILE
12546 #
12547
12548 case $INSTALL in
12549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12551 esac
12552 ac_MKDIR_P=$MKDIR_P
12553 case $MKDIR_P in
12554 [\\/$]* | ?:[\\/]* ) ;;
12555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12556 esac
12557 _ACEOF
12558
12559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12560 # If the template does not know about datarootdir, expand it.
12561 # FIXME: This hack should be removed a few years after 2.60.
12562 ac_datarootdir_hack=; ac_datarootdir_seen=
12563 ac_sed_dataroot='
12564 /datarootdir/ {
12565 p
12566 q
12567 }
12568 /@datadir@/p
12569 /@docdir@/p
12570 /@infodir@/p
12571 /@localedir@/p
12572 /@mandir@/p'
12573 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12574 *datarootdir*) ac_datarootdir_seen=yes;;
12575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12577 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12578 _ACEOF
12579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12580 ac_datarootdir_hack='
12581 s&@datadir@&$datadir&g
12582 s&@docdir@&$docdir&g
12583 s&@infodir@&$infodir&g
12584 s&@localedir@&$localedir&g
12585 s&@mandir@&$mandir&g
12586 s&\\\${datarootdir}&$datarootdir&g' ;;
12587 esac
12588 _ACEOF
12589
12590 # Neutralize VPATH when `$srcdir' = `.'.
12591 # Shell code in configure.ac might set extrasub.
12592 # FIXME: do we really want to maintain this feature?
12593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12594 ac_sed_extra="$ac_vpsub
12595 $extrasub
12596 _ACEOF
12597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12598 :t
12599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12600 s|@configure_input@|$ac_sed_conf_input|;t t
12601 s&@top_builddir@&$ac_top_builddir_sub&;t t
12602 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12603 s&@srcdir@&$ac_srcdir&;t t
12604 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12605 s&@top_srcdir@&$ac_top_srcdir&;t t
12606 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12607 s&@builddir@&$ac_builddir&;t t
12608 s&@abs_builddir@&$ac_abs_builddir&;t t
12609 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12610 s&@INSTALL@&$ac_INSTALL&;t t
12611 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12612 $ac_datarootdir_hack
12613 "
12614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12616
12617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12620 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12622 which seems to be undefined. Please make sure it is defined" >&5
12623 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12624 which seems to be undefined. Please make sure it is defined" >&2;}
12625
12626 rm -f "$ac_tmp/stdin"
12627 case $ac_file in
12628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12630 esac \
12631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12632 ;;
12633 :H)
12634 #
12635 # CONFIG_HEADER
12636 #
12637 if test x"$ac_file" != x-; then
12638 {
12639 printf "%s\n" "/* $configure_input */" >&1 \
12640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12641 } >"$ac_tmp/config.h" \
12642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12645 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12646 else
12647 rm -f "$ac_file"
12648 mv "$ac_tmp/config.h" "$ac_file" \
12649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12650 fi
12651 else
12652 printf "%s\n" "/* $configure_input */" >&1 \
12653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12654 || as_fn_error $? "could not create -" "$LINENO" 5
12655 fi
12656 # Compute "$ac_file"'s index in $config_headers.
12657 _am_arg="$ac_file"
12658 _am_stamp_count=1
12659 for _am_header in $config_headers :; do
12660 case $_am_header in
12661 $_am_arg | $_am_arg:* )
12662 break ;;
12663 * )
12664 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12665 esac
12666 done
12667 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12668 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12669 X"$_am_arg" : 'X\(//\)[^/]' \| \
12670 X"$_am_arg" : 'X\(//\)$' \| \
12671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12672 printf "%s\n" X"$_am_arg" |
12673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12674 s//\1/
12675 q
12676 }
12677 /^X\(\/\/\)[^/].*/{
12678 s//\1/
12679 q
12680 }
12681 /^X\(\/\/\)$/{
12682 s//\1/
12683 q
12684 }
12685 /^X\(\/\).*/{
12686 s//\1/
12687 q
12688 }
12689 s/.*/./; q'`/stamp-h$_am_stamp_count
12690 ;;
12691
12692 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12693 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12694 ;;
12695 esac
12696
12697
12698 case $ac_file$ac_mode in
12699 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12700 # Older Autoconf quotes --file arguments for eval, but not when files
12701 # are listed without --file. Let's play safe and only enable the eval
12702 # if we detect the quoting.
12703 # TODO: see whether this extra hack can be removed once we start
12704 # requiring Autoconf 2.70 or later.
12705 case $CONFIG_FILES in #(
12706 *\'*) :
12707 eval set x "$CONFIG_FILES" ;; #(
12708 *) :
12709 set x $CONFIG_FILES ;; #(
12710 *) :
12711 ;;
12712 esac
12713 shift
12714 # Used to flag and report bootstrapping failures.
12715 am_rc=0
12716 for am_mf
12717 do
12718 # Strip MF so we end up with the name of the file.
12719 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12720 # Check whether this is an Automake generated Makefile which includes
12721 # dependency-tracking related rules and includes.
12722 # Grep'ing the whole file directly is not great: AIX grep has a line
12723 # limit of 2048, but all sed's we know have understand at least 4000.
12724 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12725 || continue
12726 am_dirpart=`$as_dirname -- "$am_mf" ||
12727 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12728 X"$am_mf" : 'X\(//\)[^/]' \| \
12729 X"$am_mf" : 'X\(//\)$' \| \
12730 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12731 printf "%s\n" X"$am_mf" |
12732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12733 s//\1/
12734 q
12735 }
12736 /^X\(\/\/\)[^/].*/{
12737 s//\1/
12738 q
12739 }
12740 /^X\(\/\/\)$/{
12741 s//\1/
12742 q
12743 }
12744 /^X\(\/\).*/{
12745 s//\1/
12746 q
12747 }
12748 s/.*/./; q'`
12749 am_filepart=`$as_basename -- "$am_mf" ||
12750 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12751 X"$am_mf" : 'X\(//\)$' \| \
12752 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12753 printf "%s\n" X/"$am_mf" |
12754 sed '/^.*\/\([^/][^/]*\)\/*$/{
12755 s//\1/
12756 q
12757 }
12758 /^X\/\(\/\/\)$/{
12759 s//\1/
12760 q
12761 }
12762 /^X\/\(\/\).*/{
12763 s//\1/
12764 q
12765 }
12766 s/.*/./; q'`
12767 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12768 && sed -e '/# am--include-marker/d' "$am_filepart" \
12769 | $MAKE -f - am--depfiles" >&5
12770 (cd "$am_dirpart" \
12771 && sed -e '/# am--include-marker/d' "$am_filepart" \
12772 | $MAKE -f - am--depfiles) >&5 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } || am_rc=$?
12776 done
12777 if test $am_rc -ne 0; then
12778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12779 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12780 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12781 for automatic dependency tracking. If GNU make was not used, consider
12782 re-running the configure script with MAKE=\"gmake\" (or whatever is
12783 necessary). You can also try re-running configure with the
12784 '--disable-dependency-tracking' option to at least be able to build
12785 the package (albeit without support for automatic dependency tracking).
12786 See \`config.log' for more details" "$LINENO" 5; }
12787 fi
12788 { am_dirpart=; unset am_dirpart;}
12789 { am_filepart=; unset am_filepart;}
12790 { am_mf=; unset am_mf;}
12791 { am_rc=; unset am_rc;}
12792 rm -f conftest-deps.mk
12793 }
12794 ;;
12795
12796 esac
12797 done # for ac_tag
12798
12799
12800 as_fn_exit 0
12801 _ACEOF
12802 ac_clean_files=$ac_clean_files_save
12803
12804 test $ac_write_fail = 0 ||
12805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12806
12807
12808 # configure is writing to config.log, and then calls config.status.
12809 # config.status does its own redirection, appending to config.log.
12810 # Unfortunately, on DOS this fails, as config.log is still kept open
12811 # by configure, so config.status won't be able to write to it; its
12812 # output is simply discarded. So we exec the FD to /dev/null,
12813 # effectively closing config.log, so it can be properly (re)opened and
12814 # appended to by config.status. When coming back to configure, we
12815 # need to make the FD available again.
12816 if test "$no_create" != yes; then
12817 ac_cs_success=:
12818 ac_config_status_args=
12819 test "$silent" = yes &&
12820 ac_config_status_args="$ac_config_status_args --quiet"
12821 exec 5>/dev/null
12822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12823 exec 5>>config.log
12824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12825 # would make configure fail if this is the last instruction.
12826 $ac_cs_success || as_fn_exit 1
12827 fi
12828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12830 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12831 fi
12832
12833
12834