configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for listres 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/listres/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/listres/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='listres'
607 PACKAGE_TARNAME='listres'
608 PACKAGE_VERSION='1.0.6'
609 PACKAGE_STRING='listres 1.0.6'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/listres/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 LISTRES_LIBS
651 LISTRES_CFLAGS
652 MAN_SUBSTS
653 XORG_MAN_PAGE
654 ADMIN_MAN_DIR
655 DRIVER_MAN_DIR
656 MISC_MAN_DIR
657 FILE_MAN_DIR
658 LIB_MAN_DIR
659 APP_MAN_DIR
660 ADMIN_MAN_SUFFIX
661 DRIVER_MAN_SUFFIX
662 MISC_MAN_SUFFIX
663 FILE_MAN_SUFFIX
664 LIB_MAN_SUFFIX
665 APP_MAN_SUFFIX
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 INSTALL_CMD
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CHANGELOG_CMD
680 STRICT_CFLAGS
681 CWARNFLAGS
682 BASE_CFLAGS
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 CSCOPE
704 ETAGS
705 CTAGS
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 runstatedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL
768 am__quote'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_dependency_tracking
774 enable_selective_werror
775 enable_strict_compilation
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 LISTRES_CFLAGS
789 LISTRES_LIBS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: '$ac_useropt'"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: '$ac_useropt'"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -runstatedir | --runstatedir | --runstatedi | --runstated \
1080 | --runstate | --runstat | --runsta | --runst | --runs \
1081 | --run | --ru | --r)
1082 ac_prev=runstatedir ;;
1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085 | --run=* | --ru=* | --r=*)
1086 runstatedir=$ac_optarg ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: '$ac_useropt'"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: '$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: '$ac_option'
1184 Try '$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir runstatedir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: '$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 printf "%s\n" X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 'configure' configures listres 1.0.6 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print 'checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for '--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or '..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, 'make install' will install all the files in
1365 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than '$ac_default_prefix' using '--prefix',
1367 for instance '--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/listres]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1393
1394 cat <<\_ACEOF
1395
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of listres 1.0.6:";;
1410 esac
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-silent-rules less verbose build output (undo: "make V=1")
1418 --disable-silent-rules verbose build output (undo: "make V=0")
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --disable-selective-werror
1424 Turn off selective compiler errors. (default:
1425 enabled)
1426 --enable-strict-compilation
1427 Enable all warnings from compiler and make them
1428 errors (default: disabled)
1429
1430 Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
1435 LIBS libraries to pass to the linker, e.g. -l<library>
1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437 you have headers in a nonstandard directory <include dir>
1438 PKG_CONFIG path to pkg-config utility
1439 PKG_CONFIG_PATH
1440 directories to add to pkg-config's search path
1441 PKG_CONFIG_LIBDIR
1442 path overriding pkg-config's built-in search path
1443 LISTRES_CFLAGS
1444 C compiler flags for LISTRES, overriding pkg-config
1445 LISTRES_LIBS
1446 linker flags for LISTRES, overriding pkg-config
1447
1448 Use these variables to override the choices made by 'configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to <https://gitlab.freedesktop.org/xorg/app/listres/-/issues>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for configure.gnu first; this name is used for a wrapper for
1498 # Metaconfig's "Configure" on case-insensitive file systems.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 listres configure 1.0.6
1516 generated by GNU Autoconf 2.72
1517
1518 Copyright (C) 2023 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext conftest.beam
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 printf "%s\n" "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext
1555 then :
1556 ac_retval=0
1557 else case e in #(
1558 e) printf "%s\n" "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1 ;;
1562 esac
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1570 # ------------------------------------------------------------------
1571 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1572 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1573 ac_fn_check_decl ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 as_decl_name=`echo $2|sed 's/ *(.*//'`
1577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1578 printf %s "checking whether $as_decl_name is declared... " >&6; }
1579 if eval test \${$3+y}
1580 then :
1581 printf %s "(cached) " >&6
1582 else case e in #(
1583 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1584 eval ac_save_FLAGS=\$$6
1585 as_fn_append $6 " $5"
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1588 $4
1589 int
1590 main (void)
1591 {
1592 #ifndef $as_decl_name
1593 #ifdef __cplusplus
1594 (void) $as_decl_use;
1595 #else
1596 (void) $as_decl_name;
1597 #endif
1598 #endif
1599
1600 ;
1601 return 0;
1602 }
1603 _ACEOF
1604 if ac_fn_c_try_compile "$LINENO"
1605 then :
1606 eval "$3=yes"
1607 else case e in #(
1608 e) eval "$3=no" ;;
1609 esac
1610 fi
1611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1612 eval $6=\$ac_save_FLAGS
1613 ;;
1614 esac
1615 fi
1616 eval ac_res=\$$3
1617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 printf "%s\n" "$ac_res" >&6; }
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
1621 } # ac_fn_check_decl
1622
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 printf %s "checking for $2... " >&6; }
1632 if eval test \${$3+y}
1633 then :
1634 printf %s "(cached) " >&6
1635 else case e in #(
1636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1638 $4
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"
1642 then :
1643 eval "$3=yes"
1644 else case e in #(
1645 e) eval "$3=no" ;;
1646 esac
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1649 esac
1650 fi
1651 eval ac_res=\$$3
1652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 printf "%s\n" "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 printf "%s\n" "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }
1687 then :
1688 ac_retval=0
1689 else case e in #(
1690 e) printf "%s\n" "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1 ;;
1694 esac
1695 fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705 ac_configure_args_raw=
1706 for ac_arg
1707 do
1708 case $ac_arg in
1709 *\'*)
1710 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 esac
1712 as_fn_append ac_configure_args_raw " '$ac_arg'"
1713 done
1714
1715 case $ac_configure_args_raw in
1716 *$as_nl*)
1717 ac_safe_unquote= ;;
1718 *)
1719 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1720 ac_unsafe_a="$ac_unsafe_z#~"
1721 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1722 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1723 esac
1724
1725 cat >config.log <<_ACEOF
1726 This file contains any messages produced by compilers while
1727 running configure, to aid debugging if configure makes a mistake.
1728
1729 It was created by listres $as_me 1.0.6, which was
1730 generated by GNU Autoconf 2.72. Invocation command line was
1731
1732 $ $0$ac_configure_args_raw
1733
1734 _ACEOF
1735 exec 5>>config.log
1736 {
1737 cat <<_ASUNAME
1738 ## --------- ##
1739 ## Platform. ##
1740 ## --------- ##
1741
1742 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747
1748 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750
1751 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1752 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1753 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1754 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1755 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1756 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1757 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1758
1759 _ASUNAME
1760
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764 IFS=$as_save_IFS
1765 case $as_dir in #(((
1766 '') as_dir=./ ;;
1767 */) ;;
1768 *) as_dir=$as_dir/ ;;
1769 esac
1770 printf "%s\n" "PATH: $as_dir"
1771 done
1772 IFS=$as_save_IFS
1773
1774 } >&5
1775
1776 cat >&5 <<_ACEOF
1777
1778
1779 ## ----------- ##
1780 ## Core tests. ##
1781 ## ----------- ##
1782
1783 _ACEOF
1784
1785
1786 # Keep a trace of the command line.
1787 # Strip out --no-create and --no-recursion so they do not pile up.
1788 # Strip out --silent because we don't want to record it for future runs.
1789 # Also quote any args containing shell meta-characters.
1790 # Make two passes to allow for proper duplicate-argument suppression.
1791 ac_configure_args=
1792 ac_configure_args0=
1793 ac_configure_args1=
1794 ac_must_keep_next=false
1795 for ac_pass in 1 2
1796 do
1797 for ac_arg
1798 do
1799 case $ac_arg in
1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802 | -silent | --silent | --silen | --sile | --sil)
1803 continue ;;
1804 *\'*)
1805 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 esac
1807 case $ac_pass in
1808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1809 2)
1810 as_fn_append ac_configure_args1 " '$ac_arg'"
1811 if test $ac_must_keep_next = true; then
1812 ac_must_keep_next=false # Got value, back to normal.
1813 else
1814 case $ac_arg in
1815 *=* | --config-cache | -C | -disable-* | --disable-* \
1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818 | -with-* | --with-* | -without-* | --without-* | --x)
1819 case "$ac_configure_args0 " in
1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1821 esac
1822 ;;
1823 -* ) ac_must_keep_next=true ;;
1824 esac
1825 fi
1826 as_fn_append ac_configure_args " '$ac_arg'"
1827 ;;
1828 esac
1829 done
1830 done
1831 { ac_configure_args0=; unset ac_configure_args0;}
1832 { ac_configure_args1=; unset ac_configure_args1;}
1833
1834 # When interrupted or exit'd, cleanup temporary files, and complete
1835 # config.log. We remove comments because anyway the quotes in there
1836 # would cause problems or look ugly.
1837 # WARNING: Use '\'' to represent an apostrophe within the trap.
1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839 trap 'exit_status=$?
1840 # Sanitize IFS.
1841 IFS=" "" $as_nl"
1842 # Save into config.log some information that might help in debugging.
1843 {
1844 echo
1845
1846 printf "%s\n" "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1874 *)
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ;;
1877 esac |
1878 sort
1879 )
1880 echo
1881
1882 printf "%s\n" "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 printf "%s\n" "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 printf "%s\n" "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 printf "%s\n" "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 printf "%s\n" "## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##"
1916 echo
1917 cat confdefs.h
1918 echo
1919 fi
1920 test "$ac_signal" != 0 &&
1921 printf "%s\n" "$as_me: caught signal $ac_signal"
1922 printf "%s\n" "$as_me: exit $exit_status"
1923 } >&5
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 printf "%s\n" "/* confdefs.h */" > confdefs.h
1937
1938 # Predefined preprocessor variables.
1939
1940 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1941
1942 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1943
1944 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1945
1946 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1947
1948 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1949
1950 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1951
1952
1953 # Let the site file select an alternate cache file if it wants to.
1954 # Prefer an explicitly selected file to automatically selected ones.
1955 if test -n "$CONFIG_SITE"; then
1956 ac_site_files="$CONFIG_SITE"
1957 elif test "x$prefix" != xNONE; then
1958 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1959 else
1960 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1961 fi
1962
1963 for ac_site_file in $ac_site_files
1964 do
1965 case $ac_site_file in #(
1966 */*) :
1967 ;; #(
1968 *) :
1969 ac_site_file=./$ac_site_file ;;
1970 esac
1971 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1974 sed 's/^/| /' "$ac_site_file" >&5
1975 . "$ac_site_file" \
1976 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1977 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1978 as_fn_error $? "failed to load site script $ac_site_file
1979 See 'config.log' for more details" "$LINENO" 5; }
1980 fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special files
1985 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1986 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994 else
1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998 fi
1999
2000 # Test code for whether the C compiler supports C89 (global declarations)
2001 ac_c_conftest_c89_globals='
2002 /* Does the compiler advertise C89 conformance?
2003 Do not test the value of __STDC__, because some compilers set it to 0
2004 while being otherwise adequately conformant. */
2005 #if !defined __STDC__
2006 # error "Compiler does not advertise C89 conformance"
2007 #endif
2008
2009 #include <stddef.h>
2010 #include <stdarg.h>
2011 struct stat;
2012 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2013 struct buf { int x; };
2014 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2015 static char *e (char **p, int i)
2016 {
2017 return p[i];
2018 }
2019 static char *f (char * (*g) (char **, int), char **p, ...)
2020 {
2021 char *s;
2022 va_list v;
2023 va_start (v,p);
2024 s = g (p, va_arg (v,int));
2025 va_end (v);
2026 return s;
2027 }
2028
2029 /* C89 style stringification. */
2030 #define noexpand_stringify(a) #a
2031 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2032
2033 /* C89 style token pasting. Exercises some of the corner cases that
2034 e.g. old MSVC gets wrong, but not very hard. */
2035 #define noexpand_concat(a,b) a##b
2036 #define expand_concat(a,b) noexpand_concat(a,b)
2037 extern int vA;
2038 extern int vbee;
2039 #define aye A
2040 #define bee B
2041 int *pvA = &expand_concat(v,aye);
2042 int *pvbee = &noexpand_concat(v,bee);
2043
2044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2045 function prototypes and stuff, but not \xHH hex character constants.
2046 These do not provoke an error unfortunately, instead are silently treated
2047 as an "x". The following induces an error, until -std is added to get
2048 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2049 array size at least. It is necessary to write \x00 == 0 to get something
2050 that is true only with -std. */
2051 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2052
2053 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2054 inside strings and character constants. */
2055 #define FOO(x) '\''x'\''
2056 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2057
2058 int test (int i, double x);
2059 struct s1 {int (*f) (int a);};
2060 struct s2 {int (*f) (double a);};
2061 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2062 int, int);'
2063
2064 # Test code for whether the C compiler supports C89 (body of main).
2065 ac_c_conftest_c89_main='
2066 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2067 '
2068
2069 # Test code for whether the C compiler supports C99 (global declarations)
2070 ac_c_conftest_c99_globals='
2071 /* Does the compiler advertise C99 conformance? */
2072 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2073 # error "Compiler does not advertise C99 conformance"
2074 #endif
2075
2076 // See if C++-style comments work.
2077
2078 #include <stdbool.h>
2079 extern int puts (const char *);
2080 extern int printf (const char *, ...);
2081 extern int dprintf (int, const char *, ...);
2082 extern void *malloc (size_t);
2083 extern void free (void *);
2084
2085 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2086 // dprintf is used instead of fprintf to avoid needing to declare
2087 // FILE and stderr.
2088 #define debug(...) dprintf (2, __VA_ARGS__)
2089 #define showlist(...) puts (#__VA_ARGS__)
2090 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2091 static void
2092 test_varargs_macros (void)
2093 {
2094 int x = 1234;
2095 int y = 5678;
2096 debug ("Flag");
2097 debug ("X = %d\n", x);
2098 showlist (The first, second, and third items.);
2099 report (x>y, "x is %d but y is %d", x, y);
2100 }
2101
2102 // Check long long types.
2103 #define BIG64 18446744073709551615ull
2104 #define BIG32 4294967295ul
2105 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2106 #if !BIG_OK
2107 #error "your preprocessor is broken"
2108 #endif
2109 #if BIG_OK
2110 #else
2111 #error "your preprocessor is broken"
2112 #endif
2113 static long long int bignum = -9223372036854775807LL;
2114 static unsigned long long int ubignum = BIG64;
2115
2116 struct incomplete_array
2117 {
2118 int datasize;
2119 double data[];
2120 };
2121
2122 struct named_init {
2123 int number;
2124 const wchar_t *name;
2125 double average;
2126 };
2127
2128 typedef const char *ccp;
2129
2130 static inline int
2131 test_restrict (ccp restrict text)
2132 {
2133 // Iterate through items via the restricted pointer.
2134 // Also check for declarations in for loops.
2135 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2136 continue;
2137 return 0;
2138 }
2139
2140 // Check varargs and va_copy.
2141 static bool
2142 test_varargs (const char *format, ...)
2143 {
2144 va_list args;
2145 va_start (args, format);
2146 va_list args_copy;
2147 va_copy (args_copy, args);
2148
2149 const char *str = "";
2150 int number = 0;
2151 float fnumber = 0;
2152
2153 while (*format)
2154 {
2155 switch (*format++)
2156 {
2157 case '\''s'\'': // string
2158 str = va_arg (args_copy, const char *);
2159 break;
2160 case '\''d'\'': // int
2161 number = va_arg (args_copy, int);
2162 break;
2163 case '\''f'\'': // float
2164 fnumber = va_arg (args_copy, double);
2165 break;
2166 default:
2167 break;
2168 }
2169 }
2170 va_end (args_copy);
2171 va_end (args);
2172
2173 return *str && number && fnumber;
2174 }
2175 '
2176
2177 # Test code for whether the C compiler supports C99 (body of main).
2178 ac_c_conftest_c99_main='
2179 // Check bool.
2180 _Bool success = false;
2181 success |= (argc != 0);
2182
2183 // Check restrict.
2184 if (test_restrict ("String literal") == 0)
2185 success = true;
2186 char *restrict newvar = "Another string";
2187
2188 // Check varargs.
2189 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2190 test_varargs_macros ();
2191
2192 // Check flexible array members.
2193 struct incomplete_array *ia =
2194 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2195 ia->datasize = 10;
2196 for (int i = 0; i < ia->datasize; ++i)
2197 ia->data[i] = i * 1.234;
2198 // Work around memory leak warnings.
2199 free (ia);
2200
2201 // Check named initializers.
2202 struct named_init ni = {
2203 .number = 34,
2204 .name = L"Test wide string",
2205 .average = 543.34343,
2206 };
2207
2208 ni.number = 58;
2209
2210 int dynamic_array[ni.number];
2211 dynamic_array[0] = argv[0][0];
2212 dynamic_array[ni.number - 1] = 543;
2213
2214 // work around unused variable warnings
2215 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2216 || dynamic_array[ni.number - 1] != 543);
2217 '
2218
2219 # Test code for whether the C compiler supports C11 (global declarations)
2220 ac_c_conftest_c11_globals='
2221 /* Does the compiler advertise C11 conformance? */
2222 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2223 # error "Compiler does not advertise C11 conformance"
2224 #endif
2225
2226 // Check _Alignas.
2227 char _Alignas (double) aligned_as_double;
2228 char _Alignas (0) no_special_alignment;
2229 extern char aligned_as_int;
2230 char _Alignas (0) _Alignas (int) aligned_as_int;
2231
2232 // Check _Alignof.
2233 enum
2234 {
2235 int_alignment = _Alignof (int),
2236 int_array_alignment = _Alignof (int[100]),
2237 char_alignment = _Alignof (char)
2238 };
2239 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2240
2241 // Check _Noreturn.
2242 int _Noreturn does_not_return (void) { for (;;) continue; }
2243
2244 // Check _Static_assert.
2245 struct test_static_assert
2246 {
2247 int x;
2248 _Static_assert (sizeof (int) <= sizeof (long int),
2249 "_Static_assert does not work in struct");
2250 long int y;
2251 };
2252
2253 // Check UTF-8 literals.
2254 #define u8 syntax error!
2255 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2256
2257 // Check duplicate typedefs.
2258 typedef long *long_ptr;
2259 typedef long int *long_ptr;
2260 typedef long_ptr long_ptr;
2261
2262 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2263 struct anonymous
2264 {
2265 union {
2266 struct { int i; int j; };
2267 struct { int k; long int l; } w;
2268 };
2269 int m;
2270 } v1;
2271 '
2272
2273 # Test code for whether the C compiler supports C11 (body of main).
2274 ac_c_conftest_c11_main='
2275 _Static_assert ((offsetof (struct anonymous, i)
2276 == offsetof (struct anonymous, w.k)),
2277 "Anonymous union alignment botch");
2278 v1.i = 2;
2279 v1.w.k = 5;
2280 ok |= v1.i != 5;
2281 '
2282
2283 # Test code for whether the C compiler supports C11 (complete).
2284 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2285 ${ac_c_conftest_c99_globals}
2286 ${ac_c_conftest_c11_globals}
2287
2288 int
2289 main (int argc, char **argv)
2290 {
2291 int ok = 0;
2292 ${ac_c_conftest_c89_main}
2293 ${ac_c_conftest_c99_main}
2294 ${ac_c_conftest_c11_main}
2295 return ok;
2296 }
2297 "
2298
2299 # Test code for whether the C compiler supports C99 (complete).
2300 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2301 ${ac_c_conftest_c99_globals}
2302
2303 int
2304 main (int argc, char **argv)
2305 {
2306 int ok = 0;
2307 ${ac_c_conftest_c89_main}
2308 ${ac_c_conftest_c99_main}
2309 return ok;
2310 }
2311 "
2312
2313 # Test code for whether the C compiler supports C89 (complete).
2314 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2315
2316 int
2317 main (int argc, char **argv)
2318 {
2319 int ok = 0;
2320 ${ac_c_conftest_c89_main}
2321 return ok;
2322 }
2323 "
2324
2325 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2326 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2327 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2328 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2329 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2330 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2331 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2332 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2333 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2334
2335 # Auxiliary files required by this configure script.
2336 ac_aux_files="config.guess config.sub compile missing install-sh"
2337
2338 # Locations in which to look for auxiliary files.
2339 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2340
2341 # Search for a directory containing all of the required auxiliary files,
2342 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2343 # If we don't find one directory that contains all the files we need,
2344 # we report the set of missing files from the *first* directory in
2345 # $ac_aux_dir_candidates and give up.
2346 ac_missing_aux_files=""
2347 ac_first_candidate=:
2348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 as_found=false
2351 for as_dir in $ac_aux_dir_candidates
2352 do
2353 IFS=$as_save_IFS
2354 case $as_dir in #(((
2355 '') as_dir=./ ;;
2356 */) ;;
2357 *) as_dir=$as_dir/ ;;
2358 esac
2359 as_found=:
2360
2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2362 ac_aux_dir_found=yes
2363 ac_install_sh=
2364 for ac_aux in $ac_aux_files
2365 do
2366 # As a special case, if "install-sh" is required, that requirement
2367 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2368 # and $ac_install_sh is set appropriately for whichever one is found.
2369 if test x"$ac_aux" = x"install-sh"
2370 then
2371 if test -f "${as_dir}install-sh"; then
2372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2373 ac_install_sh="${as_dir}install-sh -c"
2374 elif test -f "${as_dir}install.sh"; then
2375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2376 ac_install_sh="${as_dir}install.sh -c"
2377 elif test -f "${as_dir}shtool"; then
2378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2379 ac_install_sh="${as_dir}shtool install -c"
2380 else
2381 ac_aux_dir_found=no
2382 if $ac_first_candidate; then
2383 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2384 else
2385 break
2386 fi
2387 fi
2388 else
2389 if test -f "${as_dir}${ac_aux}"; then
2390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2391 else
2392 ac_aux_dir_found=no
2393 if $ac_first_candidate; then
2394 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2395 else
2396 break
2397 fi
2398 fi
2399 fi
2400 done
2401 if test "$ac_aux_dir_found" = yes; then
2402 ac_aux_dir="$as_dir"
2403 break
2404 fi
2405 ac_first_candidate=false
2406
2407 as_found=false
2408 done
2409 IFS=$as_save_IFS
2410 if $as_found
2411 then :
2412
2413 else case e in #(
2414 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2415 esac
2416 fi
2417
2418
2419 # These three variables are undocumented and unsupported,
2420 # and are intended to be withdrawn in a future Autoconf release.
2421 # They can cause serious problems if a builder's source tree is in a directory
2422 # whose full name contains unusual characters.
2423 if test -f "${ac_aux_dir}config.guess"; then
2424 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2425 fi
2426 if test -f "${ac_aux_dir}config.sub"; then
2427 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2428 fi
2429 if test -f "$ac_aux_dir/configure"; then
2430 ac_configure="$SHELL ${ac_aux_dir}configure"
2431 fi
2432
2433 # Check that the precious variables saved in the cache have kept the same
2434 # value.
2435 ac_cache_corrupted=false
2436 for ac_var in $ac_precious_vars; do
2437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2438 eval ac_new_set=\$ac_env_${ac_var}_set
2439 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2440 eval ac_new_val=\$ac_env_${ac_var}_value
2441 case $ac_old_set,$ac_new_set in
2442 set,)
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2444 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2446 ,set)
2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2448 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2449 ac_cache_corrupted=: ;;
2450 ,);;
2451 *)
2452 if test "x$ac_old_val" != "x$ac_new_val"; then
2453 # differences in whitespace do not lead to failure.
2454 ac_old_val_w=`echo x $ac_old_val`
2455 ac_new_val_w=`echo x $ac_new_val`
2456 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2458 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2459 ac_cache_corrupted=:
2460 else
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2462 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2463 eval $ac_var=\$ac_old_val
2464 fi
2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2466 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2468 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2469 fi;;
2470 esac
2471 # Pass precious variables to config.status.
2472 if test "$ac_new_set" = set; then
2473 case $ac_new_val in
2474 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2475 *) ac_arg=$ac_var=$ac_new_val ;;
2476 esac
2477 case " $ac_configure_args " in
2478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2479 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2480 esac
2481 fi
2482 done
2483 if $ac_cache_corrupted; then
2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2485 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2487 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2488 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2489 and start over" "$LINENO" 5
2490 fi
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2494
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502
2503 ac_config_headers="$ac_config_headers config.h"
2504
2505
2506 # Initialize Automake
2507 am__api_version='1.16'
2508
2509
2510
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 printf %s "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if test ${ac_cv_path_install+y}
2529 then :
2530 printf %s "(cached) " >&6
2531 else case e in #(
2532 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 case $as_dir in #(((
2537 '') as_dir=./ ;;
2538 */) ;;
2539 *) as_dir=$as_dir/ ;;
2540 esac
2541 # Account for fact that we put trailing slashes in our PATH walk.
2542 case $as_dir in #((
2543 ./ | /[cC]/* | \
2544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2546 /usr/ucb/* ) ;;
2547 *)
2548 # OSF1 and SCO ODT 3.0 have their own names for install.
2549 # Don't use installbsd from OSF since it installs stuff as root
2550 # by default.
2551 for ac_prog in ginstall scoinst install; do
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2554 if test $ac_prog = install &&
2555 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556 # AIX install. It has an incompatible calling convention.
2557 :
2558 elif test $ac_prog = install &&
2559 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560 # program-specific install script used by HP pwplus--don't use.
2561 :
2562 else
2563 rm -rf conftest.one conftest.two conftest.dir
2564 echo one > conftest.one
2565 echo two > conftest.two
2566 mkdir conftest.dir
2567 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2568 test -s conftest.one && test -s conftest.two &&
2569 test -s conftest.dir/conftest.one &&
2570 test -s conftest.dir/conftest.two
2571 then
2572 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2573 break 3
2574 fi
2575 fi
2576 fi
2577 done
2578 done
2579 ;;
2580 esac
2581
2582 done
2583 IFS=$as_save_IFS
2584
2585 rm -rf conftest.one conftest.two conftest.dir
2586 ;;
2587 esac
2588 fi
2589 if test ${ac_cv_path_install+y}; then
2590 INSTALL=$ac_cv_path_install
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL=$ac_install_sh
2597 fi
2598 fi
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2600 printf "%s\n" "$INSTALL" >&6; }
2601
2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603 # It thinks the first close brace ends the variable substitution.
2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605
2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607
2608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2611 printf %s "checking whether build environment is sane... " >&6; }
2612 # Reject unsafe characters in $srcdir or the absolute working directory
2613 # name. Accept space and tab only in the latter.
2614 am_lf='
2615 '
2616 case `pwd` in
2617 *[\\\"\#\$\&\'\`$am_lf]*)
2618 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2619 esac
2620 case $srcdir in
2621 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2622 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2623 esac
2624
2625 # Do 'set' in a subshell so we don't clobber the current shell's
2626 # arguments. Must try -L first in case configure is actually a
2627 # symlink; some systems play weird games with the mod time of symlinks
2628 # (eg FreeBSD returns the mod time of the symlink's containing
2629 # directory).
2630 if (
2631 am_has_slept=no
2632 for am_try in 1 2; do
2633 echo "timestamp, slept: $am_has_slept" > conftest.file
2634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2635 if test "$*" = "X"; then
2636 # -L didn't work.
2637 set X `ls -t "$srcdir/configure" conftest.file`
2638 fi
2639 if test "$*" != "X $srcdir/configure conftest.file" \
2640 && test "$*" != "X conftest.file $srcdir/configure"; then
2641
2642 # If neither matched, then we have a broken ls. This can happen
2643 # if, for instance, CONFIG_SHELL is bash and it inherits a
2644 # broken ls alias from the environment. This has actually
2645 # happened. Such a system could not be considered "sane".
2646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2647 alias in your environment" "$LINENO" 5
2648 fi
2649 if test "$2" = conftest.file || test $am_try -eq 2; then
2650 break
2651 fi
2652 # Just in case.
2653 sleep 1
2654 am_has_slept=yes
2655 done
2656 test "$2" = conftest.file
2657 )
2658 then
2659 # Ok.
2660 :
2661 else
2662 as_fn_error $? "newly created file is older than distributed files!
2663 Check your system clock" "$LINENO" 5
2664 fi
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 printf "%s\n" "yes" >&6; }
2667 # If we didn't sleep, we still need to ensure time stamps of config.status and
2668 # generated files are strictly newer.
2669 am_sleep_pid=
2670 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2671 ( sleep 1 ) &
2672 am_sleep_pid=$!
2673 fi
2674
2675 rm -f conftest.file
2676
2677 test "$program_prefix" != NONE &&
2678 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2679 # Use a double $ so make ignores it.
2680 test "$program_suffix" != NONE &&
2681 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2682 # Double any \ or $.
2683 # By default was 's,x,x', remove it if useless.
2684 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2685 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2686
2687
2688 # Expand $ac_aux_dir to an absolute path.
2689 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2690
2691
2692 if test x"${MISSING+set}" != xset; then
2693 MISSING="\${SHELL} '$am_aux_dir/missing'"
2694 fi
2695 # Use eval to expand $SHELL
2696 if eval "$MISSING --is-lightweight"; then
2697 am_missing_run="$MISSING "
2698 else
2699 am_missing_run=
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2701 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2702 fi
2703
2704 if test x"${install_sh+set}" != xset; then
2705 case $am_aux_dir in
2706 *\ * | *\ *)
2707 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2708 *)
2709 install_sh="\${SHELL} $am_aux_dir/install-sh"
2710 esac
2711 fi
2712
2713 # Installed binaries are usually stripped using 'strip' when the user
2714 # run "make install-strip". However 'strip' might not be the right
2715 # tool to use in cross-compilation environments, therefore Automake
2716 # will honor the 'STRIP' environment variable to overrule this program.
2717 if test "$cross_compiling" != no; then
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}strip; ac_word=$2
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 printf %s "checking for $ac_word... " >&6; }
2723 if test ${ac_cv_prog_STRIP+y}
2724 then :
2725 printf %s "(cached) " >&6
2726 else case e in #(
2727 e) if test -n "$STRIP"; then
2728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 case $as_dir in #(((
2735 '') as_dir=./ ;;
2736 */) ;;
2737 *) as_dir=$as_dir/ ;;
2738 esac
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi ;;
2750 esac
2751 fi
2752 STRIP=$ac_cv_prog_STRIP
2753 if test -n "$STRIP"; then
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2755 printf "%s\n" "$STRIP" >&6; }
2756 else
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 printf "%s\n" "no" >&6; }
2759 fi
2760
2761
2762 fi
2763 if test -z "$ac_cv_prog_STRIP"; then
2764 ac_ct_STRIP=$STRIP
2765 # Extract the first word of "strip", so it can be a program name with args.
2766 set dummy strip; ac_word=$2
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 printf %s "checking for $ac_word... " >&6; }
2769 if test ${ac_cv_prog_ac_ct_STRIP+y}
2770 then :
2771 printf %s "(cached) " >&6
2772 else case e in #(
2773 e) if test -n "$ac_ct_STRIP"; then
2774 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 case $as_dir in #(((
2781 '') as_dir=./ ;;
2782 */) ;;
2783 *) as_dir=$as_dir/ ;;
2784 esac
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_ac_ct_STRIP="strip"
2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi ;;
2796 esac
2797 fi
2798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2799 if test -n "$ac_ct_STRIP"; then
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2801 printf "%s\n" "$ac_ct_STRIP" >&6; }
2802 else
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 printf "%s\n" "no" >&6; }
2805 fi
2806
2807 if test "x$ac_ct_STRIP" = x; then
2808 STRIP=":"
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816 STRIP=$ac_ct_STRIP
2817 fi
2818 else
2819 STRIP="$ac_cv_prog_STRIP"
2820 fi
2821
2822 fi
2823 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2824
2825
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2827 printf %s "checking for a race-free mkdir -p... " >&6; }
2828 if test -z "$MKDIR_P"; then
2829 if test ${ac_cv_path_mkdir+y}
2830 then :
2831 printf %s "(cached) " >&6
2832 else case e in #(
2833 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2835 do
2836 IFS=$as_save_IFS
2837 case $as_dir in #(((
2838 '') as_dir=./ ;;
2839 */) ;;
2840 *) as_dir=$as_dir/ ;;
2841 esac
2842 for ac_prog in mkdir gmkdir; do
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2845 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2846 'mkdir ('*'coreutils) '* | \
2847 *'BusyBox '* | \
2848 'mkdir (fileutils) '4.1*)
2849 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2850 break 3;;
2851 esac
2852 done
2853 done
2854 done
2855 IFS=$as_save_IFS
2856 ;;
2857 esac
2858 fi
2859
2860 test -d ./--version && rmdir ./--version
2861 if test ${ac_cv_path_mkdir+y}; then
2862 MKDIR_P="$ac_cv_path_mkdir -p"
2863 else
2864 # As a last resort, use plain mkdir -p,
2865 # in the hope it doesn't have the bugs of ancient mkdir.
2866 MKDIR_P='mkdir -p'
2867 fi
2868 fi
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2870 printf "%s\n" "$MKDIR_P" >&6; }
2871
2872 for ac_prog in gawk mawk nawk awk
2873 do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 printf %s "checking for $ac_word... " >&6; }
2878 if test ${ac_cv_prog_AWK+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else case e in #(
2882 e) if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 case $as_dir in #(((
2890 '') as_dir=./ ;;
2891 */) ;;
2892 *) as_dir=$as_dir/ ;;
2893 esac
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_AWK="$ac_prog"
2897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi ;;
2905 esac
2906 fi
2907 AWK=$ac_cv_prog_AWK
2908 if test -n "$AWK"; then
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2910 printf "%s\n" "$AWK" >&6; }
2911 else
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 printf "%s\n" "no" >&6; }
2914 fi
2915
2916
2917 test -n "$AWK" && break
2918 done
2919
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2921 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2922 set x ${MAKE-make}
2923 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2924 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else case e in #(
2928 e) cat >conftest.make <<\_ACEOF
2929 SHELL = /bin/sh
2930 all:
2931 @echo '@@@%%%=$(MAKE)=@@@%%%'
2932 _ACEOF
2933 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2934 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2935 *@@@%%%=?*=@@@%%%*)
2936 eval ac_cv_prog_make_${ac_make}_set=yes;;
2937 *)
2938 eval ac_cv_prog_make_${ac_make}_set=no;;
2939 esac
2940 rm -f conftest.make ;;
2941 esac
2942 fi
2943 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945 printf "%s\n" "yes" >&6; }
2946 SET_MAKE=
2947 else
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 printf "%s\n" "no" >&6; }
2950 SET_MAKE="MAKE=${MAKE-make}"
2951 fi
2952
2953 rm -rf .tst 2>/dev/null
2954 mkdir .tst 2>/dev/null
2955 if test -d .tst; then
2956 am__leading_dot=.
2957 else
2958 am__leading_dot=_
2959 fi
2960 rmdir .tst 2>/dev/null
2961
2962 # Check whether --enable-silent-rules was given.
2963 if test ${enable_silent_rules+y}
2964 then :
2965 enableval=$enable_silent_rules;
2966 fi
2967
2968 case $enable_silent_rules in # (((
2969 yes) AM_DEFAULT_VERBOSITY=0;;
2970 no) AM_DEFAULT_VERBOSITY=1;;
2971 *) AM_DEFAULT_VERBOSITY=1;;
2972 esac
2973 am_make=${MAKE-make}
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2975 printf %s "checking whether $am_make supports nested variables... " >&6; }
2976 if test ${am_cv_make_support_nested_variables+y}
2977 then :
2978 printf %s "(cached) " >&6
2979 else case e in #(
2980 e) if printf "%s\n" 'TRUE=$(BAR$(V))
2981 BAR0=false
2982 BAR1=true
2983 V=1
2984 am__doit:
2985 @$(TRUE)
2986 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2987 am_cv_make_support_nested_variables=yes
2988 else
2989 am_cv_make_support_nested_variables=no
2990 fi ;;
2991 esac
2992 fi
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2994 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2995 if test $am_cv_make_support_nested_variables = yes; then
2996 AM_V='$(V)'
2997 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2998 else
2999 AM_V=$AM_DEFAULT_VERBOSITY
3000 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3001 fi
3002 AM_BACKSLASH='\'
3003
3004 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3005 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3006 # is not polluted with repeated "-I."
3007 am__isrc=' -I$(srcdir)'
3008 # test to see if srcdir already configured
3009 if test -f $srcdir/config.status; then
3010 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3011 fi
3012 fi
3013
3014 # test whether we have cygpath
3015 if test -z "$CYGPATH_W"; then
3016 if (cygpath --version) >/dev/null 2>/dev/null; then
3017 CYGPATH_W='cygpath -w'
3018 else
3019 CYGPATH_W=echo
3020 fi
3021 fi
3022
3023
3024 # Define the identity of the package.
3025 PACKAGE='listres'
3026 VERSION='1.0.6'
3027
3028
3029 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3030
3031
3032 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3033
3034 # Some tools Automake needs.
3035
3036 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3037
3038
3039 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3040
3041
3042 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3043
3044
3045 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3046
3047
3048 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3049
3050 # For better backward compatibility. To be removed once Automake 1.9.x
3051 # dies out for good. For more background, see:
3052 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3053 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3054 mkdir_p='$(MKDIR_P)'
3055
3056 # We need awk for the "check" target (and possibly the TAP driver). The
3057 # system "awk" is bad on some platforms.
3058 # Always define AMTAR for backward compatibility. Yes, it's still used
3059 # in the wild :-( We should find a proper way to deprecate it ...
3060 AMTAR='$${TAR-tar}'
3061
3062
3063 # We'll loop over all known methods to create a tar archive until one works.
3064 _am_tools='gnutar pax cpio none'
3065
3066 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3067
3068
3069
3070
3071
3072 # Variables for tags utilities; see am/tags.am
3073 if test -z "$CTAGS"; then
3074 CTAGS=ctags
3075 fi
3076
3077 if test -z "$ETAGS"; then
3078 ETAGS=etags
3079 fi
3080
3081 if test -z "$CSCOPE"; then
3082 CSCOPE=cscope
3083 fi
3084
3085
3086
3087 # POSIX will say in a future version that running "rm -f" with no argument
3088 # is OK; and we want to be able to make that assumption in our Makefile
3089 # recipes. So use an aggressive probe to check that the usage we want is
3090 # actually supported "in the wild" to an acceptable degree.
3091 # See automake bug#10828.
3092 # To make any issue more visible, cause the running configure to be aborted
3093 # by default if the 'rm' program in use doesn't match our expectations; the
3094 # user can still override this though.
3095 if rm -f && rm -fr && rm -rf; then : OK; else
3096 cat >&2 <<'END'
3097 Oops!
3098
3099 Your 'rm' program seems unable to run without file operands specified
3100 on the command line, even when the '-f' option is present. This is contrary
3101 to the behaviour of most rm programs out there, and not conforming with
3102 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3103
3104 Please tell bug-automake@gnu.org about your system, including the value
3105 of your $PATH and any error possibly output before this message. This
3106 can help us improve future automake versions.
3107
3108 END
3109 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3110 echo 'Configuration will proceed anyway, since you have set the' >&2
3111 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3112 echo >&2
3113 else
3114 cat >&2 <<'END'
3115 Aborting the configuration process, to ensure you take notice of the issue.
3116
3117 You can download and install GNU coreutils to get an 'rm' implementation
3118 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3119
3120 If you want to complete the configuration process using your problematic
3121 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3122 to "yes", and re-run configure.
3123
3124 END
3125 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3126 fi
3127 fi
3128
3129
3130 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151 DEPDIR="${am__leading_dot}deps"
3152
3153 ac_config_commands="$ac_config_commands depfiles"
3154
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3156 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3157 cat > confinc.mk << 'END'
3158 am__doit:
3159 @echo this is the am__doit target >confinc.out
3160 .PHONY: am__doit
3161 END
3162 am__include="#"
3163 am__quote=
3164 # BSD make does it like this.
3165 echo '.include "confinc.mk" # ignored' > confmf.BSD
3166 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3167 echo 'include confinc.mk # ignored' > confmf.GNU
3168 _am_result=no
3169 for s in GNU BSD; do
3170 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3171 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }
3175 case $?:`cat confinc.out 2>/dev/null` in #(
3176 '0:this is the am__doit target') :
3177 case $s in #(
3178 BSD) :
3179 am__include='.include' am__quote='"' ;; #(
3180 *) :
3181 am__include='include' am__quote='' ;;
3182 esac ;; #(
3183 *) :
3184 ;;
3185 esac
3186 if test "$am__include" != "#"; then
3187 _am_result="yes ($s style)"
3188 break
3189 fi
3190 done
3191 rm -f confinc.* confmf.*
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3193 printf "%s\n" "${_am_result}" >&6; }
3194
3195 # Check whether --enable-dependency-tracking was given.
3196 if test ${enable_dependency_tracking+y}
3197 then :
3198 enableval=$enable_dependency_tracking;
3199 fi
3200
3201 if test "x$enable_dependency_tracking" != xno; then
3202 am_depcomp="$ac_aux_dir/depcomp"
3203 AMDEPBACKSLASH='\'
3204 am__nodep='_no'
3205 fi
3206 if test "x$enable_dependency_tracking" != xno; then
3207 AMDEP_TRUE=
3208 AMDEP_FALSE='#'
3209 else
3210 AMDEP_TRUE='#'
3211 AMDEP_FALSE=
3212 fi
3213
3214
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printf %s "checking for $ac_word... " >&6; }
3225 if test ${ac_cv_prog_CC+y}
3226 then :
3227 printf %s "(cached) " >&6
3228 else case e in #(
3229 e) if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 case $as_dir in #(((
3237 '') as_dir=./ ;;
3238 */) ;;
3239 *) as_dir=$as_dir/ ;;
3240 esac
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi ;;
3252 esac
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 printf "%s\n" "$CC" >&6; }
3258 else
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 printf "%s\n" "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268 set dummy gcc; ac_word=$2
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 printf %s "checking for $ac_word... " >&6; }
3271 if test ${ac_cv_prog_ac_ct_CC+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else case e in #(
3275 e) if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 case $as_dir in #(((
3283 '') as_dir=./ ;;
3284 */) ;;
3285 *) as_dir=$as_dir/ ;;
3286 esac
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_ac_ct_CC="gcc"
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi ;;
3298 esac
3299 fi
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 printf "%s\n" "$ac_ct_CC" >&6; }
3304 else
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 printf "%s\n" "no" >&6; }
3307 fi
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 else
3321 CC="$ac_cv_prog_CC"
3322 fi
3323
3324 if test -z "$CC"; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}cc; ac_word=$2
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 printf %s "checking for $ac_word... " >&6; }
3330 if test ${ac_cv_prog_CC+y}
3331 then :
3332 printf %s "(cached) " >&6
3333 else case e in #(
3334 e) if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 case $as_dir in #(((
3342 '') as_dir=./ ;;
3343 */) ;;
3344 *) as_dir=$as_dir/ ;;
3345 esac
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="${ac_tool_prefix}cc"
3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 fi ;;
3357 esac
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 printf "%s\n" "$CC" >&6; }
3363 else
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 printf "%s\n" "no" >&6; }
3366 fi
3367
3368
3369 fi
3370 fi
3371 if test -z "$CC"; then
3372 # Extract the first word of "cc", so it can be a program name with args.
3373 set dummy cc; ac_word=$2
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 printf %s "checking for $ac_word... " >&6; }
3376 if test ${ac_cv_prog_CC+y}
3377 then :
3378 printf %s "(cached) " >&6
3379 else case e in #(
3380 e) if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 ac_prog_rejected=no
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387 IFS=$as_save_IFS
3388 case $as_dir in #(((
3389 '') as_dir=./ ;;
3390 */) ;;
3391 *) as_dir=$as_dir/ ;;
3392 esac
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3395 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3396 ac_prog_rejected=yes
3397 continue
3398 fi
3399 ac_cv_prog_CC="cc"
3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 if test $ac_prog_rejected = yes; then
3408 # We found a bogon in the path, so make sure we never use it.
3409 set dummy $ac_cv_prog_CC
3410 shift
3411 if test $# != 0; then
3412 # We chose a different compiler from the bogus one.
3413 # However, it has the same basename, so the bogon will be chosen
3414 # first if we set CC to just the basename; use the full file name.
3415 shift
3416 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3417 fi
3418 fi
3419 fi ;;
3420 esac
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 printf "%s\n" "$CC" >&6; }
3426 else
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 printf "%s\n" "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 printf %s "checking for $ac_word... " >&6; }
3441 if test ${ac_cv_prog_CC+y}
3442 then :
3443 printf %s "(cached) " >&6
3444 else case e in #(
3445 e) if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 case $as_dir in #(((
3453 '') as_dir=./ ;;
3454 */) ;;
3455 *) as_dir=$as_dir/ ;;
3456 esac
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465 IFS=$as_save_IFS
3466
3467 fi ;;
3468 esac
3469 fi
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 printf "%s\n" "$CC" >&6; }
3474 else
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 printf "%s\n" "no" >&6; }
3477 fi
3478
3479
3480 test -n "$CC" && break
3481 done
3482 fi
3483 if test -z "$CC"; then
3484 ac_ct_CC=$CC
3485 for ac_prog in cl.exe
3486 do
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 printf %s "checking for $ac_word... " >&6; }
3491 if test ${ac_cv_prog_ac_ct_CC+y}
3492 then :
3493 printf %s "(cached) " >&6
3494 else case e in #(
3495 e) if test -n "$ac_ct_CC"; then
3496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 case $as_dir in #(((
3503 '') as_dir=./ ;;
3504 */) ;;
3505 *) as_dir=$as_dir/ ;;
3506 esac
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_ac_ct_CC="$ac_prog"
3510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi ;;
3518 esac
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 printf "%s\n" "$ac_ct_CC" >&6; }
3524 else
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 printf "%s\n" "no" >&6; }
3527 fi
3528
3529
3530 test -n "$ac_ct_CC" && break
3531 done
3532
3533 if test "x$ac_ct_CC" = x; then
3534 CC=""
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3541 esac
3542 CC=$ac_ct_CC
3543 fi
3544 fi
3545
3546 fi
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}clang; ac_word=$2
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 printf %s "checking for $ac_word... " >&6; }
3553 if test ${ac_cv_prog_CC+y}
3554 then :
3555 printf %s "(cached) " >&6
3556 else case e in #(
3557 e) if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 case $as_dir in #(((
3565 '') as_dir=./ ;;
3566 */) ;;
3567 *) as_dir=$as_dir/ ;;
3568 esac
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}clang"
3572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579 fi ;;
3580 esac
3581 fi
3582 CC=$ac_cv_prog_CC
3583 if test -n "$CC"; then
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 printf "%s\n" "$CC" >&6; }
3586 else
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 printf "%s\n" "no" >&6; }
3589 fi
3590
3591
3592 fi
3593 if test -z "$ac_cv_prog_CC"; then
3594 ac_ct_CC=$CC
3595 # Extract the first word of "clang", so it can be a program name with args.
3596 set dummy clang; ac_word=$2
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 printf %s "checking for $ac_word... " >&6; }
3599 if test ${ac_cv_prog_ac_ct_CC+y}
3600 then :
3601 printf %s "(cached) " >&6
3602 else case e in #(
3603 e) if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609 IFS=$as_save_IFS
3610 case $as_dir in #(((
3611 '') as_dir=./ ;;
3612 */) ;;
3613 *) as_dir=$as_dir/ ;;
3614 esac
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_ac_ct_CC="clang"
3618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619 break 2
3620 fi
3621 done
3622 done
3623 IFS=$as_save_IFS
3624
3625 fi ;;
3626 esac
3627 fi
3628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3629 if test -n "$ac_ct_CC"; then
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3631 printf "%s\n" "$ac_ct_CC" >&6; }
3632 else
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 printf "%s\n" "no" >&6; }
3635 fi
3636
3637 if test "x$ac_ct_CC" = x; then
3638 CC=""
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 CC=$ac_ct_CC
3647 fi
3648 else
3649 CC="$ac_cv_prog_CC"
3650 fi
3651
3652 fi
3653
3654
3655 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3656 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3657 as_fn_error $? "no acceptable C compiler found in \$PATH
3658 See 'config.log' for more details" "$LINENO" 5; }
3659
3660 # Provide some information about the compiler.
3661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3662 set X $ac_compile
3663 ac_compiler=$2
3664 for ac_option in --version -v -V -qversion -version; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 printf "%s\n" "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673 ac_status=$?
3674 if test -s conftest.err; then
3675 sed '10a\
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 fi
3680 rm -f conftest.er1 conftest.err
3681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683 done
3684
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main (void)
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 ac_clean_files_save=$ac_clean_files
3697 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3698 # Try to create an executable without -o first, disregard a.out.
3699 # It will help us diagnose broken compilers, and finding out an intuition
3700 # of exeext.
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3702 printf %s "checking whether the C compiler works... " >&6; }
3703 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3704
3705 # The possible output files:
3706 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3707
3708 ac_rmfiles=
3709 for ac_file in $ac_files
3710 do
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3714 esac
3715 done
3716 rm -f $ac_rmfiles
3717
3718 if { { ac_try="$ac_link_default"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 printf "%s\n" "$ac_try_echo"; } >&5
3725 (eval "$ac_link_default") 2>&5
3726 ac_status=$?
3727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }
3729 then :
3730 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3731 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3732 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3733 # so that the user can short-circuit this test for compilers unknown to
3734 # Autoconf.
3735 for ac_file in $ac_files ''
3736 do
3737 test -f "$ac_file" || continue
3738 case $ac_file in
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3740 ;;
3741 [ab].out )
3742 # We found the default executable, but exeext='' is most
3743 # certainly right.
3744 break;;
3745 *.* )
3746 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3747 then :; else
3748 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 fi
3750 # We set ac_cv_exeext here because the later test for it is not
3751 # safe: cross compilers may not add the suffix if given an '-o'
3752 # argument, so we may need to know it at that point already.
3753 # Even if this section looks crufty: it has the advantage of
3754 # actually working.
3755 break;;
3756 * )
3757 break;;
3758 esac
3759 done
3760 test "$ac_cv_exeext" = no && ac_cv_exeext=
3761
3762 else case e in #(
3763 e) ac_file='' ;;
3764 esac
3765 fi
3766 if test -z "$ac_file"
3767 then :
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 printf "%s\n" "no" >&6; }
3770 printf "%s\n" "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3774 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3775 as_fn_error 77 "C compiler cannot create executables
3776 See 'config.log' for more details" "$LINENO" 5; }
3777 else case e in #(
3778 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779 printf "%s\n" "yes" >&6; } ;;
3780 esac
3781 fi
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3783 printf %s "checking for C compiler default output file name... " >&6; }
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3785 printf "%s\n" "$ac_file" >&6; }
3786 ac_exeext=$ac_cv_exeext
3787
3788 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3789 ac_clean_files=$ac_clean_files_save
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3791 printf %s "checking for suffix of executables... " >&6; }
3792 if { { ac_try="$ac_link"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 printf "%s\n" "$ac_try_echo"; } >&5
3799 (eval "$ac_link") 2>&5
3800 ac_status=$?
3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3803 then :
3804 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3805 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3806 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3807 # 'rm'.
3808 for ac_file in conftest.exe conftest conftest.*; do
3809 test -f "$ac_file" || continue
3810 case $ac_file in
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813 break;;
3814 * ) break;;
3815 esac
3816 done
3817 else case e in #(
3818 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3819 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3821 See 'config.log' for more details" "$LINENO" 5; } ;;
3822 esac
3823 fi
3824 rm -f conftest conftest$ac_cv_exeext
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3826 printf "%s\n" "$ac_cv_exeext" >&6; }
3827
3828 rm -f conftest.$ac_ext
3829 EXEEXT=$ac_cv_exeext
3830 ac_exeext=$EXEEXT
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 #include <stdio.h>
3834 int
3835 main (void)
3836 {
3837 FILE *f = fopen ("conftest.out", "w");
3838 if (!f)
3839 return 1;
3840 return ferror (f) || fclose (f) != 0;
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 ac_clean_files="$ac_clean_files conftest.out"
3847 # Check that the compiler produces executables we can run. If not, either
3848 # the compiler is broken, or we cross compile.
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3850 printf %s "checking whether we are cross compiling... " >&6; }
3851 if test "$cross_compiling" != yes; then
3852 { { ac_try="$ac_link"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 printf "%s\n" "$ac_try_echo"; } >&5
3859 (eval "$ac_link") 2>&5
3860 ac_status=$?
3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }
3863 if { ac_try='./conftest$ac_cv_exeext'
3864 { { case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 printf "%s\n" "$ac_try_echo"; } >&5
3870 (eval "$ac_try") 2>&5
3871 ac_status=$?
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; }; then
3874 cross_compiling=no
3875 else
3876 if test "$cross_compiling" = maybe; then
3877 cross_compiling=yes
3878 else
3879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3880 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3881 as_fn_error 77 "cannot run C compiled programs.
3882 If you meant to cross compile, use '--host'.
3883 See 'config.log' for more details" "$LINENO" 5; }
3884 fi
3885 fi
3886 fi
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888 printf "%s\n" "$cross_compiling" >&6; }
3889
3890 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3891 conftest.o conftest.obj conftest.out
3892 ac_clean_files=$ac_clean_files_save
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3894 printf %s "checking for suffix of object files... " >&6; }
3895 if test ${ac_cv_objext+y}
3896 then :
3897 printf %s "(cached) " >&6
3898 else case e in #(
3899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901
3902 int
3903 main (void)
3904 {
3905
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest.o conftest.obj
3911 if { { ac_try="$ac_compile"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 printf "%s\n" "$ac_try_echo"; } >&5
3918 (eval "$ac_compile") 2>&5
3919 ac_status=$?
3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }
3922 then :
3923 for ac_file in conftest.o conftest.obj conftest.*; do
3924 test -f "$ac_file" || continue;
3925 case $ac_file in
3926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3928 break;;
3929 esac
3930 done
3931 else case e in #(
3932 e) printf "%s\n" "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3936 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3937 as_fn_error $? "cannot compute suffix of object files: cannot compile
3938 See 'config.log' for more details" "$LINENO" 5; } ;;
3939 esac
3940 fi
3941 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3942 esac
3943 fi
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3945 printf "%s\n" "$ac_cv_objext" >&6; }
3946 OBJEXT=$ac_cv_objext
3947 ac_objext=$OBJEXT
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3949 printf %s "checking whether the compiler supports GNU C... " >&6; }
3950 if test ${ac_cv_c_compiler_gnu+y}
3951 then :
3952 printf %s "(cached) " >&6
3953 else case e in #(
3954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956
3957 int
3958 main (void)
3959 {
3960 #ifndef __GNUC__
3961 choke me
3962 #endif
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"
3969 then :
3970 ac_compiler_gnu=yes
3971 else case e in #(
3972 e) ac_compiler_gnu=no ;;
3973 esac
3974 fi
3975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977 ;;
3978 esac
3979 fi
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3981 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984 if test $ac_compiler_gnu = yes; then
3985 GCC=yes
3986 else
3987 GCC=
3988 fi
3989 ac_test_CFLAGS=${CFLAGS+y}
3990 ac_save_CFLAGS=$CFLAGS
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3992 printf %s "checking whether $CC accepts -g... " >&6; }
3993 if test ${ac_cv_prog_cc_g+y}
3994 then :
3995 printf %s "(cached) " >&6
3996 else case e in #(
3997 e) ac_save_c_werror_flag=$ac_c_werror_flag
3998 ac_c_werror_flag=yes
3999 ac_cv_prog_cc_g=no
4000 CFLAGS="-g"
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003
4004 int
4005 main (void)
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"
4013 then :
4014 ac_cv_prog_cc_g=yes
4015 else case e in #(
4016 e) CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main (void)
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"
4029 then :
4030
4031 else case e in #(
4032 e) ac_c_werror_flag=$ac_save_c_werror_flag
4033 CFLAGS="-g"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main (void)
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"
4046 then :
4047 ac_cv_prog_cc_g=yes
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4050 esac
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4053 esac
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4056 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4057 esac
4058 fi
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4060 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4061 if test $ac_test_CFLAGS; then
4062 CFLAGS=$ac_save_CFLAGS
4063 elif test $ac_cv_prog_cc_g = yes; then
4064 if test "$GCC" = yes; then
4065 CFLAGS="-g -O2"
4066 else
4067 CFLAGS="-g"
4068 fi
4069 else
4070 if test "$GCC" = yes; then
4071 CFLAGS="-O2"
4072 else
4073 CFLAGS=
4074 fi
4075 fi
4076 ac_prog_cc_stdc=no
4077 if test x$ac_prog_cc_stdc = xno
4078 then :
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4080 printf %s "checking for $CC option to enable C11 features... " >&6; }
4081 if test ${ac_cv_prog_cc_c11+y}
4082 then :
4083 printf %s "(cached) " >&6
4084 else case e in #(
4085 e) ac_cv_prog_cc_c11=no
4086 ac_save_CC=$CC
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 $ac_c_conftest_c11_program
4090 _ACEOF
4091 for ac_arg in '' -std=gnu11
4092 do
4093 CC="$ac_save_CC $ac_arg"
4094 if ac_fn_c_try_compile "$LINENO"
4095 then :
4096 ac_cv_prog_cc_c11=$ac_arg
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.beam
4099 test "x$ac_cv_prog_cc_c11" != "xno" && break
4100 done
4101 rm -f conftest.$ac_ext
4102 CC=$ac_save_CC ;;
4103 esac
4104 fi
4105
4106 if test "x$ac_cv_prog_cc_c11" = xno
4107 then :
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4109 printf "%s\n" "unsupported" >&6; }
4110 else case e in #(
4111 e) if test "x$ac_cv_prog_cc_c11" = x
4112 then :
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 printf "%s\n" "none needed" >&6; }
4115 else case e in #(
4116 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4117 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4118 CC="$CC $ac_cv_prog_cc_c11" ;;
4119 esac
4120 fi
4121 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4122 ac_prog_cc_stdc=c11 ;;
4123 esac
4124 fi
4125 fi
4126 if test x$ac_prog_cc_stdc = xno
4127 then :
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4129 printf %s "checking for $CC option to enable C99 features... " >&6; }
4130 if test ${ac_cv_prog_cc_c99+y}
4131 then :
4132 printf %s "(cached) " >&6
4133 else case e in #(
4134 e) ac_cv_prog_cc_c99=no
4135 ac_save_CC=$CC
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 $ac_c_conftest_c99_program
4139 _ACEOF
4140 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4141 do
4142 CC="$ac_save_CC $ac_arg"
4143 if ac_fn_c_try_compile "$LINENO"
4144 then :
4145 ac_cv_prog_cc_c99=$ac_arg
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext conftest.beam
4148 test "x$ac_cv_prog_cc_c99" != "xno" && break
4149 done
4150 rm -f conftest.$ac_ext
4151 CC=$ac_save_CC ;;
4152 esac
4153 fi
4154
4155 if test "x$ac_cv_prog_cc_c99" = xno
4156 then :
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 printf "%s\n" "unsupported" >&6; }
4159 else case e in #(
4160 e) if test "x$ac_cv_prog_cc_c99" = x
4161 then :
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 printf "%s\n" "none needed" >&6; }
4164 else case e in #(
4165 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4166 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4167 CC="$CC $ac_cv_prog_cc_c99" ;;
4168 esac
4169 fi
4170 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4171 ac_prog_cc_stdc=c99 ;;
4172 esac
4173 fi
4174 fi
4175 if test x$ac_prog_cc_stdc = xno
4176 then :
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4178 printf %s "checking for $CC option to enable C89 features... " >&6; }
4179 if test ${ac_cv_prog_cc_c89+y}
4180 then :
4181 printf %s "(cached) " >&6
4182 else case e in #(
4183 e) ac_cv_prog_cc_c89=no
4184 ac_save_CC=$CC
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 $ac_c_conftest_c89_program
4188 _ACEOF
4189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190 do
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"
4193 then :
4194 ac_cv_prog_cc_c89=$ac_arg
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.beam
4197 test "x$ac_cv_prog_cc_c89" != "xno" && break
4198 done
4199 rm -f conftest.$ac_ext
4200 CC=$ac_save_CC ;;
4201 esac
4202 fi
4203
4204 if test "x$ac_cv_prog_cc_c89" = xno
4205 then :
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 printf "%s\n" "unsupported" >&6; }
4208 else case e in #(
4209 e) if test "x$ac_cv_prog_cc_c89" = x
4210 then :
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212 printf "%s\n" "none needed" >&6; }
4213 else case e in #(
4214 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4215 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4216 CC="$CC $ac_cv_prog_cc_c89" ;;
4217 esac
4218 fi
4219 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4220 ac_prog_cc_stdc=c89 ;;
4221 esac
4222 fi
4223 fi
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4238 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4239 if test ${am_cv_prog_cc_c_o+y}
4240 then :
4241 printf %s "(cached) " >&6
4242 else case e in #(
4243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245
4246 int
4247 main (void)
4248 {
4249
4250 ;
4251 return 0;
4252 }
4253 _ACEOF
4254 # Make sure it works both with $CC and with simple cc.
4255 # Following AC_PROG_CC_C_O, we do the test twice because some
4256 # compilers refuse to overwrite an existing .o file with -o,
4257 # though they will create one.
4258 am_cv_prog_cc_c_o=yes
4259 for am_i in 1 2; do
4260 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4261 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } \
4265 && test -f conftest2.$ac_objext; then
4266 : OK
4267 else
4268 am_cv_prog_cc_c_o=no
4269 break
4270 fi
4271 done
4272 rm -f core conftest*
4273 unset am_i ;;
4274 esac
4275 fi
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4277 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4278 if test "$am_cv_prog_cc_c_o" != yes; then
4279 # Losing compiler, so override with the script.
4280 # FIXME: It is wrong to rewrite CC.
4281 # But if we don't then we get into trouble of one sort or another.
4282 # A longer-term fix would be to have automake use am__CC in this case,
4283 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4284 CC="$am_aux_dir/compile $CC"
4285 fi
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292
4293 depcc="$CC" am_compiler_list=
4294
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4296 printf %s "checking dependency style of $depcc... " >&6; }
4297 if test ${am_cv_CC_dependencies_compiler_type+y}
4298 then :
4299 printf %s "(cached) " >&6
4300 else case e in #(
4301 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4302 # We make a subdir and do the tests there. Otherwise we can end up
4303 # making bogus files that we don't know about and never remove. For
4304 # instance it was reported that on HP-UX the gcc test will end up
4305 # making a dummy file named 'D' -- because '-MD' means "put the output
4306 # in D".
4307 rm -rf conftest.dir
4308 mkdir conftest.dir
4309 # Copy depcomp to subdir because otherwise we won't find it if we're
4310 # using a relative directory.
4311 cp "$am_depcomp" conftest.dir
4312 cd conftest.dir
4313 # We will build objects and dependencies in a subdirectory because
4314 # it helps to detect inapplicable dependency modes. For instance
4315 # both Tru64's cc and ICC support -MD to output dependencies as a
4316 # side effect of compilation, but ICC will put the dependencies in
4317 # the current directory while Tru64 will put them in the object
4318 # directory.
4319 mkdir sub
4320
4321 am_cv_CC_dependencies_compiler_type=none
4322 if test "$am_compiler_list" = ""; then
4323 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4324 fi
4325 am__universal=false
4326 case " $depcc " in #(
4327 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4328 esac
4329
4330 for depmode in $am_compiler_list; do
4331 # Setup a source with many dependencies, because some compilers
4332 # like to wrap large dependency lists on column 80 (with \), and
4333 # we should not choose a depcomp mode which is confused by this.
4334 #
4335 # We need to recreate these files for each test, as the compiler may
4336 # overwrite some of them when testing with obscure command lines.
4337 # This happens at least with the AIX C compiler.
4338 : > sub/conftest.c
4339 for i in 1 2 3 4 5 6; do
4340 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4341 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4342 # Solaris 10 /bin/sh.
4343 echo '/* dummy */' > sub/conftst$i.h
4344 done
4345 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4346
4347 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4348 # mode. It turns out that the SunPro C++ compiler does not properly
4349 # handle '-M -o', and we need to detect this. Also, some Intel
4350 # versions had trouble with output in subdirs.
4351 am__obj=sub/conftest.${OBJEXT-o}
4352 am__minus_obj="-o $am__obj"
4353 case $depmode in
4354 gcc)
4355 # This depmode causes a compiler race in universal mode.
4356 test "$am__universal" = false || continue
4357 ;;
4358 nosideeffect)
4359 # After this tag, mechanisms are not by side-effect, so they'll
4360 # only be used when explicitly requested.
4361 if test "x$enable_dependency_tracking" = xyes; then
4362 continue
4363 else
4364 break
4365 fi
4366 ;;
4367 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4368 # This compiler won't grok '-c -o', but also, the minuso test has
4369 # not run yet. These depmodes are late enough in the game, and
4370 # so weak that their functioning should not be impacted.
4371 am__obj=conftest.${OBJEXT-o}
4372 am__minus_obj=
4373 ;;
4374 none) break ;;
4375 esac
4376 if depmode=$depmode \
4377 source=sub/conftest.c object=$am__obj \
4378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4379 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4380 >/dev/null 2>conftest.err &&
4381 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4382 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4384 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385 # icc doesn't choke on unknown options, it will just issue warnings
4386 # or remarks (even with -Werror). So we grep stderr for any message
4387 # that says an option was ignored or not supported.
4388 # When given -MP, icc 7.0 and 7.1 complain thusly:
4389 # icc: Command line warning: ignoring option '-M'; no argument required
4390 # The diagnosis changed in icc 8.0:
4391 # icc: Command line remark: option '-MP' not supported
4392 if (grep 'ignoring option' conftest.err ||
4393 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394 am_cv_CC_dependencies_compiler_type=$depmode
4395 break
4396 fi
4397 fi
4398 done
4399
4400 cd ..
4401 rm -rf conftest.dir
4402 else
4403 am_cv_CC_dependencies_compiler_type=none
4404 fi
4405 ;;
4406 esac
4407 fi
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4409 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4410 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4411
4412 if
4413 test "x$enable_dependency_tracking" != xno \
4414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4415 am__fastdepCC_TRUE=
4416 am__fastdepCC_FALSE='#'
4417 else
4418 am__fastdepCC_TRUE='#'
4419 am__fastdepCC_FALSE=
4420 fi
4421
4422
4423
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4425 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4426 if test ${ac_cv_c_undeclared_builtin_options+y}
4427 then :
4428 printf %s "(cached) " >&6
4429 else case e in #(
4430 e) ac_save_CFLAGS=$CFLAGS
4431 ac_cv_c_undeclared_builtin_options='cannot detect'
4432 for ac_arg in '' -fno-builtin; do
4433 CFLAGS="$ac_save_CFLAGS $ac_arg"
4434 # This test program should *not* compile successfully.
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main (void)
4440 {
4441 (void) strchr;
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_compile "$LINENO"
4447 then :
4448
4449 else case e in #(
4450 e) # This test program should compile successfully.
4451 # No library function is consistently available on
4452 # freestanding implementations, so test against a dummy
4453 # declaration. Include always-available headers on the
4454 # off chance that they somehow elicit warnings.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <float.h>
4458 #include <limits.h>
4459 #include <stdarg.h>
4460 #include <stddef.h>
4461 extern void ac_decl (int, char *);
4462
4463 int
4464 main (void)
4465 {
4466 (void) ac_decl (0, (char *) 0);
4467 (void) ac_decl;
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"
4474 then :
4475 if test x"$ac_arg" = x
4476 then :
4477 ac_cv_c_undeclared_builtin_options='none needed'
4478 else case e in #(
4479 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4480 esac
4481 fi
4482 break
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4485 esac
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4488 done
4489 CFLAGS=$ac_save_CFLAGS
4490 ;;
4491 esac
4492 fi
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4494 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4495 case $ac_cv_c_undeclared_builtin_options in #(
4496 'cannot detect') :
4497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4498 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4499 as_fn_error $? "cannot make $CC report undeclared builtins
4500 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4501 'none needed') :
4502 ac_c_undeclared_builtin_options='' ;; #(
4503 *) :
4504 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4505 esac
4506
4507 ac_header= ac_cache=
4508 for ac_item in $ac_header_c_list
4509 do
4510 if test $ac_cache; then
4511 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4512 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4513 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4514 fi
4515 ac_header= ac_cache=
4516 elif test $ac_header; then
4517 ac_cache=$ac_item
4518 else
4519 ac_header=$ac_item
4520 fi
4521 done
4522
4523
4524
4525
4526
4527
4528
4529
4530 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4531 then :
4532
4533 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4534
4535 fi
4536
4537
4538
4539
4540 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4541 if test "x$ac_cv_have_decl___clang__" = xyes
4542 then :
4543 CLANGCC="yes"
4544 else case e in #(
4545 e) CLANGCC="no" ;;
4546 esac
4547 fi
4548 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4549 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4550 then :
4551 INTELCC="yes"
4552 else case e in #(
4553 e) INTELCC="no" ;;
4554 esac
4555 fi
4556 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4557 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4558 then :
4559 SUNCC="yes"
4560 else case e in #(
4561 e) SUNCC="no" ;;
4562 esac
4563 fi
4564
4565
4566
4567
4568
4569
4570
4571
4572 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4575 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 printf %s "checking for $ac_word... " >&6; }
4578 if test ${ac_cv_path_PKG_CONFIG+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else case e in #(
4582 e) case $PKG_CONFIG in
4583 [\\/]* | ?:[\\/]*)
4584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4585 ;;
4586 *)
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590 IFS=$as_save_IFS
4591 case $as_dir in #(((
4592 '') as_dir=./ ;;
4593 */) ;;
4594 *) as_dir=$as_dir/ ;;
4595 esac
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4598 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 ;;
4607 esac ;;
4608 esac
4609 fi
4610 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4611 if test -n "$PKG_CONFIG"; then
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4613 printf "%s\n" "$PKG_CONFIG" >&6; }
4614 else
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 printf "%s\n" "no" >&6; }
4617 fi
4618
4619
4620 fi
4621 if test -z "$ac_cv_path_PKG_CONFIG"; then
4622 ac_pt_PKG_CONFIG=$PKG_CONFIG
4623 # Extract the first word of "pkg-config", so it can be a program name with args.
4624 set dummy pkg-config; ac_word=$2
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 printf %s "checking for $ac_word... " >&6; }
4627 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4628 then :
4629 printf %s "(cached) " >&6
4630 else case e in #(
4631 e) case $ac_pt_PKG_CONFIG in
4632 [\\/]* | ?:[\\/]*)
4633 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4634 ;;
4635 *)
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639 IFS=$as_save_IFS
4640 case $as_dir in #(((
4641 '') as_dir=./ ;;
4642 */) ;;
4643 *) as_dir=$as_dir/ ;;
4644 esac
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4647 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 ;;
4656 esac ;;
4657 esac
4658 fi
4659 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4660 if test -n "$ac_pt_PKG_CONFIG"; then
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4662 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4663 else
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 printf "%s\n" "no" >&6; }
4666 fi
4667
4668 if test "x$ac_pt_PKG_CONFIG" = x; then
4669 PKG_CONFIG=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 PKG_CONFIG=$ac_pt_PKG_CONFIG
4678 fi
4679 else
4680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4681 fi
4682
4683 fi
4684 if test -n "$PKG_CONFIG"; then
4685 _pkg_min_version=0.9.0
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4687 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690 printf "%s\n" "yes" >&6; }
4691 else
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 printf "%s\n" "no" >&6; }
4694 PKG_CONFIG=""
4695 fi
4696 fi
4697
4698
4699 # Make sure we can run config.sub.
4700 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4701 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4702
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4704 printf %s "checking build system type... " >&6; }
4705 if test ${ac_cv_build+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else case e in #(
4709 e) ac_build_alias=$build_alias
4710 test "x$ac_build_alias" = x &&
4711 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4712 test "x$ac_build_alias" = x &&
4713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4714 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4715 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4716 ;;
4717 esac
4718 fi
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4720 printf "%s\n" "$ac_cv_build" >&6; }
4721 case $ac_cv_build in
4722 *-*-*) ;;
4723 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4724 esac
4725 build=$ac_cv_build
4726 ac_save_IFS=$IFS; IFS='-'
4727 set x $ac_cv_build
4728 shift
4729 build_cpu=$1
4730 build_vendor=$2
4731 shift; shift
4732 # Remember, the first character of IFS is used to create $*,
4733 # except with old shells:
4734 build_os=$*
4735 IFS=$ac_save_IFS
4736 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4737
4738
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4740 printf %s "checking host system type... " >&6; }
4741 if test ${ac_cv_host+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else case e in #(
4745 e) if test "x$host_alias" = x; then
4746 ac_cv_host=$ac_cv_build
4747 else
4748 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4749 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4750 fi
4751 ;;
4752 esac
4753 fi
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4755 printf "%s\n" "$ac_cv_host" >&6; }
4756 case $ac_cv_host in
4757 *-*-*) ;;
4758 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4759 esac
4760 host=$ac_cv_host
4761 ac_save_IFS=$IFS; IFS='-'
4762 set x $ac_cv_host
4763 shift
4764 host_cpu=$1
4765 host_vendor=$2
4766 shift; shift
4767 # Remember, the first character of IFS is used to create $*,
4768 # except with old shells:
4769 host_os=$*
4770 IFS=$ac_save_IFS
4771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4772
4773
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4775 printf %s "checking for a sed that does not truncate output... " >&6; }
4776 if test ${ac_cv_path_SED+y}
4777 then :
4778 printf %s "(cached) " >&6
4779 else case e in #(
4780 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781 for ac_i in 1 2 3 4 5 6 7; do
4782 ac_script="$ac_script$as_nl$ac_script"
4783 done
4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785 { ac_script=; unset ac_script;}
4786 if test -z "$SED"; then
4787 ac_path_SED_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 case $as_dir in #(((
4794 '') as_dir=./ ;;
4795 */) ;;
4796 *) as_dir=$as_dir/ ;;
4797 esac
4798 for ac_prog in sed gsed
4799 do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4802 as_fn_executable_p "$ac_path_SED" || continue
4803 # Check for GNU ac_path_SED and select it if it is found.
4804 # Check for GNU $ac_path_SED
4805 case `"$ac_path_SED" --version 2>&1` in #(
4806 *GNU*)
4807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4808 #(
4809 *)
4810 ac_count=0
4811 printf %s 0123456789 >"conftest.in"
4812 while :
4813 do
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 printf "%s\n" '' >> "conftest.nl"
4818 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
4821 if test $ac_count -gt ${ac_path_SED_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_SED="$ac_path_SED"
4824 ac_path_SED_max=$ac_count
4825 fi
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
4828 done
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 esac
4831
4832 $ac_path_SED_found && break 3
4833 done
4834 done
4835 done
4836 IFS=$as_save_IFS
4837 if test -z "$ac_cv_path_SED"; then
4838 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4839 fi
4840 else
4841 ac_cv_path_SED=$SED
4842 fi
4843 ;;
4844 esac
4845 fi
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4847 printf "%s\n" "$ac_cv_path_SED" >&6; }
4848 SED="$ac_cv_path_SED"
4849 rm -f conftest.sed
4850
4851
4852
4853
4854
4855
4856 # Check whether --enable-selective-werror was given.
4857 if test ${enable_selective_werror+y}
4858 then :
4859 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4860 else case e in #(
4861 e) SELECTIVE_WERROR=yes ;;
4862 esac
4863 fi
4864
4865
4866
4867
4868
4869 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4870 if test "x$SUNCC" = "xyes"; then
4871 BASE_CFLAGS="-v"
4872 else
4873 BASE_CFLAGS=""
4874 fi
4875
4876 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 xorg_testset_save_CFLAGS="$CFLAGS"
4891
4892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4896 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4897 then :
4898 printf %s "(cached) " >&6
4899 else case e in #(
4900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"
4905 then :
4906 xorg_cv_cc_flag_unknown_warning_option=yes
4907 else case e in #(
4908 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4909 esac
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4912 esac
4913 fi
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4915 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4917 CFLAGS="$xorg_testset_save_CFLAGS"
4918 fi
4919
4920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923 fi
4924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4926 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4927 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4928 then :
4929 printf %s "(cached) " >&6
4930 else case e in #(
4931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 int i;
4934 _ACEOF
4935 if ac_fn_c_try_compile "$LINENO"
4936 then :
4937 xorg_cv_cc_flag_unused_command_line_argument=yes
4938 else case e in #(
4939 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4940 esac
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4943 esac
4944 fi
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4946 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4948 CFLAGS="$xorg_testset_save_CFLAGS"
4949 fi
4950
4951 found="no"
4952
4953 if test $found = "no" ; then
4954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 fi
4957
4958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960 fi
4961
4962 CFLAGS="$CFLAGS -Wall"
4963
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4965 printf %s "checking if $CC supports -Wall... " >&6; }
4966 cacheid=xorg_cv_cc_flag__Wall
4967 if eval test \${$cacheid+y}
4968 then :
4969 printf %s "(cached) " >&6
4970 else case e in #(
4971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 int i;
4974 int
4975 main (void)
4976 {
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 if ac_fn_c_try_link "$LINENO"
4983 then :
4984 eval $cacheid=yes
4985 else case e in #(
4986 e) eval $cacheid=no ;;
4987 esac
4988 fi
4989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4990 conftest$ac_exeext conftest.$ac_ext ;;
4991 esac
4992 fi
4993
4994
4995 CFLAGS="$xorg_testset_save_CFLAGS"
4996
4997 eval supported=\$$cacheid
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999 printf "%s\n" "$supported" >&6; }
5000 if test "$supported" = "yes" ; then
5001 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5002 found="yes"
5003 fi
5004 fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 xorg_testset_save_CFLAGS="$CFLAGS"
5021
5022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5025 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5026 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5027 then :
5028 printf %s "(cached) " >&6
5029 else case e in #(
5030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 int i;
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"
5035 then :
5036 xorg_cv_cc_flag_unknown_warning_option=yes
5037 else case e in #(
5038 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5039 esac
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5042 esac
5043 fi
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5047 CFLAGS="$xorg_testset_save_CFLAGS"
5048 fi
5049
5050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5053 fi
5054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5058 then :
5059 printf %s "(cached) " >&6
5060 else case e in #(
5061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 int i;
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"
5066 then :
5067 xorg_cv_cc_flag_unused_command_line_argument=yes
5068 else case e in #(
5069 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5070 esac
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5073 esac
5074 fi
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078 CFLAGS="$xorg_testset_save_CFLAGS"
5079 fi
5080
5081 found="no"
5082
5083 if test $found = "no" ; then
5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086 fi
5087
5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090 fi
5091
5092 CFLAGS="$CFLAGS -Wpointer-arith"
5093
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5095 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5096 cacheid=xorg_cv_cc_flag__Wpointer_arith
5097 if eval test \${$cacheid+y}
5098 then :
5099 printf %s "(cached) " >&6
5100 else case e in #(
5101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 int
5105 main (void)
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"
5113 then :
5114 eval $cacheid=yes
5115 else case e in #(
5116 e) eval $cacheid=no ;;
5117 esac
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5120 conftest$ac_exeext conftest.$ac_ext ;;
5121 esac
5122 fi
5123
5124
5125 CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127 eval supported=\$$cacheid
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129 printf "%s\n" "$supported" >&6; }
5130 if test "$supported" = "yes" ; then
5131 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5132 found="yes"
5133 fi
5134 fi
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 xorg_testset_save_CFLAGS="$CFLAGS"
5151
5152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5156 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5157 then :
5158 printf %s "(cached) " >&6
5159 else case e in #(
5160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"
5165 then :
5166 xorg_cv_cc_flag_unknown_warning_option=yes
5167 else case e in #(
5168 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5169 esac
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5172 esac
5173 fi
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5175 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5177 CFLAGS="$xorg_testset_save_CFLAGS"
5178 fi
5179
5180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183 fi
5184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5186 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5187 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5188 then :
5189 printf %s "(cached) " >&6
5190 else case e in #(
5191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 int i;
5194 _ACEOF
5195 if ac_fn_c_try_compile "$LINENO"
5196 then :
5197 xorg_cv_cc_flag_unused_command_line_argument=yes
5198 else case e in #(
5199 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5200 esac
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5203 esac
5204 fi
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208 CFLAGS="$xorg_testset_save_CFLAGS"
5209 fi
5210
5211 found="no"
5212
5213 if test $found = "no" ; then
5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216 fi
5217
5218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220 fi
5221
5222 CFLAGS="$CFLAGS -Wmissing-declarations"
5223
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5225 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5226 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5227 if eval test \${$cacheid+y}
5228 then :
5229 printf %s "(cached) " >&6
5230 else case e in #(
5231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 int i;
5234 int
5235 main (void)
5236 {
5237
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_c_try_link "$LINENO"
5243 then :
5244 eval $cacheid=yes
5245 else case e in #(
5246 e) eval $cacheid=no ;;
5247 esac
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5250 conftest$ac_exeext conftest.$ac_ext ;;
5251 esac
5252 fi
5253
5254
5255 CFLAGS="$xorg_testset_save_CFLAGS"
5256
5257 eval supported=\$$cacheid
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5259 printf "%s\n" "$supported" >&6; }
5260 if test "$supported" = "yes" ; then
5261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5262 found="yes"
5263 fi
5264 fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280 xorg_testset_save_CFLAGS="$CFLAGS"
5281
5282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5285 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5286 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else case e in #(
5290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 int i;
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"
5295 then :
5296 xorg_cv_cc_flag_unknown_warning_option=yes
5297 else case e in #(
5298 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5299 esac
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5302 esac
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5318 then :
5319 printf %s "(cached) " >&6
5320 else case e in #(
5321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 int i;
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"
5326 then :
5327 xorg_cv_cc_flag_unused_command_line_argument=yes
5328 else case e in #(
5329 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5330 esac
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5333 esac
5334 fi
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5338 CFLAGS="$xorg_testset_save_CFLAGS"
5339 fi
5340
5341 found="no"
5342
5343 if test $found = "no" ; then
5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346 fi
5347
5348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350 fi
5351
5352 CFLAGS="$CFLAGS -Wformat=2"
5353
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5355 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5356 cacheid=xorg_cv_cc_flag__Wformat_2
5357 if eval test \${$cacheid+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else case e in #(
5361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 int i;
5364 int
5365 main (void)
5366 {
5367
5368 ;
5369 return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_link "$LINENO"
5373 then :
5374 eval $cacheid=yes
5375 else case e in #(
5376 e) eval $cacheid=no ;;
5377 esac
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5380 conftest$ac_exeext conftest.$ac_ext ;;
5381 esac
5382 fi
5383
5384
5385 CFLAGS="$xorg_testset_save_CFLAGS"
5386
5387 eval supported=\$$cacheid
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5389 printf "%s\n" "$supported" >&6; }
5390 if test "$supported" = "yes" ; then
5391 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5392 found="yes"
5393 fi
5394 fi
5395
5396 if test $found = "no" ; then
5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399 fi
5400
5401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5403 fi
5404
5405 CFLAGS="$CFLAGS -Wformat"
5406
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5408 printf %s "checking if $CC supports -Wformat... " >&6; }
5409 cacheid=xorg_cv_cc_flag__Wformat
5410 if eval test \${$cacheid+y}
5411 then :
5412 printf %s "(cached) " >&6
5413 else case e in #(
5414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 int i;
5417 int
5418 main (void)
5419 {
5420
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_c_try_link "$LINENO"
5426 then :
5427 eval $cacheid=yes
5428 else case e in #(
5429 e) eval $cacheid=no ;;
5430 esac
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5433 conftest$ac_exeext conftest.$ac_ext ;;
5434 esac
5435 fi
5436
5437
5438 CFLAGS="$xorg_testset_save_CFLAGS"
5439
5440 eval supported=\$$cacheid
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5442 printf "%s\n" "$supported" >&6; }
5443 if test "$supported" = "yes" ; then
5444 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5445 found="yes"
5446 fi
5447 fi
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 xorg_testset_save_CFLAGS="$CFLAGS"
5466
5467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5472 then :
5473 printf %s "(cached) " >&6
5474 else case e in #(
5475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 int i;
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"
5480 then :
5481 xorg_cv_cc_flag_unknown_warning_option=yes
5482 else case e in #(
5483 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5484 esac
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5487 esac
5488 fi
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5492 CFLAGS="$xorg_testset_save_CFLAGS"
5493 fi
5494
5495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 fi
5499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5503 then :
5504 printf %s "(cached) " >&6
5505 else case e in #(
5506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"
5511 then :
5512 xorg_cv_cc_flag_unused_command_line_argument=yes
5513 else case e in #(
5514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5515 esac
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5518 esac
5519 fi
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5523 CFLAGS="$xorg_testset_save_CFLAGS"
5524 fi
5525
5526 found="no"
5527
5528 if test $found = "no" ; then
5529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531 fi
5532
5533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5535 fi
5536
5537 CFLAGS="$CFLAGS -Wstrict-prototypes"
5538
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5540 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5541 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5542 if eval test \${$cacheid+y}
5543 then :
5544 printf %s "(cached) " >&6
5545 else case e in #(
5546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 int i;
5549 int
5550 main (void)
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_link "$LINENO"
5558 then :
5559 eval $cacheid=yes
5560 else case e in #(
5561 e) eval $cacheid=no ;;
5562 esac
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5565 conftest$ac_exeext conftest.$ac_ext ;;
5566 esac
5567 fi
5568
5569
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5571
5572 eval supported=\$$cacheid
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5574 printf "%s\n" "$supported" >&6; }
5575 if test "$supported" = "yes" ; then
5576 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5577 found="yes"
5578 fi
5579 fi
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 xorg_testset_save_CFLAGS="$CFLAGS"
5596
5597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5600 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5601 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else case e in #(
5605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 int i;
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"
5610 then :
5611 xorg_cv_cc_flag_unknown_warning_option=yes
5612 else case e in #(
5613 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5614 esac
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5617 esac
5618 fi
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5622 CFLAGS="$xorg_testset_save_CFLAGS"
5623 fi
5624
5625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628 fi
5629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5633 then :
5634 printf %s "(cached) " >&6
5635 else case e in #(
5636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 int i;
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"
5641 then :
5642 xorg_cv_cc_flag_unused_command_line_argument=yes
5643 else case e in #(
5644 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5645 esac
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5648 esac
5649 fi
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5653 CFLAGS="$xorg_testset_save_CFLAGS"
5654 fi
5655
5656 found="no"
5657
5658 if test $found = "no" ; then
5659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661 fi
5662
5663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665 fi
5666
5667 CFLAGS="$CFLAGS -Wmissing-prototypes"
5668
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5670 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5671 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5672 if eval test \${$cacheid+y}
5673 then :
5674 printf %s "(cached) " >&6
5675 else case e in #(
5676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 int i;
5679 int
5680 main (void)
5681 {
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_link "$LINENO"
5688 then :
5689 eval $cacheid=yes
5690 else case e in #(
5691 e) eval $cacheid=no ;;
5692 esac
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5695 conftest$ac_exeext conftest.$ac_ext ;;
5696 esac
5697 fi
5698
5699
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701
5702 eval supported=\$$cacheid
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5704 printf "%s\n" "$supported" >&6; }
5705 if test "$supported" = "yes" ; then
5706 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5707 found="yes"
5708 fi
5709 fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 xorg_testset_save_CFLAGS="$CFLAGS"
5726
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5732 then :
5733 printf %s "(cached) " >&6
5734 else case e in #(
5735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 int i;
5738 _ACEOF
5739 if ac_fn_c_try_compile "$LINENO"
5740 then :
5741 xorg_cv_cc_flag_unknown_warning_option=yes
5742 else case e in #(
5743 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5744 esac
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5747 esac
5748 fi
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5750 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5752 CFLAGS="$xorg_testset_save_CFLAGS"
5753 fi
5754
5755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758 fi
5759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5761 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5762 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5763 then :
5764 printf %s "(cached) " >&6
5765 else case e in #(
5766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 int i;
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"
5771 then :
5772 xorg_cv_cc_flag_unused_command_line_argument=yes
5773 else case e in #(
5774 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5775 esac
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5778 esac
5779 fi
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5783 CFLAGS="$xorg_testset_save_CFLAGS"
5784 fi
5785
5786 found="no"
5787
5788 if test $found = "no" ; then
5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791 fi
5792
5793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795 fi
5796
5797 CFLAGS="$CFLAGS -Wnested-externs"
5798
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5800 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5801 cacheid=xorg_cv_cc_flag__Wnested_externs
5802 if eval test \${$cacheid+y}
5803 then :
5804 printf %s "(cached) " >&6
5805 else case e in #(
5806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 int i;
5809 int
5810 main (void)
5811 {
5812
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 if ac_fn_c_try_link "$LINENO"
5818 then :
5819 eval $cacheid=yes
5820 else case e in #(
5821 e) eval $cacheid=no ;;
5822 esac
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5825 conftest$ac_exeext conftest.$ac_ext ;;
5826 esac
5827 fi
5828
5829
5830 CFLAGS="$xorg_testset_save_CFLAGS"
5831
5832 eval supported=\$$cacheid
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5834 printf "%s\n" "$supported" >&6; }
5835 if test "$supported" = "yes" ; then
5836 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5837 found="yes"
5838 fi
5839 fi
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 xorg_testset_save_CFLAGS="$CFLAGS"
5856
5857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5862 then :
5863 printf %s "(cached) " >&6
5864 else case e in #(
5865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 int i;
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"
5870 then :
5871 xorg_cv_cc_flag_unknown_warning_option=yes
5872 else case e in #(
5873 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5874 esac
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877 esac
5878 fi
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5880 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883 fi
5884
5885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888 fi
5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5891 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5892 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5893 then :
5894 printf %s "(cached) " >&6
5895 else case e in #(
5896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 int i;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"
5901 then :
5902 xorg_cv_cc_flag_unused_command_line_argument=yes
5903 else case e in #(
5904 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5905 esac
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5908 esac
5909 fi
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5911 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5913 CFLAGS="$xorg_testset_save_CFLAGS"
5914 fi
5915
5916 found="no"
5917
5918 if test $found = "no" ; then
5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921 fi
5922
5923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5925 fi
5926
5927 CFLAGS="$CFLAGS -Wbad-function-cast"
5928
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5930 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5931 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5932 if eval test \${$cacheid+y}
5933 then :
5934 printf %s "(cached) " >&6
5935 else case e in #(
5936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 int i;
5939 int
5940 main (void)
5941 {
5942
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"
5948 then :
5949 eval $cacheid=yes
5950 else case e in #(
5951 e) eval $cacheid=no ;;
5952 esac
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5955 conftest$ac_exeext conftest.$ac_ext ;;
5956 esac
5957 fi
5958
5959
5960 CFLAGS="$xorg_testset_save_CFLAGS"
5961
5962 eval supported=\$$cacheid
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5964 printf "%s\n" "$supported" >&6; }
5965 if test "$supported" = "yes" ; then
5966 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5967 found="yes"
5968 fi
5969 fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 xorg_testset_save_CFLAGS="$CFLAGS"
5986
5987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5992 then :
5993 printf %s "(cached) " >&6
5994 else case e in #(
5995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 int i;
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"
6000 then :
6001 xorg_cv_cc_flag_unknown_warning_option=yes
6002 else case e in #(
6003 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6004 esac
6005 fi
6006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6007 esac
6008 fi
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6010 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6012 CFLAGS="$xorg_testset_save_CFLAGS"
6013 fi
6014
6015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6018 fi
6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6021 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6022 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6023 then :
6024 printf %s "(cached) " >&6
6025 else case e in #(
6026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 int i;
6029 _ACEOF
6030 if ac_fn_c_try_compile "$LINENO"
6031 then :
6032 xorg_cv_cc_flag_unused_command_line_argument=yes
6033 else case e in #(
6034 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6035 esac
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6038 esac
6039 fi
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6041 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6043 CFLAGS="$xorg_testset_save_CFLAGS"
6044 fi
6045
6046 found="no"
6047
6048 if test $found = "no" ; then
6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051 fi
6052
6053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055 fi
6056
6057 CFLAGS="$CFLAGS -Wold-style-definition"
6058
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6060 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6061 cacheid=xorg_cv_cc_flag__Wold_style_definition
6062 if eval test \${$cacheid+y}
6063 then :
6064 printf %s "(cached) " >&6
6065 else case e in #(
6066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 int i;
6069 int
6070 main (void)
6071 {
6072
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"
6078 then :
6079 eval $cacheid=yes
6080 else case e in #(
6081 e) eval $cacheid=no ;;
6082 esac
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6085 conftest$ac_exeext conftest.$ac_ext ;;
6086 esac
6087 fi
6088
6089
6090 CFLAGS="$xorg_testset_save_CFLAGS"
6091
6092 eval supported=\$$cacheid
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6094 printf "%s\n" "$supported" >&6; }
6095 if test "$supported" = "yes" ; then
6096 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6097 found="yes"
6098 fi
6099 fi
6100
6101 if test $found = "no" ; then
6102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6104 fi
6105
6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108 fi
6109
6110 CFLAGS="$CFLAGS -fd"
6111
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6113 printf %s "checking if $CC supports -fd... " >&6; }
6114 cacheid=xorg_cv_cc_flag__fd
6115 if eval test \${$cacheid+y}
6116 then :
6117 printf %s "(cached) " >&6
6118 else case e in #(
6119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121 int i;
6122 int
6123 main (void)
6124 {
6125
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_c_try_link "$LINENO"
6131 then :
6132 eval $cacheid=yes
6133 else case e in #(
6134 e) eval $cacheid=no ;;
6135 esac
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6138 conftest$ac_exeext conftest.$ac_ext ;;
6139 esac
6140 fi
6141
6142
6143 CFLAGS="$xorg_testset_save_CFLAGS"
6144
6145 eval supported=\$$cacheid
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6147 printf "%s\n" "$supported" >&6; }
6148 if test "$supported" = "yes" ; then
6149 BASE_CFLAGS="$BASE_CFLAGS -fd"
6150 found="yes"
6151 fi
6152 fi
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 xorg_testset_save_CFLAGS="$CFLAGS"
6169
6170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6173 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6174 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6175 then :
6176 printf %s "(cached) " >&6
6177 else case e in #(
6178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 int i;
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"
6183 then :
6184 xorg_cv_cc_flag_unknown_warning_option=yes
6185 else case e in #(
6186 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6187 esac
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6190 esac
6191 fi
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6195 CFLAGS="$xorg_testset_save_CFLAGS"
6196 fi
6197
6198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6201 fi
6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6206 then :
6207 printf %s "(cached) " >&6
6208 else case e in #(
6209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 int i;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"
6214 then :
6215 xorg_cv_cc_flag_unused_command_line_argument=yes
6216 else case e in #(
6217 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6218 esac
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6221 esac
6222 fi
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226 CFLAGS="$xorg_testset_save_CFLAGS"
6227 fi
6228
6229 found="no"
6230
6231 if test $found = "no" ; then
6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234 fi
6235
6236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238 fi
6239
6240 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6241
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6243 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6244 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6245 if eval test \${$cacheid+y}
6246 then :
6247 printf %s "(cached) " >&6
6248 else case e in #(
6249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 int i;
6252 int
6253 main (void)
6254 {
6255
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_link "$LINENO"
6261 then :
6262 eval $cacheid=yes
6263 else case e in #(
6264 e) eval $cacheid=no ;;
6265 esac
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6268 conftest$ac_exeext conftest.$ac_ext ;;
6269 esac
6270 fi
6271
6272
6273 CFLAGS="$xorg_testset_save_CFLAGS"
6274
6275 eval supported=\$$cacheid
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6277 printf "%s\n" "$supported" >&6; }
6278 if test "$supported" = "yes" ; then
6279 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6280 found="yes"
6281 fi
6282 fi
6283
6284
6285
6286
6287
6288 # This chunk adds additional warnings that could catch undesired effects.
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 xorg_testset_save_CFLAGS="$CFLAGS"
6303
6304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else case e in #(
6312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"
6317 then :
6318 xorg_cv_cc_flag_unknown_warning_option=yes
6319 else case e in #(
6320 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6321 esac
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6324 esac
6325 fi
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330 fi
6331
6332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 fi
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else case e in #(
6343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 _ACEOF
6347 if ac_fn_c_try_compile "$LINENO"
6348 then :
6349 xorg_cv_cc_flag_unused_command_line_argument=yes
6350 else case e in #(
6351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6352 esac
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6355 esac
6356 fi
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6360 CFLAGS="$xorg_testset_save_CFLAGS"
6361 fi
6362
6363 found="no"
6364
6365 if test $found = "no" ; then
6366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6368 fi
6369
6370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6372 fi
6373
6374 CFLAGS="$CFLAGS -Wunused"
6375
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6377 printf %s "checking if $CC supports -Wunused... " >&6; }
6378 cacheid=xorg_cv_cc_flag__Wunused
6379 if eval test \${$cacheid+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else case e in #(
6383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 int i;
6386 int
6387 main (void)
6388 {
6389
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 if ac_fn_c_try_link "$LINENO"
6395 then :
6396 eval $cacheid=yes
6397 else case e in #(
6398 e) eval $cacheid=no ;;
6399 esac
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6402 conftest$ac_exeext conftest.$ac_ext ;;
6403 esac
6404 fi
6405
6406
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409 eval supported=\$$cacheid
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 printf "%s\n" "$supported" >&6; }
6412 if test "$supported" = "yes" ; then
6413 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6414 found="yes"
6415 fi
6416 fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else case e in #(
6442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"
6447 then :
6448 xorg_cv_cc_flag_unknown_warning_option=yes
6449 else case e in #(
6450 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6451 esac
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6454 esac
6455 fi
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6457 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465 fi
6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6470 then :
6471 printf %s "(cached) " >&6
6472 else case e in #(
6473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 int i;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"
6478 then :
6479 xorg_cv_cc_flag_unused_command_line_argument=yes
6480 else case e in #(
6481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6482 esac
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6485 esac
6486 fi
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6488 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6490 CFLAGS="$xorg_testset_save_CFLAGS"
6491 fi
6492
6493 found="no"
6494
6495 if test $found = "no" ; then
6496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498 fi
6499
6500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6502 fi
6503
6504 CFLAGS="$CFLAGS -Wuninitialized"
6505
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6507 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6508 cacheid=xorg_cv_cc_flag__Wuninitialized
6509 if eval test \${$cacheid+y}
6510 then :
6511 printf %s "(cached) " >&6
6512 else case e in #(
6513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 int i;
6516 int
6517 main (void)
6518 {
6519
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 if ac_fn_c_try_link "$LINENO"
6525 then :
6526 eval $cacheid=yes
6527 else case e in #(
6528 e) eval $cacheid=no ;;
6529 esac
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6532 conftest$ac_exeext conftest.$ac_ext ;;
6533 esac
6534 fi
6535
6536
6537 CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539 eval supported=\$$cacheid
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541 printf "%s\n" "$supported" >&6; }
6542 if test "$supported" = "yes" ; then
6543 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6544 found="yes"
6545 fi
6546 fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"
6577 then :
6578 xorg_cv_cc_flag_unknown_warning_option=yes
6579 else case e in #(
6580 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6581 esac
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6584 esac
6585 fi
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6589 CFLAGS="$xorg_testset_save_CFLAGS"
6590 fi
6591
6592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595 fi
6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6600 then :
6601 printf %s "(cached) " >&6
6602 else case e in #(
6603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 int i;
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"
6608 then :
6609 xorg_cv_cc_flag_unused_command_line_argument=yes
6610 else case e in #(
6611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6612 esac
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6615 esac
6616 fi
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620 CFLAGS="$xorg_testset_save_CFLAGS"
6621 fi
6622
6623 found="no"
6624
6625 if test $found = "no" ; then
6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628 fi
6629
6630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632 fi
6633
6634 CFLAGS="$CFLAGS -Wshadow"
6635
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6637 printf %s "checking if $CC supports -Wshadow... " >&6; }
6638 cacheid=xorg_cv_cc_flag__Wshadow
6639 if eval test \${$cacheid+y}
6640 then :
6641 printf %s "(cached) " >&6
6642 else case e in #(
6643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 int i;
6646 int
6647 main (void)
6648 {
6649
6650 ;
6651 return 0;
6652 }
6653 _ACEOF
6654 if ac_fn_c_try_link "$LINENO"
6655 then :
6656 eval $cacheid=yes
6657 else case e in #(
6658 e) eval $cacheid=no ;;
6659 esac
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6662 conftest$ac_exeext conftest.$ac_ext ;;
6663 esac
6664 fi
6665
6666
6667 CFLAGS="$xorg_testset_save_CFLAGS"
6668
6669 eval supported=\$$cacheid
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6671 printf "%s\n" "$supported" >&6; }
6672 if test "$supported" = "yes" ; then
6673 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6674 found="yes"
6675 fi
6676 fi
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692 xorg_testset_save_CFLAGS="$CFLAGS"
6693
6694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"
6707 then :
6708 xorg_cv_cc_flag_unknown_warning_option=yes
6709 else case e in #(
6710 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6711 esac
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714 esac
6715 fi
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720 fi
6721
6722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725 fi
6726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6730 then :
6731 printf %s "(cached) " >&6
6732 else case e in #(
6733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 int i;
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"
6738 then :
6739 xorg_cv_cc_flag_unused_command_line_argument=yes
6740 else case e in #(
6741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6742 esac
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6745 esac
6746 fi
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6750 CFLAGS="$xorg_testset_save_CFLAGS"
6751 fi
6752
6753 found="no"
6754
6755 if test $found = "no" ; then
6756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758 fi
6759
6760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6762 fi
6763
6764 CFLAGS="$CFLAGS -Wmissing-noreturn"
6765
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6767 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6768 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6769 if eval test \${$cacheid+y}
6770 then :
6771 printf %s "(cached) " >&6
6772 else case e in #(
6773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 int i;
6776 int
6777 main (void)
6778 {
6779
6780 ;
6781 return 0;
6782 }
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"
6785 then :
6786 eval $cacheid=yes
6787 else case e in #(
6788 e) eval $cacheid=no ;;
6789 esac
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6792 conftest$ac_exeext conftest.$ac_ext ;;
6793 esac
6794 fi
6795
6796
6797 CFLAGS="$xorg_testset_save_CFLAGS"
6798
6799 eval supported=\$$cacheid
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6801 printf "%s\n" "$supported" >&6; }
6802 if test "$supported" = "yes" ; then
6803 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6804 found="yes"
6805 fi
6806 fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 xorg_testset_save_CFLAGS="$CFLAGS"
6823
6824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6828 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else case e in #(
6832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 int i;
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"
6837 then :
6838 xorg_cv_cc_flag_unknown_warning_option=yes
6839 else case e in #(
6840 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6841 esac
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6844 esac
6845 fi
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6849 CFLAGS="$xorg_testset_save_CFLAGS"
6850 fi
6851
6852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855 fi
6856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6860 then :
6861 printf %s "(cached) " >&6
6862 else case e in #(
6863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 int i;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"
6868 then :
6869 xorg_cv_cc_flag_unused_command_line_argument=yes
6870 else case e in #(
6871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6872 esac
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6875 esac
6876 fi
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881 fi
6882
6883 found="no"
6884
6885 if test $found = "no" ; then
6886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888 fi
6889
6890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6892 fi
6893
6894 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6895
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6897 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6898 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6899 if eval test \${$cacheid+y}
6900 then :
6901 printf %s "(cached) " >&6
6902 else case e in #(
6903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 int i;
6906 int
6907 main (void)
6908 {
6909
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_c_try_link "$LINENO"
6915 then :
6916 eval $cacheid=yes
6917 else case e in #(
6918 e) eval $cacheid=no ;;
6919 esac
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6922 conftest$ac_exeext conftest.$ac_ext ;;
6923 esac
6924 fi
6925
6926
6927 CFLAGS="$xorg_testset_save_CFLAGS"
6928
6929 eval supported=\$$cacheid
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6931 printf "%s\n" "$supported" >&6; }
6932 if test "$supported" = "yes" ; then
6933 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6934 found="yes"
6935 fi
6936 fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952 xorg_testset_save_CFLAGS="$CFLAGS"
6953
6954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else case e in #(
6962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 int i;
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"
6967 then :
6968 xorg_cv_cc_flag_unknown_warning_option=yes
6969 else case e in #(
6970 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6971 esac
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6974 esac
6975 fi
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980 fi
6981
6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985 fi
6986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6990 then :
6991 printf %s "(cached) " >&6
6992 else case e in #(
6993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 int i;
6996 _ACEOF
6997 if ac_fn_c_try_compile "$LINENO"
6998 then :
6999 xorg_cv_cc_flag_unused_command_line_argument=yes
7000 else case e in #(
7001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7002 esac
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7005 esac
7006 fi
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 found="no"
7014
7015 if test $found = "no" ; then
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 fi
7019
7020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022 fi
7023
7024 CFLAGS="$CFLAGS -Wredundant-decls"
7025
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7027 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7028 cacheid=xorg_cv_cc_flag__Wredundant_decls
7029 if eval test \${$cacheid+y}
7030 then :
7031 printf %s "(cached) " >&6
7032 else case e in #(
7033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035 int i;
7036 int
7037 main (void)
7038 {
7039
7040 ;
7041 return 0;
7042 }
7043 _ACEOF
7044 if ac_fn_c_try_link "$LINENO"
7045 then :
7046 eval $cacheid=yes
7047 else case e in #(
7048 e) eval $cacheid=no ;;
7049 esac
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7052 conftest$ac_exeext conftest.$ac_ext ;;
7053 esac
7054 fi
7055
7056
7057 CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059 eval supported=\$$cacheid
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061 printf "%s\n" "$supported" >&6; }
7062 if test "$supported" = "yes" ; then
7063 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7064 found="yes"
7065 fi
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else case e in #(
7092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"
7097 then :
7098 xorg_cv_cc_flag_unknown_warning_option=yes
7099 else case e in #(
7100 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7101 esac
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7104 esac
7105 fi
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7109 CFLAGS="$xorg_testset_save_CFLAGS"
7110 fi
7111
7112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7115 fi
7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7120 then :
7121 printf %s "(cached) " >&6
7122 else case e in #(
7123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int i;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"
7128 then :
7129 xorg_cv_cc_flag_unused_command_line_argument=yes
7130 else case e in #(
7131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7132 esac
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7135 esac
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 found="no"
7144
7145 if test $found = "no" ; then
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 fi
7149
7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152 fi
7153
7154 CFLAGS="$CFLAGS -Wlogical-op"
7155
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158 cacheid=xorg_cv_cc_flag__Wlogical_op
7159 if eval test \${$cacheid+y}
7160 then :
7161 printf %s "(cached) " >&6
7162 else case e in #(
7163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 int i;
7166 int
7167 main (void)
7168 {
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"
7175 then :
7176 eval $cacheid=yes
7177 else case e in #(
7178 e) eval $cacheid=no ;;
7179 esac
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7182 conftest$ac_exeext conftest.$ac_ext ;;
7183 esac
7184 fi
7185
7186
7187 CFLAGS="$xorg_testset_save_CFLAGS"
7188
7189 eval supported=\$$cacheid
7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7191 printf "%s\n" "$supported" >&6; }
7192 if test "$supported" = "yes" ; then
7193 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7194 found="yes"
7195 fi
7196 fi
7197
7198
7199
7200 # These are currently disabled because they are noisy. They will be enabled
7201 # in the future once the codebase is sufficiently modernized to silence
7202 # them. For now, I don't want them to drown out the other warnings.
7203 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7204 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7205 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7206
7207 # Turn some warnings into errors, so we don't accidentally get successful builds
7208 # when there are problems that should be fixed.
7209
7210 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224 xorg_testset_save_CFLAGS="$CFLAGS"
7225
7226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7231 then :
7232 printf %s "(cached) " >&6
7233 else case e in #(
7234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 int i;
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"
7239 then :
7240 xorg_cv_cc_flag_unknown_warning_option=yes
7241 else case e in #(
7242 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7243 esac
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7246 esac
7247 fi
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257 fi
7258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7262 then :
7263 printf %s "(cached) " >&6
7264 else case e in #(
7265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 int i;
7268 _ACEOF
7269 if ac_fn_c_try_compile "$LINENO"
7270 then :
7271 xorg_cv_cc_flag_unused_command_line_argument=yes
7272 else case e in #(
7273 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7274 esac
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7277 esac
7278 fi
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7280 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7282 CFLAGS="$xorg_testset_save_CFLAGS"
7283 fi
7284
7285 found="no"
7286
7287 if test $found = "no" ; then
7288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7290 fi
7291
7292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7294 fi
7295
7296 CFLAGS="$CFLAGS -Werror=implicit"
7297
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7299 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7300 cacheid=xorg_cv_cc_flag__Werror_implicit
7301 if eval test \${$cacheid+y}
7302 then :
7303 printf %s "(cached) " >&6
7304 else case e in #(
7305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 int i;
7308 int
7309 main (void)
7310 {
7311
7312 ;
7313 return 0;
7314 }
7315 _ACEOF
7316 if ac_fn_c_try_link "$LINENO"
7317 then :
7318 eval $cacheid=yes
7319 else case e in #(
7320 e) eval $cacheid=no ;;
7321 esac
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7324 conftest$ac_exeext conftest.$ac_ext ;;
7325 esac
7326 fi
7327
7328
7329 CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331 eval supported=\$$cacheid
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333 printf "%s\n" "$supported" >&6; }
7334 if test "$supported" = "yes" ; then
7335 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7336 found="yes"
7337 fi
7338 fi
7339
7340 if test $found = "no" ; then
7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343 fi
7344
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7347 fi
7348
7349 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7350
7351 { 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
7352 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7353 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7354 if eval test \${$cacheid+y}
7355 then :
7356 printf %s "(cached) " >&6
7357 else case e in #(
7358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 int i;
7361 int
7362 main (void)
7363 {
7364
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 if ac_fn_c_try_link "$LINENO"
7370 then :
7371 eval $cacheid=yes
7372 else case e in #(
7373 e) eval $cacheid=no ;;
7374 esac
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7377 conftest$ac_exeext conftest.$ac_ext ;;
7378 esac
7379 fi
7380
7381
7382 CFLAGS="$xorg_testset_save_CFLAGS"
7383
7384 eval supported=\$$cacheid
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7386 printf "%s\n" "$supported" >&6; }
7387 if test "$supported" = "yes" ; then
7388 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7389 found="yes"
7390 fi
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 xorg_testset_save_CFLAGS="$CFLAGS"
7408
7409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7412 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7413 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7414 then :
7415 printf %s "(cached) " >&6
7416 else case e in #(
7417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 int i;
7420 _ACEOF
7421 if ac_fn_c_try_compile "$LINENO"
7422 then :
7423 xorg_cv_cc_flag_unknown_warning_option=yes
7424 else case e in #(
7425 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7426 esac
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7429 esac
7430 fi
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7432 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7434 CFLAGS="$xorg_testset_save_CFLAGS"
7435 fi
7436
7437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440 fi
7441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7443 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7444 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7445 then :
7446 printf %s "(cached) " >&6
7447 else case e in #(
7448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 int i;
7451 _ACEOF
7452 if ac_fn_c_try_compile "$LINENO"
7453 then :
7454 xorg_cv_cc_flag_unused_command_line_argument=yes
7455 else case e in #(
7456 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7457 esac
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7460 esac
7461 fi
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7463 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7465 CFLAGS="$xorg_testset_save_CFLAGS"
7466 fi
7467
7468 found="no"
7469
7470 if test $found = "no" ; then
7471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473 fi
7474
7475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477 fi
7478
7479 CFLAGS="$CFLAGS -Werror=nonnull"
7480
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7482 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7483 cacheid=xorg_cv_cc_flag__Werror_nonnull
7484 if eval test \${$cacheid+y}
7485 then :
7486 printf %s "(cached) " >&6
7487 else case e in #(
7488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 int
7492 main (void)
7493 {
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"
7500 then :
7501 eval $cacheid=yes
7502 else case e in #(
7503 e) eval $cacheid=no ;;
7504 esac
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7507 conftest$ac_exeext conftest.$ac_ext ;;
7508 esac
7509 fi
7510
7511
7512 CFLAGS="$xorg_testset_save_CFLAGS"
7513
7514 eval supported=\$$cacheid
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7516 printf "%s\n" "$supported" >&6; }
7517 if test "$supported" = "yes" ; then
7518 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7519 found="yes"
7520 fi
7521 fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 xorg_testset_save_CFLAGS="$CFLAGS"
7538
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7542 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7543 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else case e in #(
7547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 int i;
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"
7552 then :
7553 xorg_cv_cc_flag_unknown_warning_option=yes
7554 else case e in #(
7555 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7556 esac
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7559 esac
7560 fi
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 fi
7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7575 then :
7576 printf %s "(cached) " >&6
7577 else case e in #(
7578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 int i;
7581 _ACEOF
7582 if ac_fn_c_try_compile "$LINENO"
7583 then :
7584 xorg_cv_cc_flag_unused_command_line_argument=yes
7585 else case e in #(
7586 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7587 esac
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7590 esac
7591 fi
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7593 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7595 CFLAGS="$xorg_testset_save_CFLAGS"
7596 fi
7597
7598 found="no"
7599
7600 if test $found = "no" ; then
7601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603 fi
7604
7605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607 fi
7608
7609 CFLAGS="$CFLAGS -Werror=init-self"
7610
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7612 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7613 cacheid=xorg_cv_cc_flag__Werror_init_self
7614 if eval test \${$cacheid+y}
7615 then :
7616 printf %s "(cached) " >&6
7617 else case e in #(
7618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 int i;
7621 int
7622 main (void)
7623 {
7624
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"
7630 then :
7631 eval $cacheid=yes
7632 else case e in #(
7633 e) eval $cacheid=no ;;
7634 esac
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7637 conftest$ac_exeext conftest.$ac_ext ;;
7638 esac
7639 fi
7640
7641
7642 CFLAGS="$xorg_testset_save_CFLAGS"
7643
7644 eval supported=\$$cacheid
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7646 printf "%s\n" "$supported" >&6; }
7647 if test "$supported" = "yes" ; then
7648 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7649 found="yes"
7650 fi
7651 fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667 xorg_testset_save_CFLAGS="$CFLAGS"
7668
7669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7673 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7674 then :
7675 printf %s "(cached) " >&6
7676 else case e in #(
7677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679 int i;
7680 _ACEOF
7681 if ac_fn_c_try_compile "$LINENO"
7682 then :
7683 xorg_cv_cc_flag_unknown_warning_option=yes
7684 else case e in #(
7685 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7686 esac
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7689 esac
7690 fi
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7694 CFLAGS="$xorg_testset_save_CFLAGS"
7695 fi
7696
7697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7700 fi
7701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7705 then :
7706 printf %s "(cached) " >&6
7707 else case e in #(
7708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 int i;
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"
7713 then :
7714 xorg_cv_cc_flag_unused_command_line_argument=yes
7715 else case e in #(
7716 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7717 esac
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7720 esac
7721 fi
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7723 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7725 CFLAGS="$xorg_testset_save_CFLAGS"
7726 fi
7727
7728 found="no"
7729
7730 if test $found = "no" ; then
7731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7733 fi
7734
7735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7737 fi
7738
7739 CFLAGS="$CFLAGS -Werror=main"
7740
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7742 printf %s "checking if $CC supports -Werror=main... " >&6; }
7743 cacheid=xorg_cv_cc_flag__Werror_main
7744 if eval test \${$cacheid+y}
7745 then :
7746 printf %s "(cached) " >&6
7747 else case e in #(
7748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 int i;
7751 int
7752 main (void)
7753 {
7754
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_link "$LINENO"
7760 then :
7761 eval $cacheid=yes
7762 else case e in #(
7763 e) eval $cacheid=no ;;
7764 esac
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7767 conftest$ac_exeext conftest.$ac_ext ;;
7768 esac
7769 fi
7770
7771
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7773
7774 eval supported=\$$cacheid
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776 printf "%s\n" "$supported" >&6; }
7777 if test "$supported" = "yes" ; then
7778 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7779 found="yes"
7780 fi
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 xorg_testset_save_CFLAGS="$CFLAGS"
7798
7799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7804 then :
7805 printf %s "(cached) " >&6
7806 else case e in #(
7807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"
7812 then :
7813 xorg_cv_cc_flag_unknown_warning_option=yes
7814 else case e in #(
7815 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7816 esac
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7819 esac
7820 fi
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824 CFLAGS="$xorg_testset_save_CFLAGS"
7825 fi
7826
7827 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830 fi
7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7835 then :
7836 printf %s "(cached) " >&6
7837 else case e in #(
7838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 int i;
7841 _ACEOF
7842 if ac_fn_c_try_compile "$LINENO"
7843 then :
7844 xorg_cv_cc_flag_unused_command_line_argument=yes
7845 else case e in #(
7846 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7847 esac
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7850 esac
7851 fi
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855 CFLAGS="$xorg_testset_save_CFLAGS"
7856 fi
7857
7858 found="no"
7859
7860 if test $found = "no" ; then
7861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863 fi
7864
7865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867 fi
7868
7869 CFLAGS="$CFLAGS -Werror=missing-braces"
7870
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7872 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7873 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7874 if eval test \${$cacheid+y}
7875 then :
7876 printf %s "(cached) " >&6
7877 else case e in #(
7878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7880 int i;
7881 int
7882 main (void)
7883 {
7884
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"
7890 then :
7891 eval $cacheid=yes
7892 else case e in #(
7893 e) eval $cacheid=no ;;
7894 esac
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897 conftest$ac_exeext conftest.$ac_ext ;;
7898 esac
7899 fi
7900
7901
7902 CFLAGS="$xorg_testset_save_CFLAGS"
7903
7904 eval supported=\$$cacheid
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7906 printf "%s\n" "$supported" >&6; }
7907 if test "$supported" = "yes" ; then
7908 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7909 found="yes"
7910 fi
7911 fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927 xorg_testset_save_CFLAGS="$CFLAGS"
7928
7929 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7932 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7933 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else case e in #(
7937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"
7942 then :
7943 xorg_cv_cc_flag_unknown_warning_option=yes
7944 else case e in #(
7945 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7946 esac
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7949 esac
7950 fi
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7952 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960 fi
7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7963 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7964 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7965 then :
7966 printf %s "(cached) " >&6
7967 else case e in #(
7968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int i;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"
7973 then :
7974 xorg_cv_cc_flag_unused_command_line_argument=yes
7975 else case e in #(
7976 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7977 esac
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7980 esac
7981 fi
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 found="no"
7989
7990 if test $found = "no" ; then
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 fi
7994
7995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7997 fi
7998
7999 CFLAGS="$CFLAGS -Werror=sequence-point"
8000
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8002 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8003 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8004 if eval test \${$cacheid+y}
8005 then :
8006 printf %s "(cached) " >&6
8007 else case e in #(
8008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8010 int i;
8011 int
8012 main (void)
8013 {
8014
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_link "$LINENO"
8020 then :
8021 eval $cacheid=yes
8022 else case e in #(
8023 e) eval $cacheid=no ;;
8024 esac
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8027 conftest$ac_exeext conftest.$ac_ext ;;
8028 esac
8029 fi
8030
8031
8032 CFLAGS="$xorg_testset_save_CFLAGS"
8033
8034 eval supported=\$$cacheid
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8036 printf "%s\n" "$supported" >&6; }
8037 if test "$supported" = "yes" ; then
8038 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8039 found="yes"
8040 fi
8041 fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057 xorg_testset_save_CFLAGS="$CFLAGS"
8058
8059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8062 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8063 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else case e in #(
8067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int i;
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"
8072 then :
8073 xorg_cv_cc_flag_unknown_warning_option=yes
8074 else case e in #(
8075 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8076 esac
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8079 esac
8080 fi
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8082 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090 fi
8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8093 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8094 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8095 then :
8096 printf %s "(cached) " >&6
8097 else case e in #(
8098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"
8103 then :
8104 xorg_cv_cc_flag_unused_command_line_argument=yes
8105 else case e in #(
8106 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8107 esac
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8110 esac
8111 fi
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8113 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8115 CFLAGS="$xorg_testset_save_CFLAGS"
8116 fi
8117
8118 found="no"
8119
8120 if test $found = "no" ; then
8121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123 fi
8124
8125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127 fi
8128
8129 CFLAGS="$CFLAGS -Werror=return-type"
8130
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8132 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8133 cacheid=xorg_cv_cc_flag__Werror_return_type
8134 if eval test \${$cacheid+y}
8135 then :
8136 printf %s "(cached) " >&6
8137 else case e in #(
8138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 int i;
8141 int
8142 main (void)
8143 {
8144
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"
8150 then :
8151 eval $cacheid=yes
8152 else case e in #(
8153 e) eval $cacheid=no ;;
8154 esac
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8157 conftest$ac_exeext conftest.$ac_ext ;;
8158 esac
8159 fi
8160
8161
8162 CFLAGS="$xorg_testset_save_CFLAGS"
8163
8164 eval supported=\$$cacheid
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8166 printf "%s\n" "$supported" >&6; }
8167 if test "$supported" = "yes" ; then
8168 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8169 found="yes"
8170 fi
8171 fi
8172
8173 if test $found = "no" ; then
8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176 fi
8177
8178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8180 fi
8181
8182 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8183
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8185 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8186 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8187 if eval test \${$cacheid+y}
8188 then :
8189 printf %s "(cached) " >&6
8190 else case e in #(
8191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 int i;
8194 int
8195 main (void)
8196 {
8197
8198 ;
8199 return 0;
8200 }
8201 _ACEOF
8202 if ac_fn_c_try_link "$LINENO"
8203 then :
8204 eval $cacheid=yes
8205 else case e in #(
8206 e) eval $cacheid=no ;;
8207 esac
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8210 conftest$ac_exeext conftest.$ac_ext ;;
8211 esac
8212 fi
8213
8214
8215 CFLAGS="$xorg_testset_save_CFLAGS"
8216
8217 eval supported=\$$cacheid
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8219 printf "%s\n" "$supported" >&6; }
8220 if test "$supported" = "yes" ; then
8221 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8222 found="yes"
8223 fi
8224 fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 xorg_testset_save_CFLAGS="$CFLAGS"
8241
8242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8245 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8246 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8247 then :
8248 printf %s "(cached) " >&6
8249 else case e in #(
8250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int i;
8253 _ACEOF
8254 if ac_fn_c_try_compile "$LINENO"
8255 then :
8256 xorg_cv_cc_flag_unknown_warning_option=yes
8257 else case e in #(
8258 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8259 esac
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8262 esac
8263 fi
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8267 CFLAGS="$xorg_testset_save_CFLAGS"
8268 fi
8269
8270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273 fi
8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8278 then :
8279 printf %s "(cached) " >&6
8280 else case e in #(
8281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 int i;
8284 _ACEOF
8285 if ac_fn_c_try_compile "$LINENO"
8286 then :
8287 xorg_cv_cc_flag_unused_command_line_argument=yes
8288 else case e in #(
8289 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8290 esac
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8293 esac
8294 fi
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8296 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8299 fi
8300
8301 found="no"
8302
8303 if test $found = "no" ; then
8304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306 fi
8307
8308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310 fi
8311
8312 CFLAGS="$CFLAGS -Werror=trigraphs"
8313
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8315 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8316 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8317 if eval test \${$cacheid+y}
8318 then :
8319 printf %s "(cached) " >&6
8320 else case e in #(
8321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 int
8325 main (void)
8326 {
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"
8333 then :
8334 eval $cacheid=yes
8335 else case e in #(
8336 e) eval $cacheid=no ;;
8337 esac
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8340 conftest$ac_exeext conftest.$ac_ext ;;
8341 esac
8342 fi
8343
8344
8345 CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347 eval supported=\$$cacheid
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349 printf "%s\n" "$supported" >&6; }
8350 if test "$supported" = "yes" ; then
8351 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8352 found="yes"
8353 fi
8354 fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370 xorg_testset_save_CFLAGS="$CFLAGS"
8371
8372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else case e in #(
8380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 int i;
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"
8385 then :
8386 xorg_cv_cc_flag_unknown_warning_option=yes
8387 else case e in #(
8388 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8389 esac
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8392 esac
8393 fi
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398 fi
8399
8400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403 fi
8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8408 then :
8409 printf %s "(cached) " >&6
8410 else case e in #(
8411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 int i;
8414 _ACEOF
8415 if ac_fn_c_try_compile "$LINENO"
8416 then :
8417 xorg_cv_cc_flag_unused_command_line_argument=yes
8418 else case e in #(
8419 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8420 esac
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8423 esac
8424 fi
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8426 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8428 CFLAGS="$xorg_testset_save_CFLAGS"
8429 fi
8430
8431 found="no"
8432
8433 if test $found = "no" ; then
8434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8436 fi
8437
8438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440 fi
8441
8442 CFLAGS="$CFLAGS -Werror=array-bounds"
8443
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8445 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8446 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8447 if eval test \${$cacheid+y}
8448 then :
8449 printf %s "(cached) " >&6
8450 else case e in #(
8451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 int i;
8454 int
8455 main (void)
8456 {
8457
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_link "$LINENO"
8463 then :
8464 eval $cacheid=yes
8465 else case e in #(
8466 e) eval $cacheid=no ;;
8467 esac
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8470 conftest$ac_exeext conftest.$ac_ext ;;
8471 esac
8472 fi
8473
8474
8475 CFLAGS="$xorg_testset_save_CFLAGS"
8476
8477 eval supported=\$$cacheid
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8479 printf "%s\n" "$supported" >&6; }
8480 if test "$supported" = "yes" ; then
8481 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8482 found="yes"
8483 fi
8484 fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 xorg_testset_save_CFLAGS="$CFLAGS"
8501
8502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8506 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8507 then :
8508 printf %s "(cached) " >&6
8509 else case e in #(
8510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 int i;
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"
8515 then :
8516 xorg_cv_cc_flag_unknown_warning_option=yes
8517 else case e in #(
8518 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8519 esac
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8522 esac
8523 fi
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533 fi
8534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8538 then :
8539 printf %s "(cached) " >&6
8540 else case e in #(
8541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 int i;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"
8546 then :
8547 xorg_cv_cc_flag_unused_command_line_argument=yes
8548 else case e in #(
8549 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8550 esac
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8553 esac
8554 fi
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8556 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8558 CFLAGS="$xorg_testset_save_CFLAGS"
8559 fi
8560
8561 found="no"
8562
8563 if test $found = "no" ; then
8564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566 fi
8567
8568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570 fi
8571
8572 CFLAGS="$CFLAGS -Werror=write-strings"
8573
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8575 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8576 cacheid=xorg_cv_cc_flag__Werror_write_strings
8577 if eval test \${$cacheid+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else case e in #(
8581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 int i;
8584 int
8585 main (void)
8586 {
8587
8588 ;
8589 return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_c_try_link "$LINENO"
8593 then :
8594 eval $cacheid=yes
8595 else case e in #(
8596 e) eval $cacheid=no ;;
8597 esac
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8600 conftest$ac_exeext conftest.$ac_ext ;;
8601 esac
8602 fi
8603
8604
8605 CFLAGS="$xorg_testset_save_CFLAGS"
8606
8607 eval supported=\$$cacheid
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8609 printf "%s\n" "$supported" >&6; }
8610 if test "$supported" = "yes" ; then
8611 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8612 found="yes"
8613 fi
8614 fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 xorg_testset_save_CFLAGS="$CFLAGS"
8631
8632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8636 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8637 then :
8638 printf %s "(cached) " >&6
8639 else case e in #(
8640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"
8645 then :
8646 xorg_cv_cc_flag_unknown_warning_option=yes
8647 else case e in #(
8648 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8649 esac
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8652 esac
8653 fi
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8655 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663 fi
8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8666 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8667 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8668 then :
8669 printf %s "(cached) " >&6
8670 else case e in #(
8671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"
8676 then :
8677 xorg_cv_cc_flag_unused_command_line_argument=yes
8678 else case e in #(
8679 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8680 esac
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8683 esac
8684 fi
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8688 CFLAGS="$xorg_testset_save_CFLAGS"
8689 fi
8690
8691 found="no"
8692
8693 if test $found = "no" ; then
8694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696 fi
8697
8698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8700 fi
8701
8702 CFLAGS="$CFLAGS -Werror=address"
8703
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8705 printf %s "checking if $CC supports -Werror=address... " >&6; }
8706 cacheid=xorg_cv_cc_flag__Werror_address
8707 if eval test \${$cacheid+y}
8708 then :
8709 printf %s "(cached) " >&6
8710 else case e in #(
8711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 int i;
8714 int
8715 main (void)
8716 {
8717
8718 ;
8719 return 0;
8720 }
8721 _ACEOF
8722 if ac_fn_c_try_link "$LINENO"
8723 then :
8724 eval $cacheid=yes
8725 else case e in #(
8726 e) eval $cacheid=no ;;
8727 esac
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8730 conftest$ac_exeext conftest.$ac_ext ;;
8731 esac
8732 fi
8733
8734
8735 CFLAGS="$xorg_testset_save_CFLAGS"
8736
8737 eval supported=\$$cacheid
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8739 printf "%s\n" "$supported" >&6; }
8740 if test "$supported" = "yes" ; then
8741 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8742 found="yes"
8743 fi
8744 fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760 xorg_testset_save_CFLAGS="$CFLAGS"
8761
8762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8766 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else case e in #(
8770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772 int i;
8773 _ACEOF
8774 if ac_fn_c_try_compile "$LINENO"
8775 then :
8776 xorg_cv_cc_flag_unknown_warning_option=yes
8777 else case e in #(
8778 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8779 esac
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8782 esac
8783 fi
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8785 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788 fi
8789
8790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 fi
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8796 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8797 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8798 then :
8799 printf %s "(cached) " >&6
8800 else case e in #(
8801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 int i;
8804 _ACEOF
8805 if ac_fn_c_try_compile "$LINENO"
8806 then :
8807 xorg_cv_cc_flag_unused_command_line_argument=yes
8808 else case e in #(
8809 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8810 esac
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8813 esac
8814 fi
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8816 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8818 CFLAGS="$xorg_testset_save_CFLAGS"
8819 fi
8820
8821 found="no"
8822
8823 if test $found = "no" ; then
8824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826 fi
8827
8828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8830 fi
8831
8832 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8833
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8835 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8836 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8837 if eval test \${$cacheid+y}
8838 then :
8839 printf %s "(cached) " >&6
8840 else case e in #(
8841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 int i;
8844 int
8845 main (void)
8846 {
8847
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_c_try_link "$LINENO"
8853 then :
8854 eval $cacheid=yes
8855 else case e in #(
8856 e) eval $cacheid=no ;;
8857 esac
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8860 conftest$ac_exeext conftest.$ac_ext ;;
8861 esac
8862 fi
8863
8864
8865 CFLAGS="$xorg_testset_save_CFLAGS"
8866
8867 eval supported=\$$cacheid
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8869 printf "%s\n" "$supported" >&6; }
8870 if test "$supported" = "yes" ; then
8871 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8872 found="yes"
8873 fi
8874 fi
8875
8876 if test $found = "no" ; then
8877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8879 fi
8880
8881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883 fi
8884
8885 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8886
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8888 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8889 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8890 if eval test \${$cacheid+y}
8891 then :
8892 printf %s "(cached) " >&6
8893 else case e in #(
8894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 int i;
8897 int
8898 main (void)
8899 {
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_link "$LINENO"
8906 then :
8907 eval $cacheid=yes
8908 else case e in #(
8909 e) eval $cacheid=no ;;
8910 esac
8911 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8913 conftest$ac_exeext conftest.$ac_ext ;;
8914 esac
8915 fi
8916
8917
8918 CFLAGS="$xorg_testset_save_CFLAGS"
8919
8920 eval supported=\$$cacheid
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8922 printf "%s\n" "$supported" >&6; }
8923 if test "$supported" = "yes" ; then
8924 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8925 found="yes"
8926 fi
8927 fi
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943 xorg_testset_save_CFLAGS="$CFLAGS"
8944
8945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8949 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else case e in #(
8953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 int i;
8956 _ACEOF
8957 if ac_fn_c_try_compile "$LINENO"
8958 then :
8959 xorg_cv_cc_flag_unknown_warning_option=yes
8960 else case e in #(
8961 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8962 esac
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8965 esac
8966 fi
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8970 CFLAGS="$xorg_testset_save_CFLAGS"
8971 fi
8972
8973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8976 fi
8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8981 then :
8982 printf %s "(cached) " >&6
8983 else case e in #(
8984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 int i;
8987 _ACEOF
8988 if ac_fn_c_try_compile "$LINENO"
8989 then :
8990 xorg_cv_cc_flag_unused_command_line_argument=yes
8991 else case e in #(
8992 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8993 esac
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8996 esac
8997 fi
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9001 CFLAGS="$xorg_testset_save_CFLAGS"
9002 fi
9003
9004 found="no"
9005
9006 if test $found = "no" ; then
9007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009 fi
9010
9011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013 fi
9014
9015 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9016
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9018 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9019 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9020 if eval test \${$cacheid+y}
9021 then :
9022 printf %s "(cached) " >&6
9023 else case e in #(
9024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 int i;
9027 int
9028 main (void)
9029 {
9030
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 if ac_fn_c_try_link "$LINENO"
9036 then :
9037 eval $cacheid=yes
9038 else case e in #(
9039 e) eval $cacheid=no ;;
9040 esac
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9043 conftest$ac_exeext conftest.$ac_ext ;;
9044 esac
9045 fi
9046
9047
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049
9050 eval supported=\$$cacheid
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9052 printf "%s\n" "$supported" >&6; }
9053 if test "$supported" = "yes" ; then
9054 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9055 found="yes"
9056 fi
9057 fi
9058
9059 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9060 else
9061 { 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
9062 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;}
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076 xorg_testset_save_CFLAGS="$CFLAGS"
9077
9078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else case e in #(
9086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 int i;
9089 _ACEOF
9090 if ac_fn_c_try_compile "$LINENO"
9091 then :
9092 xorg_cv_cc_flag_unknown_warning_option=yes
9093 else case e in #(
9094 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9095 esac
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9098 esac
9099 fi
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9103 CFLAGS="$xorg_testset_save_CFLAGS"
9104 fi
9105
9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109 fi
9110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9114 then :
9115 printf %s "(cached) " >&6
9116 else case e in #(
9117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 int i;
9120 _ACEOF
9121 if ac_fn_c_try_compile "$LINENO"
9122 then :
9123 xorg_cv_cc_flag_unused_command_line_argument=yes
9124 else case e in #(
9125 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9126 esac
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9129 esac
9130 fi
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134 CFLAGS="$xorg_testset_save_CFLAGS"
9135 fi
9136
9137 found="no"
9138
9139 if test $found = "no" ; then
9140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142 fi
9143
9144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146 fi
9147
9148 CFLAGS="$CFLAGS -Wimplicit"
9149
9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9151 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9152 cacheid=xorg_cv_cc_flag__Wimplicit
9153 if eval test \${$cacheid+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else case e in #(
9157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 int
9161 main (void)
9162 {
9163
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"
9169 then :
9170 eval $cacheid=yes
9171 else case e in #(
9172 e) eval $cacheid=no ;;
9173 esac
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9176 conftest$ac_exeext conftest.$ac_ext ;;
9177 esac
9178 fi
9179
9180
9181 CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183 eval supported=\$$cacheid
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185 printf "%s\n" "$supported" >&6; }
9186 if test "$supported" = "yes" ; then
9187 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9188 found="yes"
9189 fi
9190 fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206 xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9213 then :
9214 printf %s "(cached) " >&6
9215 else case e in #(
9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 int i;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"
9221 then :
9222 xorg_cv_cc_flag_unknown_warning_option=yes
9223 else case e in #(
9224 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9225 esac
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9228 esac
9229 fi
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234 fi
9235
9236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239 fi
9240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9244 then :
9245 printf %s "(cached) " >&6
9246 else case e in #(
9247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 int i;
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"
9252 then :
9253 xorg_cv_cc_flag_unused_command_line_argument=yes
9254 else case e in #(
9255 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9256 esac
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9259 esac
9260 fi
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9264 CFLAGS="$xorg_testset_save_CFLAGS"
9265 fi
9266
9267 found="no"
9268
9269 if test $found = "no" ; then
9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272 fi
9273
9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276 fi
9277
9278 CFLAGS="$CFLAGS -Wnonnull"
9279
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9281 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9282 cacheid=xorg_cv_cc_flag__Wnonnull
9283 if eval test \${$cacheid+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else case e in #(
9287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 int
9291 main (void)
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"
9299 then :
9300 eval $cacheid=yes
9301 else case e in #(
9302 e) eval $cacheid=no ;;
9303 esac
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306 conftest$ac_exeext conftest.$ac_ext ;;
9307 esac
9308 fi
9309
9310
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313 eval supported=\$$cacheid
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315 printf "%s\n" "$supported" >&6; }
9316 if test "$supported" = "yes" ; then
9317 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9318 found="yes"
9319 fi
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 xorg_testset_save_CFLAGS="$CFLAGS"
9337
9338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9342 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9343 then :
9344 printf %s "(cached) " >&6
9345 else case e in #(
9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 int i;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"
9351 then :
9352 xorg_cv_cc_flag_unknown_warning_option=yes
9353 else case e in #(
9354 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9355 esac
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9358 esac
9359 fi
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364 fi
9365
9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369 fi
9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9374 then :
9375 printf %s "(cached) " >&6
9376 else case e in #(
9377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 int i;
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"
9382 then :
9383 xorg_cv_cc_flag_unused_command_line_argument=yes
9384 else case e in #(
9385 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9386 esac
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9389 esac
9390 fi
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9394 CFLAGS="$xorg_testset_save_CFLAGS"
9395 fi
9396
9397 found="no"
9398
9399 if test $found = "no" ; then
9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402 fi
9403
9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406 fi
9407
9408 CFLAGS="$CFLAGS -Winit-self"
9409
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9411 printf %s "checking if $CC supports -Winit-self... " >&6; }
9412 cacheid=xorg_cv_cc_flag__Winit_self
9413 if eval test \${$cacheid+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else case e in #(
9417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 int i;
9420 int
9421 main (void)
9422 {
9423
9424 ;
9425 return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"
9429 then :
9430 eval $cacheid=yes
9431 else case e in #(
9432 e) eval $cacheid=no ;;
9433 esac
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9436 conftest$ac_exeext conftest.$ac_ext ;;
9437 esac
9438 fi
9439
9440
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443 eval supported=\$$cacheid
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445 printf "%s\n" "$supported" >&6; }
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9448 found="yes"
9449 fi
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466 xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9473 then :
9474 printf %s "(cached) " >&6
9475 else case e in #(
9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 int i;
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"
9481 then :
9482 xorg_cv_cc_flag_unknown_warning_option=yes
9483 else case e in #(
9484 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9485 esac
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9488 esac
9489 fi
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494 fi
9495
9496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499 fi
9500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9504 then :
9505 printf %s "(cached) " >&6
9506 else case e in #(
9507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 int i;
9510 _ACEOF
9511 if ac_fn_c_try_compile "$LINENO"
9512 then :
9513 xorg_cv_cc_flag_unused_command_line_argument=yes
9514 else case e in #(
9515 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9516 esac
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9519 esac
9520 fi
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9524 CFLAGS="$xorg_testset_save_CFLAGS"
9525 fi
9526
9527 found="no"
9528
9529 if test $found = "no" ; then
9530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532 fi
9533
9534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536 fi
9537
9538 CFLAGS="$CFLAGS -Wmain"
9539
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9541 printf %s "checking if $CC supports -Wmain... " >&6; }
9542 cacheid=xorg_cv_cc_flag__Wmain
9543 if eval test \${$cacheid+y}
9544 then :
9545 printf %s "(cached) " >&6
9546 else case e in #(
9547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 int i;
9550 int
9551 main (void)
9552 {
9553
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"
9559 then :
9560 eval $cacheid=yes
9561 else case e in #(
9562 e) eval $cacheid=no ;;
9563 esac
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9566 conftest$ac_exeext conftest.$ac_ext ;;
9567 esac
9568 fi
9569
9570
9571 CFLAGS="$xorg_testset_save_CFLAGS"
9572
9573 eval supported=\$$cacheid
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9575 printf "%s\n" "$supported" >&6; }
9576 if test "$supported" = "yes" ; then
9577 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9578 found="yes"
9579 fi
9580 fi
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596 xorg_testset_save_CFLAGS="$CFLAGS"
9597
9598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9602 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"
9611 then :
9612 xorg_cv_cc_flag_unknown_warning_option=yes
9613 else case e in #(
9614 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9615 esac
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618 esac
9619 fi
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9625
9626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629 fi
9630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9634 then :
9635 printf %s "(cached) " >&6
9636 else case e in #(
9637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639 int i;
9640 _ACEOF
9641 if ac_fn_c_try_compile "$LINENO"
9642 then :
9643 xorg_cv_cc_flag_unused_command_line_argument=yes
9644 else case e in #(
9645 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9646 esac
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9649 esac
9650 fi
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9652 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9654 CFLAGS="$xorg_testset_save_CFLAGS"
9655 fi
9656
9657 found="no"
9658
9659 if test $found = "no" ; then
9660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662 fi
9663
9664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666 fi
9667
9668 CFLAGS="$CFLAGS -Wmissing-braces"
9669
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9671 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9672 cacheid=xorg_cv_cc_flag__Wmissing_braces
9673 if eval test \${$cacheid+y}
9674 then :
9675 printf %s "(cached) " >&6
9676 else case e in #(
9677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 int
9681 main (void)
9682 {
9683
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"
9689 then :
9690 eval $cacheid=yes
9691 else case e in #(
9692 e) eval $cacheid=no ;;
9693 esac
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9696 conftest$ac_exeext conftest.$ac_ext ;;
9697 esac
9698 fi
9699
9700
9701 CFLAGS="$xorg_testset_save_CFLAGS"
9702
9703 eval supported=\$$cacheid
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9705 printf "%s\n" "$supported" >&6; }
9706 if test "$supported" = "yes" ; then
9707 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9708 found="yes"
9709 fi
9710 fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726 xorg_testset_save_CFLAGS="$CFLAGS"
9727
9728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9732 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9733 then :
9734 printf %s "(cached) " >&6
9735 else case e in #(
9736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 _ACEOF
9740 if ac_fn_c_try_compile "$LINENO"
9741 then :
9742 xorg_cv_cc_flag_unknown_warning_option=yes
9743 else case e in #(
9744 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9745 esac
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9748 esac
9749 fi
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754 fi
9755
9756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759 fi
9760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9764 then :
9765 printf %s "(cached) " >&6
9766 else case e in #(
9767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int i;
9770 _ACEOF
9771 if ac_fn_c_try_compile "$LINENO"
9772 then :
9773 xorg_cv_cc_flag_unused_command_line_argument=yes
9774 else case e in #(
9775 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9776 esac
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9779 esac
9780 fi
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9782 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9784 CFLAGS="$xorg_testset_save_CFLAGS"
9785 fi
9786
9787 found="no"
9788
9789 if test $found = "no" ; then
9790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792 fi
9793
9794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9796 fi
9797
9798 CFLAGS="$CFLAGS -Wsequence-point"
9799
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9801 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9802 cacheid=xorg_cv_cc_flag__Wsequence_point
9803 if eval test \${$cacheid+y}
9804 then :
9805 printf %s "(cached) " >&6
9806 else case e in #(
9807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 int i;
9810 int
9811 main (void)
9812 {
9813
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_link "$LINENO"
9819 then :
9820 eval $cacheid=yes
9821 else case e in #(
9822 e) eval $cacheid=no ;;
9823 esac
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9826 conftest$ac_exeext conftest.$ac_ext ;;
9827 esac
9828 fi
9829
9830
9831 CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833 eval supported=\$$cacheid
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835 printf "%s\n" "$supported" >&6; }
9836 if test "$supported" = "yes" ; then
9837 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9838 found="yes"
9839 fi
9840 fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856 xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9863 then :
9864 printf %s "(cached) " >&6
9865 else case e in #(
9866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 int i;
9869 _ACEOF
9870 if ac_fn_c_try_compile "$LINENO"
9871 then :
9872 xorg_cv_cc_flag_unknown_warning_option=yes
9873 else case e in #(
9874 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9875 esac
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9878 esac
9879 fi
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894 then :
9895 printf %s "(cached) " >&6
9896 else case e in #(
9897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 int i;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"
9902 then :
9903 xorg_cv_cc_flag_unused_command_line_argument=yes
9904 else case e in #(
9905 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9906 esac
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9909 esac
9910 fi
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9912 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9914 CFLAGS="$xorg_testset_save_CFLAGS"
9915 fi
9916
9917 found="no"
9918
9919 if test $found = "no" ; then
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 fi
9923
9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926 fi
9927
9928 CFLAGS="$CFLAGS -Wreturn-type"
9929
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9931 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9932 cacheid=xorg_cv_cc_flag__Wreturn_type
9933 if eval test \${$cacheid+y}
9934 then :
9935 printf %s "(cached) " >&6
9936 else case e in #(
9937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 int i;
9940 int
9941 main (void)
9942 {
9943
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 if ac_fn_c_try_link "$LINENO"
9949 then :
9950 eval $cacheid=yes
9951 else case e in #(
9952 e) eval $cacheid=no ;;
9953 esac
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9956 conftest$ac_exeext conftest.$ac_ext ;;
9957 esac
9958 fi
9959
9960
9961 CFLAGS="$xorg_testset_save_CFLAGS"
9962
9963 eval supported=\$$cacheid
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9965 printf "%s\n" "$supported" >&6; }
9966 if test "$supported" = "yes" ; then
9967 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9968 found="yes"
9969 fi
9970 fi
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986 xorg_testset_save_CFLAGS="$CFLAGS"
9987
9988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9992 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9993 then :
9994 printf %s "(cached) " >&6
9995 else case e in #(
9996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 int i;
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"
10001 then :
10002 xorg_cv_cc_flag_unknown_warning_option=yes
10003 else case e in #(
10004 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10005 esac
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10008 esac
10009 fi
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013 CFLAGS="$xorg_testset_save_CFLAGS"
10014 fi
10015
10016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019 fi
10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10024 then :
10025 printf %s "(cached) " >&6
10026 else case e in #(
10027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 int i;
10030 _ACEOF
10031 if ac_fn_c_try_compile "$LINENO"
10032 then :
10033 xorg_cv_cc_flag_unused_command_line_argument=yes
10034 else case e in #(
10035 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10036 esac
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10039 esac
10040 fi
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10044 CFLAGS="$xorg_testset_save_CFLAGS"
10045 fi
10046
10047 found="no"
10048
10049 if test $found = "no" ; then
10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052 fi
10053
10054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10056 fi
10057
10058 CFLAGS="$CFLAGS -Wtrigraphs"
10059
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10061 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10062 cacheid=xorg_cv_cc_flag__Wtrigraphs
10063 if eval test \${$cacheid+y}
10064 then :
10065 printf %s "(cached) " >&6
10066 else case e in #(
10067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 int i;
10070 int
10071 main (void)
10072 {
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_link "$LINENO"
10079 then :
10080 eval $cacheid=yes
10081 else case e in #(
10082 e) eval $cacheid=no ;;
10083 esac
10084 fi
10085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10086 conftest$ac_exeext conftest.$ac_ext ;;
10087 esac
10088 fi
10089
10090
10091 CFLAGS="$xorg_testset_save_CFLAGS"
10092
10093 eval supported=\$$cacheid
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10095 printf "%s\n" "$supported" >&6; }
10096 if test "$supported" = "yes" ; then
10097 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10098 found="yes"
10099 fi
10100 fi
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116 xorg_testset_save_CFLAGS="$CFLAGS"
10117
10118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10121 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10122 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else case e in #(
10126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"
10131 then :
10132 xorg_cv_cc_flag_unknown_warning_option=yes
10133 else case e in #(
10134 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10135 esac
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138 esac
10139 fi
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10143 CFLAGS="$xorg_testset_save_CFLAGS"
10144 fi
10145
10146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10149 fi
10150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10154 then :
10155 printf %s "(cached) " >&6
10156 else case e in #(
10157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 int i;
10160 _ACEOF
10161 if ac_fn_c_try_compile "$LINENO"
10162 then :
10163 xorg_cv_cc_flag_unused_command_line_argument=yes
10164 else case e in #(
10165 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10166 esac
10167 fi
10168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10169 esac
10170 fi
10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10172 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10174 CFLAGS="$xorg_testset_save_CFLAGS"
10175 fi
10176
10177 found="no"
10178
10179 if test $found = "no" ; then
10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182 fi
10183
10184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10186 fi
10187
10188 CFLAGS="$CFLAGS -Warray-bounds"
10189
10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10191 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10192 cacheid=xorg_cv_cc_flag__Warray_bounds
10193 if eval test \${$cacheid+y}
10194 then :
10195 printf %s "(cached) " >&6
10196 else case e in #(
10197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 int
10201 main (void)
10202 {
10203
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"
10209 then :
10210 eval $cacheid=yes
10211 else case e in #(
10212 e) eval $cacheid=no ;;
10213 esac
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10216 conftest$ac_exeext conftest.$ac_ext ;;
10217 esac
10218 fi
10219
10220
10221 CFLAGS="$xorg_testset_save_CFLAGS"
10222
10223 eval supported=\$$cacheid
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10225 printf "%s\n" "$supported" >&6; }
10226 if test "$supported" = "yes" ; then
10227 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10228 found="yes"
10229 fi
10230 fi
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246 xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10253 then :
10254 printf %s "(cached) " >&6
10255 else case e in #(
10256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"
10261 then :
10262 xorg_cv_cc_flag_unknown_warning_option=yes
10263 else case e in #(
10264 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10265 esac
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10268 esac
10269 fi
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10271 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10273 CFLAGS="$xorg_testset_save_CFLAGS"
10274 fi
10275
10276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10279 fi
10280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10282 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10283 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10284 then :
10285 printf %s "(cached) " >&6
10286 else case e in #(
10287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 int i;
10290 _ACEOF
10291 if ac_fn_c_try_compile "$LINENO"
10292 then :
10293 xorg_cv_cc_flag_unused_command_line_argument=yes
10294 else case e in #(
10295 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10296 esac
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10299 esac
10300 fi
10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10304 CFLAGS="$xorg_testset_save_CFLAGS"
10305 fi
10306
10307 found="no"
10308
10309 if test $found = "no" ; then
10310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312 fi
10313
10314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316 fi
10317
10318 CFLAGS="$CFLAGS -Wwrite-strings"
10319
10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10321 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10322 cacheid=xorg_cv_cc_flag__Wwrite_strings
10323 if eval test \${$cacheid+y}
10324 then :
10325 printf %s "(cached) " >&6
10326 else case e in #(
10327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 int i;
10330 int
10331 main (void)
10332 {
10333
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"
10339 then :
10340 eval $cacheid=yes
10341 else case e in #(
10342 e) eval $cacheid=no ;;
10343 esac
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10346 conftest$ac_exeext conftest.$ac_ext ;;
10347 esac
10348 fi
10349
10350
10351 CFLAGS="$xorg_testset_save_CFLAGS"
10352
10353 eval supported=\$$cacheid
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10355 printf "%s\n" "$supported" >&6; }
10356 if test "$supported" = "yes" ; then
10357 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10358 found="yes"
10359 fi
10360 fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376 xorg_testset_save_CFLAGS="$CFLAGS"
10377
10378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10381 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10382 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10383 then :
10384 printf %s "(cached) " >&6
10385 else case e in #(
10386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int i;
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"
10391 then :
10392 xorg_cv_cc_flag_unknown_warning_option=yes
10393 else case e in #(
10394 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10395 esac
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10398 esac
10399 fi
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10401 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10403 CFLAGS="$xorg_testset_save_CFLAGS"
10404 fi
10405
10406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10409 fi
10410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10413 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10414 then :
10415 printf %s "(cached) " >&6
10416 else case e in #(
10417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419 int i;
10420 _ACEOF
10421 if ac_fn_c_try_compile "$LINENO"
10422 then :
10423 xorg_cv_cc_flag_unused_command_line_argument=yes
10424 else case e in #(
10425 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10426 esac
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10429 esac
10430 fi
10431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10432 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10434 CFLAGS="$xorg_testset_save_CFLAGS"
10435 fi
10436
10437 found="no"
10438
10439 if test $found = "no" ; then
10440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442 fi
10443
10444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10446 fi
10447
10448 CFLAGS="$CFLAGS -Waddress"
10449
10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10451 printf %s "checking if $CC supports -Waddress... " >&6; }
10452 cacheid=xorg_cv_cc_flag__Waddress
10453 if eval test \${$cacheid+y}
10454 then :
10455 printf %s "(cached) " >&6
10456 else case e in #(
10457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10459 int i;
10460 int
10461 main (void)
10462 {
10463
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"
10469 then :
10470 eval $cacheid=yes
10471 else case e in #(
10472 e) eval $cacheid=no ;;
10473 esac
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476 conftest$ac_exeext conftest.$ac_ext ;;
10477 esac
10478 fi
10479
10480
10481 CFLAGS="$xorg_testset_save_CFLAGS"
10482
10483 eval supported=\$$cacheid
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10485 printf "%s\n" "$supported" >&6; }
10486 if test "$supported" = "yes" ; then
10487 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10488 found="yes"
10489 fi
10490 fi
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506 xorg_testset_save_CFLAGS="$CFLAGS"
10507
10508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10512 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10513 then :
10514 printf %s "(cached) " >&6
10515 else case e in #(
10516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 int i;
10519 _ACEOF
10520 if ac_fn_c_try_compile "$LINENO"
10521 then :
10522 xorg_cv_cc_flag_unknown_warning_option=yes
10523 else case e in #(
10524 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10525 esac
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10528 esac
10529 fi
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10533 CFLAGS="$xorg_testset_save_CFLAGS"
10534 fi
10535
10536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539 fi
10540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10544 then :
10545 printf %s "(cached) " >&6
10546 else case e in #(
10547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 int i;
10550 _ACEOF
10551 if ac_fn_c_try_compile "$LINENO"
10552 then :
10553 xorg_cv_cc_flag_unused_command_line_argument=yes
10554 else case e in #(
10555 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10556 esac
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10559 esac
10560 fi
10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10564 CFLAGS="$xorg_testset_save_CFLAGS"
10565 fi
10566
10567 found="no"
10568
10569 if test $found = "no" ; then
10570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10572 fi
10573
10574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10576 fi
10577
10578 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10579
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10581 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10582 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10583 if eval test \${$cacheid+y}
10584 then :
10585 printf %s "(cached) " >&6
10586 else case e in #(
10587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 int i;
10590 int
10591 main (void)
10592 {
10593
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 if ac_fn_c_try_link "$LINENO"
10599 then :
10600 eval $cacheid=yes
10601 else case e in #(
10602 e) eval $cacheid=no ;;
10603 esac
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10606 conftest$ac_exeext conftest.$ac_ext ;;
10607 esac
10608 fi
10609
10610
10611 CFLAGS="$xorg_testset_save_CFLAGS"
10612
10613 eval supported=\$$cacheid
10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10615 printf "%s\n" "$supported" >&6; }
10616 if test "$supported" = "yes" ; then
10617 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10618 found="yes"
10619 fi
10620 fi
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636 xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else case e in #(
10646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 int i;
10649 _ACEOF
10650 if ac_fn_c_try_compile "$LINENO"
10651 then :
10652 xorg_cv_cc_flag_unknown_warning_option=yes
10653 else case e in #(
10654 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10655 esac
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10658 esac
10659 fi
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10661 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10663 CFLAGS="$xorg_testset_save_CFLAGS"
10664 fi
10665
10666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669 fi
10670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10672 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10673 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10674 then :
10675 printf %s "(cached) " >&6
10676 else case e in #(
10677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 int i;
10680 _ACEOF
10681 if ac_fn_c_try_compile "$LINENO"
10682 then :
10683 xorg_cv_cc_flag_unused_command_line_argument=yes
10684 else case e in #(
10685 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10686 esac
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10689 esac
10690 fi
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10694 CFLAGS="$xorg_testset_save_CFLAGS"
10695 fi
10696
10697 found="no"
10698
10699 if test $found = "no" ; then
10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702 fi
10703
10704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706 fi
10707
10708 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10709
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10711 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10712 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10713 if eval test \${$cacheid+y}
10714 then :
10715 printf %s "(cached) " >&6
10716 else case e in #(
10717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 int i;
10720 int
10721 main (void)
10722 {
10723
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"
10729 then :
10730 eval $cacheid=yes
10731 else case e in #(
10732 e) eval $cacheid=no ;;
10733 esac
10734 fi
10735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10736 conftest$ac_exeext conftest.$ac_ext ;;
10737 esac
10738 fi
10739
10740
10741 CFLAGS="$xorg_testset_save_CFLAGS"
10742
10743 eval supported=\$$cacheid
10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10745 printf "%s\n" "$supported" >&6; }
10746 if test "$supported" = "yes" ; then
10747 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10748 found="yes"
10749 fi
10750 fi
10751
10752
10753 fi
10754
10755
10756
10757
10758
10759
10760
10761 CWARNFLAGS="$BASE_CFLAGS"
10762 if test "x$GCC" = xyes ; then
10763 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10764 fi
10765
10766
10767
10768
10769
10770
10771
10772
10773 # Check whether --enable-strict-compilation was given.
10774 if test ${enable_strict_compilation+y}
10775 then :
10776 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10777 else case e in #(
10778 e) STRICT_COMPILE=no ;;
10779 esac
10780 fi
10781
10782
10783
10784
10785
10786
10787 STRICT_CFLAGS=""
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 xorg_testset_save_CFLAGS="$CFLAGS"
10802
10803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10806 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10807 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10808 then :
10809 printf %s "(cached) " >&6
10810 else case e in #(
10811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813 int i;
10814 _ACEOF
10815 if ac_fn_c_try_compile "$LINENO"
10816 then :
10817 xorg_cv_cc_flag_unknown_warning_option=yes
10818 else case e in #(
10819 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10820 esac
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10823 esac
10824 fi
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10826 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10828 CFLAGS="$xorg_testset_save_CFLAGS"
10829 fi
10830
10831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10834 fi
10835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10837 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10838 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10839 then :
10840 printf %s "(cached) " >&6
10841 else case e in #(
10842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 int i;
10845 _ACEOF
10846 if ac_fn_c_try_compile "$LINENO"
10847 then :
10848 xorg_cv_cc_flag_unused_command_line_argument=yes
10849 else case e in #(
10850 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10851 esac
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10854 esac
10855 fi
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10857 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10859 CFLAGS="$xorg_testset_save_CFLAGS"
10860 fi
10861
10862 found="no"
10863
10864 if test $found = "no" ; then
10865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10867 fi
10868
10869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10871 fi
10872
10873 CFLAGS="$CFLAGS -pedantic"
10874
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10876 printf %s "checking if $CC supports -pedantic... " >&6; }
10877 cacheid=xorg_cv_cc_flag__pedantic
10878 if eval test \${$cacheid+y}
10879 then :
10880 printf %s "(cached) " >&6
10881 else case e in #(
10882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884 int i;
10885 int
10886 main (void)
10887 {
10888
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"
10894 then :
10895 eval $cacheid=yes
10896 else case e in #(
10897 e) eval $cacheid=no ;;
10898 esac
10899 fi
10900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10901 conftest$ac_exeext conftest.$ac_ext ;;
10902 esac
10903 fi
10904
10905
10906 CFLAGS="$xorg_testset_save_CFLAGS"
10907
10908 eval supported=\$$cacheid
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10910 printf "%s\n" "$supported" >&6; }
10911 if test "$supported" = "yes" ; then
10912 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10913 found="yes"
10914 fi
10915 fi
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931 xorg_testset_save_CFLAGS="$CFLAGS"
10932
10933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10937 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10938 then :
10939 printf %s "(cached) " >&6
10940 else case e in #(
10941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 int i;
10944 _ACEOF
10945 if ac_fn_c_try_compile "$LINENO"
10946 then :
10947 xorg_cv_cc_flag_unknown_warning_option=yes
10948 else case e in #(
10949 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10950 esac
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10953 esac
10954 fi
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10958 CFLAGS="$xorg_testset_save_CFLAGS"
10959 fi
10960
10961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10964 fi
10965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10969 then :
10970 printf %s "(cached) " >&6
10971 else case e in #(
10972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10974 int i;
10975 _ACEOF
10976 if ac_fn_c_try_compile "$LINENO"
10977 then :
10978 xorg_cv_cc_flag_unused_command_line_argument=yes
10979 else case e in #(
10980 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10981 esac
10982 fi
10983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10984 esac
10985 fi
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10987 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10989 CFLAGS="$xorg_testset_save_CFLAGS"
10990 fi
10991
10992 found="no"
10993
10994 if test $found = "no" ; then
10995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10997 fi
10998
10999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11001 fi
11002
11003 CFLAGS="$CFLAGS -Werror"
11004
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11006 printf %s "checking if $CC supports -Werror... " >&6; }
11007 cacheid=xorg_cv_cc_flag__Werror
11008 if eval test \${$cacheid+y}
11009 then :
11010 printf %s "(cached) " >&6
11011 else case e in #(
11012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11014 int i;
11015 int
11016 main (void)
11017 {
11018
11019 ;
11020 return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"
11024 then :
11025 eval $cacheid=yes
11026 else case e in #(
11027 e) eval $cacheid=no ;;
11028 esac
11029 fi
11030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11031 conftest$ac_exeext conftest.$ac_ext ;;
11032 esac
11033 fi
11034
11035
11036 CFLAGS="$xorg_testset_save_CFLAGS"
11037
11038 eval supported=\$$cacheid
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11040 printf "%s\n" "$supported" >&6; }
11041 if test "$supported" = "yes" ; then
11042 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11043 found="yes"
11044 fi
11045 fi
11046
11047 if test $found = "no" ; then
11048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11050 fi
11051
11052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11054 fi
11055
11056 CFLAGS="$CFLAGS -errwarn"
11057
11058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11059 printf %s "checking if $CC supports -errwarn... " >&6; }
11060 cacheid=xorg_cv_cc_flag__errwarn
11061 if eval test \${$cacheid+y}
11062 then :
11063 printf %s "(cached) " >&6
11064 else case e in #(
11065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067 int i;
11068 int
11069 main (void)
11070 {
11071
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"
11077 then :
11078 eval $cacheid=yes
11079 else case e in #(
11080 e) eval $cacheid=no ;;
11081 esac
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11084 conftest$ac_exeext conftest.$ac_ext ;;
11085 esac
11086 fi
11087
11088
11089 CFLAGS="$xorg_testset_save_CFLAGS"
11090
11091 eval supported=\$$cacheid
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11093 printf "%s\n" "$supported" >&6; }
11094 if test "$supported" = "yes" ; then
11095 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11096 found="yes"
11097 fi
11098 fi
11099
11100
11101
11102 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11103 # activate it with -Werror, so we add it here explicitly.
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117 xorg_testset_save_CFLAGS="$CFLAGS"
11118
11119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11122 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11123 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11124 then :
11125 printf %s "(cached) " >&6
11126 else case e in #(
11127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129 int i;
11130 _ACEOF
11131 if ac_fn_c_try_compile "$LINENO"
11132 then :
11133 xorg_cv_cc_flag_unknown_warning_option=yes
11134 else case e in #(
11135 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11136 esac
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11139 esac
11140 fi
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11142 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11144 CFLAGS="$xorg_testset_save_CFLAGS"
11145 fi
11146
11147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11150 fi
11151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11153 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11154 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11155 then :
11156 printf %s "(cached) " >&6
11157 else case e in #(
11158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160 int i;
11161 _ACEOF
11162 if ac_fn_c_try_compile "$LINENO"
11163 then :
11164 xorg_cv_cc_flag_unused_command_line_argument=yes
11165 else case e in #(
11166 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11167 esac
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11170 esac
11171 fi
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11173 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11175 CFLAGS="$xorg_testset_save_CFLAGS"
11176 fi
11177
11178 found="no"
11179
11180 if test $found = "no" ; then
11181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11183 fi
11184
11185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11187 fi
11188
11189 CFLAGS="$CFLAGS -Werror=attributes"
11190
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11192 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11193 cacheid=xorg_cv_cc_flag__Werror_attributes
11194 if eval test \${$cacheid+y}
11195 then :
11196 printf %s "(cached) " >&6
11197 else case e in #(
11198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200 int i;
11201 int
11202 main (void)
11203 {
11204
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"
11210 then :
11211 eval $cacheid=yes
11212 else case e in #(
11213 e) eval $cacheid=no ;;
11214 esac
11215 fi
11216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11217 conftest$ac_exeext conftest.$ac_ext ;;
11218 esac
11219 fi
11220
11221
11222 CFLAGS="$xorg_testset_save_CFLAGS"
11223
11224 eval supported=\$$cacheid
11225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11226 printf "%s\n" "$supported" >&6; }
11227 if test "$supported" = "yes" ; then
11228 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11229 found="yes"
11230 fi
11231 fi
11232
11233
11234
11235 if test "x$STRICT_COMPILE" = "xyes"; then
11236 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11237 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11238 fi
11239
11240
11241
11242
11243
11244
11245
11246
11247 cat >>confdefs.h <<_ACEOF
11248 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11249 _ACEOF
11250
11251 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11252 if test "x$PVM" = "x"; then
11253 PVM="0"
11254 fi
11255
11256 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11257
11258 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11259 if test "x$PVP" = "x"; then
11260 PVP="0"
11261 fi
11262
11263 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11264
11265
11266
11267 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11268 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11269 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11270 touch \$(top_srcdir)/ChangeLog; \
11271 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11272
11273
11274
11275
11276 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11277 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11278 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11279 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11280 touch \$(top_srcdir)/INSTALL; \
11281 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11282
11283
11284
11285
11286
11287
11288 case $host_os in
11289 solaris*)
11290 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11291 # check for a man page file found in later versions that use
11292 # traditional section numbers instead
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11294 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11295 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11296 then :
11297 printf %s "(cached) " >&6
11298 else case e in #(
11299 e) test "$cross_compiling" = yes &&
11300 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11301 if test -r "/usr/share/man/man7/attributes.7"; then
11302 ac_cv_file__usr_share_man_man7_attributes_7=yes
11303 else
11304 ac_cv_file__usr_share_man_man7_attributes_7=no
11305 fi ;;
11306 esac
11307 fi
11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11309 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11310 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11311 then :
11312 SYSV_MAN_SECTIONS=false
11313 else case e in #(
11314 e) SYSV_MAN_SECTIONS=true ;;
11315 esac
11316 fi
11317
11318 ;;
11319 *) SYSV_MAN_SECTIONS=false ;;
11320 esac
11321
11322 if test x$APP_MAN_SUFFIX = x ; then
11323 APP_MAN_SUFFIX=1
11324 fi
11325 if test x$APP_MAN_DIR = x ; then
11326 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11327 fi
11328
11329 if test x$LIB_MAN_SUFFIX = x ; then
11330 LIB_MAN_SUFFIX=3
11331 fi
11332 if test x$LIB_MAN_DIR = x ; then
11333 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11334 fi
11335
11336 if test x$FILE_MAN_SUFFIX = x ; then
11337 case $SYSV_MAN_SECTIONS in
11338 true) FILE_MAN_SUFFIX=4 ;;
11339 *) FILE_MAN_SUFFIX=5 ;;
11340 esac
11341 fi
11342 if test x$FILE_MAN_DIR = x ; then
11343 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11344 fi
11345
11346 if test x$MISC_MAN_SUFFIX = x ; then
11347 case $SYSV_MAN_SECTIONS in
11348 true) MISC_MAN_SUFFIX=5 ;;
11349 *) MISC_MAN_SUFFIX=7 ;;
11350 esac
11351 fi
11352 if test x$MISC_MAN_DIR = x ; then
11353 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11354 fi
11355
11356 if test x$DRIVER_MAN_SUFFIX = x ; then
11357 case $SYSV_MAN_SECTIONS in
11358 true) DRIVER_MAN_SUFFIX=7 ;;
11359 *) DRIVER_MAN_SUFFIX=4 ;;
11360 esac
11361 fi
11362 if test x$DRIVER_MAN_DIR = x ; then
11363 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11364 fi
11365
11366 if test x$ADMIN_MAN_SUFFIX = x ; then
11367 case $SYSV_MAN_SECTIONS in
11368 true) ADMIN_MAN_SUFFIX=1m ;;
11369 *) ADMIN_MAN_SUFFIX=8 ;;
11370 esac
11371 fi
11372 if test x$ADMIN_MAN_DIR = x ; then
11373 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11374 fi
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390 XORG_MAN_PAGE="X Version 11"
11391
11392 MAN_SUBSTS="\
11393 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11394 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11395 -e 's|__xservername__|Xorg|g' \
11396 -e 's|__xconfigfile__|xorg.conf|g' \
11397 -e 's|__projectroot__|\$(prefix)|g' \
11398 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11399 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11400 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11401 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11402 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11403 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11404 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11405
11406
11407
11408 # Check whether --enable-silent-rules was given.
11409 if test ${enable_silent_rules+y}
11410 then :
11411 enableval=$enable_silent_rules;
11412 fi
11413
11414 case $enable_silent_rules in # (((
11415 yes) AM_DEFAULT_VERBOSITY=0;;
11416 no) AM_DEFAULT_VERBOSITY=1;;
11417 *) AM_DEFAULT_VERBOSITY=0;;
11418 esac
11419 am_make=${MAKE-make}
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11421 printf %s "checking whether $am_make supports nested variables... " >&6; }
11422 if test ${am_cv_make_support_nested_variables+y}
11423 then :
11424 printf %s "(cached) " >&6
11425 else case e in #(
11426 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11427 BAR0=false
11428 BAR1=true
11429 V=1
11430 am__doit:
11431 @$(TRUE)
11432 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11433 am_cv_make_support_nested_variables=yes
11434 else
11435 am_cv_make_support_nested_variables=no
11436 fi ;;
11437 esac
11438 fi
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11440 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11441 if test $am_cv_make_support_nested_variables = yes; then
11442 AM_V='$(V)'
11443 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11444 else
11445 AM_V=$AM_DEFAULT_VERBOSITY
11446 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11447 fi
11448 AM_BACKSLASH='\'
11449
11450
11451
11452
11453 # Checks for pkg-config packages
11454
11455 pkg_failed=no
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LISTRES" >&5
11457 printf %s "checking for LISTRES... " >&6; }
11458
11459 if test -n "$LISTRES_CFLAGS"; then
11460 pkg_cv_LISTRES_CFLAGS="$LISTRES_CFLAGS"
11461 elif test -n "$PKG_CONFIG"; then
11462 if test -n "$PKG_CONFIG" && \
11463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xproto xt xmu\""; } >&5
11464 ($PKG_CONFIG --exists --print-errors "xaw7 xproto xt xmu") 2>&5
11465 ac_status=$?
11466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467 test $ac_status = 0; }; then
11468 pkg_cv_LISTRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xproto xt xmu" 2>/dev/null`
11469 test "x$?" != "x0" && pkg_failed=yes
11470 else
11471 pkg_failed=yes
11472 fi
11473 else
11474 pkg_failed=untried
11475 fi
11476 if test -n "$LISTRES_LIBS"; then
11477 pkg_cv_LISTRES_LIBS="$LISTRES_LIBS"
11478 elif test -n "$PKG_CONFIG"; then
11479 if test -n "$PKG_CONFIG" && \
11480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xproto xt xmu\""; } >&5
11481 ($PKG_CONFIG --exists --print-errors "xaw7 xproto xt xmu") 2>&5
11482 ac_status=$?
11483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11484 test $ac_status = 0; }; then
11485 pkg_cv_LISTRES_LIBS=`$PKG_CONFIG --libs "xaw7 xproto xt xmu" 2>/dev/null`
11486 test "x$?" != "x0" && pkg_failed=yes
11487 else
11488 pkg_failed=yes
11489 fi
11490 else
11491 pkg_failed=untried
11492 fi
11493
11494
11495
11496 if test $pkg_failed = yes; then
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 printf "%s\n" "no" >&6; }
11499
11500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11501 _pkg_short_errors_supported=yes
11502 else
11503 _pkg_short_errors_supported=no
11504 fi
11505 if test $_pkg_short_errors_supported = yes; then
11506 LISTRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xproto xt xmu" 2>&1`
11507 else
11508 LISTRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xproto xt xmu" 2>&1`
11509 fi
11510 # Put the nasty error message in config.log where it belongs
11511 echo "$LISTRES_PKG_ERRORS" >&5
11512
11513 as_fn_error $? "Package requirements (xaw7 xproto xt xmu) were not met:
11514
11515 $LISTRES_PKG_ERRORS
11516
11517 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11518 installed software in a non-standard prefix.
11519
11520 Alternatively, you may set the environment variables LISTRES_CFLAGS
11521 and LISTRES_LIBS to avoid the need to call pkg-config.
11522 See the pkg-config man page for more details." "$LINENO" 5
11523 elif test $pkg_failed = untried; then
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 printf "%s\n" "no" >&6; }
11526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11527 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11528 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11529 is in your PATH or set the PKG_CONFIG environment variable to the full
11530 path to pkg-config.
11531
11532 Alternatively, you may set the environment variables LISTRES_CFLAGS
11533 and LISTRES_LIBS to avoid the need to call pkg-config.
11534 See the pkg-config man page for more details.
11535
11536 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11537 See 'config.log' for more details" "$LINENO" 5; }
11538 else
11539 LISTRES_CFLAGS=$pkg_cv_LISTRES_CFLAGS
11540 LISTRES_LIBS=$pkg_cv_LISTRES_LIBS
11541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 printf "%s\n" "yes" >&6; }
11543
11544 fi
11545
11546 ac_config_files="$ac_config_files Makefile man/Makefile"
11547
11548 cat >confcache <<\_ACEOF
11549 # This file is a shell script that caches the results of configure
11550 # tests run on this system so they can be shared between configure
11551 # scripts and configure runs, see configure's option --config-cache.
11552 # It is not useful on other systems. If it contains results you don't
11553 # want to keep, you may remove or edit it.
11554 #
11555 # config.status only pays attention to the cache file if you give it
11556 # the --recheck option to rerun configure.
11557 #
11558 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11559 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11560 # following values.
11561
11562 _ACEOF
11563
11564 # The following way of writing the cache mishandles newlines in values,
11565 # but we know of no workaround that is simple, portable, and efficient.
11566 # So, we kill variables containing newlines.
11567 # Ultrix sh set writes to stderr and can't be redirected directly,
11568 # and sets the high bit in the cache file unless we assign to the vars.
11569 (
11570 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11571 eval ac_val=\$$ac_var
11572 case $ac_val in #(
11573 *${as_nl}*)
11574 case $ac_var in #(
11575 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11576 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11577 esac
11578 case $ac_var in #(
11579 _ | IFS | as_nl) ;; #(
11580 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11581 *) { eval $ac_var=; unset $ac_var;} ;;
11582 esac ;;
11583 esac
11584 done
11585
11586 (set) 2>&1 |
11587 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11588 *${as_nl}ac_space=\ *)
11589 # 'set' does not quote correctly, so add quotes: double-quote
11590 # substitution turns \\\\ into \\, and sed turns \\ into \.
11591 sed -n \
11592 "s/'/'\\\\''/g;
11593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11594 ;; #(
11595 *)
11596 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11598 ;;
11599 esac |
11600 sort
11601 ) |
11602 sed '
11603 /^ac_cv_env_/b end
11604 t clear
11605 :clear
11606 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11607 t end
11608 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11609 :end' >>confcache
11610 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11611 if test -w "$cache_file"; then
11612 if test "x$cache_file" != "x/dev/null"; then
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11614 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11615 if test ! -f "$cache_file" || test -h "$cache_file"; then
11616 cat confcache >"$cache_file"
11617 else
11618 case $cache_file in #(
11619 */* | ?:*)
11620 mv -f confcache "$cache_file"$$ &&
11621 mv -f "$cache_file"$$ "$cache_file" ;; #(
11622 *)
11623 mv -f confcache "$cache_file" ;;
11624 esac
11625 fi
11626 fi
11627 else
11628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11629 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11630 fi
11631 fi
11632 rm -f confcache
11633
11634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11635 # Let make expand exec_prefix.
11636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11637
11638 DEFS=-DHAVE_CONFIG_H
11639
11640 ac_libobjs=
11641 ac_ltlibobjs=
11642 U=
11643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11644 # 1. Remove the extension, and $U if already installed.
11645 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11646 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11647 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11648 # will be set to the directory where LIBOBJS objects are built.
11649 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11650 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11651 done
11652 LIBOBJS=$ac_libobjs
11653
11654 LTLIBOBJS=$ac_ltlibobjs
11655
11656
11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11658 printf %s "checking that generated files are newer than configure... " >&6; }
11659 if test -n "$am_sleep_pid"; then
11660 # Hide warnings about reused PIDs.
11661 wait $am_sleep_pid 2>/dev/null
11662 fi
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11664 printf "%s\n" "done" >&6; }
11665 if test -n "$EXEEXT"; then
11666 am__EXEEXT_TRUE=
11667 am__EXEEXT_FALSE='#'
11668 else
11669 am__EXEEXT_TRUE='#'
11670 am__EXEEXT_FALSE=
11671 fi
11672
11673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11674 as_fn_error $? "conditional \"AMDEP\" was never defined.
11675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11676 fi
11677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11678 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11680 fi
11681
11682 : "${CONFIG_STATUS=./config.status}"
11683 ac_write_fail=0
11684 ac_clean_files_save=$ac_clean_files
11685 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11687 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11688 as_write_fail=0
11689 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11690 #! $SHELL
11691 # Generated by $as_me.
11692 # Run this file to recreate the current configuration.
11693 # Compiler output produced by configure, useful for debugging
11694 # configure, is in config.log if it exists.
11695
11696 debug=false
11697 ac_cs_recheck=false
11698 ac_cs_silent=false
11699
11700 SHELL=\${CONFIG_SHELL-$SHELL}
11701 export SHELL
11702 _ASEOF
11703 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11704 ## -------------------- ##
11705 ## M4sh Initialization. ##
11706 ## -------------------- ##
11707
11708 # Be more Bourne compatible
11709 DUALCASE=1; export DUALCASE # for MKS sh
11710 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11711 then :
11712 emulate sh
11713 NULLCMD=:
11714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11715 # is contrary to our usage. Disable this feature.
11716 alias -g '${1+"$@"}'='"$@"'
11717 setopt NO_GLOB_SUBST
11718 else case e in #(
11719 e) case `(set -o) 2>/dev/null` in #(
11720 *posix*) :
11721 set -o posix ;; #(
11722 *) :
11723 ;;
11724 esac ;;
11725 esac
11726 fi
11727
11728
11729
11730 # Reset variables that may have inherited troublesome values from
11731 # the environment.
11732
11733 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11734 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11735 # side effect of setting IFS to empty, thus disabling word splitting.)
11736 # Quoting is to prevent editors from complaining about space-tab.
11737 as_nl='
11738 '
11739 export as_nl
11740 IFS=" "" $as_nl"
11741
11742 PS1='$ '
11743 PS2='> '
11744 PS4='+ '
11745
11746 # Ensure predictable behavior from utilities with locale-dependent output.
11747 LC_ALL=C
11748 export LC_ALL
11749 LANGUAGE=C
11750 export LANGUAGE
11751
11752 # We cannot yet rely on "unset" to work, but we need these variables
11753 # to be unset--not just set to an empty or harmless value--now, to
11754 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11755 # also avoids known problems related to "unset" and subshell syntax
11756 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11757 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11758 do eval test \${$as_var+y} \
11759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11760 done
11761
11762 # Ensure that fds 0, 1, and 2 are open.
11763 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11764 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11765 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11766
11767 # The user is always right.
11768 if ${PATH_SEPARATOR+false} :; then
11769 PATH_SEPARATOR=:
11770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11772 PATH_SEPARATOR=';'
11773 }
11774 fi
11775
11776
11777 # Find who we are. Look in the path if we contain no directory separator.
11778 as_myself=
11779 case $0 in #((
11780 *[\\/]* ) as_myself=$0 ;;
11781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11783 do
11784 IFS=$as_save_IFS
11785 case $as_dir in #(((
11786 '') as_dir=./ ;;
11787 */) ;;
11788 *) as_dir=$as_dir/ ;;
11789 esac
11790 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11791 done
11792 IFS=$as_save_IFS
11793
11794 ;;
11795 esac
11796 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11797 # in which case we are not to be found in the path.
11798 if test "x$as_myself" = x; then
11799 as_myself=$0
11800 fi
11801 if test ! -f "$as_myself"; then
11802 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11803 exit 1
11804 fi
11805
11806
11807
11808 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11809 # ----------------------------------------
11810 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11811 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11812 # script with STATUS, using 1 if that was 0.
11813 as_fn_error ()
11814 {
11815 as_status=$1; test $as_status -eq 0 && as_status=1
11816 if test "$4"; then
11817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11819 fi
11820 printf "%s\n" "$as_me: error: $2" >&2
11821 as_fn_exit $as_status
11822 } # as_fn_error
11823
11824
11825 # as_fn_set_status STATUS
11826 # -----------------------
11827 # Set $? to STATUS, without forking.
11828 as_fn_set_status ()
11829 {
11830 return $1
11831 } # as_fn_set_status
11832
11833 # as_fn_exit STATUS
11834 # -----------------
11835 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11836 as_fn_exit ()
11837 {
11838 set +e
11839 as_fn_set_status $1
11840 exit $1
11841 } # as_fn_exit
11842
11843 # as_fn_unset VAR
11844 # ---------------
11845 # Portably unset VAR.
11846 as_fn_unset ()
11847 {
11848 { eval $1=; unset $1;}
11849 }
11850 as_unset=as_fn_unset
11851
11852 # as_fn_append VAR VALUE
11853 # ----------------------
11854 # Append the text in VALUE to the end of the definition contained in VAR. Take
11855 # advantage of any shell optimizations that allow amortized linear growth over
11856 # repeated appends, instead of the typical quadratic growth present in naive
11857 # implementations.
11858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11859 then :
11860 eval 'as_fn_append ()
11861 {
11862 eval $1+=\$2
11863 }'
11864 else case e in #(
11865 e) as_fn_append ()
11866 {
11867 eval $1=\$$1\$2
11868 } ;;
11869 esac
11870 fi # as_fn_append
11871
11872 # as_fn_arith ARG...
11873 # ------------------
11874 # Perform arithmetic evaluation on the ARGs, and store the result in the
11875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11876 # must be portable across $(()) and expr.
11877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11878 then :
11879 eval 'as_fn_arith ()
11880 {
11881 as_val=$(( $* ))
11882 }'
11883 else case e in #(
11884 e) as_fn_arith ()
11885 {
11886 as_val=`expr "$@" || test $? -eq 1`
11887 } ;;
11888 esac
11889 fi # as_fn_arith
11890
11891
11892 if expr a : '\(a\)' >/dev/null 2>&1 &&
11893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11894 as_expr=expr
11895 else
11896 as_expr=false
11897 fi
11898
11899 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11900 as_basename=basename
11901 else
11902 as_basename=false
11903 fi
11904
11905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11906 as_dirname=dirname
11907 else
11908 as_dirname=false
11909 fi
11910
11911 as_me=`$as_basename -- "$0" ||
11912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11913 X"$0" : 'X\(//\)$' \| \
11914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11915 printf "%s\n" X/"$0" |
11916 sed '/^.*\/\([^/][^/]*\)\/*$/{
11917 s//\1/
11918 q
11919 }
11920 /^X\/\(\/\/\)$/{
11921 s//\1/
11922 q
11923 }
11924 /^X\/\(\/\).*/{
11925 s//\1/
11926 q
11927 }
11928 s/.*/./; q'`
11929
11930 # Avoid depending upon Character Ranges.
11931 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11932 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11933 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11934 as_cr_digits='0123456789'
11935 as_cr_alnum=$as_cr_Letters$as_cr_digits
11936
11937
11938 # Determine whether it's possible to make 'echo' print without a newline.
11939 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11940 # for compatibility with existing Makefiles.
11941 ECHO_C= ECHO_N= ECHO_T=
11942 case `echo -n x` in #(((((
11943 -n*)
11944 case `echo 'xy\c'` in
11945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11946 xy) ECHO_C='\c';;
11947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11948 ECHO_T=' ';;
11949 esac;;
11950 *)
11951 ECHO_N='-n';;
11952 esac
11953
11954 # For backward compatibility with old third-party macros, we provide
11955 # the shell variables $as_echo and $as_echo_n. New code should use
11956 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11957 as_echo='printf %s\n'
11958 as_echo_n='printf %s'
11959
11960 rm -f conf$$ conf$$.exe conf$$.file
11961 if test -d conf$$.dir; then
11962 rm -f conf$$.dir/conf$$.file
11963 else
11964 rm -f conf$$.dir
11965 mkdir conf$$.dir 2>/dev/null
11966 fi
11967 if (echo >conf$$.file) 2>/dev/null; then
11968 if ln -s conf$$.file conf$$ 2>/dev/null; then
11969 as_ln_s='ln -s'
11970 # ... but there are two gotchas:
11971 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11972 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11973 # In both cases, we have to default to 'cp -pR'.
11974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11975 as_ln_s='cp -pR'
11976 elif ln conf$$.file conf$$ 2>/dev/null; then
11977 as_ln_s=ln
11978 else
11979 as_ln_s='cp -pR'
11980 fi
11981 else
11982 as_ln_s='cp -pR'
11983 fi
11984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11985 rmdir conf$$.dir 2>/dev/null
11986
11987
11988 # as_fn_mkdir_p
11989 # -------------
11990 # Create "$as_dir" as a directory, including parents if necessary.
11991 as_fn_mkdir_p ()
11992 {
11993
11994 case $as_dir in #(
11995 -*) as_dir=./$as_dir;;
11996 esac
11997 test -d "$as_dir" || eval $as_mkdir_p || {
11998 as_dirs=
11999 while :; do
12000 case $as_dir in #(
12001 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12002 *) as_qdir=$as_dir;;
12003 esac
12004 as_dirs="'$as_qdir' $as_dirs"
12005 as_dir=`$as_dirname -- "$as_dir" ||
12006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007 X"$as_dir" : 'X\(//\)[^/]' \| \
12008 X"$as_dir" : 'X\(//\)$' \| \
12009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12010 printf "%s\n" X"$as_dir" |
12011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12012 s//\1/
12013 q
12014 }
12015 /^X\(\/\/\)[^/].*/{
12016 s//\1/
12017 q
12018 }
12019 /^X\(\/\/\)$/{
12020 s//\1/
12021 q
12022 }
12023 /^X\(\/\).*/{
12024 s//\1/
12025 q
12026 }
12027 s/.*/./; q'`
12028 test -d "$as_dir" && break
12029 done
12030 test -z "$as_dirs" || eval "mkdir $as_dirs"
12031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12032
12033
12034 } # as_fn_mkdir_p
12035 if mkdir -p . 2>/dev/null; then
12036 as_mkdir_p='mkdir -p "$as_dir"'
12037 else
12038 test -d ./-p && rmdir ./-p
12039 as_mkdir_p=false
12040 fi
12041
12042
12043 # as_fn_executable_p FILE
12044 # -----------------------
12045 # Test if FILE is an executable regular file.
12046 as_fn_executable_p ()
12047 {
12048 test -f "$1" && test -x "$1"
12049 } # as_fn_executable_p
12050 as_test_x='test -x'
12051 as_executable_p=as_fn_executable_p
12052
12053 # Sed expression to map a string onto a valid CPP name.
12054 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12055 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12056
12057 # Sed expression to map a string onto a valid variable name.
12058 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12059 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12060
12061
12062 exec 6>&1
12063 ## ----------------------------------- ##
12064 ## Main body of $CONFIG_STATUS script. ##
12065 ## ----------------------------------- ##
12066 _ASEOF
12067 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12068
12069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12070 # Save the log message, to keep $0 and so on meaningful, and to
12071 # report actual input values of CONFIG_FILES etc. instead of their
12072 # values after options handling.
12073 ac_log="
12074 This file was extended by listres $as_me 1.0.6, which was
12075 generated by GNU Autoconf 2.72. Invocation command line was
12076
12077 CONFIG_FILES = $CONFIG_FILES
12078 CONFIG_HEADERS = $CONFIG_HEADERS
12079 CONFIG_LINKS = $CONFIG_LINKS
12080 CONFIG_COMMANDS = $CONFIG_COMMANDS
12081 $ $0 $@
12082
12083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12084 "
12085
12086 _ACEOF
12087
12088 case $ac_config_files in *"
12089 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12090 esac
12091
12092 case $ac_config_headers in *"
12093 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12094 esac
12095
12096
12097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12098 # Files that config.status was made for.
12099 config_files="$ac_config_files"
12100 config_headers="$ac_config_headers"
12101 config_commands="$ac_config_commands"
12102
12103 _ACEOF
12104
12105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12106 ac_cs_usage="\
12107 '$as_me' instantiates files and other configuration actions
12108 from templates according to the current configuration. Unless the files
12109 and actions are specified as TAGs, all are instantiated by default.
12110
12111 Usage: $0 [OPTION]... [TAG]...
12112
12113 -h, --help print this help, then exit
12114 -V, --version print version number and configuration settings, then exit
12115 --config print configuration, then exit
12116 -q, --quiet, --silent
12117 do not print progress messages
12118 -d, --debug don't remove temporary files
12119 --recheck update $as_me by reconfiguring in the same conditions
12120 --file=FILE[:TEMPLATE]
12121 instantiate the configuration file FILE
12122 --header=FILE[:TEMPLATE]
12123 instantiate the configuration header FILE
12124
12125 Configuration files:
12126 $config_files
12127
12128 Configuration headers:
12129 $config_headers
12130
12131 Configuration commands:
12132 $config_commands
12133
12134 Report bugs to <https://gitlab.freedesktop.org/xorg/app/listres/-/issues>."
12135
12136 _ACEOF
12137 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12138 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12140 ac_cs_config='$ac_cs_config_escaped'
12141 ac_cs_version="\\
12142 listres config.status 1.0.6
12143 configured by $0, generated by GNU Autoconf 2.72,
12144 with options \\"\$ac_cs_config\\"
12145
12146 Copyright (C) 2023 Free Software Foundation, Inc.
12147 This config.status script is free software; the Free Software Foundation
12148 gives unlimited permission to copy, distribute and modify it."
12149
12150 ac_pwd='$ac_pwd'
12151 srcdir='$srcdir'
12152 INSTALL='$INSTALL'
12153 MKDIR_P='$MKDIR_P'
12154 AWK='$AWK'
12155 test -n "\$AWK" || AWK=awk
12156 _ACEOF
12157
12158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12159 # The default lists apply if the user does not specify any file.
12160 ac_need_defaults=:
12161 while test $# != 0
12162 do
12163 case $1 in
12164 --*=?*)
12165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12166 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12167 ac_shift=:
12168 ;;
12169 --*=)
12170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12171 ac_optarg=
12172 ac_shift=:
12173 ;;
12174 *)
12175 ac_option=$1
12176 ac_optarg=$2
12177 ac_shift=shift
12178 ;;
12179 esac
12180
12181 case $ac_option in
12182 # Handling of the options.
12183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12184 ac_cs_recheck=: ;;
12185 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12186 printf "%s\n" "$ac_cs_version"; exit ;;
12187 --config | --confi | --conf | --con | --co | --c )
12188 printf "%s\n" "$ac_cs_config"; exit ;;
12189 --debug | --debu | --deb | --de | --d | -d )
12190 debug=: ;;
12191 --file | --fil | --fi | --f )
12192 $ac_shift
12193 case $ac_optarg in
12194 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12195 '') as_fn_error $? "missing file argument" ;;
12196 esac
12197 as_fn_append CONFIG_FILES " '$ac_optarg'"
12198 ac_need_defaults=false;;
12199 --header | --heade | --head | --hea )
12200 $ac_shift
12201 case $ac_optarg in
12202 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12203 esac
12204 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12205 ac_need_defaults=false;;
12206 --he | --h)
12207 # Conflict between --help and --header
12208 as_fn_error $? "ambiguous option: '$1'
12209 Try '$0 --help' for more information.";;
12210 --help | --hel | -h )
12211 printf "%s\n" "$ac_cs_usage"; exit ;;
12212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12214 ac_cs_silent=: ;;
12215
12216 # This is an error.
12217 -*) as_fn_error $? "unrecognized option: '$1'
12218 Try '$0 --help' for more information." ;;
12219
12220 *) as_fn_append ac_config_targets " $1"
12221 ac_need_defaults=false ;;
12222
12223 esac
12224 shift
12225 done
12226
12227 ac_configure_extra_args=
12228
12229 if $ac_cs_silent; then
12230 exec 6>/dev/null
12231 ac_configure_extra_args="$ac_configure_extra_args --silent"
12232 fi
12233
12234 _ACEOF
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236 if \$ac_cs_recheck; then
12237 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12238 shift
12239 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12240 CONFIG_SHELL='$SHELL'
12241 export CONFIG_SHELL
12242 exec "\$@"
12243 fi
12244
12245 _ACEOF
12246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12247 exec 5>>config.log
12248 {
12249 echo
12250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12251 ## Running $as_me. ##
12252 _ASBOX
12253 printf "%s\n" "$ac_log"
12254 } >&5
12255
12256 _ACEOF
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258 #
12259 # INIT-COMMANDS
12260 #
12261 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12262
12263 _ACEOF
12264
12265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266
12267 # Handling of arguments.
12268 for ac_config_target in $ac_config_targets
12269 do
12270 case $ac_config_target in
12271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12272 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12274 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12275
12276 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12277 esac
12278 done
12279
12280
12281 # If the user did not use the arguments to specify the items to instantiate,
12282 # then the envvar interface is used. Set only those that are not.
12283 # We use the long form for the default assignment because of an extremely
12284 # bizarre bug on SunOS 4.1.3.
12285 if $ac_need_defaults; then
12286 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12287 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12288 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12289 fi
12290
12291 # Have a temporary directory for convenience. Make it in the build tree
12292 # simply because there is no reason against having it here, and in addition,
12293 # creating and moving files from /tmp can sometimes cause problems.
12294 # Hook for its removal unless debugging.
12295 # Note that there is a small window in which the directory will not be cleaned:
12296 # after its creation but before its name has been assigned to '$tmp'.
12297 $debug ||
12298 {
12299 tmp= ac_tmp=
12300 trap 'exit_status=$?
12301 : "${ac_tmp:=$tmp}"
12302 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12303 ' 0
12304 trap 'as_fn_exit 1' 1 2 13 15
12305 }
12306 # Create a (secure) tmp directory for tmp files.
12307
12308 {
12309 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12310 test -d "$tmp"
12311 } ||
12312 {
12313 tmp=./conf$$-$RANDOM
12314 (umask 077 && mkdir "$tmp")
12315 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12316 ac_tmp=$tmp
12317
12318 # Set up the scripts for CONFIG_FILES section.
12319 # No need to generate them if there are no CONFIG_FILES.
12320 # This happens for instance with './config.status config.h'.
12321 if test -n "$CONFIG_FILES"; then
12322
12323
12324 ac_cr=`echo X | tr X '\015'`
12325 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12326 # But we know of no other shell where ac_cr would be empty at this
12327 # point, so we can use a bashism as a fallback.
12328 if test "x$ac_cr" = x; then
12329 eval ac_cr=\$\'\\r\'
12330 fi
12331 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12332 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12333 ac_cs_awk_cr='\\r'
12334 else
12335 ac_cs_awk_cr=$ac_cr
12336 fi
12337
12338 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12339 _ACEOF
12340
12341
12342 {
12343 echo "cat >conf$$subs.awk <<_ACEOF" &&
12344 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12345 echo "_ACEOF"
12346 } >conf$$subs.sh ||
12347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12348 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12349 ac_delim='%!_!# '
12350 for ac_last_try in false false false false false :; do
12351 . ./conf$$subs.sh ||
12352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12353
12354 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12355 if test $ac_delim_n = $ac_delim_num; then
12356 break
12357 elif $ac_last_try; then
12358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12359 else
12360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12361 fi
12362 done
12363 rm -f conf$$subs.sh
12364
12365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12367 _ACEOF
12368 sed -n '
12369 h
12370 s/^/S["/; s/!.*/"]=/
12371 p
12372 g
12373 s/^[^!]*!//
12374 :repl
12375 t repl
12376 s/'"$ac_delim"'$//
12377 t delim
12378 :nl
12379 h
12380 s/\(.\{148\}\)..*/\1/
12381 t more1
12382 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12383 p
12384 n
12385 b repl
12386 :more1
12387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12388 p
12389 g
12390 s/.\{148\}//
12391 t nl
12392 :delim
12393 h
12394 s/\(.\{148\}\)..*/\1/
12395 t more2
12396 s/["\\]/\\&/g; s/^/"/; s/$/"/
12397 p
12398 b
12399 :more2
12400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12401 p
12402 g
12403 s/.\{148\}//
12404 t delim
12405 ' <conf$$subs.awk | sed '
12406 /^[^""]/{
12407 N
12408 s/\n//
12409 }
12410 ' >>$CONFIG_STATUS || ac_write_fail=1
12411 rm -f conf$$subs.awk
12412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12413 _ACAWK
12414 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12415 for (key in S) S_is_set[key] = 1
12416 FS = ""
12417
12418 }
12419 {
12420 line = $ 0
12421 nfields = split(line, field, "@")
12422 substed = 0
12423 len = length(field[1])
12424 for (i = 2; i < nfields; i++) {
12425 key = field[i]
12426 keylen = length(key)
12427 if (S_is_set[key]) {
12428 value = S[key]
12429 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12430 len += length(value) + length(field[++i])
12431 substed = 1
12432 } else
12433 len += 1 + keylen
12434 }
12435
12436 print line
12437 }
12438
12439 _ACAWK
12440 _ACEOF
12441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12442 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12443 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12444 else
12445 cat
12446 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12447 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12448 _ACEOF
12449
12450 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12451 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12452 # trailing colons and then remove the whole line if VPATH becomes empty
12453 # (actually we leave an empty line to preserve line numbers).
12454 if test "x$srcdir" = x.; then
12455 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12456 h
12457 s///
12458 s/^/:/
12459 s/[ ]*$/:/
12460 s/:\$(srcdir):/:/g
12461 s/:\${srcdir}:/:/g
12462 s/:@srcdir@:/:/g
12463 s/^:*//
12464 s/:*$//
12465 x
12466 s/\(=[ ]*\).*/\1/
12467 G
12468 s/\n//
12469 s/^[^=]*=[ ]*$//
12470 }'
12471 fi
12472
12473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474 fi # test -n "$CONFIG_FILES"
12475
12476 # Set up the scripts for CONFIG_HEADERS section.
12477 # No need to generate them if there are no CONFIG_HEADERS.
12478 # This happens for instance with './config.status Makefile'.
12479 if test -n "$CONFIG_HEADERS"; then
12480 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12481 BEGIN {
12482 _ACEOF
12483
12484 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12485 # here-document in config.status, that substitutes the proper values into
12486 # config.h.in to produce config.h.
12487
12488 # Create a delimiter string that does not exist in confdefs.h, to ease
12489 # handling of long lines.
12490 ac_delim='%!_!# '
12491 for ac_last_try in false false :; do
12492 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12493 if test -z "$ac_tt"; then
12494 break
12495 elif $ac_last_try; then
12496 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12497 else
12498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12499 fi
12500 done
12501
12502 # For the awk script, D is an array of macro values keyed by name,
12503 # likewise P contains macro parameters if any. Preserve backslash
12504 # newline sequences.
12505
12506 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12507 sed -n '
12508 s/.\{148\}/&'"$ac_delim"'/g
12509 t rset
12510 :rset
12511 s/^[ ]*#[ ]*define[ ][ ]*/ /
12512 t def
12513 d
12514 :def
12515 s/\\$//
12516 t bsnl
12517 s/["\\]/\\&/g
12518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12519 D["\1"]=" \3"/p
12520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12521 d
12522 :bsnl
12523 s/["\\]/\\&/g
12524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12525 D["\1"]=" \3\\\\\\n"\\/p
12526 t cont
12527 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12528 t cont
12529 d
12530 :cont
12531 n
12532 s/.\{148\}/&'"$ac_delim"'/g
12533 t clear
12534 :clear
12535 s/\\$//
12536 t bsnlc
12537 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12538 d
12539 :bsnlc
12540 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12541 b cont
12542 ' <confdefs.h | sed '
12543 s/'"$ac_delim"'/"\\\
12544 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12545
12546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12547 for (key in D) D_is_set[key] = 1
12548 FS = ""
12549 }
12550 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12551 line = \$ 0
12552 split(line, arg, " ")
12553 if (arg[1] == "#") {
12554 defundef = arg[2]
12555 mac1 = arg[3]
12556 } else {
12557 defundef = substr(arg[1], 2)
12558 mac1 = arg[2]
12559 }
12560 split(mac1, mac2, "(") #)
12561 macro = mac2[1]
12562 prefix = substr(line, 1, index(line, defundef) - 1)
12563 if (D_is_set[macro]) {
12564 # Preserve the white space surrounding the "#".
12565 print prefix "define", macro P[macro] D[macro]
12566 next
12567 } else {
12568 # Replace #undef with comments. This is necessary, for example,
12569 # in the case of _POSIX_SOURCE, which is predefined and required
12570 # on some systems where configure will not decide to define it.
12571 if (defundef == "undef") {
12572 print "/*", prefix defundef, macro, "*/"
12573 next
12574 }
12575 }
12576 }
12577 { print }
12578 _ACAWK
12579 _ACEOF
12580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12581 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12582 fi # test -n "$CONFIG_HEADERS"
12583
12584
12585 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12586 shift
12587 for ac_tag
12588 do
12589 case $ac_tag in
12590 :[FHLC]) ac_mode=$ac_tag; continue;;
12591 esac
12592 case $ac_mode$ac_tag in
12593 :[FHL]*:*);;
12594 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12595 :[FH]-) ac_tag=-:-;;
12596 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12597 esac
12598 ac_save_IFS=$IFS
12599 IFS=:
12600 set x $ac_tag
12601 IFS=$ac_save_IFS
12602 shift
12603 ac_file=$1
12604 shift
12605
12606 case $ac_mode in
12607 :L) ac_source=$1;;
12608 :[FH])
12609 ac_file_inputs=
12610 for ac_f
12611 do
12612 case $ac_f in
12613 -) ac_f="$ac_tmp/stdin";;
12614 *) # Look for the file first in the build tree, then in the source tree
12615 # (if the path is not absolute). The absolute path cannot be DOS-style,
12616 # because $ac_f cannot contain ':'.
12617 test -f "$ac_f" ||
12618 case $ac_f in
12619 [\\/$]*) false;;
12620 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12621 esac ||
12622 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12623 esac
12624 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12625 as_fn_append ac_file_inputs " '$ac_f'"
12626 done
12627
12628 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12629 # use $as_me), people would be surprised to read:
12630 # /* config.h. Generated by config.status. */
12631 configure_input='Generated from '`
12632 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12633 `' by configure.'
12634 if test x"$ac_file" != x-; then
12635 configure_input="$ac_file. $configure_input"
12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12637 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12638 fi
12639 # Neutralize special characters interpreted by sed in replacement strings.
12640 case $configure_input in #(
12641 *\&* | *\|* | *\\* )
12642 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12643 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12644 *) ac_sed_conf_input=$configure_input;;
12645 esac
12646
12647 case $ac_tag in
12648 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12650 esac
12651 ;;
12652 esac
12653
12654 ac_dir=`$as_dirname -- "$ac_file" ||
12655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12656 X"$ac_file" : 'X\(//\)[^/]' \| \
12657 X"$ac_file" : 'X\(//\)$' \| \
12658 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12659 printf "%s\n" X"$ac_file" |
12660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12661 s//\1/
12662 q
12663 }
12664 /^X\(\/\/\)[^/].*/{
12665 s//\1/
12666 q
12667 }
12668 /^X\(\/\/\)$/{
12669 s//\1/
12670 q
12671 }
12672 /^X\(\/\).*/{
12673 s//\1/
12674 q
12675 }
12676 s/.*/./; q'`
12677 as_dir="$ac_dir"; as_fn_mkdir_p
12678 ac_builddir=.
12679
12680 case "$ac_dir" in
12681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12682 *)
12683 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12684 # A ".." for each directory in $ac_dir_suffix.
12685 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12686 case $ac_top_builddir_sub in
12687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12689 esac ;;
12690 esac
12691 ac_abs_top_builddir=$ac_pwd
12692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12693 # for backward compatibility:
12694 ac_top_builddir=$ac_top_build_prefix
12695
12696 case $srcdir in
12697 .) # We are building in place.
12698 ac_srcdir=.
12699 ac_top_srcdir=$ac_top_builddir_sub
12700 ac_abs_top_srcdir=$ac_pwd ;;
12701 [\\/]* | ?:[\\/]* ) # Absolute name.
12702 ac_srcdir=$srcdir$ac_dir_suffix;
12703 ac_top_srcdir=$srcdir
12704 ac_abs_top_srcdir=$srcdir ;;
12705 *) # Relative name.
12706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12707 ac_top_srcdir=$ac_top_build_prefix$srcdir
12708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12709 esac
12710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12711
12712
12713 case $ac_mode in
12714 :F)
12715 #
12716 # CONFIG_FILE
12717 #
12718
12719 case $INSTALL in
12720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12721 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12722 esac
12723 ac_MKDIR_P=$MKDIR_P
12724 case $MKDIR_P in
12725 [\\/$]* | ?:[\\/]* ) ;;
12726 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12727 esac
12728 _ACEOF
12729
12730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12731 # If the template does not know about datarootdir, expand it.
12732 # FIXME: This hack should be removed a few years after 2.60.
12733 ac_datarootdir_hack=; ac_datarootdir_seen=
12734 ac_sed_dataroot='
12735 /datarootdir/ {
12736 p
12737 q
12738 }
12739 /@datadir@/p
12740 /@docdir@/p
12741 /@infodir@/p
12742 /@localedir@/p
12743 /@mandir@/p'
12744 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12745 *datarootdir*) ac_datarootdir_seen=yes;;
12746 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12748 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12749 _ACEOF
12750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12751 ac_datarootdir_hack='
12752 s&@datadir@&$datadir&g
12753 s&@docdir@&$docdir&g
12754 s&@infodir@&$infodir&g
12755 s&@localedir@&$localedir&g
12756 s&@mandir@&$mandir&g
12757 s&\\\${datarootdir}&$datarootdir&g' ;;
12758 esac
12759 _ACEOF
12760
12761 # Neutralize VPATH when '$srcdir' = '.'.
12762 # Shell code in configure.ac might set extrasub.
12763 # FIXME: do we really want to maintain this feature?
12764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12765 ac_sed_extra="$ac_vpsub
12766 $extrasub
12767 _ACEOF
12768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769 :t
12770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12771 s|@configure_input@|$ac_sed_conf_input|;t t
12772 s&@top_builddir@&$ac_top_builddir_sub&;t t
12773 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12774 s&@srcdir@&$ac_srcdir&;t t
12775 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12776 s&@top_srcdir@&$ac_top_srcdir&;t t
12777 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12778 s&@builddir@&$ac_builddir&;t t
12779 s&@abs_builddir@&$ac_abs_builddir&;t t
12780 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12781 s&@INSTALL@&$ac_INSTALL&;t t
12782 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12783 $ac_datarootdir_hack
12784 "
12785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12786 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12787
12788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12789 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12791 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12793 which seems to be undefined. Please make sure it is defined" >&5
12794 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12795 which seems to be undefined. Please make sure it is defined" >&2;}
12796
12797 rm -f "$ac_tmp/stdin"
12798 case $ac_file in
12799 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12800 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12801 esac \
12802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12803 ;;
12804 :H)
12805 #
12806 # CONFIG_HEADER
12807 #
12808 if test x"$ac_file" != x-; then
12809 {
12810 printf "%s\n" "/* $configure_input */" >&1 \
12811 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12812 } >"$ac_tmp/config.h" \
12813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12814 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12816 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12817 else
12818 rm -f "$ac_file"
12819 mv "$ac_tmp/config.h" "$ac_file" \
12820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12821 fi
12822 else
12823 printf "%s\n" "/* $configure_input */" >&1 \
12824 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12825 || as_fn_error $? "could not create -" "$LINENO" 5
12826 fi
12827 # Compute "$ac_file"'s index in $config_headers.
12828 _am_arg="$ac_file"
12829 _am_stamp_count=1
12830 for _am_header in $config_headers :; do
12831 case $_am_header in
12832 $_am_arg | $_am_arg:* )
12833 break ;;
12834 * )
12835 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12836 esac
12837 done
12838 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12839 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12840 X"$_am_arg" : 'X\(//\)[^/]' \| \
12841 X"$_am_arg" : 'X\(//\)$' \| \
12842 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12843 printf "%s\n" X"$_am_arg" |
12844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12845 s//\1/
12846 q
12847 }
12848 /^X\(\/\/\)[^/].*/{
12849 s//\1/
12850 q
12851 }
12852 /^X\(\/\/\)$/{
12853 s//\1/
12854 q
12855 }
12856 /^X\(\/\).*/{
12857 s//\1/
12858 q
12859 }
12860 s/.*/./; q'`/stamp-h$_am_stamp_count
12861 ;;
12862
12863 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12864 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12865 ;;
12866 esac
12867
12868
12869 case $ac_file$ac_mode in
12870 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12871 # Older Autoconf quotes --file arguments for eval, but not when files
12872 # are listed without --file. Let's play safe and only enable the eval
12873 # if we detect the quoting.
12874 # TODO: see whether this extra hack can be removed once we start
12875 # requiring Autoconf 2.70 or later.
12876 case $CONFIG_FILES in #(
12877 *\'*) :
12878 eval set x "$CONFIG_FILES" ;; #(
12879 *) :
12880 set x $CONFIG_FILES ;; #(
12881 *) :
12882 ;;
12883 esac
12884 shift
12885 # Used to flag and report bootstrapping failures.
12886 am_rc=0
12887 for am_mf
12888 do
12889 # Strip MF so we end up with the name of the file.
12890 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12891 # Check whether this is an Automake generated Makefile which includes
12892 # dependency-tracking related rules and includes.
12893 # Grep'ing the whole file directly is not great: AIX grep has a line
12894 # limit of 2048, but all sed's we know have understand at least 4000.
12895 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12896 || continue
12897 am_dirpart=`$as_dirname -- "$am_mf" ||
12898 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12899 X"$am_mf" : 'X\(//\)[^/]' \| \
12900 X"$am_mf" : 'X\(//\)$' \| \
12901 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12902 printf "%s\n" X"$am_mf" |
12903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12904 s//\1/
12905 q
12906 }
12907 /^X\(\/\/\)[^/].*/{
12908 s//\1/
12909 q
12910 }
12911 /^X\(\/\/\)$/{
12912 s//\1/
12913 q
12914 }
12915 /^X\(\/\).*/{
12916 s//\1/
12917 q
12918 }
12919 s/.*/./; q'`
12920 am_filepart=`$as_basename -- "$am_mf" ||
12921 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12922 X"$am_mf" : 'X\(//\)$' \| \
12923 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12924 printf "%s\n" X/"$am_mf" |
12925 sed '/^.*\/\([^/][^/]*\)\/*$/{
12926 s//\1/
12927 q
12928 }
12929 /^X\/\(\/\/\)$/{
12930 s//\1/
12931 q
12932 }
12933 /^X\/\(\/\).*/{
12934 s//\1/
12935 q
12936 }
12937 s/.*/./; q'`
12938 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12939 && sed -e '/# am--include-marker/d' "$am_filepart" \
12940 | $MAKE -f - am--depfiles" >&5
12941 (cd "$am_dirpart" \
12942 && sed -e '/# am--include-marker/d' "$am_filepart" \
12943 | $MAKE -f - am--depfiles) >&5 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } || am_rc=$?
12947 done
12948 if test $am_rc -ne 0; then
12949 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12950 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12951 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12952 for automatic dependency tracking. If GNU make was not used, consider
12953 re-running the configure script with MAKE=\"gmake\" (or whatever is
12954 necessary). You can also try re-running configure with the
12955 '--disable-dependency-tracking' option to at least be able to build
12956 the package (albeit without support for automatic dependency tracking).
12957 See 'config.log' for more details" "$LINENO" 5; }
12958 fi
12959 { am_dirpart=; unset am_dirpart;}
12960 { am_filepart=; unset am_filepart;}
12961 { am_mf=; unset am_mf;}
12962 { am_rc=; unset am_rc;}
12963 rm -f conftest-deps.mk
12964 }
12965 ;;
12966
12967 esac
12968 done # for ac_tag
12969
12970
12971 as_fn_exit 0
12972 _ACEOF
12973 ac_clean_files=$ac_clean_files_save
12974
12975 test $ac_write_fail = 0 ||
12976 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12977
12978
12979 # configure is writing to config.log, and then calls config.status.
12980 # config.status does its own redirection, appending to config.log.
12981 # Unfortunately, on DOS this fails, as config.log is still kept open
12982 # by configure, so config.status won't be able to write to it; its
12983 # output is simply discarded. So we exec the FD to /dev/null,
12984 # effectively closing config.log, so it can be properly (re)opened and
12985 # appended to by config.status. When coming back to configure, we
12986 # need to make the FD available again.
12987 if test "$no_create" != yes; then
12988 ac_cs_success=:
12989 ac_config_status_args=
12990 test "$silent" = yes &&
12991 ac_config_status_args="$ac_config_status_args --quiet"
12992 exec 5>/dev/null
12993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12994 exec 5>>config.log
12995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12996 # would make configure fail if this is the last instruction.
12997 $ac_cs_success || as_fn_exit 1
12998 fi
12999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13001 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13002 fi
13003
13004
13005